# Google Cloud Network Security V1 Client - Class ListDnsThreatDetectorsRequest (1.4.0)

1.4.0 (latest) 1.3.0 1.2.3 1.1.0 1.0.4 0.6.5 0.5.2 0.4.1 0.3.7 Reference documentation and code samples for the Google Cloud Network Security V1 Client class ListDnsThreatDetectorsRequest.

The message for requesting a list of DnsThreatDetectors in the project.

Generated from protobuf message `google.cloud.networksecurity.v1.ListDnsThreatDetectorsRequest`

## Namespace

Google \\ Cloud \\ NetworkSecurity \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent value for `ListDnsThreatDetectorsRequest`. |
| `↳ page_size` | `int` Optional. The requested page size. The server may return fewer items than requested. If unspecified, the server picks an appropriate default. |
| `↳ page_token` | `string` Optional. A page token received from a previous `ListDnsThreatDetectorsRequest` call. Provide this to retrieve the subsequent page. |

### getParent

Required. The parent value for `ListDnsThreatDetectorsRequest`.

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

### setParent

Required. The parent value for `ListDnsThreatDetectorsRequest`.

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

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

### getPageSize

Optional. The requested page size. The server may return fewer items than
requested. If unspecified, the server picks an appropriate default.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setPageSize

Optional. The requested page size. The server may return fewer items than
requested. If unspecified, the server picks an appropriate default.

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

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

### getPageToken

Optional. A page token received from a previous
`ListDnsThreatDetectorsRequest` call. Provide this to retrieve the
subsequent page.

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

### setPageToken

Optional. A page token received from a previous
`ListDnsThreatDetectorsRequest` call. Provide this to retrieve the
subsequent page.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent value for `ListDnsThreatDetectorsRequest`. Please see DnsThreatDetectorServiceClient::locationName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.ListDnsThreatDetectorsRequest` |   |