# Google Cloud Support V2beta Client - Class Comment (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 Comment.

A comment associated with a support case.

Case comments are the primary way for Google Support to communicate with a
user who has opened a case. When a user responds to Google Support, the
user's responses also appear as comments.

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

## Namespace

Google \\ Cloud \\ Support \\ V2beta

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. Identifier. The resource name of the comment. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Output only. The time when the comment was created. |
| `↳ creator` | `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2beta.Actor` Output only. The user or Google Support agent who created the comment. |
| `↳ body` | `string` The full comment body. Maximum of 12800 characters. |
| `↳ plain_text_body` | `string` Output only. DEPRECATED. DO NOT USE. A duplicate of the `body` field. This field is only present for legacy reasons. |

### getName

Output only. Identifier. The resource name of the comment.

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

### setName

Output only. Identifier. The resource name of the comment.

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

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

### getCreateTime

Output only. The time when the comment was created.

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

### hasCreateTime

### clearCreateTime

### setCreateTime

Output only. The time when the comment was created.

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

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

### getCreator

Output only. The user or Google Support agent who created the comment.

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

### hasCreator

### clearCreator

### setCreator

Output only. The user or Google Support agent who created the comment.

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

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

### getBody

The full comment body.

Maximum of 12800 characters.

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

### setBody

The full comment body.

Maximum of 12800 characters.

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

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

### getPlainTextBody

Output only. DEPRECATED. DO NOT USE.

A duplicate of the `body` field.
This field is only present for legacy reasons.

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

### setPlainTextBody

Output only. DEPRECATED. DO NOT USE.

A duplicate of the `body` field.
This field is only present for legacy reasons.

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

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