Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec

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

Query rephraser specification.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec

Returns a new instance of GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec.



4726
4727
4728
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4726

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)


4712
4713
4714
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4712

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)


4719
4720
4721
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4719

def max_rephrase_steps
  @max_rephrase_steps
end

#model_specGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpecModelSpec

Query Rephraser Model specification. Corresponds to the JSON property modelSpec



4724
4725
4726
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4724

def model_spec
  @model_spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4731
4732
4733
4734
4735
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4731

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