StatusOr returns a value on success and a Status on error.
future and promise 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::future and std::promise, and add support for callbacks and cancellation.
Warning:
Some namespaces are reserved for implementation details and are subject to change without notice. Do not use any symbols in these namespaces as your application may break when trying to use future versions of the library.
These namespaces include:
Any namespace with internal in its name, including google::cloud::internal and google::cloud::rest_internal.
Any namespace with testing in its name, including google::cloud::testing_util.
More information
Error Handling for more details about how the libraries report run-time errors and how you can handle them.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-14 UTC."],[[["\u003cp\u003eThis page documents the common components shared across Google Cloud C++ Client Libraries, including the latest release candidate (2.37.0-rc) and several previous versions, down to version 2.10.1.\u003c/p\u003e\n"],["\u003cp\u003eKey components include Credentials for authentication, Options for customizing default configurations, Status for error codes, and StatusOr for managing successful or failed operations.\u003c/p\u003e\n"],["\u003cp\u003eIt provides support for asynchronous operations through \u003ccode\u003efuture\u003c/code\u003e and \u003ccode\u003epromise\u003c/code\u003e constructs, enhancing the standard library with callbacks and cancellation features.\u003c/p\u003e\n"],["\u003cp\u003eUsers should avoid utilizing namespaces that include \u003ccode\u003einternal\u003c/code\u003e or \u003ccode\u003etesting\u003c/code\u003e in their names, as they are subject to change without notice and are intended for implementation details.\u003c/p\u003e\n"],["\u003cp\u003eThe page contains additional resources about Error Handling, Client Library Configuration, Authentication Components, and Logging Components, allowing users to dive deeper into these topics.\u003c/p\u003e\n"]]],[],null,[]]