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-
(::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-
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.
-
(::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- (::String) — An optional transaction to retry.
#retry_transaction=
def retry_transaction=(value) -> ::String- value (::String) — An optional transaction to retry.
- (::String) — An optional transaction to retry.