NAME
Google::Cloud::Pubsublite::V1 - Client library for Google Cloud Services
SYNOPSIS
use Google::Cloud::Pubsublite::V1;
use Google::Auth;
my $auth = Google::Auth->default();
# 1. High-performance gRPC Transport (Default)
my $grpc_client = Google::Cloud::Pubsublite::V1->new(
credentials => $auth,
transport => 'grpc', # Optional: 'grpc' is default
);
# 2. HTTP/REST Transport
my $rest_client = Google::Cloud::Pubsublite::V1->new(
credentials => $auth,
transport => 'rest',
);
# Execute service methods
my $res = $grpc_client->some_method( %params );
DESCRIPTION
Google::Cloud::Pubsublite::V1 is an auto-generated client library for Google Cloud Services.
It provides a unified client interface supporting both high-performance HTTP/2 gRPC and HTTP/REST transports, with automatic Google Cloud Application Default Credentials (ADC) resolution and typed Protocol Buffers message handling.
SOURCE
Generated from the following Protocol Buffers schemas:
googleapis/google/cloud/pubsublite/v1/admin.protogoogleapis/google/cloud/pubsublite/v1/common.protogoogleapis/google/cloud/pubsublite/v1/cursor.protogoogleapis/google/cloud/pubsublite/v1/publisher.protogoogleapis/google/cloud/pubsublite/v1/subscriber.protogoogleapis/google/cloud/pubsublite/v1/topic_stats.proto
CONSTRUCTOR
new
my $client = Google::Cloud::Pubsublite::V1->new(
credentials => $auth, # Optional: Google::Auth object (defaults to ADC)
transport => 'grpc', # Optional: 'grpc' (default) or 'rest'
);
ATTRIBUTES
credentials
Returns or accepts the Google::Auth credentials object.
transport
Returns or accepts the active transport object (Google::gRPC::Client or Google::Cloud::REST::Client).
METHODS
METHODS
The following RPC methods are available in this client:
create_topic
my $response = $client->create_topic( parent => $parent, topic => $topic, topic_id => $topic_id, );Calls the RPC method
CreateTopicongoogle.cloud.pubsublite.v1.AdminService.Request: Google::Cloud::Pubsublite::V1::Admin::CreateTopicRequest
Returns: Google::Cloud::Pubsublite::V1::Common::Topic
Parameters:
parent-stringtopic_id-string
streaming_commit_cursor
my $response = $client->streaming_commit_cursor();Calls the RPC method
StreamingCommitCursorongoogle.cloud.pubsublite.v1.CursorService.Request: Google::Cloud::Pubsublite::V1::Cursor::StreamingCommitCursorRequest
Returns: Google::Cloud::Pubsublite::V1::Cursor::StreamingCommitCursorResponse
commit_cursor
my $response = $client->commit_cursor( subscription => $subscription, partition => $partition, cursor => $cursor, );Calls the RPC method
CommitCursorongoogle.cloud.pubsublite.v1.CursorService.Request: Google::Cloud::Pubsublite::V1::Cursor::CommitCursorRequest
Returns: Google::Cloud::Pubsublite::V1::Cursor::CommitCursorResponse
Parameters:
subscription-stringpartition-int64
publish
my $response = $client->publish();Calls the RPC method
Publishongoogle.cloud.pubsublite.v1.PublisherService.Request: Google::Cloud::Pubsublite::V1::Publisher::PublishRequest
Returns: Google::Cloud::Pubsublite::V1::Publisher::PublishResponse
subscribe
my $response = $client->subscribe();Calls the RPC method
Subscribeongoogle.cloud.pubsublite.v1.SubscriberService.Request: Google::Cloud::Pubsublite::V1::Subscriber::SubscribeRequest
Returns: Google::Cloud::Pubsublite::V1::Subscriber::SubscribeResponse
assign_partitions
my $response = $client->assign_partitions();Calls the RPC method
AssignPartitionsongoogle.cloud.pubsublite.v1.PartitionAssignmentService.Request: Google::Cloud::Pubsublite::V1::Subscriber::PartitionAssignmentRequest
Returns: Google::Cloud::Pubsublite::V1::Subscriber::PartitionAssignment
compute_message_stats
my $response = $client->compute_message_stats( topic => $topic, partition => $partition, start_cursor => $start_cursor, end_cursor => $end_cursor, );Calls the RPC method
ComputeMessageStatsongoogle.cloud.pubsublite.v1.TopicStatsService.Request: Google::Cloud::Pubsublite::V1::TopicStats::ComputeMessageStatsRequest
Returns: Google::Cloud::Pubsublite::V1::TopicStats::ComputeMessageStatsResponse
Parameters:
topic-stringpartition-int64start_cursor- Google::Cloud::Pubsublite::V1::Common::Cursorend_cursor- Google::Cloud::Pubsublite::V1::Common::Cursor
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.