Encapsulates client state, including executor, credentials, and transport channel.
UnlikeClientSettingswhich allows users to configure the client,ClientContextis 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-09-04 UTC."],[[["\u003cp\u003eThe webpage provides documentation for various versions of \u003ccode\u003eClientContext\u003c/code\u003e, with version 2.63.1 being the latest available release.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eClientContext\u003c/code\u003e encapsulates client state details such as the executor, credentials, and transport channel, primarily for internal use in generated code.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eClientContext\u003c/code\u003e offers static methods for creating instances based on \u003ccode\u003eClientSettings\u003c/code\u003e or \u003ccode\u003eStubSettings\u003c/code\u003e and allows building custom instances through its \u003ccode\u003enewBuilder()\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eClientContext\u003c/code\u003e contains methods to access details such as background resources, credentials, executor, and the transport channel.\u003c/p\u003e\n"],["\u003cp\u003eThe content describes the \u003ccode\u003eClientContext\u003c/code\u003e as an abstract class that inherits from \u003ccode\u003ejava.lang.Object\u003c/code\u003e, with information provided about inherited members, static methods, constructors, and various instance methods.\u003c/p\u003e\n"]]],[],null,[]]