Class 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.GeneratedMessageV3.Builder<DeidentifyConfig.Builder>
    implements DeidentifyConfigOrBuilder
     The configuration that controls how the data will change.
     
    Protobuf type google.privacy.dlp.v2.DeidentifyConfig
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public DeidentifyConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<DeidentifyConfig.Builder>
      • setField

        public DeidentifyConfig.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                 Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<DeidentifyConfig.Builder>
      • clearField

        public DeidentifyConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<DeidentifyConfig.Builder>
      • clearOneof

        public DeidentifyConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<DeidentifyConfig.Builder>
      • setRepeatedField

        public DeidentifyConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         int index,
                                                         Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DeidentifyConfig.Builder>
      • addRepeatedField

        public DeidentifyConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                         Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<DeidentifyConfig.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • 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;
      • 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;
      • 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.
      • setImageTransformations

        public DeidentifyConfig.Builder setImageTransformations​(ImageTransformations value)
         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;
      • 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;
      • setUnknownFields

        public final DeidentifyConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DeidentifyConfig.Builder>
      • mergeUnknownFields

        public final DeidentifyConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<DeidentifyConfig.Builder>