# Google Cloud Resource Manager V3 Client - Class ListProjectsRequest (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 ListProjectsRequest.

The request sent to 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.

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

## Namespace

Google \\ Cloud \\ ResourceManager \\ V3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The name of the parent resource whose projects are being listed. Only children of this parent resource are listed; descendants are not listed. If the parent is a folder, use the value `folders/{folder_id}`. If the parent is an organization, use the value `organizations/{org_id}`. |
| `↳ page_token` | `string` Optional. A pagination token returned from a previous call to [ListProjects](https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.Client.ProjectsClient#_Google_Cloud_ResourceManager_V3_Client_ProjectsClient__listProjects__) that indicates from where listing should continue. |
| `↳ page_size` | `int` Optional. The maximum number of projects to return in the response. The server can return fewer projects than requested. If unspecified, server picks an appropriate default. |
| `↳ show_deleted` | `bool` Optional. Indicate that projects in the `DELETE_REQUESTED` state should also be returned. Normally only `ACTIVE` projects are returned. |

### getParent

Required. The name of the parent resource whose projects are being listed.

Only children of this parent resource are listed; descendants are not
listed.
If the parent is a folder, use the value `folders/{folder_id}`. If the
parent is an organization, use the value `organizations/{org_id}`.

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

### setParent

Required. The name of the parent resource whose projects are being listed.

Only children of this parent resource are listed; descendants are not
listed.
If the parent is a folder, use the value `folders/{folder_id}`. If the
parent is an organization, use the value `organizations/{org_id}`.

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

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

### getPageToken

Optional. A pagination token returned from a previous call to
[ListProjects](https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.Client.ProjectsClient#_Google_Cloud_ResourceManager_V3_Client_ProjectsClient__listProjects__) that
indicates from where listing should continue.

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

### setPageToken

Optional. A pagination token returned from a previous call to
[ListProjects](https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.Client.ProjectsClient#_Google_Cloud_ResourceManager_V3_Client_ProjectsClient__listProjects__) that
indicates from where listing should continue.

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

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

### getPageSize

Optional. The maximum number of projects to return in the response.

The server can return fewer projects than requested.
If unspecified, server picks an appropriate default.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setPageSize

Optional. The maximum number of projects to return in the response.

The server can return fewer projects than requested.
If unspecified, server picks an appropriate default.

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

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

### getShowDeleted

Optional. Indicate that projects in the `DELETE_REQUESTED` state should
also be returned. Normally only `ACTIVE` projects are returned.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setShowDeleted

Optional. Indicate that projects in the `DELETE_REQUESTED` state should
also be returned. Normally only `ACTIVE` projects are returned.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The name of the parent resource whose projects are being listed. Only children of this parent resource are listed; descendants are not listed. If the parent is a folder, use the value `folders/{folder_id}`. If the parent is an organization, use the value `organizations/{org_id}`. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.ListProjectsRequest` |   |