Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryClassificationSpec

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryClassificationSpec

Returns a new instance of GoogleCloudDiscoveryengineV1alphaAnswerQueryRequestQueryUnderstandingSpecQueryClassificationSpec.



4695
4696
4697
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4695

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

Instance Attribute Details

#typesArray<String>

Enabled query classification types. Corresponds to the JSON property types

Returns:

  • (Array<String>)


4693
4694
4695
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4693

def types
  @types
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4700
4701
4702
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 4700

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