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

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

Represents the language information of the request.

Generated from protobuf message google.cloud.dialogflow.cx.v3.LanguageInfo

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ input_language_code string

The language code specified in the original request.

↳ resolved_language_code string

The language code detected for this request based on the user conversation.

↳ confidence_score float

The confidence score of the detected language between 0 and 1.

getInputLanguageCode

The language code specified in the original request.

Returns
Type Description
string

setInputLanguageCode

The language code specified in the original request.

Parameter
Name Description
var string
Returns
Type Description
$this

getResolvedLanguageCode

The language code detected for this request based on the user conversation.

Returns
Type Description
string

setResolvedLanguageCode

The language code detected for this request based on the user conversation.

Parameter
Name Description
var string
Returns
Type Description
$this

getConfidenceScore

The confidence score of the detected language between 0 and 1.

Returns
Type Description
float

setConfidenceScore

The confidence score of the detected language between 0 and 1.

Parameter
Name Description
var float
Returns
Type Description
$this