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

The request sent to the
UpdateFolder
method.

Only the `display_name` field can be changed. All other fields will be
ignored. Use the
[MoveFolder](https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.Client.FoldersClient#_Google_Cloud_ResourceManager_V3_Client_FoldersClient__moveFolder__) method to
change the `parent` field.

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

## Namespace

Google \\ Cloud \\ ResourceManager \\ V3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ folder` | `https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.Folder` Required. The new definition of the Folder. It must include the `name` field, which cannot be changed. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Required. Fields to be updated. Only the `display_name` can be updated. |

### getFolder

Required. The new definition of the Folder. It must include the `name`
field, which cannot be changed.

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

### hasFolder

### clearFolder

### setFolder

Required. The new definition of the Folder. It must include the `name`
field, which cannot be changed.

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

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

### getUpdateMask

Required. Fields to be updated.

Only the `display_name` can be updated.

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

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

Required. Fields to be updated.

Only the `display_name` can be updated.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `folder` | `https://docs.cloud.google.com/php/docs/reference/cloud-resource-manager/latest/V3.Folder` Required. The new definition of the Folder. It must include the `name` field, which cannot be changed. |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Required. Fields to be updated. Only the `display_name` can be updated. |

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