# Cloud AutoML V1 Client - Class TranslationDatasetMetadata (2.1.3)

2.1.3 (latest) 2.1.2 2.0.5 1.6.5 1.5.4 1.4.17 Reference documentation and code samples for the Cloud AutoML V1 Client class TranslationDatasetMetadata.

Dataset metadata that is specific to translation.

Generated from protobuf message `google.cloud.automl.v1.TranslationDatasetMetadata`

## Namespace

Google \\ Cloud \\ AutoMl \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ source_language_code` | `string` Required. The BCP-47 language code of the source language. |
| `↳ target_language_code` | `string` Required. The BCP-47 language code of the target language. |

### getSourceLanguageCode

Required. The BCP-47 language code of the source language.

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

### setSourceLanguageCode

Required. The BCP-47 language code of the source language.

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

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

### getTargetLanguageCode

Required. The BCP-47 language code of the target language.

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

### setTargetLanguageCode

Required. The BCP-47 language code of the target language.

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

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