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
Returns
- (::Google::Cloud::Firestore::V1::TransactionOptions::ReadOnly) — The transaction can only be used for read operations.
#read_only=
def read_only=(value) -> ::Google::Cloud::Firestore::V1::TransactionOptions::ReadOnly
Parameter
- value (::Google::Cloud::Firestore::V1::TransactionOptions::ReadOnly) — The transaction can only be used for read operations.
Returns
- (::Google::Cloud::Firestore::V1::TransactionOptions::ReadOnly) — The transaction can only be used for read operations.
#read_write
def read_write() -> ::Google::Cloud::Firestore::V1::TransactionOptions::ReadWrite
Returns
- (::Google::Cloud::Firestore::V1::TransactionOptions::ReadWrite) — The transaction can be used for both read and write operations.
#read_write=
def read_write=(value) -> ::Google::Cloud::Firestore::V1::TransactionOptions::ReadWrite
Parameter
- value (::Google::Cloud::Firestore::V1::TransactionOptions::ReadWrite) — The transaction can be used for both read and write operations.
Returns
- (::Google::Cloud::Firestore::V1::TransactionOptions::ReadWrite) — The transaction can be used for both read and write operations.