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.
data
array
Optional. Data for populating the Message object.
↳ capture_time
↳ type
↳ 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.
hasCaptureTime
clearCaptureTime
setCaptureTime
Input only. The capture time of the packet.
$this
getType
Input only. Immutable. The type of the payload.
hasType
clearType
setType
Input only. Immutable. The type of the payload.
$this
getMetadata
Input only. This field is for users to attach user managed metadata.
hasMetadata
clearMetadata
setMetadata
Input only. This field is for users to attach user managed metadata.
$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.
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.
$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.
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.
$this
getFlags
Immutable. Packet flag set. SDK will set the flag automatically.
int
setFlags
Immutable. Packet flag set. SDK will set the flag automatically.
var
int
$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
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
var
string
$this

