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-04-09 UTC."],[[["The webpage provides documentation for the `ClientContext` class in the Google API Client Libraries for Java, offering version-specific details from version 2.7.1 up to the latest release, 2.63.1."],["`ClientContext` is an abstract class that encapsulates client state, including the executor, credentials, and transport channel, and is primarily for internal use in generated code rather than direct user interaction."],["The class offers static methods for creating `ClientContext` instances using `ClientSettings` or `StubSettings` and includes a `newBuilder` method for constructing a `ClientContext.Builder` object, and there are also methods to get the various aspects of the client context, like credentials and endpoints."],["The latest version of `ClientContext` is version 2.63.1, and the page lists numerous earlier versions that users may need to reference, while the page itself references version 2.38.0."],["The `ClientContext` class inherits members from `java.lang.Object`, and it provides several methods for accessing and managing resources, such as `getBackgroundResources`, `getExecutor`, and `getTransportChannel`, along with methods to retrieve various configurations, such as the API endpoint and credentials."]]],[]]