Class DeidentifyConfig.Builder (3.49.0)

public static final class DeidentifyConfig.Builder extends GeneratedMessageV3.Builder<DeidentifyConfig.Builder> implements DeidentifyConfigOrBuilder

The configuration that controls how the data will change.

Protobuf type google.privacy.dlp.v2.DeidentifyConfig

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DeidentifyConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DeidentifyConfig.Builder
Overrides

build()

public DeidentifyConfig build()
Returns
Type Description
DeidentifyConfig

buildPartial()

public DeidentifyConfig buildPartial()
Returns
Type Description
DeidentifyConfig

clear()

public DeidentifyConfig.Builder clear()
Returns
Type Description
DeidentifyConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DeidentifyConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
DeidentifyConfig.Builder
Overrides

clearImageTransformations()

public DeidentifyConfig.Builder clearImageTransformations()

Treat the dataset as an image and redact.

.google.privacy.dlp.v2.ImageTransformations image_transformations = 4;

Returns
Type Description
DeidentifyConfig.Builder

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;

Returns
Type Description
DeidentifyConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public DeidentifyConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
DeidentifyConfig.Builder
Overrides

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;

Returns
Type Description
DeidentifyConfig.Builder

clearTransformation()

public DeidentifyConfig.Builder clearTransformation()
Returns
Type Description
DeidentifyConfig.Builder

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;

Returns
Type Description
DeidentifyConfig.Builder

clone()

public DeidentifyConfig.Builder clone()
Returns
Type Description
DeidentifyConfig.Builder
Overrides

getDefaultInstanceForType()

public DeidentifyConfig getDefaultInstanceForType()
Returns
Type Description
DeidentifyConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getImageTransformations()

public ImageTransformations getImageTransformations()

Treat the dataset as an image and redact.

.google.privacy.dlp.v2.ImageTransformations image_transformations = 4;

Returns
Type Description
ImageTransformations

The imageTransformations.

getImageTransformationsBuilder()

public ImageTransformations.Builder getImageTransformationsBuilder()

Treat the dataset as an image and redact.

.google.privacy.dlp.v2.ImageTransformations image_transformations = 4;

Returns
Type Description
ImageTransformations.Builder

getImageTransformationsOrBuilder()

public ImageTransformationsOrBuilder getImageTransformationsOrBuilder()

Treat the dataset as an image and redact.

.google.privacy.dlp.v2.ImageTransformations image_transformations = 4;

Returns
Type Description
ImageTransformationsOrBuilder

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;

Returns
Type Description
InfoTypeTransformations

The infoTypeTransformations.

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;

Returns
Type Description
InfoTypeTransformations.Builder

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;

Returns
Type Description
InfoTypeTransformationsOrBuilder

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;

Returns
Type Description
RecordTransformations

The recordTransformations.

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;

Returns
Type Description
RecordTransformations.Builder

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;

Returns
Type Description
RecordTransformationsOrBuilder

getTransformationCase()

public DeidentifyConfig.TransformationCase getTransformationCase()
Returns
Type Description
DeidentifyConfig.TransformationCase

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;

Returns
Type Description
TransformationErrorHandling

The transformationErrorHandling.

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;

Returns
Type Description
TransformationErrorHandling.Builder

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;

Returns
Type Description
TransformationErrorHandlingOrBuilder

hasImageTransformations()

public boolean hasImageTransformations()

Treat the dataset as an image and redact.

.google.privacy.dlp.v2.ImageTransformations image_transformations = 4;

Returns
Type Description
boolean

Whether the imageTransformations field is set.

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;

Returns
Type Description
boolean

Whether the infoTypeTransformations field is set.

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;

Returns
Type Description
boolean

Whether the recordTransformations field is set.

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;

Returns
Type Description
boolean

Whether the transformationErrorHandling field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DeidentifyConfig other)

public DeidentifyConfig.Builder mergeFrom(DeidentifyConfig other)
Parameter
Name Description
other DeidentifyConfig
Returns
Type Description
DeidentifyConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DeidentifyConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
DeidentifyConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public DeidentifyConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DeidentifyConfig.Builder
Overrides

mergeImageTransformations(ImageTransformations value)

public DeidentifyConfig.Builder mergeImageTransformations(ImageTransformations value)

Treat the dataset as an image and redact.

.google.privacy.dlp.v2.ImageTransformations image_transformations = 4;

Parameter
Name Description
value ImageTransformations
Returns
Type Description
DeidentifyConfig.Builder

mergeInfoTypeTransformations(InfoTypeTransformations value)

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;

Parameter
Name Description
value InfoTypeTransformations
Returns
Type Description
DeidentifyConfig.Builder

mergeRecordTransformations(RecordTransformations value)

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;

Parameter
Name Description
value RecordTransformations
Returns
Type Description
DeidentifyConfig.Builder

mergeTransformationErrorHandling(TransformationErrorHandling value)

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;

Parameter
Name Description
value TransformationErrorHandling
Returns
Type Description
DeidentifyConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DeidentifyConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DeidentifyConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public DeidentifyConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
DeidentifyConfig.Builder
Overrides

setImageTransformations(ImageTransformations value)

public DeidentifyConfig.Builder setImageTransformations(ImageTransformations value)

Treat the dataset as an image and redact.

.google.privacy.dlp.v2.ImageTransformations image_transformations = 4;

Parameter
Name Description
value ImageTransformations
Returns
Type Description
DeidentifyConfig.Builder

setImageTransformations(ImageTransformations.Builder builderForValue)

public DeidentifyConfig.Builder setImageTransformations(ImageTransformations.Builder builderForValue)

Treat the dataset as an image and redact.

.google.privacy.dlp.v2.ImageTransformations image_transformations = 4;

Parameter
Name Description
builderForValue ImageTransformations.Builder
Returns
Type Description
DeidentifyConfig.Builder

setInfoTypeTransformations(InfoTypeTransformations value)

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;

Parameter
Name Description
value InfoTypeTransformations
Returns
Type Description
DeidentifyConfig.Builder

setInfoTypeTransformations(InfoTypeTransformations.Builder builderForValue)

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;

Parameter
Name Description
builderForValue InfoTypeTransformations.Builder
Returns
Type Description
DeidentifyConfig.Builder

setRecordTransformations(RecordTransformations value)

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;

Parameter
Name Description
value RecordTransformations
Returns
Type Description
DeidentifyConfig.Builder

setRecordTransformations(RecordTransformations.Builder builderForValue)

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;

Parameter
Name Description
builderForValue RecordTransformations.Builder
Returns
Type Description
DeidentifyConfig.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public DeidentifyConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
DeidentifyConfig.Builder
Overrides

setTransformationErrorHandling(TransformationErrorHandling value)

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;

Parameter
Name Description
value TransformationErrorHandling
Returns
Type Description
DeidentifyConfig.Builder

setTransformationErrorHandling(TransformationErrorHandling.Builder builderForValue)

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;

Parameter
Name Description
builderForValue TransformationErrorHandling.Builder
Returns
Type Description
DeidentifyConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final DeidentifyConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
DeidentifyConfig.Builder
Overrides