# Google Cloud Advisory Notifications V1 Client - Class Text (1.2.4)

1.2.4 (latest) 1.2.3 1.1.1 1.0.3 0.8.3 0.7.0 0.6.0 0.5.1 0.4.0 0.3.2 0.2.1 0.1.0 Reference documentation and code samples for the Google Cloud Advisory Notifications V1 Client class Text.

A text object containing the English text and its localized copies.

Generated from protobuf message `google.cloud.advisorynotifications.v1.Text`

## Namespace

Google \\ Cloud \\ AdvisoryNotifications \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ en_text` | `string` The English copy. |
| `↳ localized_text` | `string` The requested localized copy (if applicable). |
| `↳ localization_state` | `int` Status of the localization. |

### getEnText

The English copy.

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

### setEnText

The English copy.

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

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

### getLocalizedText

The requested localized copy (if applicable).

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

### setLocalizedText

The requested localized copy (if applicable).

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

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

### getLocalizationState

Status of the localization.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [LocalizationState](https://docs.cloud.google.com/php/docs/reference/cloud-advisorynotifications/latest/V1.LocalizationState). |

### setLocalizationState

Status of the localization.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [LocalizationState](https://docs.cloud.google.com/php/docs/reference/cloud-advisorynotifications/latest/V1.LocalizationState). |

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