# Google Cloud Support V2 Client - Class UpdateCaseRequest (1.6.0)

1.6.0 (latest) 1.5.0 1.4.2 1.3.0 1.2.1 1.1.0 1.0.3 0.2.5 0.1.2 Reference documentation and code samples for the Google Cloud Support V2 Client class UpdateCaseRequest.

The request message for the UpdateCase endpoint

Generated from protobuf message `google.cloud.support.v2.UpdateCaseRequest`

## Namespace

Google \\ Cloud \\ Support \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ case` | `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2.PBCase` Required. The case to update. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` A list of attributes of the case that should be updated. Supported values are `priority`, `display_name`, and `subscriber_email_addresses`. If no fields are specified, all supported fields are updated. Be careful - if you do not provide a field mask, then you might accidentally clear some fields. For example, if you leave the field mask empty and do not provide a value for `subscriber_email_addresses`, then `subscriber_email_addresses` is updated to empty. |

### getCase

Required. The case to update.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2.PBCase|null` |   |

### hasCase

### clearCase

### setCase

Required. The case to update.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2.PBCase` |

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

### getUpdateMask

A list of attributes of the case that should be updated. Supported values
are `priority`, `display_name`, and `subscriber_email_addresses`. If no
fields are specified, all supported fields are updated.

Be careful - if you do not provide a field mask, then you might
accidentally clear some fields. For example, if you leave the field mask
empty and do not provide a value for `subscriber_email_addresses`, then
`subscriber_email_addresses` is updated to empty.

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

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

A list of attributes of the case that should be updated. Supported values
are `priority`, `display_name`, and `subscriber_email_addresses`. If no
fields are specified, all supported fields are updated.

Be careful - if you do not provide a field mask, then you might
accidentally clear some fields. For example, if you leave the field mask
empty and do not provide a value for `subscriber_email_addresses`, then
`subscriber_email_addresses` is updated to empty.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `case` | `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2.PBCase` Required. The case to update. |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` A list of attributes of the case that should be updated. Supported values are `priority`, `display_name`, and `subscriber_email_addresses`. If no fields are specified, all supported fields are updated. Be careful - if you do not provide a field mask, then you might accidentally clear some fields. For example, if you leave the field mask empty and do not provide a value for `subscriber_email_addresses`, then `subscriber_email_addresses` is updated to empty. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-support/latest/V2.UpdateCaseRequest` |   |