Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSampleQueryQueryEntry

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

Overview

Query Entry captures metadata to be used for search evaluation.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSampleQueryQueryEntry

Returns a new instance of GoogleCloudDiscoveryengineV1alphaSampleQueryQueryEntry.



14417
14418
14419
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 14417

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

Instance Attribute Details

#queryString

Required. The query. Corresponds to the JSON property query

Returns:

  • (String)


14410
14411
14412
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 14410

def query
  @query
end

#targetsArray<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSampleQueryQueryEntryTarget>

List of targets for the query. Corresponds to the JSON property targets



14415
14416
14417
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 14415

def targets
  @targets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14422
14423
14424
14425
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 14422

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