Service Client: Google::Cloud::Pubsublite::V1::Admin::AdminServiceClient
Client stub representing the remote AdminService 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::Admin - Compiled Protocol Buffers messages for google/cloud/pubsublite/v1/admin.proto
SYNOPSIS
use Google::Cloud::Pubsublite::V1::Admin;
my $msg = Google::Cloud::Pubsublite::V1::Admin::CreateTopicRequest->new({
parent => $parent,
topic => $topic,
topic_id => $topic_id,
});
# Read or update a field
my $val = $msg->parent();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Pubsublite::V1::Admin::CreateTopicRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/pubsublite/v1/admin.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::Admin::CreateTopicRequest
Request for CreateTopic.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent location in which to create the topic. Structured like `projects/{project_number}/locations/{location}`.
$msg->topic()/$msg->topic($value)Type:
Message(Google::Cloud::Pubsublite::V1::Common::Topic)Required. Configuration of the topic to create. Its `name` field is ignored.
$msg->topic_id()/$msg->topic_id($value)Type:
StringRequired. The ID to use for the topic, which will become the final component of the topic's name.
This value is structured like: `my-topic-name`.
Google::Cloud::Pubsublite::V1::Admin::GetTopicRequest
Request for GetTopic.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the topic whose configuration to return.
Google::Cloud::Pubsublite::V1::Admin::GetTopicPartitionsRequest
Request for GetTopicPartitions.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The topic whose partition information to return.
Google::Cloud::Pubsublite::V1::Admin::TopicPartitions
Response for GetTopicPartitions.
Inherits from Protobuf::Message.
Accessors
$msg->partition_count()/$msg->partition_count($value)Type:
Int64The number of partitions in the topic.
Google::Cloud::Pubsublite::V1::Admin::ListTopicsRequest
Request for ListTopics.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent whose topics are to be listed. Structured like `projects/{project_number}/locations/{location}`.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of topics to return. The service may return fewer than this value. If unset or zero, all topics for the parent will be returned.
$msg->page_token()/$msg->page_token($value)Type:
StringA page token, received from a previous `ListTopics` call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ListTopics` must match the call that provided the page token.
Google::Cloud::Pubsublite::V1::Admin::ListTopicsResponse
Response for ListTopics.
Inherits from Protobuf::Message.
Accessors
$msg->topics()/$msg->topics($value)Type:
Message(Google::Cloud::Pubsublite::V1::Common::Topic)The list of topic in the requested parent. The order of the topics is unspecified.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token that can be sent as `page_token` to retrieve the next page of results. If this field is omitted, there are no more results.
Google::Cloud::Pubsublite::V1::Admin::UpdateTopicRequest
Request for UpdateTopic.
Inherits from Protobuf::Message.
Accessors
$msg->topic()/$msg->topic($value)Type:
Message(Google::Cloud::Pubsublite::V1::Common::Topic)Required. The topic to update. Its `name` field must be populated.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Required. A mask specifying the topic fields to change.
Google::Cloud::Pubsublite::V1::Admin::DeleteTopicRequest
Request for DeleteTopic.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the topic to delete.
Google::Cloud::Pubsublite::V1::Admin::ListTopicSubscriptionsRequest
Request for ListTopicSubscriptions.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the topic whose subscriptions to list.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of subscriptions to return. The service may return fewer than this value. If unset or zero, all subscriptions for the given topic will be returned.
$msg->page_token()/$msg->page_token($value)Type:
StringA page token, received from a previous `ListTopicSubscriptions` call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ListTopicSubscriptions` must match the call that provided the page token.
Google::Cloud::Pubsublite::V1::Admin::ListTopicSubscriptionsResponse
Response for ListTopicSubscriptions.
Inherits from Protobuf::Message.
Accessors
$msg->subscriptions()/$msg->subscriptions($value)Type:
StringThe names of subscriptions attached to the topic. The order of the subscriptions is unspecified.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token that can be sent as `page_token` to retrieve the next page of results. If this field is omitted, there are no more results.
Google::Cloud::Pubsublite::V1::Admin::CreateSubscriptionRequest
Request for CreateSubscription.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent location in which to create the subscription. Structured like `projects/{project_number}/locations/{location}`.
$msg->subscription()/$msg->subscription($value)Type:
Message(Google::Cloud::Pubsublite::V1::Common::Subscription)Required. Configuration of the subscription to create. Its `name` field is ignored.
$msg->subscription_id()/$msg->subscription_id($value)Type:
StringRequired. The ID to use for the subscription, which will become the final component of the subscription's name.
This value is structured like: `my-sub-name`.
$msg->skip_backlog()/$msg->skip_backlog($value)Type:
BoolIf true, the newly created subscription will only receive messages published after the subscription was created. Otherwise, the entire message backlog will be received on the subscription. Defaults to false.
Google::Cloud::Pubsublite::V1::Admin::GetSubscriptionRequest
Request for GetSubscription.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the subscription whose configuration to return.
Google::Cloud::Pubsublite::V1::Admin::ListSubscriptionsRequest
Request for ListSubscriptions.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent whose subscriptions are to be listed. Structured like `projects/{project_number}/locations/{location}`.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of subscriptions to return. The service may return fewer than this value. If unset or zero, all subscriptions for the parent will be returned.
$msg->page_token()/$msg->page_token($value)Type:
StringA page token, received from a previous `ListSubscriptions` call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ListSubscriptions` must match the call that provided the page token.
Google::Cloud::Pubsublite::V1::Admin::ListSubscriptionsResponse
Response for ListSubscriptions.
Inherits from Protobuf::Message.
Accessors
$msg->subscriptions()/$msg->subscriptions($value)Type:
Message(Google::Cloud::Pubsublite::V1::Common::Subscription)The list of subscriptions in the requested parent. The order of the subscriptions is unspecified.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token that can be sent as `page_token` to retrieve the next page of results. If this field is omitted, there are no more results.
Google::Cloud::Pubsublite::V1::Admin::UpdateSubscriptionRequest
Request for UpdateSubscription.
Inherits from Protobuf::Message.
Accessors
$msg->subscription()/$msg->subscription($value)Type:
Message(Google::Cloud::Pubsublite::V1::Common::Subscription)Required. The subscription to update. Its `name` field must be populated. Topic field must not be populated.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Required. A mask specifying the subscription fields to change.
Google::Cloud::Pubsublite::V1::Admin::DeleteSubscriptionRequest
Request for DeleteSubscription.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the subscription to delete.
Google::Cloud::Pubsublite::V1::Admin::SeekSubscriptionRequest
Request for SeekSubscription.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the subscription to seek.
$msg->named_target()/$msg->named_target($value)Type:
Enum(Google::Cloud::Pubsublite::V1::SeekSubscriptionRequest::NamedTarget)Seek to a named position with respect to the message backlog.
$msg->time_target()/$msg->time_target($value)Type:
Message(Google::Cloud::Pubsublite::V1::Common::TimeTarget)Seek to the first message whose publish or event time is greater than or equal to the specified query time. If no such message can be located, will seek to the end of the message backlog.
Enum: SeekSubscriptionRequest::NamedTarget
NAMED_TARGET_UNSPECIFIED=>0TAIL=>1HEAD=>2
Google::Cloud::Pubsublite::V1::Admin::SeekSubscriptionResponse
Response for SeekSubscription long running operation.
Inherits from Protobuf::Message.
Google::Cloud::Pubsublite::V1::Admin::OperationMetadata
Metadata for long running operations.
Inherits from Protobuf::Message.
Accessors
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time the operation was created.
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time the operation finished running. Not set if the operation has not completed.
$msg->target()/$msg->target($value)Type:
StringResource path for the target of the operation. For example, targets of seeks are subscription resources, structured like: projects/{project_number}/locations/{location}/subscriptions/{subscription_id}
$msg->verb()/$msg->verb($value)Type:
StringName of the verb executed by the operation.
Google::Cloud::Pubsublite::V1::Admin::CreateReservationRequest
Request for CreateReservation.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent location in which to create the reservation. Structured like `projects/{project_number}/locations/{location}`.
$msg->reservation()/$msg->reservation($value)Type:
Message(Google::Cloud::Pubsublite::V1::Common::Reservation)Required. Configuration of the reservation to create. Its `name` field is ignored.
$msg->reservation_id()/$msg->reservation_id($value)Type:
StringRequired. The ID to use for the reservation, which will become the final component of the reservation's name.
This value is structured like: `my-reservation-name`.
Google::Cloud::Pubsublite::V1::Admin::GetReservationRequest
Request for GetReservation.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the reservation whose configuration to return. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}
Google::Cloud::Pubsublite::V1::Admin::ListReservationsRequest
Request for ListReservations.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent whose reservations are to be listed. Structured like `projects/{project_number}/locations/{location}`.
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of reservations to return. The service may return fewer than this value. If unset or zero, all reservations for the parent will be returned.
$msg->page_token()/$msg->page_token($value)Type:
StringA page token, received from a previous `ListReservations` call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ListReservations` must match the call that provided the page token.
Google::Cloud::Pubsublite::V1::Admin::ListReservationsResponse
Response for ListReservations.
Inherits from Protobuf::Message.
Accessors
$msg->reservations()/$msg->reservations($value)Type:
Message(Google::Cloud::Pubsublite::V1::Common::Reservation)The list of reservation in the requested parent. The order of the reservations is unspecified.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token that can be sent as `page_token` to retrieve the next page of results. If this field is omitted, there are no more results.
Google::Cloud::Pubsublite::V1::Admin::UpdateReservationRequest
Request for UpdateReservation.
Inherits from Protobuf::Message.
Accessors
$msg->reservation()/$msg->reservation($value)Type:
Message(Google::Cloud::Pubsublite::V1::Common::Reservation)Required. The reservation to update. Its `name` field must be populated.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Required. A mask specifying the reservation fields to change.
Google::Cloud::Pubsublite::V1::Admin::DeleteReservationRequest
Request for DeleteReservation.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the reservation to delete. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}
Google::Cloud::Pubsublite::V1::Admin::ListReservationTopicsRequest
Request for ListReservationTopics.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the reservation whose topics to list. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id}
$msg->page_size()/$msg->page_size($value)Type:
Int32The maximum number of topics to return. The service may return fewer than this value. If unset or zero, all topics for the given reservation will be returned.
$msg->page_token()/$msg->page_token($value)Type:
StringA page token, received from a previous `ListReservationTopics` call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ListReservationTopics` must match the call that provided the page token.
Google::Cloud::Pubsublite::V1::Admin::ListReservationTopicsResponse
Response for ListReservationTopics.
Inherits from Protobuf::Message.
Accessors
$msg->topics()/$msg->topics($value)Type:
StringThe names of topics attached to the reservation. The order of the topics is unspecified.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token that can be sent as `page_token` to retrieve the next page of results. If this field is omitted, there are no more results.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Pubsublite::V1::Admin::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.