# Google Cloud Network Security V1 Client - Class ListDnsThreatDetectorsResponse (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 ListDnsThreatDetectorsResponse.

The response message to requesting a list of DnsThreatDetectors.

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

## Namespace

Google \\ Cloud \\ NetworkSecurity \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ dns_threat_detectors` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.DnsThreatDetector>` The list of DnsThreatDetector resources. |
| `↳ next_page_token` | `string` A token, which can be sent as `page_token`, to retrieve the next page. |
| `↳ unreachable` | `string[]` Unordered list. Unreachable `DnsThreatDetector` resources. |

### getDnsThreatDetectors

The list of DnsThreatDetector resources.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.DnsThreatDetector>` |   |

### setDnsThreatDetectors

The list of DnsThreatDetector resources.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.DnsThreatDetector>` |

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

### getNextPageToken

A token, which can be sent as `page_token`, to retrieve the next page.

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

### setNextPageToken

A token, which can be sent as `page_token`, to retrieve the next page.

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

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

### getUnreachable

Unordered list. Unreachable `DnsThreatDetector` resources.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setUnreachable

Unordered list. Unreachable `DnsThreatDetector` resources.

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

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