Class: Google::Apis::FirestoreV1::Projection
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1::Projection
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/firestore_v1/classes.rb,
lib/google/apis/firestore_v1/representations.rb,
lib/google/apis/firestore_v1/representations.rb
Overview
The projection of document's fields to return.
Instance Attribute Summary collapse
-
#fields ⇒ Array<Google::Apis::FirestoreV1::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.
Constructor Details
#initialize(**args) ⇒ Projection
Returns a new instance of Projection.
3255 3256 3257 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 3255 def initialize(**args) update!(**args) end |
Instance Attribute Details
#fields ⇒ Array<Google::Apis::FirestoreV1::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
3253 3254 3255 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 3253 def fields @fields end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3260 3261 3262 |
# File 'lib/google/apis/firestore_v1/classes.rb', line 3260 def update!(**args) @fields = args[:fields] if args.key?(:fields) end |