Class CreateDlpJobRequest.Builder

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

public static final class CreateDlpJobRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateDlpJobRequest.Builder> implements CreateDlpJobRequestOrBuilder
 Request message for CreateDlpJobRequest. Used to initiate long running
 jobs such as calculating risk metrics or inspecting Google Cloud
 Storage.
 
Protobuf type google.privacy.dlp.v2.CreateDlpJobRequest
  • 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<CreateDlpJobRequest.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<CreateDlpJobRequest.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<CreateDlpJobRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public CreateDlpJobRequest.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<CreateDlpJobRequest.Builder>
      Throws:
      IOException
    • getJobCase

      public CreateDlpJobRequest.JobCase getJobCase()
      Specified by:
      getJobCase in interface CreateDlpJobRequestOrBuilder
    • clearJob

      public CreateDlpJobRequest.Builder clearJob()
    • getParent

      public String getParent()
       Required. Parent resource name.
      
       The format of this value varies depending on whether you have [specified a
       processing
       location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
      
       + Projects scope, location specified:
       `projects/{project_id}/locations/{location_id}`
       + Projects scope, no location specified (defaults to global):
       `projects/{project_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 CreateDlpJobRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       Required. Parent resource name.
      
       The format of this value varies depending on whether you have [specified a
       processing
       location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
      
       + Projects scope, location specified:
       `projects/{project_id}/locations/{location_id}`
       + Projects scope, no location specified (defaults to global):
       `projects/{project_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 CreateDlpJobRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateDlpJobRequest.Builder setParent(String value)
       Required. Parent resource name.
      
       The format of this value varies depending on whether you have [specified a
       processing
       location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
      
       + Projects scope, location specified:
       `projects/{project_id}/locations/{location_id}`
       + Projects scope, no location specified (defaults to global):
       `projects/{project_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

      public CreateDlpJobRequest.Builder clearParent()
       Required. Parent resource name.
      
       The format of this value varies depending on whether you have [specified a
       processing
       location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
      
       + Projects scope, location specified:
       `projects/{project_id}/locations/{location_id}`
       + Projects scope, no location specified (defaults to global):
       `projects/{project_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 CreateDlpJobRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       Required. Parent resource name.
      
       The format of this value varies depending on whether you have [specified a
       processing
       location](https://cloud.google.com/sensitive-data-protection/docs/specifying-location):
      
       + Projects scope, location specified:
       `projects/{project_id}/locations/{location_id}`
       + Projects scope, no location specified (defaults to global):
       `projects/{project_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.
    • hasInspectJob

      public boolean hasInspectJob()
       An inspection job scans a storage repository for InfoTypes.
       
      .google.privacy.dlp.v2.InspectJobConfig inspect_job = 2;
      Specified by:
      hasInspectJob in interface CreateDlpJobRequestOrBuilder
      Returns:
      Whether the inspectJob field is set.
    • getInspectJob

      public InspectJobConfig getInspectJob()
       An inspection job scans a storage repository for InfoTypes.
       
      .google.privacy.dlp.v2.InspectJobConfig inspect_job = 2;
      Specified by:
      getInspectJob in interface CreateDlpJobRequestOrBuilder
      Returns:
      The inspectJob.
    • setInspectJob

      public CreateDlpJobRequest.Builder setInspectJob(InspectJobConfig value)
       An inspection job scans a storage repository for InfoTypes.
       
      .google.privacy.dlp.v2.InspectJobConfig inspect_job = 2;
    • setInspectJob

      public CreateDlpJobRequest.Builder setInspectJob(InspectJobConfig.Builder builderForValue)
       An inspection job scans a storage repository for InfoTypes.
       
      .google.privacy.dlp.v2.InspectJobConfig inspect_job = 2;
    • mergeInspectJob

      public CreateDlpJobRequest.Builder mergeInspectJob(InspectJobConfig value)
       An inspection job scans a storage repository for InfoTypes.
       
      .google.privacy.dlp.v2.InspectJobConfig inspect_job = 2;
    • clearInspectJob

      public CreateDlpJobRequest.Builder clearInspectJob()
       An inspection job scans a storage repository for InfoTypes.
       
      .google.privacy.dlp.v2.InspectJobConfig inspect_job = 2;
    • getInspectJobBuilder

      public InspectJobConfig.Builder getInspectJobBuilder()
       An inspection job scans a storage repository for InfoTypes.
       
      .google.privacy.dlp.v2.InspectJobConfig inspect_job = 2;
    • getInspectJobOrBuilder

      public InspectJobConfigOrBuilder getInspectJobOrBuilder()
       An inspection job scans a storage repository for InfoTypes.
       
      .google.privacy.dlp.v2.InspectJobConfig inspect_job = 2;
      Specified by:
      getInspectJobOrBuilder in interface CreateDlpJobRequestOrBuilder
    • hasRiskJob

      public boolean hasRiskJob()
       A risk analysis job calculates re-identification risk metrics for a
       BigQuery table.
       
      .google.privacy.dlp.v2.RiskAnalysisJobConfig risk_job = 3;
      Specified by:
      hasRiskJob in interface CreateDlpJobRequestOrBuilder
      Returns:
      Whether the riskJob field is set.
    • getRiskJob

      public RiskAnalysisJobConfig getRiskJob()
       A risk analysis job calculates re-identification risk metrics for a
       BigQuery table.
       
      .google.privacy.dlp.v2.RiskAnalysisJobConfig risk_job = 3;
      Specified by:
      getRiskJob in interface CreateDlpJobRequestOrBuilder
      Returns:
      The riskJob.
    • setRiskJob

       A risk analysis job calculates re-identification risk metrics for a
       BigQuery table.
       
      .google.privacy.dlp.v2.RiskAnalysisJobConfig risk_job = 3;
    • setRiskJob

      public CreateDlpJobRequest.Builder setRiskJob(RiskAnalysisJobConfig.Builder builderForValue)
       A risk analysis job calculates re-identification risk metrics for a
       BigQuery table.
       
      .google.privacy.dlp.v2.RiskAnalysisJobConfig risk_job = 3;
    • mergeRiskJob

       A risk analysis job calculates re-identification risk metrics for a
       BigQuery table.
       
      .google.privacy.dlp.v2.RiskAnalysisJobConfig risk_job = 3;
    • clearRiskJob

      public CreateDlpJobRequest.Builder clearRiskJob()
       A risk analysis job calculates re-identification risk metrics for a
       BigQuery table.
       
      .google.privacy.dlp.v2.RiskAnalysisJobConfig risk_job = 3;
    • getRiskJobBuilder

      public RiskAnalysisJobConfig.Builder getRiskJobBuilder()
       A risk analysis job calculates re-identification risk metrics for a
       BigQuery table.
       
      .google.privacy.dlp.v2.RiskAnalysisJobConfig risk_job = 3;
    • getRiskJobOrBuilder

      public RiskAnalysisJobConfigOrBuilder getRiskJobOrBuilder()
       A risk analysis job calculates re-identification risk metrics for a
       BigQuery table.
       
      .google.privacy.dlp.v2.RiskAnalysisJobConfig risk_job = 3;
      Specified by:
      getRiskJobOrBuilder in interface CreateDlpJobRequestOrBuilder
    • getJobId

      public String getJobId()
       The job 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 job_id = 4;
      Specified by:
      getJobId in interface CreateDlpJobRequestOrBuilder
      Returns:
      The jobId.
    • getJobIdBytes

      public com.google.protobuf.ByteString getJobIdBytes()
       The job 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 job_id = 4;
      Specified by:
      getJobIdBytes in interface CreateDlpJobRequestOrBuilder
      Returns:
      The bytes for jobId.
    • setJobId

      public CreateDlpJobRequest.Builder setJobId(String value)
       The job 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 job_id = 4;
      Parameters:
      value - The jobId to set.
      Returns:
      This builder for chaining.
    • clearJobId

      public CreateDlpJobRequest.Builder clearJobId()
       The job 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 job_id = 4;
      Returns:
      This builder for chaining.
    • setJobIdBytes

      public CreateDlpJobRequest.Builder setJobIdBytes(com.google.protobuf.ByteString value)
       The job 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 job_id = 4;
      Parameters:
      value - The bytes for jobId to set.
      Returns:
      This builder for chaining.
    • getLocationId

      public String getLocationId()
       Deprecated. This field has no effect.
       
      string location_id = 5;
      Specified by:
      getLocationId in interface CreateDlpJobRequestOrBuilder
      Returns:
      The locationId.
    • getLocationIdBytes

      public com.google.protobuf.ByteString getLocationIdBytes()
       Deprecated. This field has no effect.
       
      string location_id = 5;
      Specified by:
      getLocationIdBytes in interface CreateDlpJobRequestOrBuilder
      Returns:
      The bytes for locationId.
    • setLocationId

      public CreateDlpJobRequest.Builder setLocationId(String value)
       Deprecated. This field has no effect.
       
      string location_id = 5;
      Parameters:
      value - The locationId to set.
      Returns:
      This builder for chaining.
    • clearLocationId

      public CreateDlpJobRequest.Builder clearLocationId()
       Deprecated. This field has no effect.
       
      string location_id = 5;
      Returns:
      This builder for chaining.
    • setLocationIdBytes

      public CreateDlpJobRequest.Builder setLocationIdBytes(com.google.protobuf.ByteString value)
       Deprecated. This field has no effect.
       
      string location_id = 5;
      Parameters:
      value - The bytes for locationId to set.
      Returns:
      This builder for chaining.