Cloud Datastore V1 Client - Class ReadWrite (1.17.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

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.

Generated from protobuf field bytes previous_transaction = 1;

Returns
TypeDescription
string

setPreviousTransaction

The transaction identifier of the transaction being retried.

Generated from protobuf field bytes previous_transaction = 1;

Parameter
NameDescription
var string
Returns
TypeDescription
$this