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 mode is available for Cloud Firestore databases. |
OPTIMISTIC_VALUE | Use optimistic concurrency control by default. This mode is available for Cloud Firestore databases. |
OPTIMISTIC_WITH_ENTITY_GROUPS | Use optimistic concurrency control with entity groups by default. This is the only available mode for Cloud Datastore. This mode is also available for Cloud Firestore with Datastore Mode but is not recommended. |
OPTIMISTIC_WITH_ENTITY_GROUPS_VALUE | Use optimistic concurrency control with entity groups by default. This is the only available mode for Cloud Datastore. This mode is also available for Cloud Firestore with Datastore Mode but is not recommended. |
PESSIMISTIC | Use pessimistic concurrency control by default. This mode is available for Cloud Firestore databases. This is the default setting for Cloud Firestore. |
PESSIMISTIC_VALUE | Use pessimistic concurrency control by default. This mode is available for Cloud Firestore databases. 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() |