Interface MethodConfigOrBuilder (1.11.0)

public interface MethodConfigOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAffinity()

public abstract AffinityConfig getAffinity()

The channel affinity configurations.

.grpc.gcp.AffinityConfig affinity = 1001;

Returns
Type Description
AffinityConfig

The affinity.

getAffinityOrBuilder()

public abstract AffinityConfigOrBuilder getAffinityOrBuilder()

The channel affinity configurations.

.grpc.gcp.AffinityConfig affinity = 1001;

Returns
Type Description
AffinityConfigOrBuilder

getName(int index)

public abstract String getName(int index)

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.

repeated string name = 1;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The name at the given index.

getNameBytes(int index)

public abstract ByteString getNameBytes(int index)

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.

repeated string name = 1;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the name at the given index.

getNameCount()

public abstract int getNameCount()

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.

repeated string name = 1;

Returns
Type Description
int

The count of name.

getNameList()

public abstract List<String> getNameList()

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.

repeated string name = 1;

Returns
Type Description
List<String>

A list containing the name.

hasAffinity()

public abstract boolean hasAffinity()

The channel affinity configurations.

.grpc.gcp.AffinityConfig affinity = 1001;

Returns
Type Description
boolean

Whether the affinity field is set.