Google Cloud Pub/Sub C++ Client  1.32.1
A C++ Client Library for Google Cloud Pub/Sub
Public Member Functions | Static Public Member Functions | Friends | List of all members
google::cloud::pubsub::v1::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) &&
 
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 Public Member Functions

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)
 

Friends

class SubscriptionBuilder
 

Detailed Description

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

Definition at line 38 of file subscription_builder.h.

Constructor & Destructor Documentation

◆ PushConfigBuilder() [1/2]

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

◆ PushConfigBuilder() [2/2]

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

Definition at line 41 of file subscription_builder.h.

Member Function Documentation

◆ add_attribute() [1/2]

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

Definition at line 57 of file subscription_builder.h.

◆ add_attribute() [2/2]

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

Definition at line 65 of file subscription_builder.h.

◆ BuildModifyPushConfig()

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

Definition at line 23 of file subscription_builder.cc.

◆ clear_attributes() [1/2]

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

Definition at line 85 of file subscription_builder.h.

◆ clear_attributes() [2/2]

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

Definition at line 90 of file subscription_builder.h.

◆ MakeOidcToken() [1/2]

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

Definition at line 94 of file subscription_builder.h.

◆ MakeOidcToken() [2/2]

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

Definition at line 101 of file subscription_builder.h.

◆ set_attributes() [1/2]

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

Definition at line 70 of file subscription_builder.h.

◆ set_attributes() [2/2]

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

Definition at line 80 of file subscription_builder.h.

◆ set_authentication() [1/2]

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

Definition at line 109 of file subscription_builder.h.

◆ set_authentication() [2/2]

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

Definition at line 115 of file subscription_builder.h.

◆ set_push_endpoint() [1/2]

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

Definition at line 48 of file subscription_builder.h.

◆ set_push_endpoint() [2/2]

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

Definition at line 53 of file subscription_builder.h.

Friends And Related Function Documentation

◆ SubscriptionBuilder

friend class SubscriptionBuilder
friend

Definition at line 121 of file subscription_builder.h.