Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec

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

Overview

Query rephraser specification.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec

Returns a new instance of GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec.



9717
9718
9719
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 9717

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

Instance Attribute Details

#disableBoolean Also known as: disable?

Disable query rephraser. Corresponds to the JSON property disable

Returns:

  • (Boolean)


9708
9709
9710
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 9708

def disable
  @disable
end

#max_rephrase_stepsFixnum

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

Returns:

  • (Fixnum)


9715
9716
9717
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 9715

def max_rephrase_steps
  @max_rephrase_steps
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9722
9723
9724
9725
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 9722

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