Package com.google.spanner.v1
Enum RequestOptions.Priority
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<RequestOptions.Priority>
- Enclosing class:
- RequestOptions
public static enum RequestOptions.Priority
extends Enum<RequestOptions.Priority>
implements com.google.protobuf.ProtocolMessageEnum
The relative priority for requests. Note that priority is not applicable for [BeginTransaction][google.spanner.v1.Spanner.BeginTransaction]. The priority acts as a hint to the Cloud Spanner scheduler and does not guarantee priority or order of execution. For example: * Some parts of a write operation always execute at `PRIORITY_HIGH`, regardless of the specified priority. This may cause you to see an increase in high priority workload even when executing a low priority request. This can also potentially cause a priority inversion where a lower priority request will be fulfilled ahead of a higher priority request. * If a transaction contains multiple operations with different priorities, Cloud Spanner does not guarantee to process the higher priority operations first. There may be other constraints to satisfy, such as order of operations.Protobuf enum
google.spanner.v1.RequestOptions.Priority-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis specifies that the request is high priority.This specifies that the request is low priority.This specifies that the request is medium priority.`PRIORITY_UNSPECIFIED` is equivalent to `PRIORITY_HIGH`. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThis specifies that the request is high priority.static final intThis specifies that the request is low priority.static final intThis specifies that the request is medium priority.static final int`PRIORITY_UNSPECIFIED` is equivalent to `PRIORITY_HIGH`. -
Method Summary
Modifier and TypeMethodDescriptionstatic RequestOptions.PriorityforNumber(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<RequestOptions.Priority>static RequestOptions.PriorityvalueOf(int value) Deprecated.static RequestOptions.PriorityvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static RequestOptions.PriorityReturns the enum constant of this type with the specified name.static RequestOptions.Priority[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PRIORITY_UNSPECIFIED
`PRIORITY_UNSPECIFIED` is equivalent to `PRIORITY_HIGH`.
PRIORITY_UNSPECIFIED = 0; -
PRIORITY_LOW
This specifies that the request is low priority.
PRIORITY_LOW = 1; -
PRIORITY_MEDIUM
This specifies that the request is medium priority.
PRIORITY_MEDIUM = 2; -
PRIORITY_HIGH
This specifies that the request is high priority.
PRIORITY_HIGH = 3; -
UNRECOGNIZED
-
-
Field Details
-
PRIORITY_UNSPECIFIED_VALUE
public static final int PRIORITY_UNSPECIFIED_VALUE`PRIORITY_UNSPECIFIED` is equivalent to `PRIORITY_HIGH`.
PRIORITY_UNSPECIFIED = 0;- See Also:
-
PRIORITY_LOW_VALUE
public static final int PRIORITY_LOW_VALUEThis specifies that the request is low priority.
PRIORITY_LOW = 1;- See Also:
-
PRIORITY_MEDIUM_VALUE
public static final int PRIORITY_MEDIUM_VALUEThis specifies that the request is medium priority.
PRIORITY_MEDIUM = 2;- See Also:
-
PRIORITY_HIGH_VALUE
public static final int PRIORITY_HIGH_VALUEThis specifies that the request is high priority.
PRIORITY_HIGH = 3;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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 type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type 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<RequestOptions.Priority> 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 RequestOptions.Priority valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-