Class AdminServiceConnection (2.20.0-rc)

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
TypeDescription
Options

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

Parameter
NameDescription
request google::cloud::pubsublite::v1::CreateTopicRequest const &
Returns
TypeDescription
StatusOr< google::cloud::pubsublite::v1::Topic >

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

Parameter
NameDescription
request google::cloud::pubsublite::v1::GetTopicRequest const &
Returns
TypeDescription
StatusOr< google::cloud::pubsublite::v1::Topic >

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

Parameter
NameDescription
request google::cloud::pubsublite::v1::GetTopicPartitionsRequest const &
Returns
TypeDescription
StatusOr< google::cloud::pubsublite::v1::TopicPartitions >

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

Parameter
NameDescription
request google::cloud::pubsublite::v1::ListTopicsRequest
Returns
TypeDescription
StreamRange< google::cloud::pubsublite::v1::Topic >

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

Parameter
NameDescription
request google::cloud::pubsublite::v1::UpdateTopicRequest const &
Returns
TypeDescription
StatusOr< google::cloud::pubsublite::v1::Topic >

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

Parameter
NameDescription
request google::cloud::pubsublite::v1::DeleteTopicRequest const &
Returns
TypeDescription
Status

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

Parameter
NameDescription
request google::cloud::pubsublite::v1::ListTopicSubscriptionsRequest
Returns
TypeDescription
StreamRange< std::string >

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

Parameter
NameDescription
request google::cloud::pubsublite::v1::CreateSubscriptionRequest const &
Returns
TypeDescription
StatusOr< google::cloud::pubsublite::v1::Subscription >

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

Parameter
NameDescription
request google::cloud::pubsublite::v1::GetSubscriptionRequest const &
Returns
TypeDescription
StatusOr< google::cloud::pubsublite::v1::Subscription >

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

Parameter
NameDescription
request google::cloud::pubsublite::v1::ListSubscriptionsRequest
Returns
TypeDescription
StreamRange< google::cloud::pubsublite::v1::Subscription >

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

Parameter
NameDescription
request google::cloud::pubsublite::v1::UpdateSubscriptionRequest const &
Returns
TypeDescription
StatusOr< google::cloud::pubsublite::v1::Subscription >

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

Parameter
NameDescription
request google::cloud::pubsublite::v1::DeleteSubscriptionRequest const &
Returns
TypeDescription
Status

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

Parameter
NameDescription
request google::cloud::pubsublite::v1::SeekSubscriptionRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::pubsublite::v1::SeekSubscriptionResponse > >

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

Parameter
NameDescription
request google::cloud::pubsublite::v1::CreateReservationRequest const &
Returns
TypeDescription
StatusOr< google::cloud::pubsublite::v1::Reservation >

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

Parameter
NameDescription
request google::cloud::pubsublite::v1::GetReservationRequest const &
Returns
TypeDescription
StatusOr< google::cloud::pubsublite::v1::Reservation >

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

Parameter
NameDescription
request google::cloud::pubsublite::v1::ListReservationsRequest
Returns
TypeDescription
StreamRange< google::cloud::pubsublite::v1::Reservation >

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

Parameter
NameDescription
request google::cloud::pubsublite::v1::UpdateReservationRequest const &
Returns
TypeDescription
StatusOr< google::cloud::pubsublite::v1::Reservation >

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

Parameter
NameDescription
request google::cloud::pubsublite::v1::DeleteReservationRequest const &
Returns
TypeDescription
Status

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

Parameter
NameDescription
request google::cloud::pubsublite::v1::ListReservationTopicsRequest
Returns
TypeDescription
StreamRange< std::string >

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

Parameter
NameDescription
request google::cloud::pubsublite::v1::GetTopicPartitionsRequest const &
Returns
TypeDescription
future< StatusOr< google::cloud::pubsublite::v1::TopicPartitions > >