public static final class AffinityConfig.Builder extends GeneratedMessage.Builder<AffinityConfig.Builder> implements AffinityConfigOrBuilderProtobuf type grpc.gcp.AffinityConfig
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AffinityConfig.BuilderImplements
AffinityConfigOrBuilderStatic 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 |
|
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 |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
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 |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AffinityConfig.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AffinityConfig.Builder |
|
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 |
StringThe 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 |
ByteStringThe 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.CommandThe 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 |
intThe enum numeric value on the wire for command to set. |
| Returns | |
|---|---|
| Type | Description |
AffinityConfig.Builder |
This builder for chaining. |