Service Client: Google::Cloud::Pubsublite::V1::Subscriber::SubscriberServiceClient
Client stub representing the remote SubscriberService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to pubsublite.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
Service Client: Google::Cloud::Pubsublite::V1::Subscriber::PartitionAssignmentServiceClient
Client stub representing the remote PartitionAssignmentService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to pubsublite.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Pubsublite::V1::Subscriber - Compiled Protocol Buffers messages for google/cloud/pubsublite/v1/subscriber.proto
SYNOPSIS
use Google::Cloud::Pubsublite::V1::Subscriber;
my $msg = Google::Cloud::Pubsublite::V1::Subscriber::InitialSubscribeRequest->new({
subscription => $subscription,
partition => $partition,
initial_location => $initial_location,
});
# Read or update a field
my $val = $msg->subscription();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Pubsublite::V1::Subscriber::InitialSubscribeRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/pubsublite/v1/subscriber.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::Pubsublite::V1::Subscriber::InitialSubscribeRequest
The first request that must be sent on a newly-opened stream. The client must wait for the response before sending subsequent requests on the stream.
Inherits from Protobuf::Message.
Accessors
$msg->subscription()/$msg->subscription($value)Type:
StringThe subscription from which to receive messages.
$msg->partition()/$msg->partition($value)Type:
Int64The partition from which to receive messages. Partitions are zero indexed, so `partition` must be in the range [0, topic.num_partitions).
$msg->initial_location()/$msg->initial_location($value)Type:
Message(Google::Cloud::Pubsublite::V1::Subscriber::SeekRequest)Optional. Initial target location within the message backlog. If not set, messages will be delivered from the commit cursor for the given subscription and partition.
Google::Cloud::Pubsublite::V1::Subscriber::InitialSubscribeResponse
Response to an InitialSubscribeRequest.
Inherits from Protobuf::Message.
Accessors
$msg->cursor()/$msg->cursor($value)Type:
Message(Google::Cloud::Pubsublite::V1::Common::Cursor)The cursor from which the subscriber will start receiving messages once flow control tokens become available.
Google::Cloud::Pubsublite::V1::Subscriber::SeekRequest
Request to update the stream's delivery cursor based on the given target. Resets the server available tokens to 0. SeekRequests past head result in stream breakage.
SeekRequests may not be sent while another SeekRequest is outstanding (i.e., has not received a SeekResponse) on the same stream.
Inherits from Protobuf::Message.
Accessors
$msg->named_target()/$msg->named_target($value)Type:
Enum(Google::Cloud::Pubsublite::V1::SeekRequest::NamedTarget)A named target.
$msg->cursor()/$msg->cursor($value)Type:
Message(Google::Cloud::Pubsublite::V1::Common::Cursor)A target corresponding to the cursor, pointing to anywhere in the topic partition.
Enum: SeekRequest::NamedTarget
NAMED_TARGET_UNSPECIFIED=>0HEAD=>1COMMITTED_CURSOR=>2
Google::Cloud::Pubsublite::V1::Subscriber::SeekResponse
Response to a SeekRequest.
Inherits from Protobuf::Message.
Accessors
$msg->cursor()/$msg->cursor($value)Type:
Message(Google::Cloud::Pubsublite::V1::Common::Cursor)The new delivery cursor for the current stream.
Google::Cloud::Pubsublite::V1::Subscriber::FlowControlRequest
Request to grant tokens to the server, requesting delivery of messages when they become available.
Inherits from Protobuf::Message.
Accessors
$msg->allowed_messages()/$msg->allowed_messages($value)Type:
Int64The number of message tokens to grant. Must be greater than or equal to 0.
$msg->allowed_bytes()/$msg->allowed_bytes($value)Type:
Int64The number of byte tokens to grant. Must be greater than or equal to 0.
Google::Cloud::Pubsublite::V1::Subscriber::SubscribeRequest
A request sent from the client to the server on a stream.
Inherits from Protobuf::Message.
Accessors
$msg->initial()/$msg->initial($value)Type:
Message(Google::Cloud::Pubsublite::V1::Subscriber::InitialSubscribeRequest)Initial request on the stream.
$msg->seek()/$msg->seek($value)Type:
Message(Google::Cloud::Pubsublite::V1::Subscriber::SeekRequest)Request to update the stream's delivery cursor.
$msg->flow_control()/$msg->flow_control($value)Type:
Message(Google::Cloud::Pubsublite::V1::Subscriber::FlowControlRequest)Request to grant tokens to the server,
Google::Cloud::Pubsublite::V1::Subscriber::MessageResponse
Response containing a list of messages. Upon delivering a MessageResponse to the client, the server: * Updates the stream's delivery cursor to one greater than the cursor of the last message in the list. * Subtracts the total number of bytes and messages from the tokens available to the server.
Inherits from Protobuf::Message.
Accessors
$msg->messages()/$msg->messages($value)Type:
Message(Google::Cloud::Pubsublite::V1::Common::SequencedMessage)Messages from the topic partition.
Google::Cloud::Pubsublite::V1::Subscriber::SubscribeResponse
Response to SubscribeRequest.
Inherits from Protobuf::Message.
Accessors
$msg->initial()/$msg->initial($value)Type:
Message(Google::Cloud::Pubsublite::V1::Subscriber::InitialSubscribeResponse)Initial response on the stream.
$msg->seek()/$msg->seek($value)Type:
Message(Google::Cloud::Pubsublite::V1::Subscriber::SeekResponse)Response to a Seek operation.
$msg->messages()/$msg->messages($value)Type:
Message(Google::Cloud::Pubsublite::V1::Subscriber::MessageResponse)Response containing messages from the topic partition.
Google::Cloud::Pubsublite::V1::Subscriber::InitialPartitionAssignmentRequest
The first request that must be sent on a newly-opened stream. The client must wait for the response before sending subsequent requests on the stream.
Inherits from Protobuf::Message.
Accessors
$msg->subscription()/$msg->subscription($value)Type:
StringThe subscription name. Structured like: projects/<project number>/locations/<zone name>/subscriptions/<subscription id>
$msg->client_id()/$msg->client_id($value)Type:
BytesAn opaque, unique client identifier. This field must be exactly 16 bytes long and is interpreted as an unsigned 128 bit integer. Other size values will be rejected and the stream will be failed with a non-retryable error.
This field is large enough to fit a uuid from standard uuid algorithms like uuid1 or uuid4, which should be used to generate this number. The same identifier should be reused following disconnections with retryable stream errors.
Google::Cloud::Pubsublite::V1::Subscriber::PartitionAssignment
PartitionAssignments should not race with acknowledgements. There should be exactly one unacknowledged PartitionAssignment at a time. If not, the client must break the stream.
Inherits from Protobuf::Message.
Accessors
$msg->partitions()/$msg->partitions($value)Type:
Int64The list of partition numbers this subscriber is assigned to.
Google::Cloud::Pubsublite::V1::Subscriber::PartitionAssignmentAck
Acknowledge receipt and handling of the previous assignment. If not sent within a short period after receiving the assignment, partitions may remain unassigned for a period of time until the client is known to be inactive, after which time the server will break the stream.
Inherits from Protobuf::Message.
Google::Cloud::Pubsublite::V1::Subscriber::PartitionAssignmentRequest
A request on the PartitionAssignment stream.
Inherits from Protobuf::Message.
Accessors
$msg->initial()/$msg->initial($value)Type:
Message(Google::Cloud::Pubsublite::V1::Subscriber::InitialPartitionAssignmentRequest)Initial request on the stream.
$msg->ack()/$msg->ack($value)Type:
Message(Google::Cloud::Pubsublite::V1::Subscriber::PartitionAssignmentAck)Acknowledgement of a partition assignment.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Pubsublite::V1::Subscriber::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.