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 provides documentation for the `ClientContext` class in the Google API Client Libraries for Java, focusing on version 2.30.1 and listing other versions for reference."],["`ClientContext` encapsulates essential client state components, including the executor, credentials, and transport channel, primarily for internal use in generated code rather than direct user interaction."],["The page details various static and instance methods of `ClientContext`, such as `create`, `getBackgroundResources`, `getCredentials`, `getExecutor`, and `getTransportChannel`, for managing and accessing client resources."],["The `ClientContext` can be instantiated using `ClientSettings` or `StubSettings`, and provides methods for accessing or modifying the state, like creating a new `ClientContext` or calling a `ClientContext.Builder`."],["The documentation also includes a comprehensive list of older versions, from 2.63.1 (latest) down to 2.7.1, offering access to previous API documentation."]]],[]]