Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGuidedSearchSpec
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaGuidedSearchSpec
- 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
Defines guided search spec.
Instance Attribute Summary collapse
-
#enable_refinement_attributes ⇒ Boolean
(also: #enable_refinement_attributes?)
Whether or not to enable and include refinement attributes in gudied search result.
-
#enable_related_questions ⇒ Boolean
(also: #enable_related_questions?)
Whether or not to enable and include related questions in search response.
-
#max_related_questions ⇒ Fixnum
Max number of related questions to be returned.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaGuidedSearchSpec
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaGuidedSearchSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaGuidedSearchSpec
Returns a new instance of GoogleCloudDiscoveryengineV1alphaGuidedSearchSpec.
7467 7468 7469 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 7467 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enable_refinement_attributes ⇒ Boolean Also known as: enable_refinement_attributes?
Whether or not to enable and include refinement attributes in gudied search
result.
Corresponds to the JSON property enableRefinementAttributes
7452 7453 7454 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 7452 def enable_refinement_attributes @enable_refinement_attributes end |
#enable_related_questions ⇒ Boolean Also known as:
Whether or not to enable and include related questions in search response.
Corresponds to the JSON property enableRelatedQuestions
7458 7459 7460 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 7458 def @enable_related_questions end |
#max_related_questions ⇒ Fixnum
Max number of related questions to be returned. The valid range is [1, 5]. If
enable_related_questions is true, the default value is 3.
Corresponds to the JSON property maxRelatedQuestions
7465 7466 7467 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 7465 def @max_related_questions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7472 7473 7474 7475 7476 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 7472 def update!(**args) @enable_refinement_attributes = args[:enable_refinement_attributes] if args.key?(:enable_refinement_attributes) @enable_related_questions = args[:enable_related_questions] if args.key?(:enable_related_questions) @max_related_questions = args[:max_related_questions] if args.key?(:max_related_questions) end |