PacketHeader(mapping=None, *, ignore_unknown_fields=False, **kwargs)
The message that represents packet header.
Attributes |
|
---|---|
Name | Description |
capture_time |
google.protobuf.timestamp_pb2.Timestamp
Input only. The capture time of the packet. |
type_ |
google.cloud.visionai_v1.types.PacketType
Input only. Immutable. The type of the payload. |
metadata |
google.protobuf.struct_pb2.Struct
Input only. This field is for users to attach user managed metadata. |
server_metadata |
google.cloud.visionai_v1.types.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 |
google.cloud.visionai_v1.types.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 |
str
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 |