Cloud Firestore V1 Client - Class DocumentMask (1.39.0)

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

A set of field paths on a document.

Used to restrict a get or update operation on a document to a subset of its fields. This is different from standard field masks, as this is always scoped to a Document, and takes in account the dynamic nature of Value.

Generated from protobuf message google.firestore.v1.DocumentMask

Namespace

Google \ Cloud \ Firestore \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ field_paths array

The list of field paths in the mask. See Document.fields for a field path syntax reference.

getFieldPaths

The list of field paths in the mask. See Document.fields for a field path syntax reference.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setFieldPaths

The list of field paths in the mask. See Document.fields for a field path syntax reference.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this