Cloud Spanner V1 API - Class Google::Cloud::Spanner::V1::BeginTransactionRequest (v1.4.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

#mutation_key

def mutation_key() -> ::Google::Cloud::Spanner::V1::Mutation
Returns
  • (::Google::Cloud::Spanner::V1::Mutation) — Optional. Required for read-write transactions on a multiplexed session that commit mutations but do not perform any reads or queries. Clients should randomly select one of the mutations from the mutation set and send it as a part of this request. This feature is not yet supported and will result in an UNIMPLEMENTED error.

#mutation_key=

def mutation_key=(value) -> ::Google::Cloud::Spanner::V1::Mutation
Parameter
  • value (::Google::Cloud::Spanner::V1::Mutation) — Optional. Required for read-write transactions on a multiplexed session that commit mutations but do not perform any reads or queries. Clients should randomly select one of the mutations from the mutation set and send it as a part of this request. This feature is not yet supported and will result in an UNIMPLEMENTED error.
Returns
  • (::Google::Cloud::Spanner::V1::Mutation) — Optional. Required for read-write transactions on a multiplexed session that commit mutations but do not perform any reads or queries. Clients should randomly select one of the mutations from the mutation set and send it as a part of this request. This feature is not yet supported and will result in an UNIMPLEMENTED error.

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