Reference documentation and code samples for the Cloud Firestore V1beta1 Client class TransactionOptions.
Options for creating a new transaction.
Generated from protobuf message google.firestore.v1beta1.TransactionOptions
Namespace
Google \ Cloud \ Firestore \ V1beta1Methods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ read_only |
TransactionOptions\PBReadOnly
The transaction can only be used for read operations. |
↳ read_write |
TransactionOptions\ReadWrite
The transaction can be used for both read and write operations. |
getReadOnly
The transaction can only be used for read operations.
Returns | |
---|---|
Type | Description |
TransactionOptions\PBReadOnly|null |
hasReadOnly
setReadOnly
The transaction can only be used for read operations.
Parameter | |
---|---|
Name | Description |
var |
TransactionOptions\PBReadOnly
|
Returns | |
---|---|
Type | Description |
$this |
getReadWrite
The transaction can be used for both read and write operations.
Returns | |
---|---|
Type | Description |
TransactionOptions\ReadWrite|null |
hasReadWrite
setReadWrite
The transaction can be used for both read and write operations.
Parameter | |
---|---|
Name | Description |
var |
TransactionOptions\ReadWrite
|
Returns | |
---|---|
Type | Description |
$this |
getMode
Returns | |
---|---|
Type | Description |
string |