Reference documentation and code samples for the Vision AI V1 API class Google::Cloud::VisionAI::V1::PacketHeader.
The message that represents packet header.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#capture_time
def capture_time() -> ::Google::Protobuf::Timestamp
- (::Google::Protobuf::Timestamp) — Input only. The capture time of the packet.
#capture_time=
def capture_time=(value) -> ::Google::Protobuf::Timestamp
- value (::Google::Protobuf::Timestamp) — Input only. The capture time of the packet.
- (::Google::Protobuf::Timestamp) — Input only. The capture time of the packet.
#flags
def flags() -> ::Integer
- (::Integer) — Immutable. Packet flag set. SDK will set the flag automatically.
#flags=
def flags=(value) -> ::Integer
- value (::Integer) — Immutable. Packet flag set. SDK will set the flag automatically.
- (::Integer) — Immutable. Packet flag set. SDK will set the flag automatically.
#metadata
def metadata() -> ::Google::Protobuf::Struct
- (::Google::Protobuf::Struct) — Input only. This field is for users to attach user managed metadata.
#metadata=
def metadata=(value) -> ::Google::Protobuf::Struct
- value (::Google::Protobuf::Struct) — Input only. This field is for users to attach user managed metadata.
- (::Google::Protobuf::Struct) — Input only. This field is for users to attach user managed metadata.
#series_metadata
def series_metadata() -> ::Google::Cloud::VisionAI::V1::SeriesMetadata
- (::Google::Cloud::VisionAI::V1::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.
#series_metadata=
def series_metadata=(value) -> ::Google::Cloud::VisionAI::V1::SeriesMetadata
- value (::Google::Cloud::VisionAI::V1::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.
- (::Google::Cloud::VisionAI::V1::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.
#server_metadata
def server_metadata() -> ::Google::Cloud::VisionAI::V1::ServerMetadata
- (::Google::Cloud::VisionAI::V1::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.
#trace_context
def trace_context() -> ::String
-
(::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
#trace_context=
def trace_context=(value) -> ::String
-
value (::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
-
(::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
#type
def type() -> ::Google::Cloud::VisionAI::V1::PacketType
- (::Google::Cloud::VisionAI::V1::PacketType) — Input only. Immutable. The type of the payload.
#type=
def type=(value) -> ::Google::Cloud::VisionAI::V1::PacketType
- value (::Google::Cloud::VisionAI::V1::PacketType) — Input only. Immutable. The type of the payload.
- (::Google::Cloud::VisionAI::V1::PacketType) — Input only. Immutable. The type of the payload.