Class: Google::Apis::FirestoreV1::QueryTarget

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

A target specified by a query.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ QueryTarget

Returns a new instance of QueryTarget.



3339
3340
3341
# File 'lib/google/apis/firestore_v1/classes.rb', line 3339

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

Instance Attribute Details

#parentString

The parent resource name. In the format: projects/project_id/databases/ database_id/documents or projects/project_id/databases/database_id/ documents/document_path`. For example:projects/my-project/databases/my- database/documentsorprojects/my-project/databases/my-database/documents/ chatrooms/my-chatroom Corresponds to the JSON propertyparent`

Returns:

  • (String)


3330
3331
3332
# File 'lib/google/apis/firestore_v1/classes.rb', line 3330

def parent
  @parent
end

#structured_queryGoogle::Apis::FirestoreV1::StructuredQuery

A Firestore query. The query stages are executed in the following order: 1. from 2. where 3. select 4. order_by + start_at + end_at 5. offset 6. limit 7. find_nearest Corresponds to the JSON property structuredQuery



3337
3338
3339
# File 'lib/google/apis/firestore_v1/classes.rb', line 3337

def structured_query
  @structured_query
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3344
3345
3346
3347
# File 'lib/google/apis/firestore_v1/classes.rb', line 3344

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