Class AffinityConfig.Builder (1.11.0)

public static final class AffinityConfig.Builder extends GeneratedMessage.Builder<AffinityConfig.Builder> implements AffinityConfigOrBuilder

Protobuf type grpc.gcp.AffinityConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public AffinityConfig build()
Returns
Type Description
AffinityConfig

buildPartial()

public AffinityConfig buildPartial()
Returns
Type Description
AffinityConfig

clear()

public AffinityConfig.Builder clear()
Returns
Type Description
AffinityConfig.Builder
Overrides

clearAffinityKey()

public AffinityConfig.Builder clearAffinityKey()

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

string affinity_key = 3;

Returns
Type Description
AffinityConfig.Builder

This builder for chaining.

clearCommand()

public AffinityConfig.Builder clearCommand()

The affinity command applies on the selected gRPC methods.

.grpc.gcp.AffinityConfig.Command command = 2;

Returns
Type Description
AffinityConfig.Builder

This builder for chaining.

getAffinityKey()

public String getAffinityKey()

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

string affinity_key = 3;

Returns
Type Description
String

The affinityKey.

getAffinityKeyBytes()

public ByteString getAffinityKeyBytes()

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

string affinity_key = 3;

Returns
Type Description
ByteString

The bytes for affinityKey.

getCommand()

public AffinityConfig.Command getCommand()

The affinity command applies on the selected gRPC methods.

.grpc.gcp.AffinityConfig.Command command = 2;

Returns
Type Description
AffinityConfig.Command

The command.

getCommandValue()

public int getCommandValue()

The affinity command applies on the selected gRPC methods.

.grpc.gcp.AffinityConfig.Command command = 2;

Returns
Type Description
int

The enum numeric value on the wire for command.

getDefaultInstanceForType()

public AffinityConfig getDefaultInstanceForType()
Returns
Type Description
AffinityConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AffinityConfig other)

public AffinityConfig.Builder mergeFrom(AffinityConfig other)
Parameter
Name Description
other AffinityConfig
Returns
Type Description
AffinityConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AffinityConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AffinityConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public AffinityConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
AffinityConfig.Builder
Overrides

setAffinityKey(String value)

public AffinityConfig.Builder setAffinityKey(String value)

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

string affinity_key = 3;

Parameter
Name Description
value String

The affinityKey to set.

Returns
Type Description
AffinityConfig.Builder

This builder for chaining.

setAffinityKeyBytes(ByteString value)

public AffinityConfig.Builder setAffinityKeyBytes(ByteString value)

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

string affinity_key = 3;

Parameter
Name Description
value ByteString

The bytes for affinityKey to set.

Returns
Type Description
AffinityConfig.Builder

This builder for chaining.

setCommand(AffinityConfig.Command value)

public AffinityConfig.Builder setCommand(AffinityConfig.Command value)

The affinity command applies on the selected gRPC methods.

.grpc.gcp.AffinityConfig.Command command = 2;

Parameter
Name Description
value AffinityConfig.Command

The command to set.

Returns
Type Description
AffinityConfig.Builder

This builder for chaining.

setCommandValue(int value)

public AffinityConfig.Builder setCommandValue(int value)

The affinity command applies on the selected gRPC methods.

.grpc.gcp.AffinityConfig.Command command = 2;

Parameter
Name Description
value int

The enum numeric value on the wire for command to set.

Returns
Type Description
AffinityConfig.Builder

This builder for chaining.