Class DeidentifyConfig.Builder (3.13.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public DeidentifyConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
DeidentifyConfig.Builder
Overrides

build()

public DeidentifyConfig build()
Returns
TypeDescription
DeidentifyConfig

buildPartial()

public DeidentifyConfig buildPartial()
Returns
TypeDescription
DeidentifyConfig

clear()

public DeidentifyConfig.Builder clear()
Returns
TypeDescription
DeidentifyConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public DeidentifyConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
DeidentifyConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public DeidentifyConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
DeidentifyConfig.Builder

clearTransformation()

public DeidentifyConfig.Builder clearTransformation()
Returns
TypeDescription
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
TypeDescription
DeidentifyConfig.Builder

clone()

public DeidentifyConfig.Builder clone()
Returns
TypeDescription
DeidentifyConfig.Builder
Overrides

getDefaultInstanceForType()

public DeidentifyConfig getDefaultInstanceForType()
Returns
TypeDescription
DeidentifyConfig

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getImageTransformations()

public ImageTransformations getImageTransformations()

Treat the dataset as an image and redact.

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

Returns
TypeDescription
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
TypeDescription
ImageTransformations.Builder

getImageTransformationsOrBuilder()

public ImageTransformationsOrBuilder getImageTransformationsOrBuilder()

Treat the dataset as an image and redact.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
RecordTransformationsOrBuilder

getTransformationCase()

public DeidentifyConfig.TransformationCase getTransformationCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
TransformationErrorHandlingOrBuilder

hasImageTransformations()

public boolean hasImageTransformations()

Treat the dataset as an image and redact.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the transformationErrorHandling field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(DeidentifyConfig other)

public DeidentifyConfig.Builder mergeFrom(DeidentifyConfig other)
Parameter
NameDescription
otherDeidentifyConfig
Returns
TypeDescription
DeidentifyConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public DeidentifyConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
DeidentifyConfig.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public DeidentifyConfig.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueImageTransformations
Returns
TypeDescription
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
NameDescription
valueInfoTypeTransformations
Returns
TypeDescription
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
NameDescription
valueRecordTransformations
Returns
TypeDescription
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
NameDescription
valueTransformationErrorHandling
Returns
TypeDescription
DeidentifyConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final DeidentifyConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DeidentifyConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public DeidentifyConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueImageTransformations
Returns
TypeDescription
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
NameDescription
builderForValueImageTransformations.Builder
Returns
TypeDescription
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
NameDescription
valueInfoTypeTransformations
Returns
TypeDescription
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
NameDescription
builderForValueInfoTypeTransformations.Builder
Returns
TypeDescription
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
NameDescription
valueRecordTransformations
Returns
TypeDescription
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
NameDescription
builderForValueRecordTransformations.Builder
Returns
TypeDescription
DeidentifyConfig.Builder

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

public DeidentifyConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueTransformationErrorHandling
Returns
TypeDescription
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
NameDescription
builderForValueTransformationErrorHandling.Builder
Returns
TypeDescription
DeidentifyConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final DeidentifyConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
DeidentifyConfig.Builder
Overrides