Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent
- Inherits:
-
Object
- Object
- Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/retail_v2alpha/classes.rb,
lib/google/apis/retail_v2alpha/representations.rb,
lib/google/apis/retail_v2alpha/representations.rb
Overview
An inline force intent classification configuration.
Instance Attribute Summary collapse
-
#intent_type ⇒ String
Optional.
-
#operation ⇒ String
Optional.
-
#query ⇒ String
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent
constructor
A new instance of GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent
Returns a new instance of GoogleCloudRetailV2alphaIntentClassificationConfigInlineForceIntent.
4339 4340 4341 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 4339 def initialize(**args) update!(**args) end |
Instance Attribute Details
#intent_type ⇒ String
Optional. The intent_type must match one of the predefined intent types
defined at https://cloud.google.com/retail/docs/reference/rpc/google.cloud.
retail.v2alpha#querytype
Corresponds to the JSON property intentType
4327 4328 4329 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 4327 def intent_type @intent_type end |
#operation ⇒ String
Optional. The operation to perform for the query.
Corresponds to the JSON property operation
4332 4333 4334 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 4332 def operation @operation end |
#query ⇒ String
Optional. A example query.
Corresponds to the JSON property query
4337 4338 4339 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 4337 def query @query end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4344 4345 4346 4347 4348 |
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 4344 def update!(**args) @intent_type = args[:intent_type] if args.key?(:intent_type) @operation = args[:operation] if args.key?(:operation) @query = args[:query] if args.key?(:query) end |