Reference documentation and code samples for the Cloud Firestore V1 Client class Projection.
The projection of document's fields to return.
Generated from protobuf message google.firestore.v1.StructuredQuery.Projection
Namespace
Google \ Cloud \ Firestore \ V1 \ StructuredQueryMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ fields |
array<FieldReference>
The fields to return. If empty, all fields are returned. To only return the name of the document, use |
getFields
The fields to return.
If empty, all fields are returned. To only return the name
of the document, use ['__name__']
.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setFields
The fields to return.
If empty, all fields are returned. To only return the name
of the document, use ['__name__']
.
Parameter | |
---|---|
Name | Description |
var |
array<FieldReference>
|
Returns | |
---|---|
Type | Description |
$this |