public static enum ReadOptions.ReadConsistency extends java.lang.Enum<ReadOptions.ReadConsistency> implements ProtocolMessageEnum
The possible values for read consistencies.Protobuf enum
google.datastore.v1.ReadOptions.ReadConsistency
Enum Constant and Description |
---|
EVENTUAL
Eventual consistency.
|
READ_CONSISTENCY_UNSPECIFIED
Unspecified.
|
STRONG
Strong consistency.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
EVENTUAL_VALUE
Eventual consistency.
|
static int |
READ_CONSISTENCY_UNSPECIFIED_VALUE
Unspecified.
|
static int |
STRONG_VALUE
Strong consistency.
|
Modifier and Type | Method and Description |
---|---|
static ReadOptions.ReadConsistency |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<ReadOptions.ReadConsistency> |
internalGetValueMap() |
static ReadOptions.ReadConsistency |
valueOf(Descriptors.EnumValueDescriptor desc) |
static ReadOptions.ReadConsistency |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ReadOptions.ReadConsistency |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static ReadOptions.ReadConsistency[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReadOptions.ReadConsistency READ_CONSISTENCY_UNSPECIFIED
Unspecified. This value must not be used.
READ_CONSISTENCY_UNSPECIFIED = 0;
public static final ReadOptions.ReadConsistency STRONG
Strong consistency.
STRONG = 1;
public static final ReadOptions.ReadConsistency EVENTUAL
Eventual consistency.
EVENTUAL = 2;
public static final ReadOptions.ReadConsistency UNRECOGNIZED
public static final int READ_CONSISTENCY_UNSPECIFIED_VALUE
Unspecified. This value must not be used.
READ_CONSISTENCY_UNSPECIFIED = 0;
public static final int STRONG_VALUE
Strong consistency.
STRONG = 1;
public static final int EVENTUAL_VALUE
Eventual consistency.
EVENTUAL = 2;
public static ReadOptions.ReadConsistency[] values()
for (ReadOptions.ReadConsistency c : ReadOptions.ReadConsistency.values()) System.out.println(c);
public static ReadOptions.ReadConsistency valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static ReadOptions.ReadConsistency valueOf(int value)
forNumber(int)
instead.public static ReadOptions.ReadConsistency forNumber(int value)
public static Internal.EnumLiteMap<ReadOptions.ReadConsistency> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static ReadOptions.ReadConsistency valueOf(Descriptors.EnumValueDescriptor desc)