public final class TransformationErrorHandling extends GeneratedMessageV3 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 Fields
public static final int LEAVE_UNTRANSFORMED_FIELD_NUMBER
Field Value
public static final int THROW_ERROR_FIELD_NUMBER
Field Value
Static Methods
public static TransformationErrorHandling getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static TransformationErrorHandling.Builder newBuilder()
Returns
public static TransformationErrorHandling.Builder newBuilder(TransformationErrorHandling prototype)
Parameter
Returns
public static TransformationErrorHandling parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static TransformationErrorHandling parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TransformationErrorHandling parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static TransformationErrorHandling parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TransformationErrorHandling parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static TransformationErrorHandling parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TransformationErrorHandling parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static TransformationErrorHandling parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TransformationErrorHandling parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static TransformationErrorHandling parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static TransformationErrorHandling parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static TransformationErrorHandling parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<TransformationErrorHandling> parser()
Returns
Methods
public boolean equals(Object obj)
Parameter
Returns
Overrides
public TransformationErrorHandling getDefaultInstanceForType()
Returns
public TransformationErrorHandling.LeaveUntransformed getLeaveUntransformed()
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 Parser<TransformationErrorHandling> getParserForType()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public TransformationErrorHandling.ThrowError getThrowError()
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 final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
Returns
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public TransformationErrorHandling.Builder newBuilderForType()
Returns
protected TransformationErrorHandling.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public TransformationErrorHandling.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions