public static enum ReadOptions.ReadConsistency extends Enum<ReadOptions.ReadConsistency> implements com.google.protobuf.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 com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<ReadOptions.ReadConsistency> |
internalGetValueMap() |
static ReadOptions.ReadConsistency |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ReadOptions.ReadConsistency |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static ReadOptions.ReadConsistency |
valueOf(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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static ReadOptions.ReadConsistency valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static ReadOptions.ReadConsistency forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<ReadOptions.ReadConsistency> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static ReadOptions.ReadConsistency valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.