Package com.google.privacy.dlp.v2
Class DeidentifyConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.Builder<DeidentifyConfig.Builder> implements DeidentifyConfigOrBuilder
The configuration that controls how the data will change.
Protobuf typegoogle.privacy.dlp.v2.DeidentifyConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description DeidentifyConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DeidentifyConfigbuild()DeidentifyConfigbuildPartial()DeidentifyConfig.Builderclear()DeidentifyConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)DeidentifyConfig.BuilderclearImageTransformations()Treat the dataset as an image and redact.DeidentifyConfig.BuilderclearInfoTypeTransformations()Treat the dataset as free-form text and apply the same free text transformation everywhere.DeidentifyConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)DeidentifyConfig.BuilderclearRecordTransformations()Treat the dataset as structured.DeidentifyConfig.BuilderclearTransformation()DeidentifyConfig.BuilderclearTransformationErrorHandling()Mode for handling transformation errors.DeidentifyConfig.Builderclone()DeidentifyConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()ImageTransformationsgetImageTransformations()Treat the dataset as an image and redact.ImageTransformations.BuildergetImageTransformationsBuilder()Treat the dataset as an image and redact.ImageTransformationsOrBuildergetImageTransformationsOrBuilder()Treat the dataset as an image and redact.InfoTypeTransformationsgetInfoTypeTransformations()Treat the dataset as free-form text and apply the same free text transformation everywhere.InfoTypeTransformations.BuildergetInfoTypeTransformationsBuilder()Treat the dataset as free-form text and apply the same free text transformation everywhere.InfoTypeTransformationsOrBuildergetInfoTypeTransformationsOrBuilder()Treat the dataset as free-form text and apply the same free text transformation everywhere.RecordTransformationsgetRecordTransformations()Treat the dataset as structured.RecordTransformations.BuildergetRecordTransformationsBuilder()Treat the dataset as structured.RecordTransformationsOrBuildergetRecordTransformationsOrBuilder()Treat the dataset as structured.DeidentifyConfig.TransformationCasegetTransformationCase()TransformationErrorHandlinggetTransformationErrorHandling()Mode for handling transformation errors.TransformationErrorHandling.BuildergetTransformationErrorHandlingBuilder()Mode for handling transformation errors.TransformationErrorHandlingOrBuildergetTransformationErrorHandlingOrBuilder()Mode for handling transformation errors.booleanhasImageTransformations()Treat the dataset as an image and redact.booleanhasInfoTypeTransformations()Treat the dataset as free-form text and apply the same free text transformation everywhere.booleanhasRecordTransformations()Treat the dataset as structured.booleanhasTransformationErrorHandling()Mode for handling transformation errors.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()DeidentifyConfig.BuildermergeFrom(DeidentifyConfig other)DeidentifyConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)DeidentifyConfig.BuildermergeFrom(com.google.protobuf.Message other)DeidentifyConfig.BuildermergeImageTransformations(ImageTransformations value)Treat the dataset as an image and redact.DeidentifyConfig.BuildermergeInfoTypeTransformations(InfoTypeTransformations value)Treat the dataset as free-form text and apply the same free text transformation everywhere.DeidentifyConfig.BuildermergeRecordTransformations(RecordTransformations value)Treat the dataset as structured.DeidentifyConfig.BuildermergeTransformationErrorHandling(TransformationErrorHandling value)Mode for handling transformation errors.DeidentifyConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)DeidentifyConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)DeidentifyConfig.BuildersetImageTransformations(ImageTransformations value)Treat the dataset as an image and redact.DeidentifyConfig.BuildersetImageTransformations(ImageTransformations.Builder builderForValue)Treat the dataset as an image and redact.DeidentifyConfig.BuildersetInfoTypeTransformations(InfoTypeTransformations value)Treat the dataset as free-form text and apply the same free text transformation everywhere.DeidentifyConfig.BuildersetInfoTypeTransformations(InfoTypeTransformations.Builder builderForValue)Treat the dataset as free-form text and apply the same free text transformation everywhere.DeidentifyConfig.BuildersetRecordTransformations(RecordTransformations value)Treat the dataset as structured.DeidentifyConfig.BuildersetRecordTransformations(RecordTransformations.Builder builderForValue)Treat the dataset as structured.DeidentifyConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)DeidentifyConfig.BuildersetTransformationErrorHandling(TransformationErrorHandling value)Mode for handling transformation errors.DeidentifyConfig.BuildersetTransformationErrorHandling(TransformationErrorHandling.Builder builderForValue)Mode for handling transformation errors.DeidentifyConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<DeidentifyConfig.Builder>
-
clear
public DeidentifyConfig.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<DeidentifyConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<DeidentifyConfig.Builder>
-
getDefaultInstanceForType
public DeidentifyConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public DeidentifyConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DeidentifyConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DeidentifyConfig.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<DeidentifyConfig.Builder>
-
setField
public DeidentifyConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DeidentifyConfig.Builder>
-
clearField
public DeidentifyConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DeidentifyConfig.Builder>
-
clearOneof
public DeidentifyConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<DeidentifyConfig.Builder>
-
setRepeatedField
public DeidentifyConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DeidentifyConfig.Builder>
-
addRepeatedField
public DeidentifyConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<DeidentifyConfig.Builder>
-
mergeFrom
public DeidentifyConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DeidentifyConfig.Builder>
-
mergeFrom
public DeidentifyConfig.Builder mergeFrom(DeidentifyConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<DeidentifyConfig.Builder>- Throws:
IOException
-
getTransformationCase
public DeidentifyConfig.TransformationCase getTransformationCase()
- Specified by:
getTransformationCasein interfaceDeidentifyConfigOrBuilder
-
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:
hasInfoTypeTransformationsin interfaceDeidentifyConfigOrBuilder- 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:
getInfoTypeTransformationsin interfaceDeidentifyConfigOrBuilder- 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:
getInfoTypeTransformationsOrBuilderin interfaceDeidentifyConfigOrBuilder
-
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:
hasRecordTransformationsin interfaceDeidentifyConfigOrBuilder- 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:
getRecordTransformationsin interfaceDeidentifyConfigOrBuilder- 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:
getRecordTransformationsOrBuilderin interfaceDeidentifyConfigOrBuilder
-
hasImageTransformations
public boolean hasImageTransformations()
Treat the dataset as an image and redact.
.google.privacy.dlp.v2.ImageTransformations image_transformations = 4;- Specified by:
hasImageTransformationsin interfaceDeidentifyConfigOrBuilder- 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:
getImageTransformationsin interfaceDeidentifyConfigOrBuilder- 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:
getImageTransformationsOrBuilderin interfaceDeidentifyConfigOrBuilder
-
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:
hasTransformationErrorHandlingin interfaceDeidentifyConfigOrBuilder- 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:
getTransformationErrorHandlingin interfaceDeidentifyConfigOrBuilder- 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:
getTransformationErrorHandlingOrBuilderin interfaceDeidentifyConfigOrBuilder
-
setUnknownFields
public final DeidentifyConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DeidentifyConfig.Builder>
-
mergeUnknownFields
public final DeidentifyConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<DeidentifyConfig.Builder>
-
-