Google Cloud Ces V1 Client - Class LanguageSettings (0.1.0)

Reference documentation and code samples for the Google Cloud Ces V1 Client class LanguageSettings.

Language settings of the app.

Generated from protobuf message google.cloud.ces.v1.LanguageSettings

Namespace

Google \ Cloud \ Ces \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ default_language_code
string

Optional. The default language code of the app.

↳ supported_language_codes
array

Optional. List of languages codes supported by the app, in addition to the default_language_code .

↳ enable_multilingual_support
bool

Optional. Enables multilingual support. If true, agents in the app will use pre-built instructions to improve handling of multilingual input.

↳ fallback_action
string

Optional. The action to perform when an agent receives input in an unsupported language. This can be a predefined action or a custom tool call. Valid values are: - A tool's full resource name, which triggers a specific tool execution. - A predefined system action, such as "escalate" or "exit", which triggers an EndSession signal with corresponding metadata to terminate the conversation.

getDefaultLanguageCode

Optional. The default language code of the app.

Returns
Type
Description
string

setDefaultLanguageCode

Optional. The default language code of the app.

Parameter
Name
Description
var
string
Returns
Type
Description
$this

getSupportedLanguageCodes

Optional. List of languages codes supported by the app, in addition to the default_language_code .

Returns
Type
Description

setSupportedLanguageCodes

Optional. List of languages codes supported by the app, in addition to the default_language_code .

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

getEnableMultilingualSupport

Optional. Enables multilingual support. If true, agents in the app will use pre-built instructions to improve handling of multilingual input.

Returns
Type
Description
bool

setEnableMultilingualSupport

Optional. Enables multilingual support. If true, agents in the app will use pre-built instructions to improve handling of multilingual input.

Parameter
Name
Description
var
bool
Returns
Type
Description
$this

getFallbackAction

Optional. The action to perform when an agent receives input in an unsupported language.

This can be a predefined action or a custom tool call. Valid values are:

  • A tool's full resource name, which triggers a specific tool execution.
  • A predefined system action, such as "escalate" or "exit", which triggers an EndSession signal with corresponding metadata to terminate the conversation.
Returns
Type
Description
string

setFallbackAction

Optional. The action to perform when an agent receives input in an unsupported language.

This can be a predefined action or a custom tool call. Valid values are:

  • A tool's full resource name, which triggers a specific tool execution.
  • A predefined system action, such as "escalate" or "exit", which triggers an EndSession signal with corresponding metadata to terminate the conversation.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: