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."],[[["This webpage details the `ClientContext` class in the Google API Client Libraries for Java, which is primarily for internal use in generated code to manage client state like executor, credentials, and transport channel."],["The latest version of `ClientContext` is 2.63.1, and the page provides access to various versions, ranging from 2.63.1 down to 2.7.1, which are linked to their respective documentation."],["`ClientContext` encapsulates the state of the client, and contains methods for interacting with, and creating the components within, such as setting up the executor and credentials."],["`ClientContext` includes static methods like `create()` for setting the context and `newBuilder()` for creating `ClientContext.Builder` to construct new instances."],["`ClientContext` contains methods to retrieve various client attributes such as the `executor`, `credentials`, `endpoint`, and transport channel."]]],[]]