Class MethodConfig (4.3.1)

public sealed class MethodConfig : Protobuf.IMessage<MethodConfig>, Protobuf.IBufferMessage

Inheritance

object > MethodConfig

Implements

IBufferMessage

Namespace

GoogleGoogle.ApiGaxGrpcGcp

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
int

NameFieldNumber

public const int NameFieldNumber = 1

Field number for the "name" field.

Field Value
TypeDescription
int

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
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
RepeatedFieldstring

Parser

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

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
int

Clone()

public MethodConfig Clone()
Returns
TypeDescription
MethodConfig

Equals(MethodConfig)

public bool Equals(MethodConfig other)
Parameter
NameDescription
otherMethodConfig
Returns
TypeDescription
bool

Equals(object)

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

GetHashCode()

public override int GetHashCode()
Returns
TypeDescription
int

MergeFrom(MethodConfig)

public void MergeFrom(MethodConfig other)
Parameter
NameDescription
otherMethodConfig

MergeFrom(CodedInputStream)

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

ToString()

public override string ToString()
Returns
TypeDescription
string

WriteTo(CodedOutputStream)

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