Class: Google::Apis::FirestoreV1beta1::StructuredAggregationQuery

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/firestore_v1beta1/classes.rb,
lib/google/apis/firestore_v1beta1/representations.rb,
lib/google/apis/firestore_v1beta1/representations.rb

Overview

Firestore query for running an aggregation over a StructuredQuery.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ StructuredAggregationQuery

Returns a new instance of StructuredAggregationQuery.



1990
1991
1992
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1990

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#aggregationsArray<Google::Apis::FirestoreV1beta1::Aggregation>

Optional. Series of aggregations to apply on top of the structured_query. Corresponds to the JSON property aggregations



1983
1984
1985
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1983

def aggregations
  @aggregations
end

#structured_queryGoogle::Apis::FirestoreV1beta1::StructuredQuery

A Firestore query. Corresponds to the JSON property structuredQuery



1988
1989
1990
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1988

def structured_query
  @structured_query
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1995
1996
1997
1998
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1995

def update!(**args)
  @aggregations = args[:aggregations] if args.key?(:aggregations)
  @structured_query = args[:structured_query] if args.key?(:structured_query)
end