Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec
- 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 rephraser specification.
Instance Attribute Summary collapse
-
#disable ⇒ Boolean
(also: #disable?)
Disable query rephraser.
-
#max_rephrase_steps ⇒ Fixnum
Max rephrase steps.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec
Returns a new instance of GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec.
3052 3053 3054 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3052 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disable ⇒ Boolean Also known as: disable?
Disable query rephraser.
Corresponds to the JSON property disable
3043 3044 3045 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3043 def disable @disable end |
#max_rephrase_steps ⇒ Fixnum
Max rephrase steps. The max number is 5 steps. If not set or set to < 1, it
will be set to 1 by default.
Corresponds to the JSON property maxRephraseSteps
3050 3051 3052 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3050 def max_rephrase_steps @max_rephrase_steps end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3057 3058 3059 3060 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3057 def update!(**args) @disable = args[:disable] if args.key?(:disable) @max_rephrase_steps = args[:max_rephrase_steps] if args.key?(:max_rephrase_steps) end |