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()
Methods
public TransformationErrorHandling.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public TransformationErrorHandling build()
public TransformationErrorHandling buildPartial()
public TransformationErrorHandling.Builder clear()
Overrides
public TransformationErrorHandling.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public TransformationErrorHandling.Builder clearLeaveUntransformed()
Ignore errors
.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2;
public TransformationErrorHandling.Builder clearMode()
public TransformationErrorHandling.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public TransformationErrorHandling.Builder clearThrowError()
Throw an error
.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1;
public TransformationErrorHandling.Builder clone()
Overrides
public TransformationErrorHandling getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
public TransformationErrorHandling.LeaveUntransformed getLeaveUntransformed()
Ignore errors
.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2;
public TransformationErrorHandling.LeaveUntransformed.Builder getLeaveUntransformedBuilder()
Ignore errors
.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2;
public TransformationErrorHandling.LeaveUntransformedOrBuilder getLeaveUntransformedOrBuilder()
Ignore errors
.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2;
public TransformationErrorHandling.ModeCase getModeCase()
public TransformationErrorHandling.ThrowError getThrowError()
Throw an error
.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1;
public TransformationErrorHandling.ThrowError.Builder getThrowErrorBuilder()
Throw an error
.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1;
public TransformationErrorHandling.ThrowErrorOrBuilder getThrowErrorOrBuilder()
Throw an error
.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1;
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()
Overrides
public final boolean isInitialized()
Overrides
public TransformationErrorHandling.Builder mergeFrom(TransformationErrorHandling other)
public TransformationErrorHandling.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public TransformationErrorHandling.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public TransformationErrorHandling.Builder mergeLeaveUntransformed(TransformationErrorHandling.LeaveUntransformed value)
Ignore errors
.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2;
public TransformationErrorHandling.Builder mergeThrowError(TransformationErrorHandling.ThrowError value)
Throw an error
.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1;
public final TransformationErrorHandling.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
public TransformationErrorHandling.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public TransformationErrorHandling.Builder setLeaveUntransformed(TransformationErrorHandling.LeaveUntransformed value)
Ignore errors
.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2;
public TransformationErrorHandling.Builder setLeaveUntransformed(TransformationErrorHandling.LeaveUntransformed.Builder builderForValue)
Ignore errors
.google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2;
public TransformationErrorHandling.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public TransformationErrorHandling.Builder setThrowError(TransformationErrorHandling.ThrowError value)
Throw an error
.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1;
public TransformationErrorHandling.Builder setThrowError(TransformationErrorHandling.ThrowError.Builder builderForValue)
Throw an error
.google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1;
public final TransformationErrorHandling.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides