Class: Google::Apis::FirestoreV1beta1::RunAggregationQueryResponse
- Inherits:
-
Object
- Object
- Google::Apis::FirestoreV1beta1::RunAggregationQueryResponse
- 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
The response for Firestore.RunAggregationQuery.
Instance Attribute Summary collapse
-
#read_time ⇒ String
The time at which the aggregate value is valid for.
-
#result ⇒ Google::Apis::FirestoreV1beta1::AggregationResult
The result of a single bucket from a Firestore aggregation query.
-
#transaction ⇒ String
The transaction that was started as part of this request.
Instance Method Summary collapse
-
#initialize(**args) ⇒ RunAggregationQueryResponse
constructor
A new instance of RunAggregationQueryResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ RunAggregationQueryResponse
Returns a new instance of RunAggregationQueryResponse.
1846 1847 1848 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1846 def initialize(**args) update!(**args) end |
Instance Attribute Details
#read_time ⇒ String
The time at which the aggregate value is valid for.
Corresponds to the JSON property readTime
1830 1831 1832 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1830 def read_time @read_time end |
#result ⇒ Google::Apis::FirestoreV1beta1::AggregationResult
The result of a single bucket from a Firestore aggregation query. The keys of
aggregate_fields are the same for all results in an aggregation query, unlike
document queries which can have different fields present for each result.
Corresponds to the JSON property result
1837 1838 1839 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1837 def result @result end |
#transaction ⇒ String
The transaction that was started as part of this request. Only present on the
first response when the request requested to start a new transaction.
Corresponds to the JSON property transaction
NOTE: Values are automatically base64 encoded/decoded in the client library.
1844 1845 1846 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1844 def transaction @transaction end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1851 1852 1853 1854 1855 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 1851 def update!(**args) @read_time = args[:read_time] if args.key?(:read_time) @result = args[:result] if args.key?(:result) @transaction = args[:transaction] if args.key?(:transaction) end |