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 webpage provides documentation for various versions of `ClientContext`, ranging from version 2.7.1 to the latest version 2.63.1."],["`ClientContext` is an abstract class that encapsulates client state, including executor, credentials, and transport channel, designed for use in generated code."],["The `ClientContext` class offers static methods `create` for instantiating with `ClientSettings` or `StubSettings`, and `newBuilder` for creating a builder instance."],["Key methods within `ClientContext` include retrieving background resources, clock, credentials, default call context, endpoint, executor, headers, stream watchdog, tracer factory, and transport channel, among others."],["`ClientContext` offers methods to retreive information, such as the `getGdchApiAudience` method, which gets the API audience used when creating a client that uses `com.google.auth.oauth2.GdchCredentials`."]]],[]]