# Google Cloud Support V2beta Client - Class FeedItem (1.6.0)

1.6.0 (latest) 1.5.0 1.4.2 1.3.0 1.2.1 1.1.0 1.0.3 0.2.5 0.1.2

> [!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 Support V2beta Client class FeedItem.

A feed item associated with a support case.

Generated from protobuf message `google.cloud.support.v2beta.FeedItem`

## Namespace

Google \\ Cloud \\ Support \\ V2beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ comment` | `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2beta.Comment` Output only. A comment added to the case. |
| `↳ attachment` | `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2beta.Attachment` Output only. An attachment attached to the case. |
| `↳ email_message` | `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2beta.EmailMessage` Output only. An email message received in reply to the case. |
| `↳ deleted_attachment` | `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2beta.Attachment` Output only. A deleted attachment that used to be associated with the support case. |
| `↳ event_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. Time corresponding to the event of this item. |

### getComment

Output only. A comment added to the case.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2beta.Comment|null` |   |

### hasComment

### setComment

Output only. A comment added to the case.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2beta.Comment` |

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

### getAttachment

Output only. An attachment attached to the case.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2beta.Attachment|null` |   |

### hasAttachment

### setAttachment

Output only. An attachment attached to the case.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2beta.Attachment` |

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

### getEmailMessage

Output only. An email message received in reply to the case.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2beta.EmailMessage|null` |   |

### hasEmailMessage

### setEmailMessage

Output only. An email message received in reply to the case.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2beta.EmailMessage` |

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

### getDeletedAttachment

Output only. A deleted attachment that used to be associated with the
support case.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2beta.Attachment|null` |   |

### hasDeletedAttachment

### setDeletedAttachment

Output only. A deleted attachment that used to be associated with the
support case.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2beta.Attachment` |

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

### getEventTime

Output only. Time corresponding to the event of this item.

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

### hasEventTime

### clearEventTime

### setEventTime

Output only. Time corresponding to the event of this item.

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

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

### getEventObject

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