Class DeidentifyConfig.Builder

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

public static final class DeidentifyConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<DeidentifyConfig.Builder> implements DeidentifyConfigOrBuilder
 The configuration that controls how the data will change.
 
Protobuf type google.privacy.dlp.v2.DeidentifyConfig
  • 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<DeidentifyConfig.Builder>
    • clear

      public DeidentifyConfig.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<DeidentifyConfig.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<DeidentifyConfig.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public DeidentifyConfig.Builder mergeFrom(DeidentifyConfig other)
    • isInitialized

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

      public DeidentifyConfig.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<DeidentifyConfig.Builder>
      Throws:
      IOException
    • getTransformationCase

      public DeidentifyConfig.TransformationCase getTransformationCase()
      Specified by:
      getTransformationCase in interface DeidentifyConfigOrBuilder
    • clearTransformation

      public DeidentifyConfig.Builder clearTransformation()
    • hasInfoTypeTransformations

      public boolean hasInfoTypeTransformations()
       Treat the dataset as free-form text and apply the same free text
       transformation everywhere.
       
      .google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 1;
      Specified by:
      hasInfoTypeTransformations in interface DeidentifyConfigOrBuilder
      Returns:
      Whether the infoTypeTransformations field is set.
    • getInfoTypeTransformations

      public InfoTypeTransformations getInfoTypeTransformations()
       Treat the dataset as free-form text and apply the same free text
       transformation everywhere.
       
      .google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 1;
      Specified by:
      getInfoTypeTransformations in interface DeidentifyConfigOrBuilder
      Returns:
      The infoTypeTransformations.
    • setInfoTypeTransformations

      public DeidentifyConfig.Builder setInfoTypeTransformations(InfoTypeTransformations value)
       Treat the dataset as free-form text and apply the same free text
       transformation everywhere.
       
      .google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 1;
    • setInfoTypeTransformations

      public DeidentifyConfig.Builder setInfoTypeTransformations(InfoTypeTransformations.Builder builderForValue)
       Treat the dataset as free-form text and apply the same free text
       transformation everywhere.
       
      .google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 1;
    • mergeInfoTypeTransformations

      public DeidentifyConfig.Builder mergeInfoTypeTransformations(InfoTypeTransformations value)
       Treat the dataset as free-form text and apply the same free text
       transformation everywhere.
       
      .google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 1;
    • clearInfoTypeTransformations

      public DeidentifyConfig.Builder clearInfoTypeTransformations()
       Treat the dataset as free-form text and apply the same free text
       transformation everywhere.
       
      .google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 1;
    • getInfoTypeTransformationsBuilder

      public InfoTypeTransformations.Builder getInfoTypeTransformationsBuilder()
       Treat the dataset as free-form text and apply the same free text
       transformation everywhere.
       
      .google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 1;
    • getInfoTypeTransformationsOrBuilder

      public InfoTypeTransformationsOrBuilder getInfoTypeTransformationsOrBuilder()
       Treat the dataset as free-form text and apply the same free text
       transformation everywhere.
       
      .google.privacy.dlp.v2.InfoTypeTransformations info_type_transformations = 1;
      Specified by:
      getInfoTypeTransformationsOrBuilder in interface DeidentifyConfigOrBuilder
    • hasRecordTransformations

      public boolean hasRecordTransformations()
       Treat the dataset as structured. Transformations can be applied to
       specific locations within structured datasets, such as transforming
       a column within a table.
       
      .google.privacy.dlp.v2.RecordTransformations record_transformations = 2;
      Specified by:
      hasRecordTransformations in interface DeidentifyConfigOrBuilder
      Returns:
      Whether the recordTransformations field is set.
    • getRecordTransformations

      public RecordTransformations getRecordTransformations()
       Treat the dataset as structured. Transformations can be applied to
       specific locations within structured datasets, such as transforming
       a column within a table.
       
      .google.privacy.dlp.v2.RecordTransformations record_transformations = 2;
      Specified by:
      getRecordTransformations in interface DeidentifyConfigOrBuilder
      Returns:
      The recordTransformations.
    • setRecordTransformations

      public DeidentifyConfig.Builder setRecordTransformations(RecordTransformations value)
       Treat the dataset as structured. Transformations can be applied to
       specific locations within structured datasets, such as transforming
       a column within a table.
       
      .google.privacy.dlp.v2.RecordTransformations record_transformations = 2;
    • setRecordTransformations

      public DeidentifyConfig.Builder setRecordTransformations(RecordTransformations.Builder builderForValue)
       Treat the dataset as structured. Transformations can be applied to
       specific locations within structured datasets, such as transforming
       a column within a table.
       
      .google.privacy.dlp.v2.RecordTransformations record_transformations = 2;
    • mergeRecordTransformations

      public DeidentifyConfig.Builder mergeRecordTransformations(RecordTransformations value)
       Treat the dataset as structured. Transformations can be applied to
       specific locations within structured datasets, such as transforming
       a column within a table.
       
      .google.privacy.dlp.v2.RecordTransformations record_transformations = 2;
    • clearRecordTransformations

      public DeidentifyConfig.Builder clearRecordTransformations()
       Treat the dataset as structured. Transformations can be applied to
       specific locations within structured datasets, such as transforming
       a column within a table.
       
      .google.privacy.dlp.v2.RecordTransformations record_transformations = 2;
    • getRecordTransformationsBuilder

      public RecordTransformations.Builder getRecordTransformationsBuilder()
       Treat the dataset as structured. Transformations can be applied to
       specific locations within structured datasets, such as transforming
       a column within a table.
       
      .google.privacy.dlp.v2.RecordTransformations record_transformations = 2;
    • getRecordTransformationsOrBuilder

      public RecordTransformationsOrBuilder getRecordTransformationsOrBuilder()
       Treat the dataset as structured. Transformations can be applied to
       specific locations within structured datasets, such as transforming
       a column within a table.
       
      .google.privacy.dlp.v2.RecordTransformations record_transformations = 2;
      Specified by:
      getRecordTransformationsOrBuilder in interface DeidentifyConfigOrBuilder
    • hasImageTransformations

      public boolean hasImageTransformations()
       Treat the dataset as an image and redact.
       
      .google.privacy.dlp.v2.ImageTransformations image_transformations = 4;
      Specified by:
      hasImageTransformations in interface DeidentifyConfigOrBuilder
      Returns:
      Whether the imageTransformations field is set.
    • getImageTransformations

      public ImageTransformations getImageTransformations()
       Treat the dataset as an image and redact.
       
      .google.privacy.dlp.v2.ImageTransformations image_transformations = 4;
      Specified by:
      getImageTransformations in interface DeidentifyConfigOrBuilder
      Returns:
      The imageTransformations.
    • setImageTransformations

      public DeidentifyConfig.Builder setImageTransformations(ImageTransformations value)
       Treat the dataset as an image and redact.
       
      .google.privacy.dlp.v2.ImageTransformations image_transformations = 4;
    • setImageTransformations

      public DeidentifyConfig.Builder setImageTransformations(ImageTransformations.Builder builderForValue)
       Treat the dataset as an image and redact.
       
      .google.privacy.dlp.v2.ImageTransformations image_transformations = 4;
    • mergeImageTransformations

      public DeidentifyConfig.Builder mergeImageTransformations(ImageTransformations value)
       Treat the dataset as an image and redact.
       
      .google.privacy.dlp.v2.ImageTransformations image_transformations = 4;
    • clearImageTransformations

      public DeidentifyConfig.Builder clearImageTransformations()
       Treat the dataset as an image and redact.
       
      .google.privacy.dlp.v2.ImageTransformations image_transformations = 4;
    • getImageTransformationsBuilder

      public ImageTransformations.Builder getImageTransformationsBuilder()
       Treat the dataset as an image and redact.
       
      .google.privacy.dlp.v2.ImageTransformations image_transformations = 4;
    • getImageTransformationsOrBuilder

      public ImageTransformationsOrBuilder getImageTransformationsOrBuilder()
       Treat the dataset as an image and redact.
       
      .google.privacy.dlp.v2.ImageTransformations image_transformations = 4;
      Specified by:
      getImageTransformationsOrBuilder in interface DeidentifyConfigOrBuilder
    • hasTransformationErrorHandling

      public boolean hasTransformationErrorHandling()
       Mode for handling transformation errors. If left unspecified, the default
       mode is `TransformationErrorHandling.ThrowError`.
       
      .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3;
      Specified by:
      hasTransformationErrorHandling in interface DeidentifyConfigOrBuilder
      Returns:
      Whether the transformationErrorHandling field is set.
    • getTransformationErrorHandling

      public TransformationErrorHandling getTransformationErrorHandling()
       Mode for handling transformation errors. If left unspecified, the default
       mode is `TransformationErrorHandling.ThrowError`.
       
      .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3;
      Specified by:
      getTransformationErrorHandling in interface DeidentifyConfigOrBuilder
      Returns:
      The transformationErrorHandling.
    • setTransformationErrorHandling

      public DeidentifyConfig.Builder setTransformationErrorHandling(TransformationErrorHandling value)
       Mode for handling transformation errors. If left unspecified, the default
       mode is `TransformationErrorHandling.ThrowError`.
       
      .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3;
    • setTransformationErrorHandling

      public DeidentifyConfig.Builder setTransformationErrorHandling(TransformationErrorHandling.Builder builderForValue)
       Mode for handling transformation errors. If left unspecified, the default
       mode is `TransformationErrorHandling.ThrowError`.
       
      .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3;
    • mergeTransformationErrorHandling

      public DeidentifyConfig.Builder mergeTransformationErrorHandling(TransformationErrorHandling value)
       Mode for handling transformation errors. If left unspecified, the default
       mode is `TransformationErrorHandling.ThrowError`.
       
      .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3;
    • clearTransformationErrorHandling

      public DeidentifyConfig.Builder clearTransformationErrorHandling()
       Mode for handling transformation errors. If left unspecified, the default
       mode is `TransformationErrorHandling.ThrowError`.
       
      .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3;
    • getTransformationErrorHandlingBuilder

      public TransformationErrorHandling.Builder getTransformationErrorHandlingBuilder()
       Mode for handling transformation errors. If left unspecified, the default
       mode is `TransformationErrorHandling.ThrowError`.
       
      .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3;
    • getTransformationErrorHandlingOrBuilder

      public TransformationErrorHandlingOrBuilder getTransformationErrorHandlingOrBuilder()
       Mode for handling transformation errors. If left unspecified, the default
       mode is `TransformationErrorHandling.ThrowError`.
       
      .google.privacy.dlp.v2.TransformationErrorHandling transformation_error_handling = 3;
      Specified by:
      getTransformationErrorHandlingOrBuilder in interface DeidentifyConfigOrBuilder