Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQueryClassificationSpec

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQueryClassificationSpec

Returns a new instance of GoogleCloudDiscoveryengineV1betaAnswerQueryRequestQueryUnderstandingSpecQueryClassificationSpec.



6087
6088
6089
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 6087

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

Instance Attribute Details

#typesArray<String>

Enabled query classification types. Corresponds to the JSON property types

Returns:

  • (Array<String>)


6085
6086
6087
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 6085

def types
  @types
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6092
6093
6094
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 6092

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