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 result was computed.
-
#result ⇒ Google::Apis::FirestoreV1beta1::AggregationResult
The result of a single bucket from a Firestore aggregation query.
-
#stats ⇒ Google::Apis::FirestoreV1beta1::ResultSetStats
Planning and execution statistics for the 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.
2178 2179 2180 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 2178 def initialize(**args) update!(**args) end |
Instance Attribute Details
#read_time ⇒ String
The time at which the aggregate result was computed. This is always
monotonically increasing; in this case, the previous AggregationResult in the
result stream are guaranteed not to have changed between their read_time and
this one. If the query returns no results, a response with read_time and no
result will be sent, and this represents the time at which the query was run.
Corresponds to the JSON property readTime
2157 2158 2159 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 2157 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
2164 2165 2166 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 2164 def result @result end |
#stats ⇒ Google::Apis::FirestoreV1beta1::ResultSetStats
Planning and execution statistics for the query.
Corresponds to the JSON property stats
2169 2170 2171 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 2169 def stats @stats 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.
2176 2177 2178 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 2176 def transaction @transaction end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2183 2184 2185 2186 2187 2188 |
# File 'lib/google/apis/firestore_v1beta1/classes.rb', line 2183 def update!(**args) @read_time = args[:read_time] if args.key?(:read_time) @result = args[:result] if args.key?(:result) @stats = args[:stats] if args.key?(:stats) @transaction = args[:transaction] if args.key?(:transaction) end |