Google Cloud Pub/Sub C++ Client 2.13.0
A C++ Client Library for Google Cloud Pub/Sub
Loading...
Searching...
No Matches
Public Member Functions | Friends | List of all members
google::cloud::pubsub::PushConfigBuilder Class Reference

Helper class to create google::pubsub::v1::PushConfig protos. More...

#include <google/cloud/pubsub/subscription_builder.h>

Public Member Functions

 PushConfigBuilder ()=default
 
 PushConfigBuilder (std::string push_endpoint)
 
google::pubsub::v1::ModifyPushConfigRequest BuildModifyPushConfig (Subscription const &subscription) &&
 Build a protocol buffer message to update an existing push config. More...
 

Friends

class SubscriptionBuilder
 

Setters for each protocol buffer field.

PushConfigBuilderset_push_endpoint (std::string v) &
 
PushConfigBuilder && set_push_endpoint (std::string v) &&
 
PushConfigBuilderadd_attribute (std::string const &key, std::string const &value) &
 
PushConfigBuilder && add_attribute (std::string const &key, std::string const &value) &&
 
PushConfigBuilderset_attributes (std::vector< std::pair< std::string, std::string > > attr) &
 
PushConfigBuilder && set_attributes (std::vector< std::pair< std::string, std::string > > attr) &&
 
PushConfigBuilderclear_attributes () &
 
PushConfigBuilder && clear_attributes () &&
 
PushConfigBuilderset_authentication (google::pubsub::v1::PushConfig::OidcToken token) &
 
PushConfigBuilder && set_authentication (google::pubsub::v1::PushConfig::OidcToken token) &&
 
static google::pubsub::v1::PushConfig::OidcToken MakeOidcToken (std::string service_account_email)
 
static google::pubsub::v1::PushConfig::OidcToken MakeOidcToken (std::string service_account_email, std::string audience)
 

Detailed Description

Helper class to create google::pubsub::v1::PushConfig protos.

Makes it easier to create the protobuf messages consumed by SubscriptionAdminClient. The main advantages are:

Constructor & Destructor Documentation

◆ PushConfigBuilder() [1/2]

google::cloud::pubsub::PushConfigBuilder::PushConfigBuilder ( )
default

◆ PushConfigBuilder() [2/2]

google::cloud::pubsub::PushConfigBuilder::PushConfigBuilder ( std::string  push_endpoint)
inlineexplicit

Member Function Documentation

◆ add_attribute() [1/2]

PushConfigBuilder & google::cloud::pubsub::PushConfigBuilder::add_attribute ( std::string const &  key,
std::string const &  value 
) &
inline

◆ add_attribute() [2/2]

PushConfigBuilder && google::cloud::pubsub::PushConfigBuilder::add_attribute ( std::string const &  key,
std::string const &  value 
) &&
inline

◆ BuildModifyPushConfig()

google::pubsub::v1::ModifyPushConfigRequest google::cloud::pubsub::PushConfigBuilder::BuildModifyPushConfig ( Subscription const &  subscription) &&

Build a protocol buffer message to update an existing push config.

◆ clear_attributes() [1/2]

PushConfigBuilder & google::cloud::pubsub::PushConfigBuilder::clear_attributes ( ) &
inline

◆ clear_attributes() [2/2]

PushConfigBuilder && google::cloud::pubsub::PushConfigBuilder::clear_attributes ( ) &&
inline

◆ MakeOidcToken() [1/2]

static google::pubsub::v1::PushConfig::OidcToken google::cloud::pubsub::PushConfigBuilder::MakeOidcToken ( std::string  service_account_email)
inlinestatic

◆ MakeOidcToken() [2/2]

static google::pubsub::v1::PushConfig::OidcToken google::cloud::pubsub::PushConfigBuilder::MakeOidcToken ( std::string  service_account_email,
std::string  audience 
)
inlinestatic

◆ set_attributes() [1/2]

PushConfigBuilder & google::cloud::pubsub::PushConfigBuilder::set_attributes ( std::vector< std::pair< std::string, std::string > >  attr) &
inline

◆ set_attributes() [2/2]

PushConfigBuilder && google::cloud::pubsub::PushConfigBuilder::set_attributes ( std::vector< std::pair< std::string, std::string > >  attr) &&
inline

◆ set_authentication() [1/2]

PushConfigBuilder & google::cloud::pubsub::PushConfigBuilder::set_authentication ( google::pubsub::v1::PushConfig::OidcToken  token) &
inline

◆ set_authentication() [2/2]

PushConfigBuilder && google::cloud::pubsub::PushConfigBuilder::set_authentication ( google::pubsub::v1::PushConfig::OidcToken  token) &&
inline

◆ set_push_endpoint() [1/2]

PushConfigBuilder & google::cloud::pubsub::PushConfigBuilder::set_push_endpoint ( std::string  v) &
inline

◆ set_push_endpoint() [2/2]

PushConfigBuilder && google::cloud::pubsub::PushConfigBuilder::set_push_endpoint ( std::string  v) &&
inline

Friends And Related Function Documentation

◆ SubscriptionBuilder

friend class SubscriptionBuilder
friend