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.



7552
7553
7554
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7552

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)


7540
7541
7542
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7540

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


7550
7551
7552
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7550

def supported_response_language_codes
  @supported_response_language_codes
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7557
7558
7559
7560
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 7557

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