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.
12877 12878 12879 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12877 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
12868 12869 12870 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12868 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
12875 12876 12877 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12875 def language_code @language_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12882 12883 12884 12885 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12882 def update!(**args) @intent = args[:intent] if args.key?(:intent) @language_code = args[:language_code] if args.key?(:language_code) end |