Class CreateDnsThreatDetectorRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateDnsThreatDetectorRequest.Builder>
com.google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest.Builder
All Implemented Interfaces:
CreateDnsThreatDetectorRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateDnsThreatDetectorRequest

public static final class CreateDnsThreatDetectorRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateDnsThreatDetectorRequest.Builder> implements CreateDnsThreatDetectorRequestOrBuilder
 The message to create a DnsThreatDetector.
 
Protobuf type google.cloud.networksecurity.v1.CreateDnsThreatDetectorRequest
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CreateDnsThreatDetectorRequest.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<CreateDnsThreatDetectorRequest.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CreateDnsThreatDetectorRequest.Builder>
    • getDefaultInstanceForType

      public CreateDnsThreatDetectorRequest getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CreateDnsThreatDetectorRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CreateDnsThreatDetectorRequest.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateDnsThreatDetectorRequest.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CreateDnsThreatDetectorRequest.Builder>
    • mergeFrom

      public CreateDnsThreatDetectorRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CreateDnsThreatDetectorRequest.Builder>
      Throws:
      IOException
    • 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) = { ... }
      Specified by:
      getParent in interface CreateDnsThreatDetectorRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. The value for the parent of the DnsThreatDetector resource.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateDnsThreatDetectorRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

       Required. The value for the parent of the DnsThreatDetector resource.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

       Required. The value for the parent of the DnsThreatDetector resource.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateDnsThreatDetectorRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. The value for the parent of the DnsThreatDetector resource.
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.
    • 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];
      Specified by:
      getDnsThreatDetectorId in interface CreateDnsThreatDetectorRequestOrBuilder
      Returns:
      The dnsThreatDetectorId.
    • getDnsThreatDetectorIdBytes

      public com.google.protobuf.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];
      Specified by:
      getDnsThreatDetectorIdBytes in interface CreateDnsThreatDetectorRequestOrBuilder
      Returns:
      The bytes for dnsThreatDetectorId.
    • setDnsThreatDetectorId

      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];
      Parameters:
      value - The dnsThreatDetectorId to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • setDnsThreatDetectorIdBytes

      public CreateDnsThreatDetectorRequest.Builder setDnsThreatDetectorIdBytes(com.google.protobuf.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];
      Parameters:
      value - The bytes for dnsThreatDetectorId to set.
      Returns:
      This builder for chaining.
    • hasDnsThreatDetector

      public boolean hasDnsThreatDetector()
       Required. The `DnsThreatDetector` resource to create.
       
      .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasDnsThreatDetector in interface CreateDnsThreatDetectorRequestOrBuilder
      Returns:
      Whether the dnsThreatDetector field is set.
    • getDnsThreatDetector

      public DnsThreatDetector getDnsThreatDetector()
       Required. The `DnsThreatDetector` resource to create.
       
      .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDnsThreatDetector in interface CreateDnsThreatDetectorRequestOrBuilder
      Returns:
      The dnsThreatDetector.
    • setDnsThreatDetector

      public CreateDnsThreatDetectorRequest.Builder setDnsThreatDetector(DnsThreatDetector value)
       Required. The `DnsThreatDetector` resource to create.
       
      .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 3 [(.google.api.field_behavior) = REQUIRED];
    • setDnsThreatDetector

      public CreateDnsThreatDetectorRequest.Builder setDnsThreatDetector(DnsThreatDetector.Builder builderForValue)
       Required. The `DnsThreatDetector` resource to create.
       
      .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeDnsThreatDetector

      public CreateDnsThreatDetectorRequest.Builder mergeDnsThreatDetector(DnsThreatDetector value)
       Required. The `DnsThreatDetector` resource to create.
       
      .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearDnsThreatDetector

      public CreateDnsThreatDetectorRequest.Builder clearDnsThreatDetector()
       Required. The `DnsThreatDetector` resource to create.
       
      .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 3 [(.google.api.field_behavior) = REQUIRED];
    • getDnsThreatDetectorBuilder

      public DnsThreatDetector.Builder getDnsThreatDetectorBuilder()
       Required. The `DnsThreatDetector` resource to create.
       
      .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 3 [(.google.api.field_behavior) = REQUIRED];
    • getDnsThreatDetectorOrBuilder

      public DnsThreatDetectorOrBuilder getDnsThreatDetectorOrBuilder()
       Required. The `DnsThreatDetector` resource to create.
       
      .google.cloud.networksecurity.v1.DnsThreatDetector dns_threat_detector = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDnsThreatDetectorOrBuilder in interface CreateDnsThreatDetectorRequestOrBuilder