Send feedback
Class PushConfigBuilder (2.21.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.21.0 keyboard_arrow_down
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
Name
Description
push_endpoint
std::string
Functions
set_push_endpoint(std::string) &
Setters for each protocol buffer field.
Parameter
Name
Description
v
std::string
Returns
Type
Description
PushConfigBuilder &
set_push_endpoint(std::string) &&
Setters for each protocol buffer field.
Parameter
Name
Description
v
std::string
Returns
Type
Description
PushConfigBuilder &&
add_attribute(std::string const &, std::string const &) &
Setters for each protocol buffer field.
Parameters
Name
Description
key
std::string const &
value
std::string const &
Returns
Type
Description
PushConfigBuilder &
add_attribute(std::string const &, std::string const &) &&
Setters for each protocol buffer field.
Parameters
Name
Description
key
std::string const &
value
std::string const &
Returns
Type
Description
PushConfigBuilder &&
set_attributes(std::vector< std::pair< std::string, std::string > >) &
Setters for each protocol buffer field.
Parameter
Name
Description
attr
std::vector< std::pair< std::string, std::string > >
Returns
Type
Description
PushConfigBuilder &
set_attributes(std::vector< std::pair< std::string, std::string > >) &&
Setters for each protocol buffer field.
Parameter
Name
Description
attr
std::vector< std::pair< std::string, std::string > >
Returns
Type
Description
PushConfigBuilder &&
clear_attributes() &
Setters for each protocol buffer field.
Returns
Type
Description
PushConfigBuilder &
clear_attributes() &&
Setters for each protocol buffer field.
Returns
Type
Description
PushConfigBuilder &&
set_authentication(google::pubsub::v1::PushConfig::OidcToken) &
Setters for each protocol buffer field.
Parameter
Name
Description
token
google::pubsub::v1::PushConfig::OidcToken
Returns
Type
Description
PushConfigBuilder &
set_authentication(google::pubsub::v1::PushConfig::OidcToken) &&
Setters for each protocol buffer field.
Parameter
Name
Description
token
google::pubsub::v1::PushConfig::OidcToken
Returns
Type
Description
PushConfigBuilder &&
set_wrapper(google::pubsub::v1::PushConfig::NoWrapper) &
Setters for each protocol buffer field.
Parameter
Name
Description
wrapper
google::pubsub::v1::PushConfig::NoWrapper
Returns
Type
Description
PushConfigBuilder &
set_wrapper(google::pubsub::v1::PushConfig::NoWrapper) &&
Setters for each protocol buffer field.
Parameter
Name
Description
wrapper
google::pubsub::v1::PushConfig::NoWrapper
Returns
Type
Description
PushConfigBuilder &&
static MakeOidcToken(std::string)
Setters for each protocol buffer field.
Parameter
Name
Description
service_account_email
std::string
Returns
Type
Description
google::pubsub::v1::PushConfig::OidcToken
static MakeOidcToken(std::string, std::string)
Setters for each protocol buffer field.
Parameters
Name
Description
service_account_email
std::string
audience
std::string
Returns
Type
Description
google::pubsub::v1::PushConfig::OidcToken
static MakeNoWrapper(bool)
Setters for each protocol buffer field.
Parameter
Name
Description
write_metadata
bool
Returns
Type
Description
google::pubsub::v1::PushConfig::NoWrapper
BuildModifyPushConfig(Subscription const &) &&
Build a protocol buffer message to update an existing push config.
Parameter
Name
Description
subscription
Subscription const &
Returns
Type
Description
google::pubsub::v1::ModifyPushConfigRequest
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-03-05 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-05 UTC."],[[["This document outlines the `PushConfigBuilder` helper class, designed to simplify the creation of `google::pubsub::v1::PushConfig` protocol buffer messages."],["The `PushConfigBuilder` uses a fluent API, which allows for setting multiple values efficiently when constructing complex objects and automatically computes the paths for update requests."],["The class provides methods to set and modify the `push_endpoint`, add and manage attributes, set authentication via OidcToken, and configure message wrapping."],["It offers static methods such as `MakeOidcToken` and `MakeNoWrapper` to help define authentication and wrapping configurations."],["This document also lists all the different versions of this class, from the most recent [2.37.0-rc (latest)] all the way back to 2.11.0."]]],[]]