Interface TransactionOptions.ReadWriteOrBuilder (3.43.1)

public static interface TransactionOptions.ReadWriteOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getConcurrencyMode()

public abstract TransactionOptions.ConcurrencyMode getConcurrencyMode()

Optional. The concurrency control mode to use for this transaction.

A database is able to use different concurrency modes for different transactions simultaneously.

3rd party auth requests are only allowed to create optimistic read-write transactions and must specify that here even if the database-level setting is already configured to optimistic.

.google.firestore.v1.TransactionOptions.ConcurrencyMode concurrency_mode = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
TransactionOptions.ConcurrencyMode

The concurrencyMode.

getConcurrencyModeValue()

public abstract int getConcurrencyModeValue()

Optional. The concurrency control mode to use for this transaction.

A database is able to use different concurrency modes for different transactions simultaneously.

3rd party auth requests are only allowed to create optimistic read-write transactions and must specify that here even if the database-level setting is already configured to optimistic.

.google.firestore.v1.TransactionOptions.ConcurrencyMode concurrency_mode = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for concurrencyMode.

getRetryTransaction()

public abstract ByteString getRetryTransaction()

An optional transaction to retry.

bytes retry_transaction = 1;

Returns
Type Description
ByteString

The retryTransaction.