# Interface CreateWatchlistRequestOrBuilder (0.31.0)

0.31.0 (latest) 0.29.0 0.26.0 0.25.0 0.23.0 0.21.0 0.20.0 0.19.0 0.18.0 0.16.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.8.0 0.6.0 0.5.0 0.2.0 0.1.0

    public interface CreateWatchlistRequestOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getParent()

    public abstract String getParent()

Required. The parent resource where this watchlist will be created.
Format: `projects/{project}/locations/{location}/instances/{instance}`

`
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The parent. |

### getParentBytes()

    public abstract ByteString getParentBytes()

Required. The parent resource where this watchlist will be created.
Format: `projects/{project}/locations/{location}/instances/{instance}`

`
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for parent. |

### getWatchlist()

    public abstract Watchlist getWatchlist()

Required. The watchlist to create.

`
.google.cloud.chronicle.v1.Watchlist watchlist = 3 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-chronicle/latest/com.google.cloud.chronicle.v1.Watchlist` | The watchlist. |

### getWatchlistId()

    public abstract String getWatchlistId()

Optional. The ID to use for the watchlist,
which will become the final component of the watchlist's resource name.

This value should be 4-63 characters, and valid characters
are /a-z-/.

`string watchlist_id = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The watchlistId. |

### getWatchlistIdBytes()

    public abstract ByteString getWatchlistIdBytes()

Optional. The ID to use for the watchlist,
which will become the final component of the watchlist's resource name.

This value should be 4-63 characters, and valid characters
are /a-z-/.

`string watchlist_id = 2 [(.google.api.field_behavior) = OPTIONAL];`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for watchlistId. |

### getWatchlistOrBuilder()

    public abstract WatchlistOrBuilder getWatchlistOrBuilder()

Required. The watchlist to create.

`
.google.cloud.chronicle.v1.Watchlist watchlist = 3 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-chronicle/latest/com.google.cloud.chronicle.v1.WatchlistOrBuilder` |   |

### hasWatchlist()

    public abstract boolean hasWatchlist()

Required. The watchlist to create.

`
.google.cloud.chronicle.v1.Watchlist watchlist = 3 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the watchlist field is set. |