Class UpdateDnsThreatDetectorRequest.Builder (0.85.0)

public static final class UpdateDnsThreatDetectorRequest.Builder extends GeneratedMessageV3.Builder<UpdateDnsThreatDetectorRequest.Builder> implements UpdateDnsThreatDetectorRequestOrBuilder

The message for updating a DnsThreatDetector.

Protobuf type google.cloud.networksecurity.v1beta1.UpdateDnsThreatDetectorRequest

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public UpdateDnsThreatDetectorRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateDnsThreatDetectorRequest.Builder
Overrides

build()

public UpdateDnsThreatDetectorRequest build()
Returns
Type Description
UpdateDnsThreatDetectorRequest

buildPartial()

public UpdateDnsThreatDetectorRequest buildPartial()
Returns
Type Description
UpdateDnsThreatDetectorRequest

clear()

public UpdateDnsThreatDetectorRequest.Builder clear()
Returns
Type Description
UpdateDnsThreatDetectorRequest.Builder
Overrides

clearDnsThreatDetector()

public UpdateDnsThreatDetectorRequest.Builder clearDnsThreatDetector()

Required. The DnsThreatDetector resource being updated.

.google.cloud.networksecurity.v1beta1.DnsThreatDetector dns_threat_detector = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
UpdateDnsThreatDetectorRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public UpdateDnsThreatDetectorRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
UpdateDnsThreatDetectorRequest.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public UpdateDnsThreatDetectorRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
UpdateDnsThreatDetectorRequest.Builder
Overrides

clearUpdateMask()

public UpdateDnsThreatDetectorRequest.Builder clearUpdateMask()

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.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
UpdateDnsThreatDetectorRequest.Builder

clone()

public UpdateDnsThreatDetectorRequest.Builder clone()
Returns
Type Description
UpdateDnsThreatDetectorRequest.Builder
Overrides

getDefaultInstanceForType()

public UpdateDnsThreatDetectorRequest getDefaultInstanceForType()
Returns
Type Description
UpdateDnsThreatDetectorRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDnsThreatDetector()

public DnsThreatDetector getDnsThreatDetector()

Required. The DnsThreatDetector resource being updated.

.google.cloud.networksecurity.v1beta1.DnsThreatDetector dns_threat_detector = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DnsThreatDetector

The dnsThreatDetector.

getDnsThreatDetectorBuilder()

public DnsThreatDetector.Builder getDnsThreatDetectorBuilder()

Required. The DnsThreatDetector resource being updated.

.google.cloud.networksecurity.v1beta1.DnsThreatDetector dns_threat_detector = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DnsThreatDetector.Builder

getDnsThreatDetectorOrBuilder()

public DnsThreatDetectorOrBuilder getDnsThreatDetectorOrBuilder()

Required. The DnsThreatDetector resource being updated.

.google.cloud.networksecurity.v1beta1.DnsThreatDetector dns_threat_detector = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DnsThreatDetectorOrBuilder

getUpdateMask()

public FieldMask 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.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FieldMask

The updateMask.

getUpdateMaskBuilder()

public FieldMask.Builder getUpdateMaskBuilder()

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.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Builder

getUpdateMaskOrBuilder()

public FieldMaskOrBuilder getUpdateMaskOrBuilder()

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.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
FieldMaskOrBuilder

hasDnsThreatDetector()

public boolean hasDnsThreatDetector()

Required. The DnsThreatDetector resource being updated.

.google.cloud.networksecurity.v1beta1.DnsThreatDetector dns_threat_detector = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the dnsThreatDetector field is set.

hasUpdateMask()

public boolean hasUpdateMask()

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.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the updateMask field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDnsThreatDetector(DnsThreatDetector value)

public UpdateDnsThreatDetectorRequest.Builder mergeDnsThreatDetector(DnsThreatDetector value)

Required. The DnsThreatDetector resource being updated.

.google.cloud.networksecurity.v1beta1.DnsThreatDetector dns_threat_detector = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DnsThreatDetector
Returns
Type Description
UpdateDnsThreatDetectorRequest.Builder

mergeFrom(UpdateDnsThreatDetectorRequest other)

public UpdateDnsThreatDetectorRequest.Builder mergeFrom(UpdateDnsThreatDetectorRequest other)
Parameter
Name Description
other UpdateDnsThreatDetectorRequest
Returns
Type Description
UpdateDnsThreatDetectorRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public UpdateDnsThreatDetectorRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
UpdateDnsThreatDetectorRequest.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public UpdateDnsThreatDetectorRequest.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
UpdateDnsThreatDetectorRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final UpdateDnsThreatDetectorRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateDnsThreatDetectorRequest.Builder
Overrides

mergeUpdateMask(FieldMask value)

public UpdateDnsThreatDetectorRequest.Builder mergeUpdateMask(FieldMask value)

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.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateDnsThreatDetectorRequest.Builder

setDnsThreatDetector(DnsThreatDetector value)

public UpdateDnsThreatDetectorRequest.Builder setDnsThreatDetector(DnsThreatDetector value)

Required. The DnsThreatDetector resource being updated.

.google.cloud.networksecurity.v1beta1.DnsThreatDetector dns_threat_detector = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value DnsThreatDetector
Returns
Type Description
UpdateDnsThreatDetectorRequest.Builder

setDnsThreatDetector(DnsThreatDetector.Builder builderForValue)

public UpdateDnsThreatDetectorRequest.Builder setDnsThreatDetector(DnsThreatDetector.Builder builderForValue)

Required. The DnsThreatDetector resource being updated.

.google.cloud.networksecurity.v1beta1.DnsThreatDetector dns_threat_detector = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue DnsThreatDetector.Builder
Returns
Type Description
UpdateDnsThreatDetectorRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public UpdateDnsThreatDetectorRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
UpdateDnsThreatDetectorRequest.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public UpdateDnsThreatDetectorRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
UpdateDnsThreatDetectorRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final UpdateDnsThreatDetectorRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
UpdateDnsThreatDetectorRequest.Builder
Overrides

setUpdateMask(FieldMask value)

public UpdateDnsThreatDetectorRequest.Builder setUpdateMask(FieldMask value)

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.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value FieldMask
Returns
Type Description
UpdateDnsThreatDetectorRequest.Builder

setUpdateMask(FieldMask.Builder builderForValue)

public UpdateDnsThreatDetectorRequest.Builder setUpdateMask(FieldMask.Builder builderForValue)

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.

.google.protobuf.FieldMask update_mask = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
UpdateDnsThreatDetectorRequest.Builder