Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3FlowMultiLanguageSettings

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3FlowMultiLanguageSettings

Returns a new instance of GoogleCloudDialogflowCxV3FlowMultiLanguageSettings.



3191
3192
3193
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3191

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

Instance Attribute Details

#enable_multi_language_detectionBoolean 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

Returns:

  • (Boolean)


3179
3180
3181
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3179

def enable_multi_language_detection
  @enable_multi_language_detection
end

#supported_response_language_codesArray<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

Returns:

  • (Array<String>)


3189
3190
3191
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3189

def supported_response_language_codes
  @supported_response_language_codes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3196
3197
3198
3199
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 3196

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