Class AdminServiceConnection (2.31.0)

This interface defines virtual methods for each of the user-facing overload sets in AdminServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type AdminServiceClient.

To create a concrete instance, see MakeAdminServiceConnection().

For mocking, see pubsublite_mocks::MockAdminServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual CreateTopic(google::cloud::pubsublite::v1::CreateTopicRequest const &)

Parameter
Name Description
request google::cloud::pubsublite::v1::CreateTopicRequest const &
Returns
Type Description
StatusOr< google::cloud::pubsublite::v1::Topic >

virtual GetTopic(google::cloud::pubsublite::v1::GetTopicRequest const &)

Parameter
Name Description
request google::cloud::pubsublite::v1::GetTopicRequest const &
Returns
Type Description
StatusOr< google::cloud::pubsublite::v1::Topic >

virtual GetTopicPartitions(google::cloud::pubsublite::v1::GetTopicPartitionsRequest const &)

Parameter
Name Description
request google::cloud::pubsublite::v1::GetTopicPartitionsRequest const &
Returns
Type Description
StatusOr< google::cloud::pubsublite::v1::TopicPartitions >

virtual ListTopics(google::cloud::pubsublite::v1::ListTopicsRequest)

Parameter
Name Description
request google::cloud::pubsublite::v1::ListTopicsRequest
Returns
Type Description
StreamRange< google::cloud::pubsublite::v1::Topic >

virtual UpdateTopic(google::cloud::pubsublite::v1::UpdateTopicRequest const &)

Parameter
Name Description
request google::cloud::pubsublite::v1::UpdateTopicRequest const &
Returns
Type Description
StatusOr< google::cloud::pubsublite::v1::Topic >

virtual DeleteTopic(google::cloud::pubsublite::v1::DeleteTopicRequest const &)

Parameter
Name Description
request google::cloud::pubsublite::v1::DeleteTopicRequest const &
Returns
Type Description
Status

virtual ListTopicSubscriptions(google::cloud::pubsublite::v1::ListTopicSubscriptionsRequest)

Parameter
Name Description
request google::cloud::pubsublite::v1::ListTopicSubscriptionsRequest
Returns
Type Description
StreamRange< std::string >

virtual CreateSubscription(google::cloud::pubsublite::v1::CreateSubscriptionRequest const &)

Parameter
Name Description
request google::cloud::pubsublite::v1::CreateSubscriptionRequest const &
Returns
Type Description
StatusOr< google::cloud::pubsublite::v1::Subscription >

virtual GetSubscription(google::cloud::pubsublite::v1::GetSubscriptionRequest const &)

Parameter
Name Description
request google::cloud::pubsublite::v1::GetSubscriptionRequest const &
Returns
Type Description
StatusOr< google::cloud::pubsublite::v1::Subscription >

virtual ListSubscriptions(google::cloud::pubsublite::v1::ListSubscriptionsRequest)

Parameter
Name Description
request google::cloud::pubsublite::v1::ListSubscriptionsRequest
Returns
Type Description
StreamRange< google::cloud::pubsublite::v1::Subscription >

virtual UpdateSubscription(google::cloud::pubsublite::v1::UpdateSubscriptionRequest const &)

Parameter
Name Description
request google::cloud::pubsublite::v1::UpdateSubscriptionRequest const &
Returns
Type Description
StatusOr< google::cloud::pubsublite::v1::Subscription >

virtual DeleteSubscription(google::cloud::pubsublite::v1::DeleteSubscriptionRequest const &)

Parameter
Name Description
request google::cloud::pubsublite::v1::DeleteSubscriptionRequest const &
Returns
Type Description
Status

virtual SeekSubscription(google::cloud::pubsublite::v1::SeekSubscriptionRequest const &)

Parameter
Name Description
request google::cloud::pubsublite::v1::SeekSubscriptionRequest const &
Returns
Type Description
future< StatusOr< google::cloud::pubsublite::v1::SeekSubscriptionResponse > >

virtual SeekSubscription(NoAwaitTag, google::cloud::pubsublite::v1::SeekSubscriptionRequest const &)

Parameters
Name Description
NoAwaitTag
request google::cloud::pubsublite::v1::SeekSubscriptionRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual SeekSubscription(google::longrunning::Operation const &)

Parameter
Name Description
operation google::longrunning::Operation const &
Returns
Type Description
future< StatusOr< google::cloud::pubsublite::v1::SeekSubscriptionResponse > >

virtual CreateReservation(google::cloud::pubsublite::v1::CreateReservationRequest const &)

Parameter
Name Description
request google::cloud::pubsublite::v1::CreateReservationRequest const &
Returns
Type Description
StatusOr< google::cloud::pubsublite::v1::Reservation >

virtual GetReservation(google::cloud::pubsublite::v1::GetReservationRequest const &)

Parameter
Name Description
request google::cloud::pubsublite::v1::GetReservationRequest const &
Returns
Type Description
StatusOr< google::cloud::pubsublite::v1::Reservation >

virtual ListReservations(google::cloud::pubsublite::v1::ListReservationsRequest)

Parameter
Name Description
request google::cloud::pubsublite::v1::ListReservationsRequest
Returns
Type Description
StreamRange< google::cloud::pubsublite::v1::Reservation >

virtual UpdateReservation(google::cloud::pubsublite::v1::UpdateReservationRequest const &)

Parameter
Name Description
request google::cloud::pubsublite::v1::UpdateReservationRequest const &
Returns
Type Description
StatusOr< google::cloud::pubsublite::v1::Reservation >

virtual DeleteReservation(google::cloud::pubsublite::v1::DeleteReservationRequest const &)

Parameter
Name Description
request google::cloud::pubsublite::v1::DeleteReservationRequest const &
Returns
Type Description
Status

virtual ListReservationTopics(google::cloud::pubsublite::v1::ListReservationTopicsRequest)

Parameter
Name Description
request google::cloud::pubsublite::v1::ListReservationTopicsRequest
Returns
Type Description
StreamRange< std::string >

virtual ListOperations(google::longrunning::ListOperationsRequest)

Parameter
Name Description
request google::longrunning::ListOperationsRequest
Returns
Type Description
StreamRange< google::longrunning::Operation >

virtual GetOperation(google::longrunning::GetOperationRequest const &)

Parameter
Name Description
request google::longrunning::GetOperationRequest const &
Returns
Type Description
StatusOr< google::longrunning::Operation >

virtual DeleteOperation(google::longrunning::DeleteOperationRequest const &)

Parameter
Name Description
request google::longrunning::DeleteOperationRequest const &
Returns
Type Description
Status

virtual CancelOperation(google::longrunning::CancelOperationRequest const &)

Parameter
Name Description
request google::longrunning::CancelOperationRequest const &
Returns
Type Description
Status

virtual AsyncGetTopicPartitions(google::cloud::pubsublite::v1::GetTopicPartitionsRequest const &)

Parameter
Name Description
request google::cloud::pubsublite::v1::GetTopicPartitionsRequest const &
Returns
Type Description
future< StatusOr< google::cloud::pubsublite::v1::TopicPartitions > >