# Google Cloud Advisory Notifications V1 Client - Class Subject (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 Subject.

A subject line of a notification.

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

## Namespace

Google \\ Cloud \\ AdvisoryNotifications \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ text` | `https://docs.cloud.google.com/php/docs/reference/cloud-advisorynotifications/latest/V1.Text` The text content. |

### getText

The text content.

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

### hasText

### clearText

### setText

The text content.

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

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