Package com.google.cloud.grpc.proto
Enum Class AffinityConfig.Command
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<AffinityConfig.Command>,Constable
- Enclosing class:
- AffinityConfig
public static enum AffinityConfig.Command
extends Enum<AffinityConfig.Command>
implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
grpc.gcp.AffinityConfig.Command-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe annotated method will establish the channel affinity with the channel which is used to execute the RPC.The annotated method will be required to be bound to an existing session to execute the RPC.The annotated method will remove the channel affinity with the channel which is used to execute the RPC. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe annotated method will establish the channel affinity with the channel which is used to execute the RPC.static final intThe annotated method will be required to be bound to an existing session to execute the RPC.static final intThe annotated method will remove the channel affinity with the channel which is used to execute the RPC. -
Method Summary
Modifier and TypeMethodDescriptionstatic AffinityConfig.CommandforNumber(int value) static final com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<AffinityConfig.Command>static AffinityConfig.CommandvalueOf(int value) Deprecated.static AffinityConfig.CommandvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name.static AffinityConfig.CommandReturns the enum constant of this class with the specified name.static AffinityConfig.Command[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BOUND
The annotated method will be required to be bound to an existing session to execute the RPC. The corresponding <affinity_key_field_path> will be used to find the affinity key from the request message.
BOUND = 0; -
BIND
The annotated method will establish the channel affinity with the channel which is used to execute the RPC. The corresponding <affinity_key_field_path> will be used to find the affinity key from the response message.
BIND = 1; -
UNBIND
The annotated method will remove the channel affinity with the channel which is used to execute the RPC. The corresponding <affinity_key_field_path> will be used to find the affinity key from the request message.
UNBIND = 2; -
UNRECOGNIZED
-
-
Field Details
-
BOUND_VALUE
public static final int BOUND_VALUEThe annotated method will be required to be bound to an existing session to execute the RPC. The corresponding <affinity_key_field_path> will be used to find the affinity key from the request message.
BOUND = 0;- See Also:
-
BIND_VALUE
public static final int BIND_VALUEThe annotated method will establish the channel affinity with the channel which is used to execute the RPC. The corresponding <affinity_key_field_path> will be used to find the affinity key from the response message.
BIND = 1;- See Also:
-
UNBIND_VALUE
public static final int UNBIND_VALUEThe annotated method will remove the channel affinity with the channel which is used to execute the RPC. The corresponding <affinity_key_field_path> will be used to find the affinity key from the request message.
UNBIND = 2;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<AffinityConfig.Command> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static AffinityConfig.Command valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-