The annotated method will establish the channel affinity with the channel
which is used to execute the RPC. The corresponding
<affinity_key_field_path> will be used to find the affinity key from the
response message.
Bound
The annotated method will be required to be bound to an existing session
to execute the RPC. The corresponding <affinity_key_field_path> will be
used to find the affinity key from the request message.
Unbind
The annotated method will remove the channel affinity with the channel
which is used to execute the RPC. The corresponding
<affinity_key_field_path> will be used to find the affinity key from the
request message.
[[["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-08-07 UTC."],[[["\u003cp\u003eThe latest version available for \u003ccode\u003eAffinityConfig.Types.Command\u003c/code\u003e is 4.10.0, with multiple previous versions accessible, including 4.8.0, 4.4.0, 4.3.1, 4.2.0, 4.0.0, and 3.2.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eAffinityConfig.Types.Command\u003c/code\u003e is an enum found within the \u003ccode\u003eGoogle.Api.Gax.Grpc.Gcp\u003c/code\u003e namespace and is part of the \u003ccode\u003eGoogle.Api.Gax.Grpc.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe enum \u003ccode\u003eAffinityConfig.Types.Command\u003c/code\u003e defines three fields: \u003ccode\u003eBind\u003c/code\u003e, \u003ccode\u003eBound\u003c/code\u003e, and \u003ccode\u003eUnbind\u003c/code\u003e, each with a specific role in managing channel affinity for Remote Procedure Calls (RPCs).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBind\u003c/code\u003e field establishes channel affinity, the \u003ccode\u003eBound\u003c/code\u003e field requires an existing session for RPC execution, and the \u003ccode\u003eUnbind\u003c/code\u003e field removes channel affinity.\u003c/p\u003e\n"]]],[],null,[]]