Class MethodConfig (4.2.0)

public sealed class MethodConfig : Protobuf.IMessage<MethodConfig>

Inheritance

Object > MethodConfig

Namespace

Google.Api.Gax.Grpc.Gcp

Assembly

Google.Api.Gax.Grpc.dll

Constructors

MethodConfig()

public MethodConfig()

MethodConfig(MethodConfig)

public MethodConfig(MethodConfig other)
Parameter
NameDescription
otherMethodConfig

Fields

AffinityFieldNumber

public const int AffinityFieldNumber = 1001

Field number for the "affinity" field.

Field Value
TypeDescription
Int32

NameFieldNumber

public const int NameFieldNumber = 1

Field number for the "name" field.

Field Value
TypeDescription
Int32

Properties

Affinity

public AffinityConfig Affinity { get; set; }

The channel affinity configurations.

Property Value
TypeDescription
AffinityConfig

Descriptor

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

Name

public Protobuf.Collections.RepeatedField<string> Name { get; }

A fully qualified name of a gRPC method, or a wildcard pattern ending with ., such as foo.bar.A, foo.bar.. Method configs are evaluated sequentially, and the first one takes precedence.

Property Value
TypeDescription
Protobuf.Collections.RepeatedField<String>

Parser

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

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
Int32

Clone()

public MethodConfig Clone()
Returns
TypeDescription
MethodConfig

Equals(MethodConfig)

public bool Equals(MethodConfig other)
Parameter
NameDescription
otherMethodConfig
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(MethodConfig)

public void MergeFrom(MethodConfig other)
Parameter
NameDescription
otherMethodConfig

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