Cloud Spanner V1 API - Class Google::Cloud::Spanner::V1::BeginTransactionRequest (v0.17.0)

Reference documentation and code samples for the Cloud Spanner V1 API class Google::Cloud::Spanner::V1::BeginTransactionRequest.

The request for BeginTransaction.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#options

def options() -> ::Google::Cloud::Spanner::V1::TransactionOptions
Returns

#options=

def options=(value) -> ::Google::Cloud::Spanner::V1::TransactionOptions
Parameter
Returns

#request_options

def request_options() -> ::Google::Cloud::Spanner::V1::RequestOptions
Returns
  • (::Google::Cloud::Spanner::V1::RequestOptions) — Common options for this request. Priority is ignored for this request. Setting the priority in this request_options struct will not do anything. To set the priority for a transaction, set it on the reads and writes that are part of this transaction instead.

#request_options=

def request_options=(value) -> ::Google::Cloud::Spanner::V1::RequestOptions
Parameter
  • value (::Google::Cloud::Spanner::V1::RequestOptions) — Common options for this request. Priority is ignored for this request. Setting the priority in this request_options struct will not do anything. To set the priority for a transaction, set it on the reads and writes that are part of this transaction instead.
Returns
  • (::Google::Cloud::Spanner::V1::RequestOptions) — Common options for this request. Priority is ignored for this request. Setting the priority in this request_options struct will not do anything. To set the priority for a transaction, set it on the reads and writes that are part of this transaction instead.

#session

def session() -> ::String
Returns
  • (::String) — Required. The session in which the transaction runs.

#session=

def session=(value) -> ::String
Parameter
  • value (::String) — Required. The session in which the transaction runs.
Returns
  • (::String) — Required. The session in which the transaction runs.