# Google Cloud Media Translation V1beta1 Client - Class TextTranslationResult (0.6.2)

0.6.2 (latest) 0.6.1 0.5.2 0.4.5 0.3.3 0.2.12

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Media Translation V1beta1 Client class TextTranslationResult.

Text translation result.

Generated from protobuf message `google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResult.TextTranslationResult`

## Namespace

Google \\ Cloud \\ MediaTranslation \\ V1beta1 \\ StreamingTranslateSpeechResult

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ translation` | `string` Output only. The translated sentence. |
| `↳ is_final` | `bool` Output only. If `false`, this `StreamingTranslateSpeechResult` represents an interim result that may change. If `true`, this is the final time the translation service will return this particular `StreamingTranslateSpeechResult`, the streaming translator will not return any further hypotheses for this portion of the transcript and corresponding audio. |

### getTranslation

Output only. The translated sentence.

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

### setTranslation

Output only. The translated sentence.

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

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

### getIsFinal

Output only. If `false`, this `StreamingTranslateSpeechResult` represents
an interim result that may change. If `true`, this is the final time the
translation service will return this particular
`StreamingTranslateSpeechResult`, the streaming translator will not
return any further hypotheses for this portion of the transcript and
corresponding audio.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setIsFinal

Output only. If `false`, this `StreamingTranslateSpeechResult` represents
an interim result that may change. If `true`, this is the final time the
translation service will return this particular
`StreamingTranslateSpeechResult`, the streaming translator will not
return any further hypotheses for this portion of the transcript and
corresponding audio.

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

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