Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec

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

Query rephraser specification.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1AnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec

Returns a new instance of GoogleCloudDiscoveryengineV1AnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec.



767
768
769
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 767

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)


758
759
760
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 758

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)


765
766
767
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 765

def max_rephrase_steps
  @max_rephrase_steps
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



772
773
774
775
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 772

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