Reference documentation and code samples for the Cloud Firestore V1 Client class ConcurrencyMode.
The type of concurrency control mode for transactions.
Protobuf type google.firestore.v1.TransactionOptions.ConcurrencyMode
Namespace
Google \ Cloud \ Firestore \ V1 \ TransactionOptionsMethods
static::name
| Parameter | |
|---|---|
| Name | Description |
value |
mixed
|
static::value
| Parameter | |
|---|---|
| Name | Description |
name |
mixed
|
Constants
CONCURRENCY_MODE_UNSPECIFIED
Value: 0Start the transaction with the database-level default concurrency mode.
Generated from protobuf enum CONCURRENCY_MODE_UNSPECIFIED = 0;
OPTIMISTIC
Value: 1Use optimistic concurrency control for the new transaction.
Generated from protobuf enum OPTIMISTIC = 1;
PESSIMISTIC
Value: 2Use pessimistic concurrency control for the new transaction.
Generated from protobuf enum PESSIMISTIC = 2;