# Google Cloud Resource Manager V3 Client - Class ListProjectsResponse (1.1.3)

1.1.3 (latest) 1.1.2 1.0.4 0.8.5 0.7.2 0.6.1 0.5.0 0.4.1 0.3.9 Reference documentation and code samples for the Google Cloud Resource Manager V3 Client class ListProjectsResponse.

A page of the response received from the
[ListProjects](https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.Client.ProjectsClient#_Google_Cloud_ResourceManager_V3_Client_ProjectsClient__listProjects__)
method.

A paginated response where more pages are available has
`next_page_token` set. This token can be used in a subsequent request to
retrieve the next request page.
NOTE: A response may contain fewer elements than the request `page_size` and
still have a `next_page_token`.

Generated from protobuf message `google.cloud.resourcemanager.v3.ListProjectsResponse`

## Namespace

Google \\ Cloud \\ ResourceManager \\ V3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ projects` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.Project>` The list of Projects under the parent. This list can be paginated. |
| `↳ next_page_token` | `string` Pagination token. If the result set is too large to fit in a single response, this token is returned. It encodes the position of the current result cursor. Feeding this value into a new list request with the `page_token` parameter gives the next page of the results. When `next_page_token` is not filled in, there is no next page and the list returned is the last page in the result set. Pagination tokens have a limited lifetime. |

### getProjects

The list of Projects under the parent. This list can be paginated.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.Project>` |   |

### setProjects

The list of Projects under the parent. This list can be paginated.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.Project>` |

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

### getNextPageToken

Pagination token.

If the result set is too large to fit in a single response, this token
is returned. It encodes the position of the current result cursor.
Feeding this value into a new list request with the `page_token` parameter
gives the next page of the results.
When `next_page_token` is not filled in, there is no next page and
the list returned is the last page in the result set.
Pagination tokens have a limited lifetime.

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

### setNextPageToken

Pagination token.

If the result set is too large to fit in a single response, this token
is returned. It encodes the position of the current result cursor.
Feeding this value into a new list request with the `page_token` parameter
gives the next page of the results.
When `next_page_token` is not filled in, there is no next page and
the list returned is the last page in the result set.
Pagination tokens have a limited lifetime.

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

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