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.



10386
10387
10388
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10386

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

Instance Attribute Details

#queryString

Required. The query. Corresponds to the JSON property query

Returns:

  • (String)


10379
10380
10381
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10379

def query
  @query
end

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

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



10384
10385
10386
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10384

def targets
  @targets
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10391
10392
10393
10394
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 10391

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