Common Components for the Google Cloud C++ Client Libraries Stay organized with collections Save and categorize content based on your preferences.
Overview
This library contains common components shared by all the Google Cloud C++ Client Libraries. Including:
- Credentials are used to configure authentication in the client libraries. SeeAuthentication Components for more details on authentication.
- Options are used to override the client library default configuration. SeeClient Library Configuration for more details on library configuration.
- Status error codes and details from an operation.
- StatusOr returns a value on success and a
Statuson error. - future andpromise futures (a holder that will receive a value asynchronously) and promises (the counterpart of a future, where values are stored asynchronously). They satisfy the API for
std::futureandstd::promise, and add support for callbacks and cancellation.
internal in its name, includinggoogle::cloud::internal andgoogle::cloud::rest_internal.- Any namespace withtesting in its name, includinggoogle::cloud::testing_util.More information
- Error Handling for more details about how the libraries report run-time errors and how you can handle them.
- Client Library Configuration for information about configuring the client libraries at runtime.
- Authentication Components for more details about how to configure authentication in the client libraries.
- Logging Components for information about enabling logging to the console in the client libraries.
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-02-05 UTC.