# Google Cloud Access Approval V1 Client - Class UpdateAccessApprovalSettingsMessage (2.1.3)

2.1.3 (latest) 2.1.2 2.0.5 1.2.5 1.1.3 1.0.4 Reference documentation and code samples for the Google Cloud Access Approval V1 Client class UpdateAccessApprovalSettingsMessage.

Request to update access approval settings.

Generated from protobuf message `google.cloud.accessapproval.v1.UpdateAccessApprovalSettingsMessage`

## Namespace

Google \\ Cloud \\ AccessApproval \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ settings` | `https://docs.cloud.google.com/php/docs/reference/cloud-access-approval/latest/V1.AccessApprovalSettings` The new AccessApprovalSettings. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` The update mask applies to the settings. Only the top level fields of AccessApprovalSettings (notification_emails \& enrolled_services) are supported. For each field, if it is included, the currently stored value will be entirely overwritten with the value of the field passed in this request. For the `FieldMask` definition, see <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask> If this field is left unset, only the notification_emails field will be updated. |

### getSettings

The new AccessApprovalSettings.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-access-approval/latest/V1.AccessApprovalSettings|null` |   |

### hasSettings

### clearSettings

### setSettings

The new AccessApprovalSettings.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-access-approval/latest/V1.AccessApprovalSettings` |

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

### getUpdateMask

The update mask applies to the settings. Only the top level fields of
AccessApprovalSettings (notification_emails \& enrolled_services) are
supported. For each field, if it is included, the currently stored value
will be entirely overwritten with the value of the field passed in this
request.

For the `FieldMask` definition, see
<https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask>
If this field is left unset, only the notification_emails field will be
updated.

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

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

The update mask applies to the settings. Only the top level fields of
AccessApprovalSettings (notification_emails \& enrolled_services) are
supported. For each field, if it is included, the currently stored value
will be entirely overwritten with the value of the field passed in this
request.

For the `FieldMask` definition, see
<https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask>
If this field is left unset, only the notification_emails field will 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** |
| `settings` | `https://docs.cloud.google.com/php/docs/reference/cloud-access-approval/latest/V1.AccessApprovalSettings` The new AccessApprovalSettings. |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` The update mask applies to the settings. Only the top level fields of AccessApprovalSettings (notification_emails \& enrolled_services) are supported. For each field, if it is included, the currently stored value will be entirely overwritten with the value of the field passed in this request. For the `FieldMask` definition, see <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask> If this field is left unset, only the notification_emails field will be updated. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-access-approval/latest/V1.UpdateAccessApprovalSettingsMessage` |   |