Cloud Firestore V1beta1 Client - Class PBReadOnly (1.38.0)

Reference documentation and code samples for the Cloud Firestore V1beta1 Client class PBReadOnly.

Options for a transaction that can only be used to read documents.

Generated from protobuf message google.firestore.v1beta1.TransactionOptions.ReadOnly

Namespace

Google \ Cloud \ Firestore \ V1beta1 \ TransactionOptions

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ read_time Google\Protobuf\Timestamp

Reads documents at the given time. This may not be older than 60 seconds.

getReadTime

Reads documents at the given time.

This may not be older than 60 seconds.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasReadTime

setReadTime

Reads documents at the given time.

This may not be older than 60 seconds.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getConsistencySelector

Returns
TypeDescription
string