# Google Cloud Chronicle V1 Client - Class UpdateWatchlistRequest (0.4.0)

0.4.0 (latest) 0.3.0 0.2.3 0.1.2 Reference documentation and code samples for the Google Cloud Chronicle V1 Client class UpdateWatchlistRequest.

Request message for updating watchlist.

Generated from protobuf message `google.cloud.chronicle.v1.UpdateWatchlistRequest`

## Namespace

Google \\ Cloud \\ Chronicle \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ watchlist` | `https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/V1.Watchlist` Required. The watchlist to update. The watchlist's `name` field is used to identify the watchlist to update. Format: `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Optional. The list of fields to update. |

### getWatchlist

Required. The watchlist to update.

The watchlist's `name` field is used to identify the watchlist to update.
Format:
`projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}`

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

### hasWatchlist

### clearWatchlist

### setWatchlist

Required. The watchlist to update.

The watchlist's `name` field is used to identify the watchlist to update.
Format:
`projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}`

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

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

### getUpdateMask

Optional. The list of fields to update.

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

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

Optional. The list of fields to update.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `watchlist` | `https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/V1.Watchlist` Required. The watchlist to update. The watchlist's `name` field is used to identify the watchlist to update. Format: `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Optional. The list of fields to update. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/V1.UpdateWatchlistRequest` |   |