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 webpage provides documentation for `ClientContext`, a class in the Google API Client Libraries for Java (version 2.13.0)."],["`ClientContext` encapsulates crucial client state information, including executor, credentials, and transport channel, and is primarily used within generated code rather than by most end-users."],["The latest version of `ClientContext` documentation available is version 2.63.1, and the page contains documentation of many other versions, spanning back to version 2.7.1."],["`ClientContext` can be created using static methods `create` with either `ClientSettings` or `StubSettings`, or by using the `newBuilder` method, all which may throw `IOException`."],["The `ClientContext` abstract class contains numerous methods for retrieving various properties, such as `getExecutor()`, `getCredentials()`, `getTransportChannel()`, and others that relate to client behavior and configuration."]]],[]]