Class: Google::Apis::RetailV2beta::GoogleCloudRetailV2betaIntentClassificationConfigInlineForceIntent

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/retail_v2beta/classes.rb,
lib/google/apis/retail_v2beta/representations.rb,
lib/google/apis/retail_v2beta/representations.rb

Overview

An inline force intent classification configuration.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2betaIntentClassificationConfigInlineForceIntent

Returns a new instance of GoogleCloudRetailV2betaIntentClassificationConfigInlineForceIntent.



5345
5346
5347
# File 'lib/google/apis/retail_v2beta/classes.rb', line 5345

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

Instance Attribute Details

#intent_typeString

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

Returns:

  • (String)


5333
5334
5335
# File 'lib/google/apis/retail_v2beta/classes.rb', line 5333

def intent_type
  @intent_type
end

#operationString

Optional. The operation to perform for the query. Corresponds to the JSON property operation

Returns:

  • (String)


5338
5339
5340
# File 'lib/google/apis/retail_v2beta/classes.rb', line 5338

def operation
  @operation
end

#queryString

Optional. A example query. Corresponds to the JSON property query

Returns:

  • (String)


5343
5344
5345
# File 'lib/google/apis/retail_v2beta/classes.rb', line 5343

def query
  @query
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5350
5351
5352
5353
5354
# File 'lib/google/apis/retail_v2beta/classes.rb', line 5350

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