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 details the `ClientContext` class in the Google API Client Libraries for Java, specifically version 2.60.0 and later, which encapsulates client state, including executor, credentials, and transport channel, intended mainly for internal use within generated code."],["The `ClientContext` class provides static methods for instantiation (`create` and `newBuilder`) and methods to retrieve various configurations such as `getCredentials`, `getExecutor`, `getTransportChannel`, `getEndpoint`, and others."],["The `ClientContext` class provides support for various underlying features, including obtaining information about the executor, credentials, default API call contexts, endpoints, headers, quota project ID, stream watchdog settings, tracer factory for tracing, and universe domain."],["The webpage lists available versions from 2.63.1 (latest) down to 2.7.1, each linking to the corresponding `ClientContext` documentation for that specific release."],["The `ClientContext` is an abstract class, inheriting from `java.lang.Object`, and its methods allow access to configurations and resources needed by the client, and it is typically used in generated code rather than directly by users."]]],[]]