Class TransformationErrorHandling.Builder (3.21.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TransformationErrorHandling build()
Returns
TypeDescription
TransformationErrorHandling

buildPartial()

public TransformationErrorHandling buildPartial()
Returns
TypeDescription
TransformationErrorHandling

clear()

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

clearField(Descriptors.FieldDescriptor field)

public TransformationErrorHandling.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
TransformationErrorHandling.Builder
Overrides

clearLeaveUntransformed()

public TransformationErrorHandling.Builder clearLeaveUntransformed()

Ignore errors

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

Returns
TypeDescription
TransformationErrorHandling.Builder

clearMode()

public TransformationErrorHandling.Builder clearMode()
Returns
TypeDescription
TransformationErrorHandling.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public TransformationErrorHandling.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TransformationErrorHandling.Builder
Overrides

clearThrowError()

public TransformationErrorHandling.Builder clearThrowError()

Throw an error

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

Returns
TypeDescription
TransformationErrorHandling.Builder

clone()

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

getDefaultInstanceForType()

public TransformationErrorHandling getDefaultInstanceForType()
Returns
TypeDescription
TransformationErrorHandling

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLeaveUntransformed()

public TransformationErrorHandling.LeaveUntransformed getLeaveUntransformed()

Ignore errors

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

Returns
TypeDescription
TransformationErrorHandling.LeaveUntransformed

The leaveUntransformed.

getLeaveUntransformedBuilder()

public TransformationErrorHandling.LeaveUntransformed.Builder getLeaveUntransformedBuilder()

Ignore errors

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

Returns
TypeDescription
TransformationErrorHandling.LeaveUntransformed.Builder

getLeaveUntransformedOrBuilder()

public TransformationErrorHandling.LeaveUntransformedOrBuilder getLeaveUntransformedOrBuilder()

Ignore errors

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

Returns
TypeDescription
TransformationErrorHandling.LeaveUntransformedOrBuilder

getModeCase()

public TransformationErrorHandling.ModeCase getModeCase()
Returns
TypeDescription
TransformationErrorHandling.ModeCase

getThrowError()

public TransformationErrorHandling.ThrowError getThrowError()

Throw an error

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

Returns
TypeDescription
TransformationErrorHandling.ThrowError

The throwError.

getThrowErrorBuilder()

public TransformationErrorHandling.ThrowError.Builder getThrowErrorBuilder()

Throw an error

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

Returns
TypeDescription
TransformationErrorHandling.ThrowError.Builder

getThrowErrorOrBuilder()

public TransformationErrorHandling.ThrowErrorOrBuilder getThrowErrorOrBuilder()

Throw an error

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

Returns
TypeDescription
TransformationErrorHandling.ThrowErrorOrBuilder

hasLeaveUntransformed()

public boolean hasLeaveUntransformed()

Ignore errors

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

Returns
TypeDescription
boolean

Whether the leaveUntransformed field is set.

hasThrowError()

public boolean hasThrowError()

Throw an error

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

Returns
TypeDescription
boolean

Whether the throwError field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TransformationErrorHandling other)

public TransformationErrorHandling.Builder mergeFrom(TransformationErrorHandling other)
Parameter
NameDescription
otherTransformationErrorHandling
Returns
TypeDescription
TransformationErrorHandling.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public TransformationErrorHandling.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTransformationErrorHandling.LeaveUntransformed
Returns
TypeDescription
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
NameDescription
valueTransformationErrorHandling.ThrowError
Returns
TypeDescription
TransformationErrorHandling.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public TransformationErrorHandling.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueTransformationErrorHandling.LeaveUntransformed
Returns
TypeDescription
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
NameDescription
builderForValueTransformationErrorHandling.LeaveUntransformed.Builder
Returns
TypeDescription
TransformationErrorHandling.Builder

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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