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."],[[["The latest version available is 2.63.1, and the page lists a range of versions from 2.63.1 down to 2.7.1 for the `com.google.api.gax.rpc.ClientContext` class."],["`ClientContext` is a class designed for internal use in generated code, which encapsulates the client state, including executor, credentials, and transport channel."],["Users typically do not interact with `ClientContext` directly, instead they use `ClientSettings` to configure client behavior."],["`ClientContext` provides methods to access various resources and configurations, such as `getExecutor`, `getCredentials`, and `getTransportChannel`, among others."],["Static methods like `create` and `newBuilder` allow for the instantiation and configuration of `ClientContext` instances based on provided settings."]]],[]]