Service Client: Google::Cloud::Visionai::V1::StreamingService::StreamingServiceClient
Client stub representing the remote StreamingService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to visionai.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Visionai::V1::StreamingService - Compiled Protocol Buffers messages for google/cloud/visionai/v1/streaming_service.proto
SYNOPSIS
use Google::Cloud::Visionai::V1::StreamingService;
my $msg = Google::Cloud::Visionai::V1::StreamingService::ReceiveEventsRequest->new({
setup_request => $setup_request,
commit_request => $commit_request,
});
# Read or update a field
my $val = $msg->setup_request();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Visionai::V1::StreamingService::ReceiveEventsRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/visionai/v1/streaming_service.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::StreamingService::ReceiveEventsRequest
Request message for ReceiveEvents.
Inherits from Protobuf::Message.
Accessors
$msg->setup_request()/$msg->setup_request($value)Type:
Message(Google::Cloud::Visionai::V1::StreamingService::ReceiveEventsRequest::SetupRequest)The setup request to setup the RPC connection.
$msg->commit_request()/$msg->commit_request($value)Type:
Message(Google::Cloud::Visionai::V1::StreamingService::CommitRequest)This request checkpoints the consumer's read progress.
Google::Cloud::Visionai::V1::StreamingService::EventUpdate
The event update message.
Inherits from Protobuf::Message.
Accessors
$msg->stream()/$msg->stream($value)Type:
StringThe name of the stream that the event is attached to.
$msg->event()/$msg->event($value)Type:
StringThe name of the event.
$msg->series()/$msg->series($value)Type:
StringThe name of the series.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The timestamp when the Event update happens.
$msg->offset()/$msg->offset($value)Type:
Int64The offset of the message that will be used to acknowledge of the message receiving.
Google::Cloud::Visionai::V1::StreamingService::ReceiveEventsControlResponse
Control message for a ReceiveEventsResponse.
Inherits from Protobuf::Message.
Accessors
$msg->heartbeat()/$msg->heartbeat($value)Type:
BoolA server heartbeat.
$msg->writes_done_request()/$msg->writes_done_request($value)Type:
BoolA request to the receiver to complete any final writes followed by a `WritesDone`; e.g. issue any final `CommitRequest`s.
May be ignored if `WritesDone` has already been issued at any point prior to receiving this message.
If `WritesDone` does not get issued, then the server will forcefully cancel the connection, and the receiver will likely receive an uninformative after `Read` returns `false` and `Finish` is called.
Google::Cloud::Visionai::V1::StreamingService::ReceiveEventsResponse
Response message for the ReceiveEvents.
Inherits from Protobuf::Message.
Accessors
$msg->event_update()/$msg->event_update($value)Type:
Message(Google::Cloud::Visionai::V1::StreamingService::EventUpdate)The event update message.
$msg->control()/$msg->control($value)Type:
Message(Google::Cloud::Visionai::V1::StreamingService::ReceiveEventsControlResponse)A control message from the server.
Google::Cloud::Visionai::V1::StreamingService::Lease
The lease message.
Inherits from Protobuf::Message.
Accessors
$msg->id()/$msg->id($value)Type:
StringThe lease id.
$msg->series()/$msg->series($value)Type:
StringThe series name.
$msg->owner()/$msg->owner($value)Type:
StringThe owner name.
$msg->expire_time()/$msg->expire_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The lease expire time.
$msg->lease_type()/$msg->lease_type($value)Type:
Enum(Google::Cloud::Visionai::V1::LeaseType)The lease type.
Google::Cloud::Visionai::V1::StreamingService::AcquireLeaseRequest
Request message for acquiring a lease.
Inherits from Protobuf::Message.
Accessors
$msg->series()/$msg->series($value)Type:
StringThe series name.
$msg->owner()/$msg->owner($value)Type:
StringThe owner name.
$msg->term()/$msg->term($value)Type:
Message(Google::Protobuf::Duration::Duration)The lease term.
$msg->lease_type()/$msg->lease_type($value)Type:
Enum(Google::Cloud::Visionai::V1::LeaseType)The lease type.
Google::Cloud::Visionai::V1::StreamingService::RenewLeaseRequest
Request message for renewing a lease.
Inherits from Protobuf::Message.
Accessors
$msg->id()/$msg->id($value)Type:
StringLease id.
$msg->series()/$msg->series($value)Type:
StringSeries name.
$msg->owner()/$msg->owner($value)Type:
StringLease owner.
$msg->term()/$msg->term($value)Type:
Message(Google::Protobuf::Duration::Duration)Lease term.
Google::Cloud::Visionai::V1::StreamingService::ReleaseLeaseRequest
Request message for releasing lease.
Inherits from Protobuf::Message.
Accessors
$msg->id()/$msg->id($value)Type:
StringLease id.
$msg->series()/$msg->series($value)Type:
StringSeries name.
$msg->owner()/$msg->owner($value)Type:
StringLease owner.
Google::Cloud::Visionai::V1::StreamingService::ReleaseLeaseResponse
Response message for release lease.
Inherits from Protobuf::Message.
Google::Cloud::Visionai::V1::StreamingService::RequestMetadata
RequestMetadata is the metadata message for the request.
Inherits from Protobuf::Message.
Accessors
$msg->stream()/$msg->stream($value)Type:
StringStream name.
$msg->event()/$msg->event($value)Type:
StringEvevt name.
$msg->series()/$msg->series($value)Type:
StringSeries name.
$msg->lease_id()/$msg->lease_id($value)Type:
StringLease id.
$msg->owner()/$msg->owner($value)Type:
StringOwner name.
$msg->lease_term()/$msg->lease_term($value)Type:
Message(Google::Protobuf::Duration::Duration)Lease term specifies how long the client wants the session to be maintained by the server after the client leaves. If the lease term is not set, the server will release the session immediately and the client cannot reconnect to the same session later.
Google::Cloud::Visionai::V1::StreamingService::SendPacketsRequest
Request message for sending packets.
Inherits from Protobuf::Message.
Accessors
$msg->packet()/$msg->packet($value)Type:
Message(Google::Cloud::Visionai::V1::StreamingResources::Packet)Packets sent over the streaming rpc.
$msg->metadata()/$msg->metadata($value)Type:
Message(Google::Cloud::Visionai::V1::StreamingService::RequestMetadata)The first message of the streaming rpc including the request metadata.
Google::Cloud::Visionai::V1::StreamingService::SendPacketsResponse
Response message for sending packets.
Inherits from Protobuf::Message.
Google::Cloud::Visionai::V1::StreamingService::ReceivePacketsRequest
Request message for receiving packets.
Inherits from Protobuf::Message.
Accessors
$msg->setup_request()/$msg->setup_request($value)Type:
Message(Google::Cloud::Visionai::V1::StreamingService::ReceivePacketsRequest::SetupRequest)The request to setup the initial state of session.
The client must send and only send this as the first message.
$msg->commit_request()/$msg->commit_request($value)Type:
Message(Google::Cloud::Visionai::V1::StreamingService::CommitRequest)This request checkpoints the consumer's read progress.
Google::Cloud::Visionai::V1::StreamingService::ReceivePacketsControlResponse
Control message for a ReceivePacketsResponse.
Inherits from Protobuf::Message.
Accessors
$msg->heartbeat()/$msg->heartbeat($value)Type:
BoolA server heartbeat.
$msg->writes_done_request()/$msg->writes_done_request($value)Type:
BoolA request to the receiver to complete any final writes followed by a `WritesDone`; e.g. issue any final `CommitRequest`s.
May be ignored if `WritesDone` has already been issued at any point prior to receiving this message.
If `WritesDone` does not get issued, then the server will forcefully cancel the connection, and the receiver will likely receive an uninformative after `Read` returns `false` and `Finish` is called.
Google::Cloud::Visionai::V1::StreamingService::ReceivePacketsResponse
Response message from ReceivePackets.
Inherits from Protobuf::Message.
Accessors
$msg->packet()/$msg->packet($value)Type:
Message(Google::Cloud::Visionai::V1::StreamingResources::Packet)A genuine data payload originating from the sender.
$msg->control()/$msg->control($value)Type:
Message(Google::Cloud::Visionai::V1::StreamingService::ReceivePacketsControlResponse)A control message from the server.
Google::Cloud::Visionai::V1::StreamingService::EagerMode
The options for receiver under the eager mode.
Inherits from Protobuf::Message.
Google::Cloud::Visionai::V1::StreamingService::ControlledMode
The options for receiver under the controlled mode.
Inherits from Protobuf::Message.
Accessors
$msg->starting_logical_offset()/$msg->starting_logical_offset($value)Type:
StringThis can be set to the following logical starting points:
"begin": This will read from the earliest available message.
"most-recent": This will read from the latest available message.
"end": This will read only future messages.
"stored": This will resume reads one past the last committed offset. It is the only option that resumes progress; all others jump unilaterally.
$msg->fallback_starting_offset()/$msg->fallback_starting_offset($value)Type:
StringThis is the logical starting point to fallback upon should the specified starting offset be unavailable.
This can be one of the following values:
"begin": This will read from the earliest available message.
"end": This will read only future messages.
Google::Cloud::Visionai::V1::StreamingService::CommitRequest
The message for explicitly committing the read progress.
This may only be used when `ReceivePacketsControlledMode` is set in the initial setup request.
Inherits from Protobuf::Message.
Accessors
$msg->offset()/$msg->offset($value)Type:
Int64The offset to commit.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Visionai::V1::StreamingService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.