Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1FlowMultiLanguageSettings

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v3beta1/classes.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb

Overview

Settings for multi-lingual agents.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowCxV3beta1FlowMultiLanguageSettings

Returns a new instance of GoogleCloudDialogflowCxV3beta1FlowMultiLanguageSettings.



7259
7260
7261
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7259

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)


7247
7248
7249
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7247

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>)


7257
7258
7259
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7257

def supported_response_language_codes
  @supported_response_language_codes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7264
7265
7266
7267
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7264

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