Class CreateDiscoveryConfigRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateDiscoveryConfigRequest.Builder>
com.google.privacy.dlp.v2.CreateDiscoveryConfigRequest.Builder
All Implemented Interfaces:
CreateDiscoveryConfigRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateDiscoveryConfigRequest

public static final class CreateDiscoveryConfigRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateDiscoveryConfigRequest.Builder> implements CreateDiscoveryConfigRequestOrBuilder
 Request message for CreateDiscoveryConfig.
 
Protobuf type google.privacy.dlp.v2.CreateDiscoveryConfigRequest
  • 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<CreateDiscoveryConfigRequest.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<CreateDiscoveryConfigRequest.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<CreateDiscoveryConfigRequest.Builder>
    • getDefaultInstanceForType

      public CreateDiscoveryConfigRequest 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 CreateDiscoveryConfigRequest buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public CreateDiscoveryConfigRequest.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<CreateDiscoveryConfigRequest.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<CreateDiscoveryConfigRequest.Builder>
    • mergeFrom

      public CreateDiscoveryConfigRequest.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<CreateDiscoveryConfigRequest.Builder>
      Throws:
      IOException
    • getParent

      public String getParent()
       Required. Parent resource name.
      
       The format of this value varies depending on the scope of the request
       (project or organization):
      
       + Projects scope:
       `projects/{project_id}/locations/{location_id}`
       + Organizations scope:
       `organizations/{org_id}/locations/{location_id}`
      
       The following example `parent` string specifies a parent project with the
       identifier `example-project`, and specifies the `europe-west3` location
       for processing data:
      
       parent=projects/example-project/locations/europe-west3
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParent in interface CreateDiscoveryConfigRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. Parent resource name.
      
       The format of this value varies depending on the scope of the request
       (project or organization):
      
       + Projects scope:
       `projects/{project_id}/locations/{location_id}`
       + Organizations scope:
       `organizations/{org_id}/locations/{location_id}`
      
       The following example `parent` string specifies a parent project with the
       identifier `example-project`, and specifies the `europe-west3` location
       for processing data:
      
       parent=projects/example-project/locations/europe-west3
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Specified by:
      getParentBytes in interface CreateDiscoveryConfigRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateDiscoveryConfigRequest.Builder setParent(String value)
       Required. Parent resource name.
      
       The format of this value varies depending on the scope of the request
       (project or organization):
      
       + Projects scope:
       `projects/{project_id}/locations/{location_id}`
       + Organizations scope:
       `organizations/{org_id}/locations/{location_id}`
      
       The following example `parent` string specifies a parent project with the
       identifier `example-project`, and specifies the `europe-west3` location
       for processing data:
      
       parent=projects/example-project/locations/europe-west3
       
      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. Parent resource name.
      
       The format of this value varies depending on the scope of the request
       (project or organization):
      
       + Projects scope:
       `projects/{project_id}/locations/{location_id}`
       + Organizations scope:
       `organizations/{org_id}/locations/{location_id}`
      
       The following example `parent` string specifies a parent project with the
       identifier `example-project`, and specifies the `europe-west3` location
       for processing data:
      
       parent=projects/example-project/locations/europe-west3
       
      string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateDiscoveryConfigRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. Parent resource name.
      
       The format of this value varies depending on the scope of the request
       (project or organization):
      
       + Projects scope:
       `projects/{project_id}/locations/{location_id}`
       + Organizations scope:
       `organizations/{org_id}/locations/{location_id}`
      
       The following example `parent` string specifies a parent project with the
       identifier `example-project`, and specifies the `europe-west3` location
       for processing data:
      
       parent=projects/example-project/locations/europe-west3
       
      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.
    • hasDiscoveryConfig

      public boolean hasDiscoveryConfig()
       Required. The DiscoveryConfig to create.
       
      .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasDiscoveryConfig in interface CreateDiscoveryConfigRequestOrBuilder
      Returns:
      Whether the discoveryConfig field is set.
    • getDiscoveryConfig

      public DiscoveryConfig getDiscoveryConfig()
       Required. The DiscoveryConfig to create.
       
      .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDiscoveryConfig in interface CreateDiscoveryConfigRequestOrBuilder
      Returns:
      The discoveryConfig.
    • setDiscoveryConfig

      public CreateDiscoveryConfigRequest.Builder setDiscoveryConfig(DiscoveryConfig value)
       Required. The DiscoveryConfig to create.
       
      .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED];
    • setDiscoveryConfig

      public CreateDiscoveryConfigRequest.Builder setDiscoveryConfig(DiscoveryConfig.Builder builderForValue)
       Required. The DiscoveryConfig to create.
       
      .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeDiscoveryConfig

      public CreateDiscoveryConfigRequest.Builder mergeDiscoveryConfig(DiscoveryConfig value)
       Required. The DiscoveryConfig to create.
       
      .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearDiscoveryConfig

      public CreateDiscoveryConfigRequest.Builder clearDiscoveryConfig()
       Required. The DiscoveryConfig to create.
       
      .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED];
    • getDiscoveryConfigBuilder

      public DiscoveryConfig.Builder getDiscoveryConfigBuilder()
       Required. The DiscoveryConfig to create.
       
      .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED];
    • getDiscoveryConfigOrBuilder

      public DiscoveryConfigOrBuilder getDiscoveryConfigOrBuilder()
       Required. The DiscoveryConfig to create.
       
      .google.privacy.dlp.v2.DiscoveryConfig discovery_config = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getDiscoveryConfigOrBuilder in interface CreateDiscoveryConfigRequestOrBuilder
    • getConfigId

      public String getConfigId()
       The config ID can contain uppercase and lowercase letters,
       numbers, and hyphens; that is, it must match the regular
       expression: `[a-zA-Z\d-_]+`. The maximum length is 100
       characters. Can be empty to allow the system to generate one.
       
      string config_id = 3;
      Specified by:
      getConfigId in interface CreateDiscoveryConfigRequestOrBuilder
      Returns:
      The configId.
    • getConfigIdBytes

      public com.google.protobuf.ByteString getConfigIdBytes()
       The config ID can contain uppercase and lowercase letters,
       numbers, and hyphens; that is, it must match the regular
       expression: `[a-zA-Z\d-_]+`. The maximum length is 100
       characters. Can be empty to allow the system to generate one.
       
      string config_id = 3;
      Specified by:
      getConfigIdBytes in interface CreateDiscoveryConfigRequestOrBuilder
      Returns:
      The bytes for configId.
    • setConfigId

      public CreateDiscoveryConfigRequest.Builder setConfigId(String value)
       The config ID can contain uppercase and lowercase letters,
       numbers, and hyphens; that is, it must match the regular
       expression: `[a-zA-Z\d-_]+`. The maximum length is 100
       characters. Can be empty to allow the system to generate one.
       
      string config_id = 3;
      Parameters:
      value - The configId to set.
      Returns:
      This builder for chaining.
    • clearConfigId

      public CreateDiscoveryConfigRequest.Builder clearConfigId()
       The config ID can contain uppercase and lowercase letters,
       numbers, and hyphens; that is, it must match the regular
       expression: `[a-zA-Z\d-_]+`. The maximum length is 100
       characters. Can be empty to allow the system to generate one.
       
      string config_id = 3;
      Returns:
      This builder for chaining.
    • setConfigIdBytes

      public CreateDiscoveryConfigRequest.Builder setConfigIdBytes(com.google.protobuf.ByteString value)
       The config ID can contain uppercase and lowercase letters,
       numbers, and hyphens; that is, it must match the regular
       expression: `[a-zA-Z\d-_]+`. The maximum length is 100
       characters. Can be empty to allow the system to generate one.
       
      string config_id = 3;
      Parameters:
      value - The bytes for configId to set.
      Returns:
      This builder for chaining.