Skip to main content
Google Cloud Documentation
Technology areas
  • AI and ML
  • Application development
  • Application hosting
  • Compute
  • Data analytics and pipelines
  • Databases
  • Distributed, hybrid, and multicloud
  • Generative AI
  • Industry solutions
  • Networking
  • Observability and monitoring
  • Security
  • Storage
Cross-product tools
  • Access and resources management
  • Costs and usage management
  • Infrastructure as code
  • Migration
  • SDK, languages, frameworks, and tools
/
Console
  • English
  • Deutsch
  • Español – América Latina
  • Français
  • Português – Brasil
  • 中文 – 简体
  • 日本語
  • 한국어
Sign in
  • C++
  • Client libraries
Start free
Overview Guides Reference Samples
Google Cloud Documentation
  • Technology areas
    • More
    • Overview
    • Guides
    • Reference
    • Samples
  • Cross-product tools
    • More
  • 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 >