public enum Database.ConcurrencyMode extends Enum<Database.ConcurrencyMode> implements ProtocolMessageEnum
The type of concurrency control mode for transactions.
Protobuf enum google.firestore.admin.v1.Database.ConcurrencyMode
Implements
ProtocolMessageEnumStatic Fields
Name | Description |
CONCURRENCY_MODE_UNSPECIFIED | Not used. |
CONCURRENCY_MODE_UNSPECIFIED_VALUE | Not used. |
OPTIMISTIC | Use optimistic concurrency control by default. This setting is available for Cloud Firestore customers. |
OPTIMISTIC_VALUE | Use optimistic concurrency control by default. This setting is available for Cloud Firestore customers. |
OPTIMISTIC_WITH_ENTITY_GROUPS | Use optimistic concurrency control with entity groups by default. This is the only available setting for Cloud Datastore customers. This is the default setting for Cloud Datastore. |
OPTIMISTIC_WITH_ENTITY_GROUPS_VALUE | Use optimistic concurrency control with entity groups by default. This is the only available setting for Cloud Datastore customers. This is the default setting for Cloud Datastore. |
PESSIMISTIC | Use pessimistic concurrency control by default. This setting is available for Cloud Firestore customers. This is the default setting for Cloud Firestore. |
PESSIMISTIC_VALUE | Use pessimistic concurrency control by default. This setting is available for Cloud Firestore customers. This is the default setting for Cloud Firestore. |
UNRECOGNIZED |
Static Methods
Name | Description |
forNumber(int value) | |
getDescriptor() | |
internalGetValueMap() | |
valueOf(Descriptors.EnumValueDescriptor desc) | |
valueOf(int value) | Deprecated. Use #forNumber(int) instead. |
valueOf(String name) | |
values() |
Methods
Name | Description |
getDescriptorForType() | |
getNumber() | |
getValueDescriptor() |