Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpec

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 understanding specification.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpec

Returns a new instance of GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpec.



19732
19733
19734
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 19732

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

Instance Attribute Details

#disable_spell_correctionBoolean Also known as: disable_spell_correction?

Optional. Whether to disable spell correction. The default value is false. Corresponds to the JSON property disableSpellCorrection

Returns:

  • (Boolean)


19719
19720
19721
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 19719

def disable_spell_correction
  @disable_spell_correction
end

#query_classification_specGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQueryClassificationSpec

Query classification specification. Corresponds to the JSON property queryClassificationSpec



19725
19726
19727
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 19725

def query_classification_spec
  @query_classification_spec
end

#query_rephraser_specGoogle::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQueryRephraserSpec

Query rephraser specification. Corresponds to the JSON property queryRephraserSpec



19730
19731
19732
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 19730

def query_rephraser_spec
  @query_rephraser_spec
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19737
19738
19739
19740
19741
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 19737

def update!(**args)
  @disable_spell_correction = args[:disable_spell_correction] if args.key?(:disable_spell_correction)
  @query_classification_spec = args[:query_classification_spec] if args.key?(:query_classification_spec)
  @query_rephraser_spec = args[:query_rephraser_spec] if args.key?(:query_rephraser_spec)
end