Google Cloud Dialogflow V2 Client - Class TranslationSkillConfig (2.8.0)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class TranslationSkillConfig.

Translation skill configuration for the companion agent.

Generated from protobuf message google.cloud.dialogflow.v2.CompanionAgent.TranslationSkillConfig

Namespace

Google \ Cloud \ Dialogflow \ V2 \ CompanionAgent

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ agent_language_code string

Optional. Target language code for the agent, in IETF BCP-47 format (e.g., "en-US").

↳ customer_language_code string

Optional. Target language code for the customer, in IETF BCP-47 format (e.g., "es").

getAgentLanguageCode

Optional. Target language code for the agent, in IETF BCP-47 format (e.g., "en-US").

Returns
Type Description
string

setAgentLanguageCode

Optional. Target language code for the agent, in IETF BCP-47 format (e.g., "en-US").

Parameter
Name Description
var string
Returns
Type Description
$this

getCustomerLanguageCode

Optional. Target language code for the customer, in IETF BCP-47 format (e.g., "es").

Returns
Type Description
string

setCustomerLanguageCode

Optional. Target language code for the customer, in IETF BCP-47 format (e.g., "es").

Parameter
Name Description
var string
Returns
Type Description
$this