Cloud Firestore V1 Client - Class ConcurrencyMode (2.3.3)

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 \ TransactionOptions

Methods

static::name

Parameter
Name Description
value mixed

static::value

Parameter
Name Description
name mixed

Constants

CONCURRENCY_MODE_UNSPECIFIED

Value: 0

Start the transaction with the database-level default concurrency mode.

Generated from protobuf enum CONCURRENCY_MODE_UNSPECIFIED = 0;

OPTIMISTIC

Value: 1

Use optimistic concurrency control for the new transaction.

Generated from protobuf enum OPTIMISTIC = 1;

PESSIMISTIC

Value: 2

Use pessimistic concurrency control for the new transaction.

Generated from protobuf enum PESSIMISTIC = 2;