Class: Google::Apis::FirestoreV1::RunAggregationQueryResponse

Inherits:
Object
  • Object
show all
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 response for Firestore.RunAggregationQuery.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ RunAggregationQueryResponse

Returns a new instance of RunAggregationQueryResponse.



2331
2332
2333
# File 'lib/google/apis/firestore_v1/classes.rb', line 2331

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

Instance Attribute Details

#read_timeString

The time at which the aggregate value is valid for. Corresponds to the JSON property readTime

Returns:

  • (String)


2315
2316
2317
# File 'lib/google/apis/firestore_v1/classes.rb', line 2315

def read_time
  @read_time
end

#resultGoogle::Apis::FirestoreV1::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



2322
2323
2324
# File 'lib/google/apis/firestore_v1/classes.rb', line 2322

def result
  @result
end

#transactionString

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.

Returns:

  • (String)


2329
2330
2331
# File 'lib/google/apis/firestore_v1/classes.rb', line 2329

def transaction
  @transaction
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2336
2337
2338
2339
2340
# File 'lib/google/apis/firestore_v1/classes.rb', line 2336

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