3.7.0-rc 3.6.0 (latest) 3.5.0 3.4.0 3.3.0 3.2.0 2.48.0-rc 2.47.1 2.46.0 2.45.0 2.44.0 2.43.0 2.42.0 2.41.0 2.40.0 2.39.0 2.38.0 2.37.0 2.36.0 2.35.0 2.34.0 2.33.0 2.32.0 2.31.0 2.30.0 2.29.0 2.28.0 2.27.0 2.26.0 2.25.1 2.24.0 2.23.0 2.22.1 2.21.0 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.1 2.14.0 2.13.0 2.12.0 2.11.0 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 `projects/{project_number}/locations/{location}`. |
| `topic` | `google::cloud::pubsublite::v1::Topic const &` Required. Configuration of the topic to create. Its `name` field is ignored. |
| `topic_id` | `std::string const &` Required. 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`. |
| `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](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/common.proto#L102)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### 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 `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.pubsublite.v1.CreateTopicRequest](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/admin.proto#L236). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `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](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/common.proto#L102)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### 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](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/common.proto#L102)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### 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 `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.pubsublite.v1.GetTopicRequest](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/admin.proto#L258). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `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](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/common.proto#L102)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### 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](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/admin.proto#L280)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### 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 `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.pubsublite.v1.GetTopicPartitionsRequest](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/admin.proto#L269). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `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](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/admin.proto#L280)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### 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 `projects/{project_number}/locations/{location}`. |
| `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](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains elements of type [google.cloud.pubsublite.v1.Topic](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/common.proto#L102), or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### 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 `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.pubsublite.v1.ListTopicsRequest](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/admin.proto#L286). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `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](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains elements of type [google.cloud.pubsublite.v1.Topic](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/common.proto#L102), or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### 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 `name` field must be populated. |
| `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](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/common.proto#L102)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### 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 `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.pubsublite.v1.UpdateTopicRequest](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/admin.proto#L321). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `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](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/common.proto#L102)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### 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 [`Status`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Status.html) object. If the request failed, the status contains the details of the failure. |

### 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 `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.pubsublite.v1.DeleteTopicRequest](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/admin.proto#L331). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Status` | a [`Status`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Status.html) object. If the request failed, the status contains the details of the failure. |

### 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](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains a [`std::string`](https://en.cppreference.com/w/cpp/string/basic_string). |

### 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 `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.pubsublite.v1.ListTopicSubscriptionsRequest](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/admin.proto#L342). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< std::string >` | a [StreamRange](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains a [`std::string`](https://en.cppreference.com/w/cpp/string/basic_string). |

### 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 `projects/{project_number}/locations/{location}`. |
| `subscription` | `google::cloud::pubsublite::v1::Subscription const &` Required. Configuration of the subscription to create. Its `name` field is ignored. |
| `subscription_id` | `std::string const &` Required. 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`. |
| `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](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/common.proto#L186)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### 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 `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.pubsublite.v1.CreateSubscriptionRequest](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/admin.proto#L376). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `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](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/common.proto#L186)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### 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](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/common.proto#L186)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### 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 `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.pubsublite.v1.GetSubscriptionRequest](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/admin.proto#L403). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `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](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/common.proto#L186)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### 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 `projects/{project_number}/locations/{location}`. |
| `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](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains elements of type [google.cloud.pubsublite.v1.Subscription](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/common.proto#L186), or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### 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 `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.pubsublite.v1.ListSubscriptionsRequest](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/admin.proto#L414). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `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](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains elements of type [google.cloud.pubsublite.v1.Subscription](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/common.proto#L186), or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### 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 `name` field must be populated. [Topic](https://docs.cloud.google.com/cpp/docs/reference/pubsublite/latest/classgoogle_1_1cloud_1_1pubsublite_1_1Topic) field must not be populated. |
| `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](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/common.proto#L186)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### 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 `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.pubsublite.v1.UpdateSubscriptionRequest](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/admin.proto#L449). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `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](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/common.proto#L186)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### 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 [`Status`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Status.html) object. If the request failed, the status contains the details of the failure. |

### 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 `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.pubsublite.v1.DeleteSubscriptionRequest](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/admin.proto#L460). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Status` | a [`Status`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Status.html) object. If the request failed, the status contains the details of the failure. |

### 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 `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.pubsublite.v1.SeekSubscriptionRequest](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/admin.proto#L471). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `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 [`future`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1future.html) that becomes satisfied when the LRO ([Long Running Operation](https://google.aip.dev/151)) completes or the polling policy in effect for this call is exhausted. The future is satisfied with an error if the LRO completes with an error or the polling policy is exhausted. In this case the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) returned by the future contains the error. If the LRO completes successfully the value of the future contains the LRO's result. For this RPC the result is a [google.cloud.pubsublite.v1.SeekSubscriptionResponse](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/admin.proto#L506) proto message. The C++ class representing this message is created by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### 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`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/structgoogle_1_1cloud_1_1NoAwaitTag.html) 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 `projects/{project_number}/locations/{location}`. |
| `reservation` | `google::cloud::pubsublite::v1::Reservation const &` Required. Configuration of the reservation to create. Its `name` field is ignored. |
| `reservation_id` | `std::string const &` Required. 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`. |
| `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](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/common.proto#L80)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### 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 `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.pubsublite.v1.CreateReservationRequest](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/admin.proto#L527). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `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](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/common.proto#L80)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### 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](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/common.proto#L80)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### 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 `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.pubsublite.v1.GetReservationRequest](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/admin.proto#L549). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `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](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/common.proto#L80)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### 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 `projects/{project_number}/locations/{location}`. |
| `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](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains elements of type [google.cloud.pubsublite.v1.Reservation](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/common.proto#L80), or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### 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 `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.pubsublite.v1.ListReservationsRequest](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/admin.proto#L562). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `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](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains elements of type [google.cloud.pubsublite.v1.Reservation](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/common.proto#L80), or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### 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 `name` field must be populated. |
| `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](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/common.proto#L80)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### 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 `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.pubsublite.v1.UpdateReservationRequest](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/admin.proto#L597). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `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](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/common.proto#L80)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### 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 [`Status`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Status.html) object. If the request failed, the status contains the details of the failure. |

### 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 `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.pubsublite.v1.DeleteReservationRequest](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/admin.proto#L607). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Status` | a [`Status`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Status.html) object. If the request failed, the status contains the details of the failure. |

### 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](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains a [`std::string`](https://en.cppreference.com/w/cpp/string/basic_string). |

### 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 `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.pubsublite.v1.ListReservationTopicsRequest](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/admin.proto#L620). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< std::string >` | a [StreamRange](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains a [`std::string`](https://en.cppreference.com/w/cpp/string/basic_string). |

### ListOperations(std::string const \&, std::string const \&, Options)

Lists operations that match the specified filter in the request.
If the server doesn't support this method, it returns `UNIMPLEMENTED`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `std::string const &` The name of the operation's parent resource. |
| `filter` | `std::string const &` The standard list filter. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::longrunning::Operation >` | a [StreamRange](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains elements of type [google.longrunning.Operation](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/longrunning/operations.proto#L121), or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### ListOperations(google::longrunning::ListOperationsRequest, Options)

Lists operations that match the specified filter in the request.
If the server doesn't support this method, it returns `UNIMPLEMENTED`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::longrunning::ListOperationsRequest` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.longrunning.ListOperationsRequest](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/longrunning/operations.proto#L167). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StreamRange< google::longrunning::Operation >` | a [StreamRange](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StreamRange.html) to iterate of the results. See the documentation of this type for details. In brief, this class has `begin()` and `end()` member functions returning a iterator class meeting the [input iterator requirements](https://en.cppreference.com/w/cpp/named_req/InputIterator). The value type for this iterator is a [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) as the iteration may fail even after some values are retrieved successfully, for example, if there is a network disconnect. An empty set of results does not indicate an error, it indicates that there are no resources meeting the request criteria. On a successful iteration the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html)`<T>` contains elements of type [google.longrunning.Operation](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/longrunning/operations.proto#L121), or rather, the C++ class generated by Protobuf from that type. Please consult the Protobuf documentation for details on the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |

### GetOperation(std::string const \&, Options)

Gets the latest state of a long-running operation.
Clients can use this method to poll the operation result at intervals as recommended by the API service.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `std::string const &` The name of the operation resource. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::longrunning::Operation >` | the result of the RPC. The response message type ([google.longrunning.Operation](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/longrunning/operations.proto#L121)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### GetOperation(google::longrunning::GetOperationRequest const \&, Options)

Gets the latest state of a long-running operation.
Clients can use this method to poll the operation result at intervals as recommended by the API service.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::longrunning::GetOperationRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.longrunning.GetOperationRequest](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/longrunning/operations.proto#L160). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `StatusOr< google::longrunning::Operation >` | the result of the RPC. The response message type ([google.longrunning.Operation](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/longrunning/operations.proto#L121)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### DeleteOperation(std::string const \&, Options)

Deletes a long-running operation.
This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `std::string const &` The name of the operation resource to be deleted. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Status` | a [`Status`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Status.html) object. If the request failed, the status contains the details of the failure. |

### DeleteOperation(google::longrunning::DeleteOperationRequest const \&, Options)

Deletes a long-running operation.
This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::longrunning::DeleteOperationRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.longrunning.DeleteOperationRequest](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/longrunning/operations.proto#L219). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Status` | a [`Status`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Status.html) object. If the request failed, the status contains the details of the failure. |

### CancelOperation(std::string const \&, Options)

Starts asynchronous cancellation on a long-running operation.
The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use [Operations.GetOperation](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/longrunning/operations.proto#L70) or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an [Operation.error](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/longrunning/operations.proto#L144) value with a [google.rpc.Status.code](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/rpc/status.proto#L37) of `1`, corresponding to `Code.CANCELLED`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `name` | `std::string const &` The name of the operation resource to be cancelled. |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Status` | a [`Status`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Status.html) object. If the request failed, the status contains the details of the failure. |

### CancelOperation(google::longrunning::CancelOperationRequest const \&, Options)

Starts asynchronous cancellation on a long-running operation.
The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use [Operations.GetOperation](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/longrunning/operations.proto#L70) or other methods to check whether the cancellation succeeded or whether the operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an [Operation.error](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/longrunning/operations.proto#L144) value with a [google.rpc.Status.code](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/rpc/status.proto#L37) of `1`, corresponding to `Code.CANCELLED`.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `request` | `google::longrunning::CancelOperationRequest const &` Unary RPCs, such as the one wrapped by this function, receive a single `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.longrunning.CancelOperationRequest](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/longrunning/operations.proto#L212). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `opts` | `Options` Optional. Override the class-level options, such as retry and backoff policies. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Status` | a [`Status`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1Status.html) object. If the request failed, the status contains the details of the failure. |

### 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](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/admin.proto#L280)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |

### 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 `request` proto message which includes all the inputs for the RPC. In this case, the proto message is a [google.cloud.pubsublite.v1.GetTopicPartitionsRequest](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/admin.proto#L269). Proto messages are converted to C++ classes by Protobuf, using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). |
| `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](https://github.com/googleapis/googleapis/blob/b6f9ff05aaec18070232a1ab36da98e684bc7909/google/cloud/pubsublite/v1/admin.proto#L280)) is mapped to a C++ class using the [Protobuf mapping rules](https://protobuf.dev/reference/cpp/cpp-generated/). If the request fails, the [`StatusOr`](https://docs.cloud.google.com/cpp/docs/reference/common/latest/classgoogle_1_1cloud_1_1StatusOr.html) contains the error details. |