Service Client: Google::Cloud::Visionai::V1alpha1::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::V1alpha1::StreamingService - Compiled Protocol Buffers messages for google/cloud/visionai/v1alpha1/streaming_service.proto

SYNOPSIS

use Google::Cloud::Visionai::V1alpha1::StreamingService;

my $msg = Google::Cloud::Visionai::V1alpha1::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::V1alpha1::StreamingService::ReceiveEventsRequest->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/visionai/v1alpha1/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::V1alpha1::StreamingService::ReceiveEventsRequest

Request message for ReceiveEvents.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Visionai::V1alpha1::StreamingService::EventUpdate

The event update message.

Inherits from Protobuf::Message.

Accessors

  • $msg->stream() / $msg->stream($value)

    Type: String

    The name of the stream that the event is attached to.

  • $msg->event() / $msg->event($value)

    Type: String

    The name of the event.

  • $msg->series() / $msg->series($value)

    Type: String

    The 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: Int64

    The offset of the message that will be used to acknowledge of the message receiving.

Google::Cloud::Visionai::V1alpha1::StreamingService::ReceiveEventsControlResponse

Control message for a ReceiveEventsResponse.

Inherits from Protobuf::Message.

Accessors

  • $msg->heartbeat() / $msg->heartbeat($value)

    Type: Bool

    A server heartbeat.

  • $msg->writes_done_request() / $msg->writes_done_request($value)

    Type: Bool

    A 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::V1alpha1::StreamingService::ReceiveEventsResponse

Response message for the ReceiveEvents.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Visionai::V1alpha1::StreamingService::Lease

The lease message.

Inherits from Protobuf::Message.

Accessors

  • $msg->id() / $msg->id($value)

    Type: String

    The lease id.

  • $msg->series() / $msg->series($value)

    Type: String

    The series name.

  • $msg->owner() / $msg->owner($value)

    Type: String

    The 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::V1alpha1::LeaseType)

    The lease type.

Google::Cloud::Visionai::V1alpha1::StreamingService::AcquireLeaseRequest

Request message for acquiring a lease.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Visionai::V1alpha1::StreamingService::RenewLeaseRequest

Request message for renewing a lease.

Inherits from Protobuf::Message.

Accessors

  • $msg->id() / $msg->id($value)

    Type: String

    Lease id.

  • $msg->series() / $msg->series($value)

    Type: String

    Series name.

  • $msg->owner() / $msg->owner($value)

    Type: String

    Lease owner.

  • $msg->term() / $msg->term($value)

    Type: Message (Google::Protobuf::Duration::Duration)

    Lease term.

Google::Cloud::Visionai::V1alpha1::StreamingService::ReleaseLeaseRequest

Request message for releasing lease.

Inherits from Protobuf::Message.

Accessors

  • $msg->id() / $msg->id($value)

    Type: String

    Lease id.

  • $msg->series() / $msg->series($value)

    Type: String

    Series name.

  • $msg->owner() / $msg->owner($value)

    Type: String

    Lease owner.

Google::Cloud::Visionai::V1alpha1::StreamingService::ReleaseLeaseResponse

Response message for release lease.

Inherits from Protobuf::Message.

Google::Cloud::Visionai::V1alpha1::StreamingService::RequestMetadata

RequestMetadata is the metadata message for the request.

Inherits from Protobuf::Message.

Accessors

  • $msg->stream() / $msg->stream($value)

    Type: String

    Stream name.

  • $msg->event() / $msg->event($value)

    Type: String

    Evevt name.

  • $msg->series() / $msg->series($value)

    Type: String

    Series name.

  • $msg->lease_id() / $msg->lease_id($value)

    Type: String

    Lease id.

  • $msg->owner() / $msg->owner($value)

    Type: String

    Owner 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::V1alpha1::StreamingService::SendPacketsRequest

Request message for sending packets.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Visionai::V1alpha1::StreamingService::SendPacketsResponse

Response message for sending packets.

Inherits from Protobuf::Message.

Google::Cloud::Visionai::V1alpha1::StreamingService::ReceivePacketsRequest

Request message for receiving packets.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Visionai::V1alpha1::StreamingService::ReceivePacketsControlResponse

Control message for a ReceivePacketsResponse.

Inherits from Protobuf::Message.

Accessors

  • $msg->heartbeat() / $msg->heartbeat($value)

    Type: Bool

    A server heartbeat.

  • $msg->writes_done_request() / $msg->writes_done_request($value)

    Type: Bool

    A 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::V1alpha1::StreamingService::ReceivePacketsResponse

Response message from ReceivePackets.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Visionai::V1alpha1::StreamingService::EagerMode

The options for receiver under the eager mode.

Inherits from Protobuf::Message.

Google::Cloud::Visionai::V1alpha1::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: String

    This 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: String

    This 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::V1alpha1::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: Int64

    The offset to commit.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Visionai::V1alpha1::StreamingService::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.