Google Cloud Pub/Sub C++ Client 2.13.0
A C++ Client Library for Google Cloud Pub/Sub
|
Builds requests to create or update a Cloud Pub/Sub topic. More...
#include <google/cloud/pubsub/topic_builder.h>
Public Member Functions | |
TopicBuilder (Topic const &topic) | |
google::pubsub::v1::Topic | BuildCreateRequest () && |
Build a protocol buffer message to create a new topic. More... | |
google::pubsub::v1::UpdateTopicRequest | BuildUpdateRequest () && |
Build a protocol buffer message to update an existing topic. More... | |
Setters for each protocol buffer field. | |
TopicBuilder & | add_label (std::string const &key, std::string const &value) & |
TopicBuilder && | add_label (std::string const &key, std::string const &value) && |
TopicBuilder & | clear_labels () & |
TopicBuilder && | clear_labels () && |
TopicBuilder & | add_allowed_persistence_region (std::string region) & |
TopicBuilder && | add_allowed_persistence_region (std::string region) && |
TopicBuilder & | clear_allowed_persistence_regions () & |
TopicBuilder && | clear_allowed_persistence_regions () && |
TopicBuilder & | set_kms_key_name (std::string key_name) & |
TopicBuilder && | set_kms_key_name (std::string key_name) && |
TopicBuilder & | set_schema (pubsub::Schema const &schema) & |
TopicBuilder && | set_schema (pubsub::Schema const &schema) && |
TopicBuilder & | set_encoding (google::pubsub::v1::Encoding encoding) & |
TopicBuilder && | set_encoding (google::pubsub::v1::Encoding encoding) && |
TopicBuilder & | set_first_revision_id (std::string const &revision_id) & |
TopicBuilder && | set_first_revision_id (std::string const &revision_id) && |
TopicBuilder & | set_last_revision_id (std::string const &revision_id) & |
TopicBuilder && | set_last_revision_id (std::string const &revision_id) && |
template<typename Rep , typename Period > | |
TopicBuilder & | set_message_retention_duration (std::chrono::duration< Rep, Period > d) & |
template<typename Rep , typename Period > | |
TopicBuilder && | set_message_retention_duration (std::chrono::duration< Rep, Period > d) && |
TopicBuilder & | set_message_retention_duration (google::protobuf::Duration const &d) & |
TopicBuilder && | set_message_retention_duration (google::protobuf::Duration const &d) && |
Builds requests to create or update a Cloud Pub/Sub topic.
Makes it easier to create the protobuf messages consumed by TopicAdminClient
. The main advantages are:
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
google::pubsub::v1::Topic google::cloud::pubsub::TopicBuilder::BuildCreateRequest | ( | ) | && |
Build a protocol buffer message to create a new topic.
google::pubsub::v1::UpdateTopicRequest google::cloud::pubsub::TopicBuilder::BuildUpdateRequest | ( | ) | && |
Build a protocol buffer message to update an existing topic.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |