Skip to main content
Documentation
close
Get Started
Get Started with Google Cloud
Product List
Cloud Customer Care
Featured Products
Agent Platform
Apigee API Management
BigQuery
Compute Engine
Cloud CDN
Cloud Run
Cloud Storage
Cloud SQL
Gemini Enterprise
Google Kubernetes Engine
Looker
Cross-product Tools
Access and resources management
Costs and usage management
Infrastructure as code
SDK, languages, frameworks, and tools
Technology Areas
AI and ML
Application development
Application hosting
Compute
Data analytics and pipelines
Databases
Distributed, hybrid, and multicloud
Industry solutions
Migration
Networking
Observability and monitoring
Security
Storage
/
Console
English
Deutsch
Español – América Latina
Français
Português – Brasil
中文 – 简体
日本語
한국어
Sign in
Google Cloud SDK
C++
Client libraries
Start free
Overview
Guides
Reference
Samples
Documentation
More
Overview
Guides
Reference
Samples
Console
Overview
Library reference docs
Common Components for the Google Cloud C++ Client Libraries
In-Depth Topics
Error Handling
Logging Components
Modules
Intercepting Unrecoverable Errors
Authentication Components
Client Library Configuration
Options only applicable when using REST transport
Namespaces
google::cloud
Overview
Classes
AsyncOperation
Overview
Functions
Cancel()
AsyncStreamingReadWriteRpc<Request, Response>
Overview
Functions
Cancel()
Start()
Read()
Write(Request const &, grpc::WriteOptions)
WritesDone()
Finish()
virtual GetRequestMetadata() const
BackgroundThreads
Overview
Functions
cq() const
CompletionQueue
Overview
Constructors
CompletionQueue()
CompletionQueue(std::shared_ptr< internal::CompletionQueueImpl >)
Functions
Run()
Shutdown()
CancelAll()
MakeDeadlineTimer(std::chrono::system_clock::time_point)
MakeRelativeTimer(std::chrono::duration< Rep, Period >)
MakeUnaryRpc(AsyncCallType, Request const &, std::unique_ptr< grpc::ClientContext >)
MakeStreamingReadRpc(AsyncCallType &&, Request const &, std::unique_ptr< grpc::ClientContext >, OnReadHandler &&, OnFinishHandler &&)
RunAsync(Functor &&)
RunAsync(Functor &&)
AsyncWaitConnectionReady(std::shared_ptr< grpc::Channel >, std::chrono::system_clock::time_point)
ConnectionOptions<ConnectionTraits>
Overview
Constructors
ConnectionOptions()
ConnectionOptions(std::shared_ptr< grpc::ChannelCredentials >)
Functions
set_credentials(std::shared_ptr< grpc::ChannelCredentials >)
credentials() const
set_endpoint(std::string)
endpoint() const
num_channels() const
set_num_channels(int)
tracing_enabled(std::string const &) const
enable_tracing(std::string const &)
disable_tracing(std::string const &)
components() const
tracing_options() const
channel_pool_domain() const
set_channel_pool_domain(std::string)
add_user_agent_prefix(std::string)
user_agent_prefix() const
CreateChannelArguments() const
set_background_thread_pool_size(std::size_t)
background_thread_pool_size() const
DisableBackgroundThreads(google::cloud::CompletionQueue const &)
background_threads_factory() const
Types
BackgroundThreadsFactory
Credentials
Overview
ErrorInfo
Overview
Constructors
ErrorInfo()
ErrorInfo(std::string, std::string, std::unordered_map< std::string, std::string >)
Operators
operator==(ErrorInfo const &, ErrorInfo const &)
operator!=(ErrorInfo const &, ErrorInfo const &)
Functions
reason() const
domain() const
metadata() const
future<T>
Overview
Constructors
future()
future(future< future< T > > &&)
future(future< U > &&)
future(std::shared_ptr< shared_state_type >)
Functions
get()
then(F &&)
Types
shared_state_type
future< void >
Overview
Constructors
future()
future(future< future< void > > &&)
future(future< T > &&)
future(std::shared_ptr< shared_state_type >)
Functions
get()
then(F &&)
Types
shared_state_type
GenericPollingPolicy<Retry, Backoff>
Overview
Constructors
GenericPollingPolicy(Retry, Backoff)
Functions
virtual clone() const
virtual OnFailure(Status const &)
virtual WaitPeriod()
KmsKeyName
Overview
Constructors
KmsKeyName(KmsKeyName const &)
KmsKeyName(KmsKeyName &&)
KmsKeyName(std::string const &, std::string const &, std::string const &, std::string const &)
Operators
operator=(KmsKeyName const &)
operator=(KmsKeyName &&)
operator==(KmsKeyName const &, KmsKeyName const &)
operator!=(KmsKeyName const &, KmsKeyName const &)
operator<<(std::ostream &, KmsKeyName const &)
Functions
FullName() const
Location
Overview
Constructors
Location(Location const &)
Location(Location &&)
Location(Project, std::string)
Location(std::string, std::string)
Operators
operator=(Location const &)
operator=(Location &&)
operator==(Location const &, Location const &)
operator!=(Location const &, Location const &)
operator<<(std::ostream &, Location const &)
Functions
project() const
project_id() const
location_id() const
FullName() const
LogBackend
Overview
Functions
Process(LogRecord const &)
ProcessWithOwnership(LogRecord)
virtual Flush()
Logger<bool>
Overview
Constructors
Logger(Severity, char const *, char const *, int, LogSink &)
Functions
enabled() const
LogTo(LogSink &)
Stream()
Logger< false >
Overview
Constructors
Logger(Severity, char const *, char const *, int, LogSink &)
Functions
enabled() const
LogTo(LogSink &)
Stream()
LogSink
Overview
Constructors
LogSink()
Functions
empty() const
is_enabled(Severity) const
set_minimum_severity(Severity)
minimum_severity() const
AddBackend(std::shared_ptr< LogBackend >)
RemoveBackend(BackendId)
ClearBackends()
BackendCount() const
Log(LogRecord)
Flush()
static CompileTimeEnabled(Severity)
static Instance()
static EnableStdClog(Severity)
static DisableStdClog()
Types
BackendId
Options
Overview
Constructors
Options()
Options(Options const &)
Options(Options &&)
Operators
operator=(Options const &)
operator=(Options &&)
Functions
set(ValueTypeT< T >) &
set(ValueTypeT< T >) &&
has() const
unset()
get() const
lookup(ValueTypeT< T >)
PollingPolicy
Overview
Functions
clone() const
OnFailure(Status const &)
WaitPeriod()
Project
Overview
Constructors
Project(Project const &)
Project(Project &&)
Project(std::string)
Operators
operator=(Project const &)
operator=(Project &&)
operator==(Project const &, Project const &)
operator!=(Project const &, Project const &)
operator<<(std::ostream &, Project const &)
Functions
project_id() const
FullName() const
promise<T>
Overview
Constructors
promise()
promise(std::function< void()>)
promise(null_promise_t)
promise(promise &&)
promise(promise const &)
Operators
operator=(promise &&)
operator=(promise const &)
Functions
swap(promise &)
get_future()
set_value(T)
promise< void >
Overview
Constructors
promise()
promise(std::function< void()>)
promise(null_promise_t)
promise(promise &&)
promise(promise const &)
Operators
operator=(promise &&)
operator=(promise const &)
Functions
swap(promise &)
get_future()
set_value()
ProxyConfig
Overview
Constructors
ProxyConfig()
Functions
set_hostname(std::string) &
set_hostname(std::string) &&
set_port(std::string) &
set_port(std::string) &&
set_username(std::string) &
set_username(std::string) &&
set_password(std::string) &
set_password(std::string) &&
set_scheme(std::string) &
set_scheme(std::string) &&
hostname() const
port() const
username() const
password() const
scheme() const
RetryPolicy
Overview
Functions
OnFailure(Status const &)
IsExhausted() const
IsPermanentFailure(Status const &) const
RuntimeStatusError
Overview
Constructors
RuntimeStatusError(Status)
Functions
status() const
Status
Overview
Constructors
Status(Status const &)
Status(Status &&)
Status()
Status(StatusCode, std::string, ErrorInfo)
Operators
operator=(Status const &)
operator=(Status &&)
operator==(Status const &, Status const &)
operator!=(Status const &, Status const &)
Functions
ok() const
code() const
message() const
error_info() const
StatusOr<T>
Overview
Constructors
StatusOr()
StatusOr(StatusOr const &)
StatusOr(StatusOr &&)
StatusOr(Status)
StatusOr(T &&)
StatusOr(T const &)
operator bool() const
Operators
operator*() &
operator*() const &
operator*() &&
operator*() const &&
operator->() &
operator->() const &
operator=(StatusOr const &)
operator=(StatusOr &&)
operator=(Status)
operator=(U &&)
operator bool() const
Functions
value() &
value() const &
value() &&
value() const &&
status() const &
status() &&
ok() const
Types
value_type
StreamRange<T>
Overview
Constructors
IteratorImpl<U>
Overview
Constructors
IteratorImpl()
Operators
operator==(IteratorImpl const &, IteratorImpl const &)
operator!=(IteratorImpl const &, IteratorImpl const &)
operator*()
operator->()
operator*() const
operator->() const
operator++()
operator++(int)
Types
iterator_category
value_type
difference_type
reference
pointer
const_reference
const_pointer
StreamRange(StreamRange const &)
StreamRange(StreamRange &&)
StreamRange()
Operators
operator=(StreamRange const &)
operator=(StreamRange &&)
Functions
begin()
end()
Types
value_type
iterator
difference_type
reference
pointer
const_reference
const_pointer
TracingOptions
Overview
Constructors
TracingOptions()
TracingOptions(TracingOptions const &)
TracingOptions(TracingOptions &&)
Operators
operator=(TracingOptions const &)
operator=(TracingOptions &&)
operator==(TracingOptions const &, TracingOptions const &)
operator!=(TracingOptions const &, TracingOptions const &)
Functions
SetOptions(std::string const &)
single_line_mode() const
use_short_repeated_primitives() const
truncate_string_field_longer_than() const
Structs
AccessToken
Overview
AccessTokenLifetimeOption
Overview
Types
Type
AsyncTimerResult
Overview
AuthorityOption
Overview
Types
Type
CARootsFilePathOption
Overview
Types
Type
CustomHeadersOption
Overview
Types
Type
DelegatesOption
Overview
Types
Type
EnableServerRetriesOption
Overview
Types
Type
EndpointOption
Overview
Types
Type
ExperimentalTag
Overview
FieldMaskOption
Overview
Types
Type
GrpcBackgroundThreadPoolSizeOption
Overview
Types
Type
GrpcBackgroundThreadsFactoryOption
Overview
Types
Type
GrpcChannelArgumentsNativeOption
Overview
Types
Type
GrpcChannelArgumentsOption
Overview
Types
Type
GrpcCompletionQueueOption
Overview
Types
Type
GrpcCompressionAlgorithmOption
Overview
Types
Type
GrpcCredentialOption
Overview
Types
Type
GrpcNumChannelsOption
Overview
Types
Type
GrpcTracingOptionsOption
Overview
Types
Type
Interface
Overview
Types
Type
LoggingComponentsOption
Overview
Types
Type
LogRecord
Overview
NoAwaitTag
Overview