The service that a client application uses to manage topics and subscriptions, such creating, listing, and deleting topics and subscriptions.
Equality
Instances of this class created via copy-construction or copy-assignment always compare equal. Instances created with equal std::shared_ptr<*Connection>
objects compare equal. Objects that compare equal share the same underlying resources.
Performance
Creating a new instance of this class is a relatively expensive operation, new objects establish new connections to the service. In contrast, copy-construction, move-construction, and the corresponding assignment operations are relatively efficient as the copies share all underlying resources.
Thread Safety
Concurrent access to different instances of this class, even if they compare equal, is guaranteed to work. Two or more threads operating on the same instance of this class is not guaranteed to work. Since copy-construction and move-construction is a relatively efficient operation, consider using such a copy when using this class from multiple threads.
Constructors
AdminServiceClient(AdminServiceClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
AdminServiceClient const &
|
AdminServiceClient(AdminServiceClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
AdminServiceClient &&
|
AdminServiceClient(std::shared_ptr< AdminServiceConnection >, Options)
Parameters | |
---|---|
Name | Description |
connection |
std::shared_ptr< AdminServiceConnection >
|
opts |
Options
|
Operators
operator=(AdminServiceClient const &)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
AdminServiceClient const &
|
Returns | |
---|---|
Type | Description |
AdminServiceClient & |
operator=(AdminServiceClient &&)
Copy and move support
Parameter | |
---|---|
Name | Description |
|
AdminServiceClient &&
|
Returns | |
---|---|
Type | Description |
AdminServiceClient & |
Functions
CreateTopic(std::string const &, google::cloud::pubsublite::v1::Topic const &, std::string const &, Options)
Creates a new topic.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The parent location in which to create the topic. Structured like |
topic |
google::cloud::pubsublite::v1::Topic const &
Required. Configuration of the topic to create. Its |
topic_id |
std::string const &
Required. The ID to use for the topic, which will become the final component of the topic's name. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::pubsublite::v1::Topic > |
the result of the RPC. The response message type (google.cloud.pubsublite.v1.Topic) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
CreateTopic(google::cloud::pubsublite::v1::CreateTopicRequest const &, Options)
Creates a new topic.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::pubsublite::v1::CreateTopicRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::pubsublite::v1::Topic > |
the result of the RPC. The response message type (google.cloud.pubsublite.v1.Topic) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetTopic(std::string const &, Options)
Returns the topic configuration.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the topic whose configuration to return. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::pubsublite::v1::Topic > |
the result of the RPC. The response message type (google.cloud.pubsublite.v1.Topic) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetTopic(google::cloud::pubsublite::v1::GetTopicRequest const &, Options)
Returns the topic configuration.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::pubsublite::v1::GetTopicRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::pubsublite::v1::Topic > |
the result of the RPC. The response message type (google.cloud.pubsublite.v1.Topic) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetTopicPartitions(std::string const &, Options)
Returns the partition information for the requested topic.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The topic whose partition information to return. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::pubsublite::v1::TopicPartitions > |
the result of the RPC. The response message type (google.cloud.pubsublite.v1.TopicPartitions) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetTopicPartitions(google::cloud::pubsublite::v1::GetTopicPartitionsRequest const &, Options)
Returns the partition information for the requested topic.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::pubsublite::v1::GetTopicPartitionsRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::pubsublite::v1::TopicPartitions > |
the result of the RPC. The response message type (google.cloud.pubsublite.v1.TopicPartitions) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListTopics(std::string const &, Options)
Returns the list of topics for the given project.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The parent whose topics are to be listed. Structured like |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::pubsublite::v1::Topic > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListTopics(google::cloud::pubsublite::v1::ListTopicsRequest, Options)
Returns the list of topics for the given project.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::pubsublite::v1::ListTopicsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::pubsublite::v1::Topic > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
UpdateTopic(google::cloud::pubsublite::v1::Topic const &, google::protobuf::FieldMask const &, Options)
Updates properties of the specified topic.
Parameters | |
---|---|
Name | Description |
topic |
google::cloud::pubsublite::v1::Topic const &
Required. The topic to update. Its |
update_mask |
google::protobuf::FieldMask const &
Required. A mask specifying the topic fields to change. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::pubsublite::v1::Topic > |
the result of the RPC. The response message type (google.cloud.pubsublite.v1.Topic) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateTopic(google::cloud::pubsublite::v1::UpdateTopicRequest const &, Options)
Updates properties of the specified topic.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::pubsublite::v1::UpdateTopicRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::pubsublite::v1::Topic > |
the result of the RPC. The response message type (google.cloud.pubsublite.v1.Topic) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
DeleteTopic(std::string const &, Options)
Deletes the specified topic.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the topic to delete. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
Status |
a |
DeleteTopic(google::cloud::pubsublite::v1::DeleteTopicRequest const &, Options)
Deletes the specified topic.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::pubsublite::v1::DeleteTopicRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
Status |
a |
ListTopicSubscriptions(std::string const &, Options)
Lists the subscriptions attached to the specified topic.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the topic whose subscriptions to list. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< std::string > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListTopicSubscriptions(google::cloud::pubsublite::v1::ListTopicSubscriptionsRequest, Options)
Lists the subscriptions attached to the specified topic.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::pubsublite::v1::ListTopicSubscriptionsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< std::string > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
CreateSubscription(std::string const &, google::cloud::pubsublite::v1::Subscription const &, std::string const &, Options)
Creates a new subscription.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The parent location in which to create the subscription. Structured like |
subscription |
google::cloud::pubsublite::v1::Subscription const &
Required. Configuration of the subscription to create. Its |
subscription_id |
std::string const &
Required. The ID to use for the subscription, which will become the final component of the subscription's name. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::pubsublite::v1::Subscription > |
the result of the RPC. The response message type (google.cloud.pubsublite.v1.Subscription) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
CreateSubscription(google::cloud::pubsublite::v1::CreateSubscriptionRequest const &, Options)
Creates a new subscription.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::pubsublite::v1::CreateSubscriptionRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::pubsublite::v1::Subscription > |
the result of the RPC. The response message type (google.cloud.pubsublite.v1.Subscription) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetSubscription(std::string const &, Options)
Returns the subscription configuration.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the subscription whose configuration to return. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::pubsublite::v1::Subscription > |
the result of the RPC. The response message type (google.cloud.pubsublite.v1.Subscription) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetSubscription(google::cloud::pubsublite::v1::GetSubscriptionRequest const &, Options)
Returns the subscription configuration.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::pubsublite::v1::GetSubscriptionRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::pubsublite::v1::Subscription > |
the result of the RPC. The response message type (google.cloud.pubsublite.v1.Subscription) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListSubscriptions(std::string const &, Options)
Returns the list of subscriptions for the given project.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The parent whose subscriptions are to be listed. Structured like |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::pubsublite::v1::Subscription > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListSubscriptions(google::cloud::pubsublite::v1::ListSubscriptionsRequest, Options)
Returns the list of subscriptions for the given project.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::pubsublite::v1::ListSubscriptionsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::pubsublite::v1::Subscription > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
UpdateSubscription(google::cloud::pubsublite::v1::Subscription const &, google::protobuf::FieldMask const &, Options)
Updates properties of the specified subscription.
Parameters | |
---|---|
Name | Description |
subscription |
google::cloud::pubsublite::v1::Subscription const &
Required. The subscription to update. Its |
update_mask |
google::protobuf::FieldMask const &
Required. A mask specifying the subscription fields to change. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::pubsublite::v1::Subscription > |
the result of the RPC. The response message type (google.cloud.pubsublite.v1.Subscription) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateSubscription(google::cloud::pubsublite::v1::UpdateSubscriptionRequest const &, Options)
Updates properties of the specified subscription.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::pubsublite::v1::UpdateSubscriptionRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::pubsublite::v1::Subscription > |
the result of the RPC. The response message type (google.cloud.pubsublite.v1.Subscription) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
DeleteSubscription(std::string const &, Options)
Deletes the specified subscription.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the subscription to delete. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
Status |
a |
DeleteSubscription(google::cloud::pubsublite::v1::DeleteSubscriptionRequest const &, Options)
Deletes the specified subscription.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::pubsublite::v1::DeleteSubscriptionRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
Status |
a |
SeekSubscription(google::cloud::pubsublite::v1::SeekSubscriptionRequest const &, Options)
Performs an out-of-band seek for a subscription to a specified target, which may be timestamps or named positions within the message backlog.
Seek translates these targets to cursors for each partition and orchestrates subscribers to start consuming messages from these seek cursors.
If an operation is returned, the seek has been registered and subscribers will eventually receive messages from the seek cursors (i.e. eventual consistency), as long as they are using a minimum supported client library version and not a system that tracks cursors independently of Pub/Sub Lite (e.g. Apache Beam, Dataflow, Spark). The seek operation will fail for unsupported clients.
If clients would like to know when subscribers react to the seek (or not), they can poll the operation. The seek operation will succeed and complete once subscribers are ready to receive messages from the seek cursors for all partitions of the topic. This means that the seek operation will not complete until all subscribers come online.
If the previous seek operation has not yet completed, it will be aborted and the new invocation of seek will supersede it.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::pubsublite::v1::SeekSubscriptionRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::pubsublite::v1::SeekSubscriptionResponse > > |
A |
SeekSubscription(NoAwaitTag, google::cloud::pubsublite::v1::SeekSubscriptionRequest const &, Options)
Performs an out-of-band seek for a subscription to a specified target, which may be timestamps or named positions within the message backlog.
Specifying the NoAwaitTag
immediately returns the [google::longrunning::Operation
] that corresponds to the Long Running Operation that has been started. No polling for operation status occurs.
Parameters | |
---|---|
Name | Description |
|
NoAwaitTag
|
request |
google::cloud::pubsublite::v1::SeekSubscriptionRequest const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
StatusOr< google::longrunning::Operation > |
SeekSubscription(google::longrunning::Operation const &, Options)
Performs an out-of-band seek for a subscription to a specified target, which may be timestamps or named positions within the message backlog.
This method accepts a google::longrunning::Operation
that corresponds to a previously started Long Running Operation (LRO) and polls the status of the LRO in the background.
Parameters | |
---|---|
Name | Description |
operation |
google::longrunning::Operation const &
|
opts |
Options
|
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::pubsublite::v1::SeekSubscriptionResponse > > |
CreateReservation(std::string const &, google::cloud::pubsublite::v1::Reservation const &, std::string const &, Options)
Creates a new reservation.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The parent location in which to create the reservation. Structured like |
reservation |
google::cloud::pubsublite::v1::Reservation const &
Required. Configuration of the reservation to create. Its |
reservation_id |
std::string const &
Required. The ID to use for the reservation, which will become the final component of the reservation's name. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::pubsublite::v1::Reservation > |
the result of the RPC. The response message type (google.cloud.pubsublite.v1.Reservation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
CreateReservation(google::cloud::pubsublite::v1::CreateReservationRequest const &, Options)
Creates a new reservation.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::pubsublite::v1::CreateReservationRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::pubsublite::v1::Reservation > |
the result of the RPC. The response message type (google.cloud.pubsublite.v1.Reservation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetReservation(std::string const &, Options)
Returns the reservation configuration.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the reservation whose configuration to return. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id} |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::pubsublite::v1::Reservation > |
the result of the RPC. The response message type (google.cloud.pubsublite.v1.Reservation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
GetReservation(google::cloud::pubsublite::v1::GetReservationRequest const &, Options)
Returns the reservation configuration.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::pubsublite::v1::GetReservationRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::pubsublite::v1::Reservation > |
the result of the RPC. The response message type (google.cloud.pubsublite.v1.Reservation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
ListReservations(std::string const &, Options)
Returns the list of reservations for the given project.
Parameters | |
---|---|
Name | Description |
parent |
std::string const &
Required. The parent whose reservations are to be listed. Structured like |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::pubsublite::v1::Reservation > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListReservations(google::cloud::pubsublite::v1::ListReservationsRequest, Options)
Returns the list of reservations for the given project.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::pubsublite::v1::ListReservationsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< google::cloud::pubsublite::v1::Reservation > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
UpdateReservation(google::cloud::pubsublite::v1::Reservation const &, google::protobuf::FieldMask const &, Options)
Updates properties of the specified reservation.
Parameters | |
---|---|
Name | Description |
reservation |
google::cloud::pubsublite::v1::Reservation const &
Required. The reservation to update. Its |
update_mask |
google::protobuf::FieldMask const &
Required. A mask specifying the reservation fields to change. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::pubsublite::v1::Reservation > |
the result of the RPC. The response message type (google.cloud.pubsublite.v1.Reservation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
UpdateReservation(google::cloud::pubsublite::v1::UpdateReservationRequest const &, Options)
Updates properties of the specified reservation.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::pubsublite::v1::UpdateReservationRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StatusOr< google::cloud::pubsublite::v1::Reservation > |
the result of the RPC. The response message type (google.cloud.pubsublite.v1.Reservation) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
DeleteReservation(std::string const &, Options)
Deletes the specified reservation.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the reservation to delete. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id} |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
Status |
a |
DeleteReservation(google::cloud::pubsublite::v1::DeleteReservationRequest const &, Options)
Deletes the specified reservation.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::pubsublite::v1::DeleteReservationRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
Status |
a |
ListReservationTopics(std::string const &, Options)
Lists the topics attached to the specified reservation.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The name of the reservation whose topics to list. Structured like: projects/{project_number}/locations/{location}/reservations/{reservation_id} |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< std::string > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
ListReservationTopics(google::cloud::pubsublite::v1::ListReservationTopicsRequest, Options)
Lists the topics attached to the specified reservation.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::pubsublite::v1::ListReservationTopicsRequest
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
StreamRange< std::string > |
a StreamRange to iterate of the results. See the documentation of this type for details. In brief, this class has |
AsyncGetTopicPartitions(std::string const &, Options)
Returns the partition information for the requested topic.
Parameters | |
---|---|
Name | Description |
name |
std::string const &
Required. The topic whose partition information to return. |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::pubsublite::v1::TopicPartitions > > |
the result of the RPC. The response message type (google.cloud.pubsublite.v1.TopicPartitions) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |
AsyncGetTopicPartitions(google::cloud::pubsublite::v1::GetTopicPartitionsRequest const &, Options)
Returns the partition information for the requested topic.
Parameters | |
---|---|
Name | Description |
request |
google::cloud::pubsublite::v1::GetTopicPartitionsRequest const &
Unary RPCs, such as the one wrapped by this function, receive a single |
opts |
Options
Optional. Override the class-level options, such as retry and backoff policies. |
Returns | |
---|---|
Type | Description |
future< StatusOr< google::cloud::pubsublite::v1::TopicPartitions > > |
the result of the RPC. The response message type (google.cloud.pubsublite.v1.TopicPartitions) is mapped to a C++ class using the Protobuf mapping rules. If the request fails, the |