Cloud Firestore V1 API - Class Google::Cloud::Firestore::V1::TransactionOptions (v1.3.0)

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

#read_only=

def read_only=(value) -> ::Google::Cloud::Firestore::V1::TransactionOptions::ReadOnly
Parameter
Returns

#read_write

def read_write() -> ::Google::Cloud::Firestore::V1::TransactionOptions::ReadWrite
Returns

#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.

    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.

Returns