Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentInput
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentInput
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb
Overview
Represents the intent to trigger programmatically rather than as a result of natural language processing. The intent input is only used for V3 agent.
Instance Attribute Summary collapse
-
#intent ⇒ String
Required.
-
#language_code ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1IntentInput
constructor
A new instance of GoogleCloudDialogflowV2beta1IntentInput.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1IntentInput
Returns a new instance of GoogleCloudDialogflowV2beta1IntentInput.
17477 17478 17479 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17477 def initialize(**args) update!(**args) end |
Instance Attribute Details
#intent ⇒ String
Required. The unique identifier of the intent in V3 agent. Format: projects//
locations//locations//agents//intents/.
Corresponds to the JSON property intent
17468 17469 17470 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17468 def intent @intent end |
#language_code ⇒ String
Required. The language of this conversational query. See Language Support for a list of the
currently supported language codes.
Corresponds to the JSON property languageCode
17475 17476 17477 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17475 def language_code @language_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
17482 17483 17484 17485 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17482 def update!(**args) @intent = args[:intent] if args.key?(:intent) @language_code = args[:language_code] if args.key?(:language_code) end |