Class CreateDnsThreatDetectorRequest.Builder (0.85.0)

public static final class CreateDnsThreatDetectorRequest.Builder extends GeneratedMessageV3.Builder<CreateDnsThreatDetectorRequest.Builder> implements CreateDnsThreatDetectorRequestOrBuilder

The message to create a DnsThreatDetector.

Protobuf type google.cloud.networksecurity.v1beta1.CreateDnsThreatDetectorRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CreateDnsThreatDetectorRequest build()
Returns
Type Description
CreateDnsThreatDetectorRequest

buildPartial()

public CreateDnsThreatDetectorRequest buildPartial()
Returns
Type Description
CreateDnsThreatDetectorRequest

clear()

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

clearDnsThreatDetector()

public CreateDnsThreatDetectorRequest.Builder clearDnsThreatDetector()

Required. The DnsThreatDetector resource to create.

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

Returns
Type Description
CreateDnsThreatDetectorRequest.Builder

clearDnsThreatDetectorId()

public CreateDnsThreatDetectorRequest.Builder clearDnsThreatDetectorId()

Optional. The ID of the requesting DnsThreatDetector object. If this field is not supplied, the service generates an identifier.

string dns_threat_detector_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
CreateDnsThreatDetectorRequest.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearParent()

public CreateDnsThreatDetectorRequest.Builder clearParent()

Required. The value for the parent of the DnsThreatDetector resource.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
CreateDnsThreatDetectorRequest.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public CreateDnsThreatDetectorRequest getDefaultInstanceForType()
Returns
Type Description
CreateDnsThreatDetectorRequest

getDescriptorForType()

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

getDnsThreatDetector()

public DnsThreatDetector getDnsThreatDetector()

Required. The DnsThreatDetector resource to create.

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

Returns
Type Description
DnsThreatDetector

The dnsThreatDetector.

getDnsThreatDetectorBuilder()

public DnsThreatDetector.Builder getDnsThreatDetectorBuilder()

Required. The DnsThreatDetector resource to create.

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

Returns
Type Description
DnsThreatDetector.Builder

getDnsThreatDetectorId()

public String getDnsThreatDetectorId()

Optional. The ID of the requesting DnsThreatDetector object. If this field is not supplied, the service generates an identifier.

string dns_threat_detector_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The dnsThreatDetectorId.

getDnsThreatDetectorIdBytes()

public ByteString getDnsThreatDetectorIdBytes()

Optional. The ID of the requesting DnsThreatDetector object. If this field is not supplied, the service generates an identifier.

string dns_threat_detector_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for dnsThreatDetectorId.

getDnsThreatDetectorOrBuilder()

public DnsThreatDetectorOrBuilder getDnsThreatDetectorOrBuilder()

Required. The DnsThreatDetector resource to create.

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

Returns
Type Description
DnsThreatDetectorOrBuilder

getParent()

public String getParent()

Required. The value for the parent of the DnsThreatDetector resource.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
String

The parent.

getParentBytes()

public ByteString getParentBytes()

Required. The value for the parent of the DnsThreatDetector resource.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Returns
Type Description
ByteString

The bytes for parent.

hasDnsThreatDetector()

public boolean hasDnsThreatDetector()

Required. The DnsThreatDetector resource to create.

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

Returns
Type Description
boolean

Whether the dnsThreatDetector 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 CreateDnsThreatDetectorRequest.Builder mergeDnsThreatDetector(DnsThreatDetector value)

Required. The DnsThreatDetector resource to create.

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

Parameter
Name Description
value DnsThreatDetector
Returns
Type Description
CreateDnsThreatDetectorRequest.Builder

mergeFrom(CreateDnsThreatDetectorRequest other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDnsThreatDetector(DnsThreatDetector value)

public CreateDnsThreatDetectorRequest.Builder setDnsThreatDetector(DnsThreatDetector value)

Required. The DnsThreatDetector resource to create.

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

Parameter
Name Description
value DnsThreatDetector
Returns
Type Description
CreateDnsThreatDetectorRequest.Builder

setDnsThreatDetector(DnsThreatDetector.Builder builderForValue)

public CreateDnsThreatDetectorRequest.Builder setDnsThreatDetector(DnsThreatDetector.Builder builderForValue)

Required. The DnsThreatDetector resource to create.

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

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

setDnsThreatDetectorId(String value)

public CreateDnsThreatDetectorRequest.Builder setDnsThreatDetectorId(String value)

Optional. The ID of the requesting DnsThreatDetector object. If this field is not supplied, the service generates an identifier.

string dns_threat_detector_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The dnsThreatDetectorId to set.

Returns
Type Description
CreateDnsThreatDetectorRequest.Builder

This builder for chaining.

setDnsThreatDetectorIdBytes(ByteString value)

public CreateDnsThreatDetectorRequest.Builder setDnsThreatDetectorIdBytes(ByteString value)

Optional. The ID of the requesting DnsThreatDetector object. If this field is not supplied, the service generates an identifier.

string dns_threat_detector_id = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for dnsThreatDetectorId to set.

Returns
Type Description
CreateDnsThreatDetectorRequest.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setParent(String value)

public CreateDnsThreatDetectorRequest.Builder setParent(String value)

Required. The value for the parent of the DnsThreatDetector resource.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value String

The parent to set.

Returns
Type Description
CreateDnsThreatDetectorRequest.Builder

This builder for chaining.

setParentBytes(ByteString value)

public CreateDnsThreatDetectorRequest.Builder setParentBytes(ByteString value)

Required. The value for the parent of the DnsThreatDetector resource.

string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }

Parameter
Name Description
value ByteString

The bytes for parent to set.

Returns
Type Description
CreateDnsThreatDetectorRequest.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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