# Cloud Translation V3 Client - Class AdaptiveMtTranslateResponse (2.3.0)

2.3.0 (latest) 2.2.0 2.1.2 2.0.3 1.21.0 1.20.2 1.19.0 1.18.1 1.17.7 1.16.0 1.15.4 1.14.3 1.13.3 1.12.12 Reference documentation and code samples for the Cloud Translation V3 Client class AdaptiveMtTranslateResponse.

An AdaptiveMtTranslate response.

Generated from protobuf message `google.cloud.translation.v3.AdaptiveMtTranslateResponse`

## Namespace

Google \\ Cloud \\ Translate \\ V3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ translations` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-translate/latest/V3.AdaptiveMtTranslation>` Output only. The translation. |
| `↳ language_code` | `string` Output only. The translation's language code. |
| `↳ glossary_translations` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-translate/latest/V3.AdaptiveMtTranslation>` Text translation response if a glossary is provided in the request. This could be the same as 'translation' above if no terms apply. |

### getTranslations

Output only. The translation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-translate/latest/V3.AdaptiveMtTranslation>` |   |

### setTranslations

Output only. The translation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-translate/latest/V3.AdaptiveMtTranslation>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLanguageCode

Output only. The translation's language code.

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

### setLanguageCode

Output only. The translation's language code.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getGlossaryTranslations

Text translation response if a glossary is provided in the request. This
could be the same as 'translation' above if no terms apply.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-translate/latest/V3.AdaptiveMtTranslation>` |   |

### setGlossaryTranslations

Text translation response if a glossary is provided in the request. This
could be the same as 'translation' above if no terms apply.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-translate/latest/V3.AdaptiveMtTranslation>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |