Cloud Datastore V1 Client - Class ReadWrite (1.22.1)

Reference documentation and code samples for the Cloud Datastore V1 Client class ReadWrite.

Options specific to read / write transactions.

Generated from protobuf message google.datastore.v1.TransactionOptions.ReadWrite

Namespace

Google \ Cloud \ Datastore \ V1 \ TransactionOptions

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ previous_transaction string

The transaction identifier of the transaction being retried.

getPreviousTransaction

The transaction identifier of the transaction being retried.

Returns
TypeDescription
string

setPreviousTransaction

The transaction identifier of the transaction being retried.

Parameter
NameDescription
var string
Returns
TypeDescription
$this