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::CloudStorageConfigBuilder Class Reference

A helper class to build google::pubsub::v1::CloudStorageConfig protos. More...

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

Public Member Functions

 CloudStorageConfigBuilder ()=default
 

Friends

class SubscriptionBuilder
 

Setters for each protocol buffer field.

CloudStorageConfigBuilderset_bucket (std::string bucket) &
 
CloudStorageConfigBuilder && set_bucket (std::string bucket) &&
 
CloudStorageConfigBuilderset_filename_prefix (std::string filename_prefix) &
 
CloudStorageConfigBuilder && set_filename_prefix (std::string filename_prefix) &&
 
CloudStorageConfigBuilderset_filename_suffix (std::string filename_suffix) &
 
CloudStorageConfigBuilder && set_filename_suffix (std::string filename_suffix) &&
 
CloudStorageConfigBuilderset_avro_config (google::pubsub::v1::CloudStorageConfig::AvroConfig avro_config) &
 
CloudStorageConfigBuilder && set_avro_config (google::pubsub::v1::CloudStorageConfig::AvroConfig avro_config) &&
 
template<typename Rep , typename Period >
CloudStorageConfigBuilderset_max_duration (std::chrono::duration< Rep, Period > d) &
 
template<typename Rep , typename Period >
CloudStorageConfigBuilder && set_max_duration (std::chrono::duration< Rep, Period > d) &&
 
CloudStorageConfigBuilderset_max_duration (google::protobuf::Duration const &d) &
 
CloudStorageConfigBuilder && set_max_duration (google::protobuf::Duration const &d) &&
 
CloudStorageConfigBuilderset_max_bytes (int v) &
 
CloudStorageConfigBuilder && set_max_bytes (int v) &&
 
static google::pubsub::v1::CloudStorageConfig::AvroConfig MakeAvroConfig (bool write_metadata)
 

Detailed Description

A helper class to build google::pubsub::v1::CloudStorageConfig protos.

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

Constructor & Destructor Documentation

◆ CloudStorageConfigBuilder()

google::cloud::pubsub::CloudStorageConfigBuilder::CloudStorageConfigBuilder ( )
default

Member Function Documentation

◆ MakeAvroConfig()

static google::pubsub::v1::CloudStorageConfig::AvroConfig google::cloud::pubsub::CloudStorageConfigBuilder::MakeAvroConfig ( bool  write_metadata)
inlinestatic

◆ set_avro_config() [1/2]

CloudStorageConfigBuilder & google::cloud::pubsub::CloudStorageConfigBuilder::set_avro_config ( google::pubsub::v1::CloudStorageConfig::AvroConfig  avro_config) &
inline

◆ set_avro_config() [2/2]

CloudStorageConfigBuilder && google::cloud::pubsub::CloudStorageConfigBuilder::set_avro_config ( google::pubsub::v1::CloudStorageConfig::AvroConfig  avro_config) &&
inline

◆ set_bucket() [1/2]

CloudStorageConfigBuilder & google::cloud::pubsub::CloudStorageConfigBuilder::set_bucket ( std::string  bucket) &
inline

◆ set_bucket() [2/2]

CloudStorageConfigBuilder && google::cloud::pubsub::CloudStorageConfigBuilder::set_bucket ( std::string  bucket) &&
inline

◆ set_filename_prefix() [1/2]

CloudStorageConfigBuilder & google::cloud::pubsub::CloudStorageConfigBuilder::set_filename_prefix ( std::string  filename_prefix) &
inline

◆ set_filename_prefix() [2/2]

CloudStorageConfigBuilder && google::cloud::pubsub::CloudStorageConfigBuilder::set_filename_prefix ( std::string  filename_prefix) &&
inline

◆ set_filename_suffix() [1/2]

CloudStorageConfigBuilder & google::cloud::pubsub::CloudStorageConfigBuilder::set_filename_suffix ( std::string  filename_suffix) &
inline

◆ set_filename_suffix() [2/2]

CloudStorageConfigBuilder && google::cloud::pubsub::CloudStorageConfigBuilder::set_filename_suffix ( std::string  filename_suffix) &&
inline

◆ set_max_bytes() [1/2]

CloudStorageConfigBuilder & google::cloud::pubsub::CloudStorageConfigBuilder::set_max_bytes ( int  v) &
inline

◆ set_max_bytes() [2/2]

CloudStorageConfigBuilder && google::cloud::pubsub::CloudStorageConfigBuilder::set_max_bytes ( int  v) &&
inline

◆ set_max_duration() [1/4]

CloudStorageConfigBuilder & google::cloud::pubsub::CloudStorageConfigBuilder::set_max_duration ( google::protobuf::Duration const &  d) &
inline

◆ set_max_duration() [2/4]

CloudStorageConfigBuilder && google::cloud::pubsub::CloudStorageConfigBuilder::set_max_duration ( google::protobuf::Duration const &  d) &&
inline

◆ set_max_duration() [3/4]

template<typename Rep , typename Period >
CloudStorageConfigBuilder & google::cloud::pubsub::CloudStorageConfigBuilder::set_max_duration ( std::chrono::duration< Rep, Period >  d) &
inline

◆ set_max_duration() [4/4]

template<typename Rep , typename Period >
CloudStorageConfigBuilder && google::cloud::pubsub::CloudStorageConfigBuilder::set_max_duration ( std::chrono::duration< Rep, Period >  d) &&
inline

Friends And Related Function Documentation

◆ SubscriptionBuilder

friend class SubscriptionBuilder
friend