Cloud Firestore V1 API - Class Google::Cloud::Firestore::V1::TransactionOptions::ReadWrite (v2.4.0)

Reference documentation and code samples for the Cloud Firestore V1 API class Google::Cloud::Firestore::V1::TransactionOptions::ReadWrite.

Options for a transaction that can be used to read and write documents.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#concurrency_mode

def concurrency_mode() -> ::Google::Cloud::Firestore::V1::TransactionOptions::ConcurrencyMode
Returns
  • (::Google::Cloud::Firestore::V1::TransactionOptions::ConcurrencyMode) — 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.

#concurrency_mode=

def concurrency_mode=(value) -> ::Google::Cloud::Firestore::V1::TransactionOptions::ConcurrencyMode
Parameter
  • value (::Google::Cloud::Firestore::V1::TransactionOptions::ConcurrencyMode) — 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.

Returns
  • (::Google::Cloud::Firestore::V1::TransactionOptions::ConcurrencyMode) — 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.

#retry_transaction

def retry_transaction() -> ::String
Returns
  • (::String) — An optional transaction to retry.

#retry_transaction=

def retry_transaction=(value) -> ::String
Parameter
  • value (::String) — An optional transaction to retry.
Returns
  • (::String) — An optional transaction to retry.