Cloud Spanner V1 Client - Class RollbackRequest (1.76.1)

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
Name Description
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
Type Description
string

setSession

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

Parameter
Name Description
var string
Returns
Type Description
$this

getTransactionId

Required. The transaction to roll back.

Returns
Type Description
string

setTransactionId

Required. The transaction to roll back.

Parameter
Name Description
var string
Returns
Type Description
$this

static::build

Parameters
Name Description
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
Type Description
Google\Cloud\Spanner\V1\RollbackRequest