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

A message which contains notification details.

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

## Namespace

Google \\ Cloud \\ AdvisoryNotifications \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ body` | `https://docs.cloud.google.com/php/docs/reference/cloud-advisorynotifications/latest/V1.Message.Body` The message content. |
| `↳ attachments` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-advisorynotifications/latest/V1.Attachment>` The attachments to download. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` The Message creation timestamp. |
| `↳ localization_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Time when Message was localized |

### getBody

The message content.

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

### hasBody

### clearBody

### setBody

The message content.

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

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

### getAttachments

The attachments to download.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-advisorynotifications/latest/V1.Attachment>` |   |

### setAttachments

The attachments to download.

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

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

### getCreateTime

The Message creation timestamp.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

The Message creation timestamp.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getLocalizationTime

Time when Message was localized

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasLocalizationTime

### clearLocalizationTime

### setLocalizationTime

Time when Message was localized

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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