Reference documentation and code samples for the Cloud Firestore V1 API class Google::Cloud::Firestore::V1::TransactionOptions.
Options for creating a new transaction.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#read_only
def read_only() -> ::Google::Cloud::Firestore::V1::TransactionOptions::ReadOnly
-
(::Google::Cloud::Firestore::V1::TransactionOptions::ReadOnly) — The transaction can only be used for read operations.
Note: The following fields are mutually exclusive:
read_only
,read_write
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#read_only=
def read_only=(value) -> ::Google::Cloud::Firestore::V1::TransactionOptions::ReadOnly
-
value (::Google::Cloud::Firestore::V1::TransactionOptions::ReadOnly) — The transaction can only be used for read operations.
Note: The following fields are mutually exclusive:
read_only
,read_write
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Firestore::V1::TransactionOptions::ReadOnly) — The transaction can only be used for read operations.
Note: The following fields are mutually exclusive:
read_only
,read_write
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#read_write
def read_write() -> ::Google::Cloud::Firestore::V1::TransactionOptions::ReadWrite
-
(::Google::Cloud::Firestore::V1::TransactionOptions::ReadWrite) — The transaction can be used for both read and write operations.
Note: The following fields are mutually exclusive:
read_write
,read_only
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#read_write=
def read_write=(value) -> ::Google::Cloud::Firestore::V1::TransactionOptions::ReadWrite
-
value (::Google::Cloud::Firestore::V1::TransactionOptions::ReadWrite) — The transaction can be used for both read and write operations.
Note: The following fields are mutually exclusive:
read_write
,read_only
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Firestore::V1::TransactionOptions::ReadWrite) — The transaction can be used for both read and write operations.
Note: The following fields are mutually exclusive:
read_write
,read_only
. If a field in that set is populated, all other fields in the set will automatically be cleared.