public static enum MigrationProgressEvent.ConcurrencyMode extends Enum<MigrationProgressEvent.ConcurrencyMode> implements com.google.protobuf.ProtocolMessageEnum
Concurrency modes for transactions in Cloud Firestore.Protobuf enum
google.datastore.admin.v1.MigrationProgressEvent.ConcurrencyMode
Enum Constant and Description |
---|
CONCURRENCY_MODE_UNSPECIFIED
Unspecified.
|
OPTIMISTIC
Optimistic concurrency.
|
OPTIMISTIC_WITH_ENTITY_GROUPS
Optimistic concurrency with entity groups.
|
PESSIMISTIC
Pessimistic concurrency.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
CONCURRENCY_MODE_UNSPECIFIED_VALUE
Unspecified.
|
static int |
OPTIMISTIC_VALUE
Optimistic concurrency.
|
static int |
OPTIMISTIC_WITH_ENTITY_GROUPS_VALUE
Optimistic concurrency with entity groups.
|
static int |
PESSIMISTIC_VALUE
Pessimistic concurrency.
|
Modifier and Type | Method and Description |
---|---|
static MigrationProgressEvent.ConcurrencyMode |
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<MigrationProgressEvent.ConcurrencyMode> |
internalGetValueMap() |
static MigrationProgressEvent.ConcurrencyMode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static MigrationProgressEvent.ConcurrencyMode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static MigrationProgressEvent.ConcurrencyMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static MigrationProgressEvent.ConcurrencyMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MigrationProgressEvent.ConcurrencyMode CONCURRENCY_MODE_UNSPECIFIED
Unspecified.
CONCURRENCY_MODE_UNSPECIFIED = 0;
public static final MigrationProgressEvent.ConcurrencyMode PESSIMISTIC
Pessimistic concurrency.
PESSIMISTIC = 1;
public static final MigrationProgressEvent.ConcurrencyMode OPTIMISTIC
Optimistic concurrency.
OPTIMISTIC = 2;
public static final MigrationProgressEvent.ConcurrencyMode OPTIMISTIC_WITH_ENTITY_GROUPS
Optimistic concurrency with entity groups.
OPTIMISTIC_WITH_ENTITY_GROUPS = 3;
public static final MigrationProgressEvent.ConcurrencyMode UNRECOGNIZED
public static final int CONCURRENCY_MODE_UNSPECIFIED_VALUE
Unspecified.
CONCURRENCY_MODE_UNSPECIFIED = 0;
public static final int PESSIMISTIC_VALUE
Pessimistic concurrency.
PESSIMISTIC = 1;
public static final int OPTIMISTIC_VALUE
Optimistic concurrency.
OPTIMISTIC = 2;
public static final int OPTIMISTIC_WITH_ENTITY_GROUPS_VALUE
Optimistic concurrency with entity groups.
OPTIMISTIC_WITH_ENTITY_GROUPS = 3;
public static MigrationProgressEvent.ConcurrencyMode[] values()
for (MigrationProgressEvent.ConcurrencyMode c : MigrationProgressEvent.ConcurrencyMode.values()) System.out.println(c);
public static MigrationProgressEvent.ConcurrencyMode 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 MigrationProgressEvent.ConcurrencyMode valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static MigrationProgressEvent.ConcurrencyMode forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<MigrationProgressEvent.ConcurrencyMode> 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 MigrationProgressEvent.ConcurrencyMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.