Class MethodConfig (4.0.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
Name Description
other MethodConfig

Fields

AffinityFieldNumber

public const int AffinityFieldNumber = 1001

Field number for the "affinity" field.

Field Value
Type Description
Int32

NameFieldNumber

public const int NameFieldNumber = 1

Field number for the "name" field.

Field Value
Type Description
Int32

Properties

Affinity

public AffinityConfig Affinity { get; set; }

The channel affinity configurations.

Property Value
Type Description
AffinityConfig

Descriptor

public static Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Property Value
Type Description
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
Type Description
Protobuf.Collections.RepeatedField<String>

Parser

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

Methods

CalculateSize()

public int CalculateSize()
Returns
Type Description
Int32

Clone()

public MethodConfig Clone()
Returns
Type Description
MethodConfig

Equals(MethodConfig)

public bool Equals(MethodConfig other)
Parameter
Name Description
other MethodConfig
Returns
Type Description
Boolean

Equals(Object)

public override bool Equals(object other)
Parameter
Name Description
other Object
Returns
Type Description
Boolean

GetHashCode()

public override int GetHashCode()
Returns
Type Description
Int32

MergeFrom(MethodConfig)

public void MergeFrom(MethodConfig other)
Parameter
Name Description
other MethodConfig

MergeFrom(Protobuf.CodedInputStream)

public void MergeFrom(Protobuf.CodedInputStream input)
Parameter
Name Description
input Protobuf.CodedInputStream

ToString()

public override string ToString()
Returns
Type Description
String

WriteTo(Protobuf.CodedOutputStream)

public void WriteTo(Protobuf.CodedOutputStream output)
Parameter
Name Description
output Protobuf.CodedOutputStream