Class PushConfigBuilder (2.23.0-rc)

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

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

  • Use a fluent API to set multiple values when constructing complex objects.
  • Automatically compute the set of paths for update requests.

Constructors

PushConfigBuilder()

PushConfigBuilder(std::string)

Parameter
NameDescription
push_endpoint std::string

Functions

set_push_endpoint(std::string) &

Setters for each protocol buffer field.

Parameter
NameDescription
v std::string
Returns
TypeDescription
PushConfigBuilder &

set_push_endpoint(std::string) &&

Setters for each protocol buffer field.

Parameter
NameDescription
v std::string
Returns
TypeDescription
PushConfigBuilder &&

add_attribute(std::string const &, std::string const &) &

Setters for each protocol buffer field.

Parameters
NameDescription
key std::string const &
value std::string const &
Returns
TypeDescription
PushConfigBuilder &

add_attribute(std::string const &, std::string const &) &&

Setters for each protocol buffer field.

Parameters
NameDescription
key std::string const &
value std::string const &
Returns
TypeDescription
PushConfigBuilder &&

set_attributes(std::vector< std::pair< std::string, std::string > >) &

Setters for each protocol buffer field.

Parameter
NameDescription
attr std::vector< std::pair< std::string, std::string > >
Returns
TypeDescription
PushConfigBuilder &

set_attributes(std::vector< std::pair< std::string, std::string > >) &&

Setters for each protocol buffer field.

Parameter
NameDescription
attr std::vector< std::pair< std::string, std::string > >
Returns
TypeDescription
PushConfigBuilder &&

clear_attributes() &

Setters for each protocol buffer field.

Returns
TypeDescription
PushConfigBuilder &

clear_attributes() &&

Setters for each protocol buffer field.

Returns
TypeDescription
PushConfigBuilder &&

set_authentication(google::pubsub::v1::PushConfig::OidcToken) &

Setters for each protocol buffer field.

Parameter
NameDescription
token google::pubsub::v1::PushConfig::OidcToken
Returns
TypeDescription
PushConfigBuilder &

set_authentication(google::pubsub::v1::PushConfig::OidcToken) &&

Setters for each protocol buffer field.

Parameter
NameDescription
token google::pubsub::v1::PushConfig::OidcToken
Returns
TypeDescription
PushConfigBuilder &&

set_wrapper(google::pubsub::v1::PushConfig::NoWrapper) &

Setters for each protocol buffer field.

Parameter
NameDescription
wrapper google::pubsub::v1::PushConfig::NoWrapper
Returns
TypeDescription
PushConfigBuilder &

set_wrapper(google::pubsub::v1::PushConfig::NoWrapper) &&

Setters for each protocol buffer field.

Parameter
NameDescription
wrapper google::pubsub::v1::PushConfig::NoWrapper
Returns
TypeDescription
PushConfigBuilder &&

static MakeOidcToken(std::string)

Setters for each protocol buffer field.

Parameter
NameDescription
service_account_email std::string
Returns
TypeDescription
google::pubsub::v1::PushConfig::OidcToken

static MakeOidcToken(std::string, std::string)

Setters for each protocol buffer field.

Parameters
NameDescription
service_account_email std::string
audience std::string
Returns
TypeDescription
google::pubsub::v1::PushConfig::OidcToken

static MakeNoWrapper(bool)

Setters for each protocol buffer field.

Parameter
NameDescription
write_metadata bool
Returns
TypeDescription
google::pubsub::v1::PushConfig::NoWrapper

BuildModifyPushConfig(Subscription const &) &&

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

Parameter
NameDescription
subscription Subscription const &
Returns
TypeDescription
google::pubsub::v1::ModifyPushConfigRequest