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 provided content details the `ClientContext` class in the Google API Client Libraries for Java, specifically in the `com.google.api.gax.rpc` package, with versioning information ranging from 2.7.1 to 2.63.1 (latest)."],["`ClientContext` is used internally within generated code to encapsulate client state, which includes executor, credentials, and transport channel, and is not typically directly used by most application developers, unlike `ClientSettings`."],["The `ClientContext` class offers methods to access and manage various client configurations, such as obtaining the executor, credentials, endpoint, headers, clock, and transport channel, and has static methods to create instances of the `ClientContext` object."],["There are several static and abstract methods associated with `ClientContext`, including `create`, `newBuilder`, `getBackgroundResources`, and `getTransportChannel` to name a few, that are responsible for managing and getting information related to client settings, executors, and resources."],["The document contains a list of inherited members from `java.lang.Object` that are a part of the `ClientContext` class, such as `clone()`, `equals(Object)`, and `getClass()`."]]],[]]