Google Cloud Pub/Sub C++ Client 2.13.0
A C++ Client Library for Google Cloud Pub/Sub
|
Create a Cloud Pub/Sub subscription configuration. More...
#include <google/cloud/pubsub/subscription_builder.h>
Static Public Member Functions | |
template<typename Rep , typename Period > | |
static google::pubsub::v1::ExpirationPolicy | MakeExpirationPolicy (std::chrono::duration< Rep, Period > d) |
Construct a google::pubsub::v1::ExpirationPolicy using a C++ duration. More... | |
static google::pubsub::v1::DeadLetterPolicy | MakeDeadLetterPolicy (Topic const &dead_letter_topic, std::int32_t max_delivery_attempts=0) |
Construct a google::pubsub::v1::DeadLetterPolicy . More... | |
template<typename Rep1 , typename Period1 , typename Rep2 , typename Period2 > | |
static google::pubsub::v1::RetryPolicy | MakeRetryPolicy (std::chrono::duration< Rep1, Period1 > minimum_backoff, std::chrono::duration< Rep2, Period2 > maximum_backoff) |
Construct a google::pubsub::v1::RetryPolicy using C++ durations. More... | |
Create a Cloud Pub/Sub subscription configuration.
Makes it easier to create the protobuf messages consumed by SubscriptionAdminClient
. The main advantages are:
|
default |
|
inline |
|
inline |
google::pubsub::v1::Subscription google::cloud::pubsub::SubscriptionBuilder::BuildCreateRequest | ( | Topic const & | topic, |
Subscription const & | subscription | ||
) | && |
Build a protocol buffer message to create a new subscription.
google::pubsub::v1::UpdateSubscriptionRequest google::cloud::pubsub::SubscriptionBuilder::BuildUpdateRequest | ( | Subscription const & | subscription | ) | && |
Build a protocol buffer message to update an existing subscription.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinestatic |
Construct a google::pubsub::v1::DeadLetterPolicy
.
This is a convenience function to create the set_dead_letter_policy()
argument.
|
inlinestatic |
Construct a google::pubsub::v1::ExpirationPolicy
using a C++ duration.
This is a convenience function to create the set_expiration_policy()
argument.
|
inlinestatic |
Construct a google::pubsub::v1::RetryPolicy
using C++ durations.
This is a convenience function to create the set_retry_policy()
argument.
|
inline |
|
inline |
SubscriptionBuilder & google::cloud::pubsub::SubscriptionBuilder::set_bigquery_config | ( | BigQueryConfigBuilder | v | ) | & |
|
inline |
SubscriptionBuilder & google::cloud::pubsub::SubscriptionBuilder::set_cloud_storage_config | ( | CloudStorageConfigBuilder | v | ) | & |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
SubscriptionBuilder & google::cloud::pubsub::SubscriptionBuilder::set_push_config | ( | PushConfigBuilder | v | ) | & |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |