Class TopicAdminConnection (2.22.0)

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

To create a concrete instance, see MakeTopicAdminConnection().

For mocking, see pubsub_admin_mocks::MockTopicAdminConnection.

Functions

virtual options()

Returns
TypeDescription
Options

virtual CreateTopic(google::pubsub::v1::Topic const &)

Parameter
NameDescription
request google::pubsub::v1::Topic const &
Returns
TypeDescription
StatusOr< google::pubsub::v1::Topic >

virtual UpdateTopic(google::pubsub::v1::UpdateTopicRequest const &)

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

virtual GetTopic(google::pubsub::v1::GetTopicRequest const &)

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

virtual ListTopics(google::pubsub::v1::ListTopicsRequest)

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

virtual ListTopicSubscriptions(google::pubsub::v1::ListTopicSubscriptionsRequest)

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

virtual ListTopicSnapshots(google::pubsub::v1::ListTopicSnapshotsRequest)

Parameter
NameDescription
request google::pubsub::v1::ListTopicSnapshotsRequest
Returns
TypeDescription
StreamRange< std::string >

virtual DeleteTopic(google::pubsub::v1::DeleteTopicRequest const &)

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

virtual DetachSubscription(google::pubsub::v1::DetachSubscriptionRequest const &)

Parameter
NameDescription
request google::pubsub::v1::DetachSubscriptionRequest const &
Returns
TypeDescription
StatusOr< google::pubsub::v1::DetachSubscriptionResponse >