# Google Cloud Support V2 Client - Class ListCommentsResponse (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 Reference documentation and code samples for the Google Cloud Support V2 Client class ListCommentsResponse.

The response message for the ListComments endpoint.

Generated from protobuf message `google.cloud.support.v2.ListCommentsResponse`

## Namespace

Google \\ Cloud \\ Support \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ comments` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2.Comment>` List of the comments associated with the case. |
| `↳ next_page_token` | `string` A token to retrieve the next page of results. Set this in the `page_token` field of subsequent `cases.comments.list` requests. If unspecified, there are no more results to retrieve. |

### getComments

List of the comments associated with the case.

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

### setComments

List of the comments associated with the case.

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

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

### getNextPageToken

A token to retrieve the next page of results. Set this in the `page_token`
field of subsequent `cases.comments.list` requests. If unspecified, there
are no more results to retrieve.

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

### setNextPageToken

A token to retrieve the next page of results. Set this in the `page_token`
field of subsequent `cases.comments.list` requests. If unspecified, there
are no more results to retrieve.

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

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