# Google Cloud Essential Contacts V1 Client - Class UpdateContactRequest (1.1.3)

1.1.3 (latest) 1.1.2 1.0.5 0.4.5 0.3.4 0.2.13 Reference documentation and code samples for the Google Cloud Essential Contacts V1 Client class UpdateContactRequest.

Request message for the UpdateContact method.

Generated from protobuf message `google.cloud.essentialcontacts.v1.UpdateContactRequest`

## Namespace

Google \\ Cloud \\ EssentialContacts \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ contact` | `https://docs.cloud.google.com/php/docs/reference/cloud-essential-contacts/latest/V1.Contact` Required. The contact resource to replace the existing saved contact. Note: the email address of the contact cannot be modified. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Optional. The update mask applied to the resource. For the `FieldMask` definition, see <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask> |

### getContact

Required. The contact resource to replace the existing saved contact. Note:
the email address of the contact cannot be modified.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-essential-contacts/latest/V1.Contact|null` |   |

### hasContact

### clearContact

### setContact

Required. The contact resource to replace the existing saved contact. Note:
the email address of the contact cannot be modified.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-essential-contacts/latest/V1.Contact` |

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

### getUpdateMask

Optional. The update mask applied to the resource. For the `FieldMask`
definition, see
<https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask>

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

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

Optional. The update mask applied to the resource. For the `FieldMask`
definition, see
<https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask>

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `contact` | `https://docs.cloud.google.com/php/docs/reference/cloud-essential-contacts/latest/V1.Contact` Required. The contact resource to replace the existing saved contact. Note: the email address of the contact cannot be modified. |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Optional. The update mask applied to the resource. For the `FieldMask` definition, see <https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#fieldmask> |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-essential-contacts/latest/V1.UpdateContactRequest` |   |