Class: Google::Apis::FirestoreV1beta1::QueryTarget

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

Overview

A target specified by a query.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ QueryTarget

Returns a new instance of QueryTarget.



1501
1502
1503
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1501

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/documentsor projects/my-project/databases/my-database/documents/chatrooms/my-chatroom Corresponds to the JSON propertyparent`

Returns:

  • (String)


1494
1495
1496
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1494

def parent
  @parent
end

#structured_queryGoogle::Apis::FirestoreV1beta1::StructuredQuery

A Firestore query. Corresponds to the JSON property structuredQuery



1499
1500
1501
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1499

def structured_query
  @structured_query
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1506
1507
1508
1509
# File 'generated/google/apis/firestore_v1beta1/classes.rb', line 1506

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