Cloud Firestore V1 Client - Class DocumentDelete (1.44.1)

Reference documentation and code samples for the Cloud Firestore V1 Client class DocumentDelete.

A Document has been deleted.

May be the result of multiple writes, including updates, the last of which deleted the Document. Multiple DocumentDelete messages may be returned for the same logical delete, if multiple targets are affected.

Generated from protobuf message google.firestore.v1.DocumentDelete

Namespace

Google \ Cloud \ Firestore \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ document string

The resource name of the Document that was deleted.

↳ removed_target_ids array

A set of target IDs for targets that previously matched this entity.

↳ read_time Google\Protobuf\Timestamp

The read timestamp at which the delete was observed. Greater or equal to the commit_time of the delete.

getDocument

The resource name of the Document that was deleted.

Returns
Type Description
string

setDocument

The resource name of the Document that was deleted.

Parameter
Name Description
var string
Returns
Type Description
$this

getRemovedTargetIds

A set of target IDs for targets that previously matched this entity.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setRemovedTargetIds

A set of target IDs for targets that previously matched this entity.

Parameter
Name Description
var int[]
Returns
Type Description
$this

getReadTime

The read timestamp at which the delete was observed.

Greater or equal to the commit_time of the delete.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasReadTime

clearReadTime

setReadTime

The read timestamp at which the delete was observed.

Greater or equal to the commit_time of the delete.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this