Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpec

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

Overview

Search specification.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpec

Returns a new instance of GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpec.



1275
1276
1277
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1275

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

Instance Attribute Details

#search_paramsGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchParams

Search parameters. Corresponds to the JSON property searchParams



1268
1269
1270
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1268

def search_params
  @search_params
end

#search_result_listGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultList

Search result list. Corresponds to the JSON property searchResultList



1273
1274
1275
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1273

def search_result_list
  @search_result_list
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1280
1281
1282
1283
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1280

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