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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
public TransformationErrorHandling.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public TransformationErrorHandling build()
Returns
public TransformationErrorHandling buildPartial()
Returns
public TransformationErrorHandling.Builder clear()
Returns
Overrides
public TransformationErrorHandling.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
public TransformationErrorHandling.Builder clearLeaveUntransformed()
Ignore errors
.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2;
Returns
public TransformationErrorHandling.Builder clearMode()
Returns
public TransformationErrorHandling.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
public TransformationErrorHandling.Builder clearThrowError()
Throw an error
.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1;
Returns
public TransformationErrorHandling.Builder clone()
Returns
Overrides
public TransformationErrorHandling getDefaultInstanceForType()
Returns
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
public TransformationErrorHandling.LeaveUntransformed getLeaveUntransformed()
Ignore errors
.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2;
Returns
public TransformationErrorHandling.LeaveUntransformed.Builder getLeaveUntransformedBuilder()
Ignore errors
.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2;
Returns
public TransformationErrorHandling.LeaveUntransformedOrBuilder getLeaveUntransformedOrBuilder()
Ignore errors
.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2;
Returns
public TransformationErrorHandling.ModeCase getModeCase()
Returns
public TransformationErrorHandling.ThrowError getThrowError()
Throw an error
.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1;
Returns
public TransformationErrorHandling.ThrowError.Builder getThrowErrorBuilder()
Throw an error
.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1;
Returns
public TransformationErrorHandling.ThrowErrorOrBuilder getThrowErrorOrBuilder()
Throw an error
.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1;
Returns
public boolean hasLeaveUntransformed()
Ignore errors
.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2;
Returns
Type | Description |
boolean | Whether the leaveUntransformed field is set.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public TransformationErrorHandling.Builder mergeFrom(TransformationErrorHandling other)
Parameter
Returns
public TransformationErrorHandling.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
public TransformationErrorHandling.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
public TransformationErrorHandling.Builder mergeLeaveUntransformed(TransformationErrorHandling.LeaveUntransformed value)
Ignore errors
.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2;
Parameter
Returns
public TransformationErrorHandling.Builder mergeThrowError(TransformationErrorHandling.ThrowError value)
Throw an error
.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1;
Parameter
Returns
public final TransformationErrorHandling.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
public TransformationErrorHandling.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
public TransformationErrorHandling.Builder setLeaveUntransformed(TransformationErrorHandling.LeaveUntransformed value)
Ignore errors
.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2;
Parameter
Returns
public TransformationErrorHandling.Builder setLeaveUntransformed(TransformationErrorHandling.LeaveUntransformed.Builder builderForValue)
Ignore errors
.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2;
Parameter
Returns
public TransformationErrorHandling.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
public TransformationErrorHandling.Builder setThrowError(TransformationErrorHandling.ThrowError value)
Throw an error
.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1;
Parameter
Returns
public TransformationErrorHandling.Builder setThrowError(TransformationErrorHandling.ThrowError.Builder builderForValue)
Throw an error
.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1;
Parameter
Returns
public final TransformationErrorHandling.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides