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.
15278 15279 15280 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15278 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
15269 15270 15271 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15269 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
15276 15277 15278 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15276 def language_code @language_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
15283 15284 15285 15286 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 15283 def update!(**args) @intent = args[:intent] if args.key?(:intent) @language_code = args[:language_code] if args.key?(:language_code) end |