Cloud Datastore V1 Client - Class ReadWrite (2.0.3) Stay organized with collections Save and categorize content based on your preferences.
Reference documentation and code samples for the Cloud Datastore V1 Client class ReadWrite.
Options specific to read / write transactions.
Generated from protobuf messagegoogle.datastore.v1.TransactionOptions.ReadWrite
Namespace
Google \ Cloud \ Datastore \ V1 \ TransactionOptionsMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data | arrayOptional. Data for populating the Message object. |
↳ previous_transaction | stringThe transaction identifier of the transaction being retried. |
getPreviousTransaction
The transaction identifier of the transaction being retried.
| Returns | |
|---|---|
| Type | Description |
string | |
setPreviousTransaction
The transaction identifier of the transaction being retried.
| Parameter | |
|---|---|
| Name | Description |
var | string |
| Returns | |
|---|---|
| Type | Description |
$this | |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-01-24 UTC.