Class TransformationErrorHandling.Builder (3.57.0)

public static final class TransformationErrorHandling.Builder extends GeneratedMessageV3.Builder<TransformationErrorHandling.Builder> implements TransformationErrorHandlingOrBuilder

How to handle transformation errors during de-identification. A transformation error occurs when the requested transformation is incompatible with the data. For example, trying to de-identify an IP address using a DateShift transformation would result in a transformation error, since date info cannot be extracted from an IP address. Information about any incompatible transformations, and how they were handled, is returned in the response as part of the TransformationOverviews.

Protobuf type google.privacy.dlp.v2.TransformationErrorHandling

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TransformationErrorHandling build()
Returns
Type Description
TransformationErrorHandling

buildPartial()

public TransformationErrorHandling buildPartial()
Returns
Type Description
TransformationErrorHandling

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearLeaveUntransformed()

public TransformationErrorHandling.Builder clearLeaveUntransformed()

Ignore errors

.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2;

Returns
Type Description
TransformationErrorHandling.Builder

clearMode()

public TransformationErrorHandling.Builder clearMode()
Returns
Type Description
TransformationErrorHandling.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearThrowError()

public TransformationErrorHandling.Builder clearThrowError()

Throw an error

.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1;

Returns
Type Description
TransformationErrorHandling.Builder

clone()

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

getDefaultInstanceForType()

public TransformationErrorHandling getDefaultInstanceForType()
Returns
Type Description
TransformationErrorHandling

getDescriptorForType()

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

getLeaveUntransformed()

public TransformationErrorHandling.LeaveUntransformed getLeaveUntransformed()

Ignore errors

.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2;

Returns
Type Description
TransformationErrorHandling.LeaveUntransformed

The leaveUntransformed.

getLeaveUntransformedBuilder()

public TransformationErrorHandling.LeaveUntransformed.Builder getLeaveUntransformedBuilder()

Ignore errors

.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2;

Returns
Type Description
TransformationErrorHandling.LeaveUntransformed.Builder

getLeaveUntransformedOrBuilder()

public TransformationErrorHandling.LeaveUntransformedOrBuilder getLeaveUntransformedOrBuilder()

Ignore errors

.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2;

Returns
Type Description
TransformationErrorHandling.LeaveUntransformedOrBuilder

getModeCase()

public TransformationErrorHandling.ModeCase getModeCase()
Returns
Type Description
TransformationErrorHandling.ModeCase

getThrowError()

public TransformationErrorHandling.ThrowError getThrowError()

Throw an error

.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1;

Returns
Type Description
TransformationErrorHandling.ThrowError

The throwError.

getThrowErrorBuilder()

public TransformationErrorHandling.ThrowError.Builder getThrowErrorBuilder()

Throw an error

.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1;

Returns
Type Description
TransformationErrorHandling.ThrowError.Builder

getThrowErrorOrBuilder()

public TransformationErrorHandling.ThrowErrorOrBuilder getThrowErrorOrBuilder()

Throw an error

.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1;

Returns
Type Description
TransformationErrorHandling.ThrowErrorOrBuilder

hasLeaveUntransformed()

public boolean hasLeaveUntransformed()

Ignore errors

.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2;

Returns
Type Description
boolean

Whether the leaveUntransformed field is set.

hasThrowError()

public boolean hasThrowError()

Throw an error

.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1;

Returns
Type Description
boolean

Whether the throwError field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TransformationErrorHandling other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeLeaveUntransformed(TransformationErrorHandling.LeaveUntransformed value)

public TransformationErrorHandling.Builder mergeLeaveUntransformed(TransformationErrorHandling.LeaveUntransformed value)

Ignore errors

.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2;

Parameter
Name Description
value TransformationErrorHandling.LeaveUntransformed
Returns
Type Description
TransformationErrorHandling.Builder

mergeThrowError(TransformationErrorHandling.ThrowError value)

public TransformationErrorHandling.Builder mergeThrowError(TransformationErrorHandling.ThrowError value)

Throw an error

.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1;

Parameter
Name Description
value TransformationErrorHandling.ThrowError
Returns
Type Description
TransformationErrorHandling.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setLeaveUntransformed(TransformationErrorHandling.LeaveUntransformed value)

public TransformationErrorHandling.Builder setLeaveUntransformed(TransformationErrorHandling.LeaveUntransformed value)

Ignore errors

.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2;

Parameter
Name Description
value TransformationErrorHandling.LeaveUntransformed
Returns
Type Description
TransformationErrorHandling.Builder

setLeaveUntransformed(TransformationErrorHandling.LeaveUntransformed.Builder builderForValue)

public TransformationErrorHandling.Builder setLeaveUntransformed(TransformationErrorHandling.LeaveUntransformed.Builder builderForValue)

Ignore errors

.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2;

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

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

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

setThrowError(TransformationErrorHandling.ThrowError value)

public TransformationErrorHandling.Builder setThrowError(TransformationErrorHandling.ThrowError value)

Throw an error

.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1;

Parameter
Name Description
value TransformationErrorHandling.ThrowError
Returns
Type Description
TransformationErrorHandling.Builder

setThrowError(TransformationErrorHandling.ThrowError.Builder builderForValue)

public TransformationErrorHandling.Builder setThrowError(TransformationErrorHandling.ThrowError.Builder builderForValue)

Throw an error

.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1;

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

setUnknownFields(UnknownFieldSet unknownFields)

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