Class: Google::Apis::FirestoreV1beta1::Projection
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1beta1::Projection
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/firestore_v1beta1/classes.rb,
generated/google/apis/firestore_v1beta1/representations.rb,
generated/google/apis/firestore_v1beta1/representations.rb
Overview
The projection of document's fields to return.
Instance Attribute Summary collapse
-
#fields ⇒ Array<Google::Apis::FirestoreV1beta1::FieldReference>
The fields to return.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Projection
constructor
A new instance of Projection.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ Projection
Returns a new instance of Projection
1504 1505 1506 |
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1504 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fields ⇒ Array<Google::Apis::FirestoreV1beta1::FieldReference>
The fields to return.
If empty, all fields are returned. To only return the name
of the document, use ['__name__']
.
Corresponds to the JSON property fields
1502 1503 1504 |
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1502 def fields @fields end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1509 1510 1511 |
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1509 def update!(**args) @fields = args[:fields] if args.key?(:fields) end |