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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
DeidentifyConfig
build()
DeidentifyConfig
buildPartial()
DeidentifyConfig.Builder
clear()
DeidentifyConfig.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
DeidentifyConfig.Builder
clearImageTransformations()
Treat the dataset as an image and redact.DeidentifyConfig.Builder
clearInfoTypeTransformations()
Treat the dataset as free-form text and apply the same free text transformation everywhere.DeidentifyConfig.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
DeidentifyConfig.Builder
clearRecordTransformations()
Treat the dataset as structured.DeidentifyConfig.Builder
clearTransformation()
DeidentifyConfig.Builder
clearTransformationErrorHandling()
Mode for handling transformation errors.DeidentifyConfig.Builder
clone()
DeidentifyConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
ImageTransformations
getImageTransformations()
Treat the dataset as an image and redact.ImageTransformations.Builder
getImageTransformationsBuilder()
Treat the dataset as an image and redact.ImageTransformationsOrBuilder
getImageTransformationsOrBuilder()
Treat the dataset as an image and redact.InfoTypeTransformations
getInfoTypeTransformations()
Treat the dataset as free-form text and apply the same free text transformation everywhere.InfoTypeTransformations.Builder
getInfoTypeTransformationsBuilder()
Treat the dataset as free-form text and apply the same free text transformation everywhere.InfoTypeTransformationsOrBuilder
getInfoTypeTransformationsOrBuilder()
Treat the dataset as free-form text and apply the same free text transformation everywhere.RecordTransformations
getRecordTransformations()
Treat the dataset as structured.RecordTransformations.Builder
getRecordTransformationsBuilder()
Treat the dataset as structured.RecordTransformationsOrBuilder
getRecordTransformationsOrBuilder()
Treat the dataset as structured.DeidentifyConfig.TransformationCase
getTransformationCase()
TransformationErrorHandling
getTransformationErrorHandling()
Mode for handling transformation errors.TransformationErrorHandling.Builder
getTransformationErrorHandlingBuilder()
Mode for handling transformation errors.TransformationErrorHandlingOrBuilder
getTransformationErrorHandlingOrBuilder()
Mode for handling transformation errors.boolean
hasImageTransformations()
Treat the dataset as an image and redact.boolean
hasInfoTypeTransformations()
Treat the dataset as free-form text and apply the same free text transformation everywhere.boolean
hasRecordTransformations()
Treat the dataset as structured.boolean
hasTransformationErrorHandling()
Mode for handling transformation errors.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
DeidentifyConfig.Builder
mergeFrom(DeidentifyConfig other)
DeidentifyConfig.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
DeidentifyConfig.Builder
mergeFrom(com.google.protobuf.Message other)
DeidentifyConfig.Builder
mergeImageTransformations(ImageTransformations value)
Treat the dataset as an image and redact.DeidentifyConfig.Builder
mergeInfoTypeTransformations(InfoTypeTransformations value)
Treat the dataset as free-form text and apply the same free text transformation everywhere.DeidentifyConfig.Builder
mergeRecordTransformations(RecordTransformations value)
Treat the dataset as structured.DeidentifyConfig.Builder
mergeTransformationErrorHandling(TransformationErrorHandling value)
Mode for handling transformation errors.DeidentifyConfig.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
DeidentifyConfig.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
DeidentifyConfig.Builder
setImageTransformations(ImageTransformations value)
Treat the dataset as an image and redact.DeidentifyConfig.Builder
setImageTransformations(ImageTransformations.Builder builderForValue)
Treat the dataset as an image and redact.DeidentifyConfig.Builder
setInfoTypeTransformations(InfoTypeTransformations value)
Treat the dataset as free-form text and apply the same free text transformation everywhere.DeidentifyConfig.Builder
setInfoTypeTransformations(InfoTypeTransformations.Builder builderForValue)
Treat the dataset as free-form text and apply the same free text transformation everywhere.DeidentifyConfig.Builder
setRecordTransformations(RecordTransformations value)
Treat the dataset as structured.DeidentifyConfig.Builder
setRecordTransformations(RecordTransformations.Builder builderForValue)
Treat the dataset as structured.DeidentifyConfig.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
DeidentifyConfig.Builder
setTransformationErrorHandling(TransformationErrorHandling value)
Mode for handling transformation errors.DeidentifyConfig.Builder
setTransformationErrorHandling(TransformationErrorHandling.Builder builderForValue)
Mode for handling transformation errors.DeidentifyConfig.Builder
setUnknownFields(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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<DeidentifyConfig.Builder>
-
clear
public DeidentifyConfig.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<DeidentifyConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<DeidentifyConfig.Builder>
-
getDefaultInstanceForType
public DeidentifyConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public DeidentifyConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public DeidentifyConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public DeidentifyConfig.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<DeidentifyConfig.Builder>
-
setField
public DeidentifyConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DeidentifyConfig.Builder>
-
clearField
public DeidentifyConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DeidentifyConfig.Builder>
-
clearOneof
public DeidentifyConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.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 interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DeidentifyConfig.Builder>
-
addRepeatedField
public DeidentifyConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<DeidentifyConfig.Builder>
-
mergeFrom
public DeidentifyConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DeidentifyConfig.Builder>
-
mergeFrom
public DeidentifyConfig.Builder mergeFrom(DeidentifyConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<DeidentifyConfig.Builder>
- Throws:
IOException
-
getTransformationCase
public DeidentifyConfig.TransformationCase getTransformationCase()
- Specified by:
getTransformationCase
in 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:
hasInfoTypeTransformations
in 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:
getInfoTypeTransformations
in 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:
getInfoTypeTransformationsOrBuilder
in 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:
hasRecordTransformations
in 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:
getRecordTransformations
in 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:
getRecordTransformationsOrBuilder
in interfaceDeidentifyConfigOrBuilder
-
hasImageTransformations
public boolean hasImageTransformations()
Treat the dataset as an image and redact.
.google.privacy.dlp.v2.ImageTransformations image_transformations = 4;
- Specified by:
hasImageTransformations
in 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:
getImageTransformations
in 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:
getImageTransformationsOrBuilder
in 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:
hasTransformationErrorHandling
in 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:
getTransformationErrorHandling
in 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:
getTransformationErrorHandlingOrBuilder
in interfaceDeidentifyConfigOrBuilder
-
setUnknownFields
public final DeidentifyConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DeidentifyConfig.Builder>
-
mergeUnknownFields
public final DeidentifyConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<DeidentifyConfig.Builder>
-
-