Google Cloud Vision Ai V1 Client - Class PacketHeader (0.3.0)
Stay organized with collections
Save and categorize content based on your preferences.
Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class PacketHeader.
The message that represents packet header.
Generated from protobuf message google.cloud.visionai.v1.PacketHeader
Namespace
Google \ Cloud \ VisionAI \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ capture_time |
Google\Protobuf\Timestamp
Input only. The capture time of the packet. |
↳ type |
PacketType
Input only. Immutable. The type of the payload. |
↳ metadata |
Google\Protobuf\Struct
Input only. This field is for users to attach user managed metadata. |
↳ server_metadata |
ServerMetadata
Output only. Metadata that the server appends to each packet before sending it to receivers. You don't need to set a value for this field when sending packets. |
↳ series_metadata |
SeriesMetadata
Input only. Immutable. Metadata that the server needs to know where to write the packets to. It's only required for the first packet. |
↳ flags |
int
Immutable. Packet flag set. SDK will set the flag automatically. |
↳ trace_context |
string
Immutable. Header string for tracing across services. It should be set when the packet is first arrived in the stream server. The input format is a lowercase hex string: - version_id: 1 byte, currently must be zero - hex encoded (2 characters) - trace_id: 16 bytes (opaque blob) - hex encoded (32 characters) - span_id: 8 bytes (opaque blob) - hex encoded (16 characters) - trace_options: 1 byte (LSB means tracing enabled) - hex encoded (2 characters) Example: "00-404142434445464748494a4b4c4d4e4f-6162636465666768-01" v trace_id span_id options |
getCaptureTime
Input only. The capture time of the packet.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasCaptureTime
clearCaptureTime
setCaptureTime
Input only. The capture time of the packet.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getType
Input only. Immutable. The type of the payload.
| Returns | |
|---|---|
| Type | Description |
PacketType|null |
|
hasType
clearType
setType
Input only. Immutable. The type of the payload.
| Parameter | |
|---|---|
| Name | Description |
var |
PacketType
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMetadata
Input only. This field is for users to attach user managed metadata.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Struct|null |
|
hasMetadata
clearMetadata
setMetadata
Input only. This field is for users to attach user managed metadata.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Struct
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getServerMetadata
Output only. Metadata that the server appends to each packet before sending it to receivers. You don't need to set a value for this field when sending packets.
| Returns | |
|---|---|
| Type | Description |
ServerMetadata|null |
|
hasServerMetadata
clearServerMetadata
setServerMetadata
Output only. Metadata that the server appends to each packet before sending it to receivers. You don't need to set a value for this field when sending packets.
| Parameter | |
|---|---|
| Name | Description |
var |
ServerMetadata
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSeriesMetadata
Input only. Immutable. Metadata that the server needs to know where to write the packets to. It's only required for the first packet.
| Returns | |
|---|---|
| Type | Description |
SeriesMetadata|null |
|
hasSeriesMetadata
clearSeriesMetadata
setSeriesMetadata
Input only. Immutable. Metadata that the server needs to know where to write the packets to. It's only required for the first packet.
| Parameter | |
|---|---|
| Name | Description |
var |
SeriesMetadata
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getFlags
Immutable. Packet flag set. SDK will set the flag automatically.
| Returns | |
|---|---|
| Type | Description |
int |
|
setFlags
Immutable. Packet flag set. SDK will set the flag automatically.
| Parameter | |
|---|---|
| Name | Description |
var |
int
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getTraceContext
Immutable. Header string for tracing across services. It should be set when the packet is first arrived in the stream server.
The input format is a lowercase hex string:
- version_id: 1 byte, currently must be zero - hex encoded (2 characters)
- trace_id: 16 bytes (opaque blob) - hex encoded (32 characters)
- span_id: 8 bytes (opaque blob) - hex encoded (16 characters)
- trace_options: 1 byte (LSB means tracing enabled) - hex encoded (2 characters) Example: "00-404142434445464748494a4b4c4d4e4f-6162636465666768-01" v trace_id span_id options
| Returns | |
|---|---|
| Type | Description |
string |
|
setTraceContext
Immutable. Header string for tracing across services. It should be set when the packet is first arrived in the stream server.
The input format is a lowercase hex string:
- version_id: 1 byte, currently must be zero - hex encoded (2 characters)
- trace_id: 16 bytes (opaque blob) - hex encoded (32 characters)
- span_id: 8 bytes (opaque blob) - hex encoded (16 characters)
- trace_options: 1 byte (LSB means tracing enabled) - hex encoded (2 characters) Example: "00-404142434445464748494a4b4c4d4e4f-6162636465666768-01" v trace_id span_id options
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|