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.



832
833
834
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 832

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

Instance Attribute Details

#search_paramsGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchParams

Search parameters. Corresponds to the JSON property searchParams



825
826
827
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 825

def search_params
  @search_params
end

#search_result_listGoogle::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AnswerQueryRequestSearchSpecSearchResultList

Search result list. Corresponds to the JSON property searchResultList



830
831
832
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 830

def search_result_list
  @search_result_list
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



837
838
839
840
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 837

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