Google Cloud Pub/Sub C++ Client  1.32.1
A C++ Client Library for Google Cloud Pub/Sub
Public Member Functions | List of all members
google::cloud::pubsub::v1::TopicBuilder Class Reference

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 () &&
 
google::pubsub::v1::UpdateTopicRequest BuildUpdateRequest () &&
 
TopicBuilderadd_label (std::string const &key, std::string const &value) &
 
TopicBuilder && add_label (std::string const &key, std::string const &value) &&
 
TopicBuilderclear_labels () &
 
TopicBuilder && clear_labels () &&
 
TopicBuilderadd_allowed_persistence_region (std::string region) &
 
TopicBuilder && add_allowed_persistence_region (std::string region) &&
 
TopicBuilderclear_allowed_persistence_regions () &
 
TopicBuilder && clear_allowed_persistence_regions () &&
 
TopicBuilderset_kms_key_name (std::string key_name) &
 
TopicBuilder && set_kms_key_name (std::string key_name) &&
 
TopicBuilderset_schema (pubsub::Schema const &schema) &
 
TopicBuilder && set_schema (pubsub::Schema const &schema) &&
 
TopicBuilderset_encoding (google::pubsub::v1::Encoding encoding) &
 
TopicBuilder && set_encoding (google::pubsub::v1::Encoding encoding) &&
 
template<typename Rep , typename Period >
TopicBuilderset_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) &&
 
TopicBuilderset_message_retention_duration (google::protobuf::Duration const &d) &
 
TopicBuilder && set_message_retention_duration (google::protobuf::Duration const &d) &&
 

Detailed Description

Builds requests to create or update a Cloud Pub/Sub topic.

Definition at line 34 of file topic_builder.h.

Constructor & Destructor Documentation

◆ TopicBuilder()

google::cloud::pubsub::v1::TopicBuilder::TopicBuilder ( Topic const &  topic)
inlineexplicit

Definition at line 36 of file topic_builder.h.

Member Function Documentation

◆ add_allowed_persistence_region() [1/2]

TopicBuilder& google::cloud::pubsub::v1::TopicBuilder::add_allowed_persistence_region ( std::string  region) &
inline

Definition at line 62 of file topic_builder.h.

◆ add_allowed_persistence_region() [2/2]

TopicBuilder&& google::cloud::pubsub::v1::TopicBuilder::add_allowed_persistence_region ( std::string  region) &&
inline

Definition at line 68 of file topic_builder.h.

◆ add_label() [1/2]

TopicBuilder& google::cloud::pubsub::v1::TopicBuilder::add_label ( std::string const &  key,
std::string const &  value 
) &
inline

Definition at line 44 of file topic_builder.h.

◆ add_label() [2/2]

TopicBuilder&& google::cloud::pubsub::v1::TopicBuilder::add_label ( std::string const &  key,
std::string const &  value 
) &&
inline

Definition at line 50 of file topic_builder.h.

◆ BuildCreateRequest()

google::pubsub::v1::Topic google::cloud::pubsub::v1::TopicBuilder::BuildCreateRequest ( ) &&

Definition at line 23 of file topic_builder.cc.

◆ BuildUpdateRequest()

google::pubsub::v1::UpdateTopicRequest google::cloud::pubsub::v1::TopicBuilder::BuildUpdateRequest ( ) &&

Definition at line 27 of file topic_builder.cc.

◆ clear_allowed_persistence_regions() [1/2]

TopicBuilder& google::cloud::pubsub::v1::TopicBuilder::clear_allowed_persistence_regions ( ) &
inline

Definition at line 72 of file topic_builder.h.

◆ clear_allowed_persistence_regions() [2/2]

TopicBuilder&& google::cloud::pubsub::v1::TopicBuilder::clear_allowed_persistence_regions ( ) &&
inline

Definition at line 78 of file topic_builder.h.

◆ clear_labels() [1/2]

TopicBuilder& google::cloud::pubsub::v1::TopicBuilder::clear_labels ( ) &
inline

Definition at line 55 of file topic_builder.h.

◆ clear_labels() [2/2]

TopicBuilder&& google::cloud::pubsub::v1::TopicBuilder::clear_labels ( ) &&
inline

Definition at line 60 of file topic_builder.h.

◆ set_encoding() [1/2]

TopicBuilder& google::cloud::pubsub::v1::TopicBuilder::set_encoding ( google::pubsub::v1::Encoding  encoding) &
inline

Definition at line 99 of file topic_builder.h.

◆ set_encoding() [2/2]

TopicBuilder&& google::cloud::pubsub::v1::TopicBuilder::set_encoding ( google::pubsub::v1::Encoding  encoding) &&
inline

Definition at line 104 of file topic_builder.h.

◆ set_kms_key_name() [1/2]

TopicBuilder& google::cloud::pubsub::v1::TopicBuilder::set_kms_key_name ( std::string  key_name) &
inline

Definition at line 82 of file topic_builder.h.

◆ set_kms_key_name() [2/2]

TopicBuilder&& google::cloud::pubsub::v1::TopicBuilder::set_kms_key_name ( std::string  key_name) &&
inline

Definition at line 87 of file topic_builder.h.

◆ set_message_retention_duration() [1/4]

TopicBuilder& google::cloud::pubsub::v1::TopicBuilder::set_message_retention_duration ( google::protobuf::Duration const &  d) &
inline

Definition at line 121 of file topic_builder.h.

◆ set_message_retention_duration() [2/4]

TopicBuilder&& google::cloud::pubsub::v1::TopicBuilder::set_message_retention_duration ( google::protobuf::Duration const &  d) &&
inline

Definition at line 127 of file topic_builder.h.

◆ set_message_retention_duration() [3/4]

template<typename Rep , typename Period >
TopicBuilder& google::cloud::pubsub::v1::TopicBuilder::set_message_retention_duration ( std::chrono::duration< Rep, Period >  d) &
inline

Definition at line 109 of file topic_builder.h.

◆ set_message_retention_duration() [4/4]

template<typename Rep , typename Period >
TopicBuilder&& google::cloud::pubsub::v1::TopicBuilder::set_message_retention_duration ( std::chrono::duration< Rep, Period >  d) &&
inline

Definition at line 117 of file topic_builder.h.

◆ set_schema() [1/2]

TopicBuilder& google::cloud::pubsub::v1::TopicBuilder::set_schema ( pubsub::Schema const &  schema) &
inline

Definition at line 91 of file topic_builder.h.

◆ set_schema() [2/2]

TopicBuilder&& google::cloud::pubsub::v1::TopicBuilder::set_schema ( pubsub::Schema const &  schema) &&
inline

Definition at line 96 of file topic_builder.h.