# Google Cloud Chronicle V1 Client - Class GetWatchlistRequest (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 GetWatchlistRequest.

Request message for getting a watchlist.

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

## Namespace

Google \\ Cloud \\ Chronicle \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The parent, which owns this collection of watchlists. The name of the watchlist to retrieve. Format: `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` |

### getName

Required. The parent, which owns this collection of watchlists.

The name of the watchlist to retrieve.
Format:
`projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setName

Required. The parent, which owns this collection of watchlists.

The name of the watchlist to retrieve.
Format:
`projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The parent, which owns this collection of watchlists. The name of the watchlist to retrieve. Format: `projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}` Please see EntityServiceClient::watchlistName() for help formatting this field. |

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