Vision AI V1 API - Class Google::Cloud::VisionAI::V1::PacketHeader (v0.2.0)

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
Returns

#capture_time=

def capture_time=(value) -> ::Google::Protobuf::Timestamp
Parameter
Returns

#flags

def flags() -> ::Integer
Returns
  • (::Integer) — Immutable. Packet flag set. SDK will set the flag automatically.

#flags=

def flags=(value) -> ::Integer
Parameter
  • value (::Integer) — Immutable. Packet flag set. SDK will set the flag automatically.
Returns
  • (::Integer) — Immutable. Packet flag set. SDK will set the flag automatically.

#metadata

def metadata() -> ::Google::Protobuf::Struct
Returns

#metadata=

def metadata=(value) -> ::Google::Protobuf::Struct
Parameter
Returns

#series_metadata

def series_metadata() -> ::Google::Cloud::VisionAI::V1::SeriesMetadata
Returns

#series_metadata=

def series_metadata=(value) -> ::Google::Cloud::VisionAI::V1::SeriesMetadata
Parameter
Returns

#server_metadata

def server_metadata() -> ::Google::Cloud::VisionAI::V1::ServerMetadata
Returns

#trace_context

def trace_context() -> ::String
Returns
  • (::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
Parameter
  • 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
Returns
  • (::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
Returns

#type=

def type=(value) -> ::Google::Cloud::VisionAI::V1::PacketType
Parameter
Returns