# Cloud AutoML V1 Client - Class TranslationAnnotation (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 TranslationAnnotation.

Annotation details specific to translation.

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

## Namespace

Google \\ Cloud \\ AutoMl \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ translated_content` | `https://docs.cloud.google.com/php/docs/reference/cloud-automl/latest/V1.TextSnippet` Output only . The translated content. |

### getTranslatedContent

Output only . The translated content.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-automl/latest/V1.TextSnippet|null` |   |

### hasTranslatedContent

### clearTranslatedContent

### setTranslatedContent

Output only . The translated content.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-automl/latest/V1.TextSnippet` |

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