# Google Cloud Dialogflow Cx V3 Client - Class LanguageInfo (0.11.1)

0.11.1 (latest) 0.11.0 0.10.2 0.9.2 0.8.1 0.7.2 0.6.0 0.5.2 0.4.1 0.3.4 0.2.1 0.1.1 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](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.QueryInput#_Google_Cloud_Dialogflow_Cx_V3_QueryInput__getLanguageCode__). |
| `↳ 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](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.QueryInput#_Google_Cloud_Dialogflow_Cx_V3_QueryInput__getLanguageCode__).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setInputLanguageCode

The language code specified in the original
[request](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.QueryInput#_Google_Cloud_Dialogflow_Cx_V3_QueryInput__getLanguageCode__).

| **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` |   |