Cloud Firestore V1beta1 Client - Class TransactionOptions (1.53.0)

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 \ V1beta1

Methods

__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

hasReadOnly

setReadOnly

The transaction can only be used for read operations.

Parameter
Name
Description
Returns
Type
Description
$this

getReadWrite

The transaction can be used for both read and write operations.

Returns
Type
Description

hasReadWrite

setReadWrite

The transaction can be used for both read and write operations.

Parameter
Name
Description
Returns
Type
Description
$this

getMode

Returns
Type
Description
string
Design a Mobile Site
View Site in Mobile | Classic
Share by: