# Network Security v1beta1 API - Class UpdateDnsThreatDetectorRequest (2.0.0-beta08)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [2.0.0-beta08 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkSecurity.V1Beta1/latest/Google.Cloud.NetworkSecurity.V1Beta1.UpdateDnsThreatDetectorRequest)
- [2.0.0-beta07](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkSecurity.V1Beta1/2.0.0-beta07/Google.Cloud.NetworkSecurity.V1Beta1.UpdateDnsThreatDetectorRequest)
- [1.0.0-beta02](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkSecurity.V1Beta1/1.0.0-beta02/Google.Cloud.NetworkSecurity.V1Beta1.UpdateDnsThreatDetectorRequest)

    public sealed class UpdateDnsThreatDetectorRequest : IMessage<UpdateDnsThreatDetectorRequest>, IEquatable<UpdateDnsThreatDetectorRequest>, IDeepCloneable<UpdateDnsThreatDetectorRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Network Security v1beta1 API class UpdateDnsThreatDetectorRequest.

The message for updating a DnsThreatDetector.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> UpdateDnsThreatDetectorRequest

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[UpdateDnsThreatDetectorRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkSecurity.V1Beta1/latest/Google.Cloud.NetworkSecurity.V1Beta1.UpdateDnsThreatDetectorRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[UpdateDnsThreatDetectorRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkSecurity.V1Beta1/latest/Google.Cloud.NetworkSecurity.V1Beta1.UpdateDnsThreatDetectorRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[UpdateDnsThreatDetectorRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkSecurity.V1Beta1/latest/Google.Cloud.NetworkSecurity.V1Beta1.UpdateDnsThreatDetectorRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.NetworkSecurity.V1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkSecurity.V1Beta1/latest/Google.Cloud.NetworkSecurity.V1Beta1)

## Assembly

Google.Cloud.NetworkSecurity.V1Beta1.dll

## Constructors

### UpdateDnsThreatDetectorRequest()

    public UpdateDnsThreatDetectorRequest()

### UpdateDnsThreatDetectorRequest(UpdateDnsThreatDetectorRequest)

    public UpdateDnsThreatDetectorRequest(UpdateDnsThreatDetectorRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkSecurity.V1Beta1/latest/Google.Cloud.NetworkSecurity.V1Beta1.UpdateDnsThreatDetectorRequest` |

## Properties

### DnsThreatDetector

    public DnsThreatDetector DnsThreatDetector { get; set; }

Required. The DnsThreatDetector resource being updated.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.NetworkSecurity.V1Beta1/latest/Google.Cloud.NetworkSecurity.V1Beta1.DnsThreatDetector` |   |

### UpdateMask

    public FieldMask UpdateMask { get; set; }

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.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.FieldMask.html` |   |