Encapsulates client state, including executor, credentials, and transport channel.
Unlike ClientSettings which allows users to configure the client,
ClientContext is intended to be used in generated code. Most users will not need to use it.
The objects that need to be closed in order to clean up the resources created in the process of
creating this ClientContext. This will include the closeables from the transport context.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-21 UTC."],[[["This webpage provides documentation for the `ClientContext` class in the Google Cloud API Client Libraries for Java, with the latest version being 2.63.1 and version 2.47.0 highlighted as the version of focus in the documentation."],["`ClientContext` is an abstract class that encapsulates client state information such as the executor, credentials, and transport channel, intended for internal use by generated code rather than direct use by most end users."],["The class includes static methods like `create()` to instantiate a `ClientContext` using either `ClientSettings` or `StubSettings`, and `newBuilder()` to construct a new `ClientContext` with default settings."],["Key functionalities of the `ClientContext` class include methods to retrieve resources such as the `BackgroundResources`, `ApiClock`, `Credentials`, `Executor`, `Headers`, `TransportChannel`, `ApiTracerFactory` as well as others."],["It also includes a list of previous versions and their links starting with version 2.63.1 and going back to version 2.7.1, allowing users to review the class within a specific version."]]],[]]