Cloud Firestore V1 Client - Class WriteResult (1.47.0)

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

The result of applying a write.

Generated from protobuf message google.firestore.v1.WriteResult

Namespace

Google \ Cloud \ Firestore \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ update_time Google\Protobuf\Timestamp

The last update time of the document after applying the write. Not set after a delete. If the write did not actually change the document, this will be the previous update_time.

↳ transform_results array<Google\Cloud\Firestore\V1\Value>

The results of applying each DocumentTransform.FieldTransform, in the same order.

getUpdateTime

The last update time of the document after applying the write. Not set after a delete.

If the write did not actually change the document, this will be the previous update_time.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasUpdateTime

clearUpdateTime

setUpdateTime

The last update time of the document after applying the write. Not set after a delete.

If the write did not actually change the document, this will be the previous update_time.

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

getTransformResults

The results of applying each DocumentTransform.FieldTransform, in the same order.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setTransformResults

The results of applying each DocumentTransform.FieldTransform, in the same order.

Parameter
Name Description
var array<Google\Cloud\Firestore\V1\Value>
Returns
Type Description
$this