Reference documentation and code samples for the Cloud Firestore V1 Client class TransactionOptions.
Options for creating a new transaction.
Generated from protobuf message google.firestore.v1.TransactionOptions
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ read_only
Google\Cloud\Firestore\V1\TransactionOptions\PBReadOnly
The transaction can only be used for read operations.
↳ read_write
Google\Cloud\Firestore\V1\TransactionOptions\ReadWrite
The transaction can be used for both read and write operations.
getReadOnly
The transaction can only be used for read operations.
hasReadOnly
setReadOnly
The transaction can only be used for read operations.
$this
getReadWrite
The transaction can be used for both read and write operations.
hasReadWrite
setReadWrite
The transaction can be used for both read and write operations.
$this
getMode
string