[[["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-17 UTC."],[[["The `AffinityConfig` class, part of the `Google.Api.Gax.Grpc.Gcp` namespace, is used for configuring affinity in gRPC methods and is a sealed class implementing `Protobuf.IMessage\u003cAffinityConfig\u003e` and `Protobuf.IBufferMessage`."],["The class offers two constructors: a default constructor `AffinityConfig()` and another that accepts an `AffinityConfig` object for creating a copy `AffinityConfig(AffinityConfig other)`."],["`AffinityConfig` has two main fields, `AffinityKeyFieldNumber` and `CommandFieldNumber`, which represent the field numbers for the affinity key and command in the message."],["`AffinityConfig` exposes properties such as `AffinityKey`, which specifies the path to the affinity key in request/response messages, and `Command`, which sets the affinity command for selected gRPC methods, alongside properties for retrieving the message descriptor and parser."],["The class provides methods for operations such as calculating the object's size (`CalculateSize()`), creating a duplicate (`Clone()`), checking for equality (`Equals()`), determining a hash code (`GetHashCode()`), merging data from other instances (`MergeFrom()`), and converting to a string representation (`ToString()`), including methods for writing to and reading from streams, `WriteTo(CodedOutputStream)` and `MergeFrom(CodedInputStream)` respectively."]]],[]]