Cloud Spanner V1 Client - Class RollbackRequest (1.61.0)

Reference documentation and code samples for the Cloud Spanner V1 Client class RollbackRequest.

The request for Rollback.

Generated from protobuf message google.spanner.v1.RollbackRequest

Namespace

Google \ Cloud \ Spanner \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ session string

Required. The session in which the transaction to roll back is running.

↳ transaction_id string

Required. The transaction to roll back.

getSession

Required. The session in which the transaction to roll back is running.

Returns
TypeDescription
string

setSession

Required. The session in which the transaction to roll back is running.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getTransactionId

Required. The transaction to roll back.

Returns
TypeDescription
string

setTransactionId

Required. The transaction to roll back.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

static::build

Parameters
NameDescription
session string

Required. The session in which the transaction to roll back is running. Please see Google\Cloud\Spanner\V1\SpannerClient::sessionName() for help formatting this field.

transactionId string

Required. The transaction to roll back.

Returns
TypeDescription
Google\Cloud\Spanner\V1\RollbackRequest