Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResult

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

Guided search result. The guided search helps user to refine the search results and narrow down to the real needs from a broaded search results.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResult

Returns a new instance of GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResult.



11918
11919
11920
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 11918

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

Instance Attribute Details

#follow_up_questionsArray<String>

Suggested follow-up questions. Corresponds to the JSON property followUpQuestions

Returns:

  • (Array<String>)


11911
11912
11913
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 11911

def follow_up_questions
  @follow_up_questions
end

#refinement_attributesArray<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSearchResponseGuidedSearchResultRefinementAttribute>

A list of ranked refinement attributes. Corresponds to the JSON property refinementAttributes



11916
11917
11918
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 11916

def refinement_attributes
  @refinement_attributes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



11923
11924
11925
11926
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 11923

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