Google Cloud Dialogflow Cx V3 Client - Class MultiLanguageSettings (0.4.0)

Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class MultiLanguageSettings.

Settings for multi-lingual agents.

Generated from protobuf message google.cloud.dialogflow.cx.v3.Flow.MultiLanguageSettings

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3 \ Flow

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ enable_multi_language_detection bool

Optional. Enable multi-language detection for this flow. This can be set only if agent level multi language setting is enabled.

↳ supported_response_language_codes array

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.

getEnableMultiLanguageDetection

Optional. Enable multi-language detection for this flow. This can be set only if agent level multi language setting is enabled.

Returns
Type Description
bool

setEnableMultiLanguageDetection

Optional. Enable multi-language detection for this flow. This can be set only if agent level multi language setting is enabled.

Parameter
Name Description
var bool
Returns
Type Description
$this

getSupportedResponseLanguageCodes

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.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setSupportedResponseLanguageCodes

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.

Parameter
Name Description
var string[]
Returns
Type Description
$this