15 #ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_PUBSUB_TOPIC_ADMIN_CONNECTION_H
16 #define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_PUBSUB_TOPIC_ADMIN_CONNECTION_H
18 #include "google/cloud/pubsub/backoff_policy.h"
19 #include "google/cloud/pubsub/connection_options.h"
20 #include "google/cloud/pubsub/internal/publisher_stub.h"
21 #include "google/cloud/pubsub/retry_policy.h"
22 #include "google/cloud/pubsub/subscription.h"
23 #include "google/cloud/pubsub/topic.h"
24 #include "google/cloud/pubsub/version.h"
25 #include "google/cloud/internal/non_constructible.h"
26 #include "google/cloud/internal/pagination_range.h"
27 #include "google/cloud/status_or.h"
28 #include <google/pubsub/v1/pubsub.pb.h>
46 using ListTopicsRange =
58 using ListTopicSubscriptionsRange =
59 google::
cloud::internal::PaginationRange<std::string>;
70 using ListTopicSnapshotsRange =
71 google::
cloud::internal::PaginationRange<std::string>;
151 virtual StatusOr<
google::pubsub::v1::DetachSubscriptionResponse>
174 GOOGLE_CLOUD_CPP_DEPRECATED(
"use MakeTopicAdminConnection() instead")
176 std::initializer_list<internal::NonConstructible>);
233 GOOGLE_CLOUD_CPP_DEPRECATED(
234 "use the overload consuming google::cloud::Options instead")
236 ConnectionOptions
const& options,
237 std::unique_ptr<
pubsub::RetryPolicy
const> retry_policy = {},
238 std::unique_ptr<
pubsub::BackoffPolicy
const> backoff_policy = {});
243 namespace pubsub_internal {
247 Options const& opts, std::shared_ptr<PublisherStub> stub);