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

The request sent to the
[CreateProject](https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.Client.ProjectsClient#_Google_Cloud_ResourceManager_V3_Client_ProjectsClient__createProject__)
method.

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

## Namespace

Google \\ Cloud \\ ResourceManager \\ V3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ project` | `https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.Project` Required. The Project to create. Project ID is required. If the requested ID is unavailable, the request fails. If the `parent` field is set, the `resourcemanager.projects.create` permission is checked on the parent resource. If no parent is set and the authorization credentials belong to an Organization, the parent will be set to that Organization. |

### getProject

Required. The Project to create.

Project ID is required. If the requested ID is unavailable, the request
fails.
If the `parent` field is set, the `resourcemanager.projects.create`
permission is checked on the parent resource. If no parent is set and
the authorization credentials belong to an Organization, the parent
will be set to that Organization.

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

### hasProject

### clearProject

### setProject

Required. The Project to create.

Project ID is required. If the requested ID is unavailable, the request
fails.
If the `parent` field is set, the `resourcemanager.projects.create`
permission is checked on the parent resource. If no parent is set and
the authorization credentials belong to an Organization, the parent
will be set to that Organization.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.Project` Required. The Project to create. Project ID is required. If the requested ID is unavailable, the request fails. If the `parent` field is set, the `resourcemanager.projects.create` permission is checked on the parent resource. If no parent is set and the authorization credentials belong to an Organization, the parent will be set to that Organization. |

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