Class AffinityConfig (4.0.0)

public sealed class AffinityConfig : Protobuf.IMessage<AffinityConfig>

Inheritance

Object > AffinityConfig

Namespace

Google.Api.Gax.Grpc.Gcp

Assembly

Google.Api.Gax.Grpc.dll

Constructors

AffinityConfig()

public AffinityConfig()

AffinityConfig(AffinityConfig)

public AffinityConfig(AffinityConfig other)
Parameter
NameDescription
otherAffinityConfig

Fields

AffinityKeyFieldNumber

public const int AffinityKeyFieldNumber = 3

Field number for the "affinity_key" field.

Field Value
TypeDescription
Int32

CommandFieldNumber

public const int CommandFieldNumber = 2

Field number for the "command" field.

Field Value
TypeDescription
Int32

Properties

AffinityKey

public string AffinityKey { get; set; }

The field path of the affinity key in the request/response message. For example: "f.a", "f.b.d", etc.

Property Value
TypeDescription
String

Command

public AffinityConfig.Types.Command Command { get; set; }

The affinity command applies on the selected gRPC methods.

Property Value
TypeDescription
AffinityConfig.Types.Command

Descriptor

public static Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Property Value
TypeDescription
Protobuf.Reflection.MessageDescriptor

Parser

public static Protobuf.MessageParser<AffinityConfig> Parser { get; }
Property Value
TypeDescription
Protobuf.MessageParser<AffinityConfig>

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
Int32

Clone()

public AffinityConfig Clone()
Returns
TypeDescription
AffinityConfig

Equals(AffinityConfig)

public bool Equals(AffinityConfig other)
Parameter
NameDescription
otherAffinityConfig
Returns
TypeDescription
Boolean

Equals(Object)

public override bool Equals(object other)
Parameter
NameDescription
otherObject
Returns
TypeDescription
Boolean

GetHashCode()

public override int GetHashCode()
Returns
TypeDescription
Int32

MergeFrom(AffinityConfig)

public void MergeFrom(AffinityConfig other)
Parameter
NameDescription
otherAffinityConfig

MergeFrom(Protobuf.CodedInputStream)

public void MergeFrom(Protobuf.CodedInputStream input)
Parameter
NameDescription
inputProtobuf.CodedInputStream

ToString()

public override string ToString()
Returns
TypeDescription
String

WriteTo(Protobuf.CodedOutputStream)

public void WriteTo(Protobuf.CodedOutputStream output)
Parameter
NameDescription
outputProtobuf.CodedOutputStream