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

The message for updating a DnsThreatDetector.

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

## Namespace

Google \\ Cloud \\ NetworkSecurity \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Optional. The field mask is used to specify the fields to be overwritten in the DnsThreatDetector resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the mask is not provided then all fields present in the request will be overwritten. |
| `↳ dns_threat_detector` | `https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.DnsThreatDetector` Required. The DnsThreatDetector resource being updated. |

### getUpdateMask

Optional. The field mask is used to specify the fields to be overwritten in
the DnsThreatDetector resource by the update. The fields specified in the
update_mask are relative to the resource, not the full request. A field
will be overwritten if it is in the mask. If the mask is not provided then
all fields present in the request will be overwritten.

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

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

Optional. The field mask is used to specify the fields to be overwritten in
the DnsThreatDetector resource by the update. The fields specified in the
update_mask are relative to the resource, not the full request. A field
will be overwritten if it is in the mask. If the mask is not provided then
all fields present in the request will be overwritten.

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

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

### getDnsThreatDetector

Required. The DnsThreatDetector resource being updated.

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

### hasDnsThreatDetector

### clearDnsThreatDetector

### setDnsThreatDetector

Required. The DnsThreatDetector resource being updated.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `dnsThreatDetector` | `https://docs.cloud.google.com/php/docs/reference/cloud-network-security/latest/V1.DnsThreatDetector` Required. The DnsThreatDetector resource being updated. |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Optional. The field mask is used to specify the fields to be overwritten in the DnsThreatDetector resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the mask is not provided then all fields present in the request will be overwritten. |

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