Service Client: Google::Cloud::Pubsublite::V1::Cursor::CursorServiceClient

Client stub representing the remote CursorService 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::Cursor - Compiled Protocol Buffers messages for google/cloud/pubsublite/v1/cursor.proto

SYNOPSIS

use Google::Cloud::Pubsublite::V1::Cursor;

my $msg = Google::Cloud::Pubsublite::V1::Cursor::InitialCommitCursorRequest->new({
    subscription => $subscription,
    partition => $partition,
});

# Read or update a field
my $val = $msg->subscription();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Cloud::Pubsublite::V1::Cursor::InitialCommitCursorRequest->parse($bytes);

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

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/cloud/pubsublite/v1/cursor.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::Cursor::InitialCommitCursorRequest

The first streaming 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: String

    The subscription for which to manage committed cursors.

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

    Type: Int64

    The partition for which to manage committed cursors. Partitions are zero indexed, so `partition` must be in the range [0, topic.num_partitions).

Google::Cloud::Pubsublite::V1::Cursor::InitialCommitCursorResponse

Response to an InitialCommitCursorRequest.

Inherits from Protobuf::Message.

Google::Cloud::Pubsublite::V1::Cursor::SequencedCommitCursorRequest

Streaming request to update the committed cursor. Subsequent SequencedCommitCursorRequests override outstanding ones.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Pubsublite::V1::Cursor::SequencedCommitCursorResponse

Response to a SequencedCommitCursorRequest.

Inherits from Protobuf::Message.

Accessors

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

    Type: Int64

    The number of outstanding SequencedCommitCursorRequests acknowledged by this response. Note that SequencedCommitCursorRequests are acknowledged in the order that they are received.

Google::Cloud::Pubsublite::V1::Cursor::StreamingCommitCursorRequest

A request sent from the client to the server on a stream.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Pubsublite::V1::Cursor::StreamingCommitCursorResponse

Response to a StreamingCommitCursorRequest.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Pubsublite::V1::Cursor::CommitCursorRequest

Request for CommitCursor.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    The subscription for which to update the cursor.

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

    Type: Int64

    The partition for which to update the cursor. Partitions are zero indexed, so `partition` must be in the range [0, topic.num_partitions).

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

    Type: Message (Google::Cloud::Pubsublite::V1::Common::Cursor)

    The new value for the committed cursor.

Google::Cloud::Pubsublite::V1::Cursor::CommitCursorResponse

Response for CommitCursor.

Inherits from Protobuf::Message.

Google::Cloud::Pubsublite::V1::Cursor::ListPartitionCursorsRequest

Request for ListPartitionCursors.

Inherits from Protobuf::Message.

Accessors

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

    Type: String

    Required. The subscription for which to retrieve cursors. Structured like `projects/{project_number}/locations/{location}/subscriptions/{subscription_id}`.

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

    Type: Int32

    The maximum number of cursors to return. The service may return fewer than this value. If unset or zero, all cursors for the parent will be returned.

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

    Type: String

    A page token, received from a previous `ListPartitionCursors` call. Provide this to retrieve the subsequent page.

    When paginating, all other parameters provided to `ListPartitionCursors` must match the call that provided the page token.

Google::Cloud::Pubsublite::V1::Cursor::PartitionCursor

A pair of a Cursor and the partition it is for.

Inherits from Protobuf::Message.

Accessors

Google::Cloud::Pubsublite::V1::Cursor::ListPartitionCursorsResponse

Response for ListPartitionCursors

Inherits from Protobuf::Message.

Accessors

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

    Type: Message (Google::Cloud::Pubsublite::V1::Cursor::PartitionCursor)

    The partition cursors from this request.

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

    Type: String

    A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.

SEE ALSO

Protobuf, Protobuf::Message, Google::Cloud::Pubsublite::V1::Cursor::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.