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

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

Only the `display_name` and `labels` fields can be change. Use the
[MoveProject](https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.Client.ProjectsClient#_Google_Cloud_ResourceManager_V3_Client_ProjectsClient__moveProject__) method to
change the `parent` field.

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

## 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 new definition of the project. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Optional. An update mask to selectively update fields. |

### getProject

Required. The new definition of the project.

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

### hasProject

### clearProject

### setProject

Required. The new definition of the project.

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

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

### getUpdateMask

Optional. An update mask to selectively update fields.

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

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

Optional. An update mask to selectively update fields.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `project` | `https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.Project` Required. The new definition of the project. |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Optional. An update mask to selectively update fields. |

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