Reference documentation and code samples for the Cloud Firestore V1 API class Google::Cloud::Firestore::V1::BeginTransactionRequest.
The request for Firestore.BeginTransaction.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#database
def database() -> ::String
Returns
-
(::String) — Required. The database name. In the format:
projects/{project_id}/databases/{database_id}
.
#database=
def database=(value) -> ::String
Parameter
-
value (::String) — Required. The database name. In the format:
projects/{project_id}/databases/{database_id}
.
Returns
-
(::String) — Required. The database name. In the format:
projects/{project_id}/databases/{database_id}
.
#options
def options() -> ::Google::Cloud::Firestore::V1::TransactionOptions
Returns
- (::Google::Cloud::Firestore::V1::TransactionOptions) — The options for the transaction. Defaults to a read-write transaction.
#options=
def options=(value) -> ::Google::Cloud::Firestore::V1::TransactionOptions
Parameter
- value (::Google::Cloud::Firestore::V1::TransactionOptions) — The options for the transaction. Defaults to a read-write transaction.
Returns
- (::Google::Cloud::Firestore::V1::TransactionOptions) — The options for the transaction. Defaults to a read-write transaction.