Cloud Firestore V1beta1 Client - Class DocumentsTarget (1.38.0)

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

A target specified by a set of documents names.

Generated from protobuf message google.firestore.v1beta1.Target.DocumentsTarget

Namespace

Google \ Cloud \ Firestore \ V1beta1 \ Target

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ documents string[]

The names of the documents to retrieve. In the format: projects/{project_id}/databases/{database_id}/documents/{document_path}. The request will fail if any of the document is not a child resource of the given database. Duplicate names will be elided.

getDocuments

The names of the documents to retrieve. In the format: projects/{project_id}/databases/{database_id}/documents/{document_path}.

The request will fail if any of the document is not a child resource of the given database. Duplicate names will be elided.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setDocuments

The names of the documents to retrieve. In the format: projects/{project_id}/databases/{database_id}/documents/{document_path}.

The request will fail if any of the document is not a child resource of the given database. Duplicate names will be elided.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this