Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FlowMultiLanguageSettings
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FlowMultiLanguageSettings
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v3/classes.rb,
lib/google/apis/dialogflow_v3/representations.rb,
lib/google/apis/dialogflow_v3/representations.rb
Overview
Settings for multi-lingual agents.
Instance Attribute Summary collapse
-
#enable_multi_language_detection ⇒ Boolean
(also: #enable_multi_language_detection?)
Optional.
-
#supported_response_language_codes ⇒ Array<String>
Optional.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3FlowMultiLanguageSettings
constructor
A new instance of GoogleCloudDialogflowCxV3FlowMultiLanguageSettings.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowCxV3FlowMultiLanguageSettings
Returns a new instance of GoogleCloudDialogflowCxV3FlowMultiLanguageSettings.
3099 3100 3101 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3099 def initialize(**args) update!(**args) end |
Instance Attribute Details
#enable_multi_language_detection ⇒ Boolean Also known as: enable_multi_language_detection?
Optional. Enable multi-language detection for this flow. This can be set only
if agent level multi language setting is enabled.
Corresponds to the JSON property enableMultiLanguageDetection
3087 3088 3089 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3087 def enable_multi_language_detection @enable_multi_language_detection end |
#supported_response_language_codes ⇒ Array<String>
Optional. Agent will respond in the detected language if the detected language
code is in the supported resolved languages for this flow. This will be used
only if multi-language training is enabled in the agent and multi-language
detection is enabled in the flow. The supported languages must be a subset of
the languages supported by the agent.
Corresponds to the JSON property supportedResponseLanguageCodes
3097 3098 3099 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3097 def supported_response_language_codes @supported_response_language_codes end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3104 3105 3106 3107 |
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3104 def update!(**args) @enable_multi_language_detection = args[:enable_multi_language_detection] if args.key?(:enable_multi_language_detection) @supported_response_language_codes = args[:supported_response_language_codes] if args.key?(:supported_response_language_codes) end |