Enum Database.ConcurrencyMode (3.0.21)

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

ProtocolMessageEnum

Static Fields

NameDescription
CONCURRENCY_MODE_UNSPECIFIED

Not used.

CONCURRENCY_MODE_UNSPECIFIED = 0;

CONCURRENCY_MODE_UNSPECIFIED_VALUE

Not used.

CONCURRENCY_MODE_UNSPECIFIED = 0;

OPTIMISTIC

Use optimistic concurrency control by default. This setting is available for Cloud Firestore customers.

OPTIMISTIC = 1;

OPTIMISTIC_VALUE

Use optimistic concurrency control by default. This setting is available for Cloud Firestore customers.

OPTIMISTIC = 1;

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 = 3;

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.

OPTIMISTIC_WITH_ENTITY_GROUPS = 3;

PESSIMISTIC

Use pessimistic concurrency control by default. This setting is available for Cloud Firestore customers. This is the default setting for Cloud Firestore.

PESSIMISTIC = 2;

PESSIMISTIC_VALUE

Use pessimistic concurrency control by default. This setting is available for Cloud Firestore customers. This is the default setting for Cloud Firestore.

PESSIMISTIC = 2;

UNRECOGNIZED

Static Methods

NameDescription
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

NameDescription
getDescriptorForType()
getNumber()
getValueDescriptor()