NAME
Google::Cloud::Visionai::V1::StreamingResources - Compiled Protocol Buffers messages for google/cloud/visionai/v1/streaming_resources.proto
SYNOPSIS
use Google::Cloud::Visionai::V1::StreamingResources;
my $msg = Google::Cloud::Visionai::V1::StreamingResources::GstreamerBufferDescriptor->new({
caps_string => $caps_string,
is_key_frame => $is_key_frame,
pts_time => $pts_time,
dts_time => $dts_time,
});
# Read or update a field
my $val = $msg->caps_string();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Visionai::V1::StreamingResources::GstreamerBufferDescriptor->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/visionai/v1/streaming_resources.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Visionai::V1::StreamingResources::GstreamerBufferDescriptor
The descriptor for a gstreamer buffer payload.
Inherits from Protobuf::Message.
Accessors
$msg->caps_string()/$msg->caps_string($value)Type:
StringThe caps string of the payload.
$msg->is_key_frame()/$msg->is_key_frame($value)Type:
BoolWhether the buffer is a key frame.
$msg->pts_time()/$msg->pts_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)PTS of the frame.
$msg->dts_time()/$msg->dts_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)DTS of the frame.
$msg->duration()/$msg->duration($value)Type:
Message(Google::Protobuf::Duration::Duration)Duration of the frame.
Google::Cloud::Visionai::V1::StreamingResources::RawImageDescriptor
The descriptor for a raw image.
Inherits from Protobuf::Message.
Accessors
$msg->format()/$msg->format($value)Type:
StringRaw image format. Its possible values are: "srgb".
$msg->height()/$msg->height($value)Type:
Int32The height of the image.
$msg->width()/$msg->width($value)Type:
Int32The width of the image.
Google::Cloud::Visionai::V1::StreamingResources::PacketType
The message that represents the data type of a packet.
Inherits from Protobuf::Message.
Accessors
$msg->type_class()/$msg->type_class($value)Type:
StringThe type class of the packet. Its possible values are: "gst", "protobuf", and "string".
$msg->type_descriptor()/$msg->type_descriptor($value)Type:
Message(Google::Cloud::Visionai::V1::StreamingResources::PacketType::TypeDescriptor)The type descriptor.
Google::Cloud::Visionai::V1::StreamingResources::ServerMetadata
The message that represents server metadata.
Inherits from Protobuf::Message.
Accessors
$msg->offset()/$msg->offset($value)Type:
Int64The offset position for the packet in its stream.
$msg->ingest_time()/$msg->ingest_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The timestamp at which the stream server receives this packet. This is based on the local clock of on the server side. It is guaranteed to be monotonically increasing for the packets within each session; however this timestamp is not comparable across packets sent to the same stream different sessions. Session here refers to one individual gRPC streaming request to the stream server.
Google::Cloud::Visionai::V1::StreamingResources::SeriesMetadata
The message that represents series metadata.
Inherits from Protobuf::Message.
Accessors
$msg->series()/$msg->series($value)Type:
StringSeries name. It's in the format of "projects/{project}/locations/{location}/clusters/{cluster}/series/{stream}".
Google::Cloud::Visionai::V1::StreamingResources::PacketHeader
The message that represents packet header.
Inherits from Protobuf::Message.
Accessors
$msg->capture_time()/$msg->capture_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Input only. The capture time of the packet.
$msg->type()/$msg->type($value)Type:
Message(Google::Cloud::Visionai::V1::StreamingResources::PacketType)Input only. Immutable. The type of the payload.
$msg->metadata()/$msg->metadata($value)Type:
Message(Google::Protobuf::Struct::Struct)Input only. This field is for users to attach user managed metadata.
$msg->server_metadata()/$msg->server_metadata($value)Type:
Message(Google::Cloud::Visionai::V1::StreamingResources::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.
$msg->series_metadata()/$msg->series_metadata($value)Type:
Message(Google::Cloud::Visionai::V1::StreamingResources::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.
$msg->flags()/$msg->flags($value)Type:
Int32Immutable. Packet flag set. SDK will set the flag automatically.
$msg->trace_context()/$msg->trace_context($value)Type:
StringImmutable. 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
Google::Cloud::Visionai::V1::StreamingResources::Packet
The quanta of datum that the series accepts.
Inherits from Protobuf::Message.
Accessors
$msg->header()/$msg->header($value)Type:
Message(Google::Cloud::Visionai::V1::StreamingResources::PacketHeader)The packet header.
$msg->payload()/$msg->payload($value)Type:
BytesThe payload of the packet.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Visionai::V1::StreamingResources::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.