Class TransformationErrorHandling

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.privacy.dlp.v2.TransformationErrorHandling
All Implemented Interfaces:
TransformationErrorHandlingOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class TransformationErrorHandling extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • THROW_ERROR_FIELD_NUMBER

      public static final int THROW_ERROR_FIELD_NUMBER
      See Also:
    • LEAVE_UNTRANSFORMED_FIELD_NUMBER

      public static final int LEAVE_UNTRANSFORMED_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getModeCase

      Specified by:
      getModeCase in interface TransformationErrorHandlingOrBuilder
    • hasThrowError

      public boolean hasThrowError()
       Throw an error
       
      .google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1;
      Specified by:
      hasThrowError in interface TransformationErrorHandlingOrBuilder
      Returns:
      Whether the throwError field is set.
    • getThrowError

       Throw an error
       
      .google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1;
      Specified by:
      getThrowError in interface TransformationErrorHandlingOrBuilder
      Returns:
      The throwError.
    • getThrowErrorOrBuilder

      public TransformationErrorHandling.ThrowErrorOrBuilder getThrowErrorOrBuilder()
       Throw an error
       
      .google.privacy.dlp.v2.TransformationErrorHandling.ThrowError throw_error = 1;
      Specified by:
      getThrowErrorOrBuilder in interface TransformationErrorHandlingOrBuilder
    • hasLeaveUntransformed

      public boolean hasLeaveUntransformed()
       Ignore errors
       
      .google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2;
      Specified by:
      hasLeaveUntransformed in interface TransformationErrorHandlingOrBuilder
      Returns:
      Whether the leaveUntransformed field is set.
    • getLeaveUntransformed

      public TransformationErrorHandling.LeaveUntransformed getLeaveUntransformed()
       Ignore errors
       
      .google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2;
      Specified by:
      getLeaveUntransformed in interface TransformationErrorHandlingOrBuilder
      Returns:
      The leaveUntransformed.
    • getLeaveUntransformedOrBuilder

      public TransformationErrorHandling.LeaveUntransformedOrBuilder getLeaveUntransformedOrBuilder()
       Ignore errors
       
      .google.privacy.dlp.v2.TransformationErrorHandling.LeaveUntransformed leave_untransformed = 2;
      Specified by:
      getLeaveUntransformedOrBuilder in interface TransformationErrorHandlingOrBuilder
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static TransformationErrorHandling parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TransformationErrorHandling parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TransformationErrorHandling parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TransformationErrorHandling parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TransformationErrorHandling parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TransformationErrorHandling parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static TransformationErrorHandling parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TransformationErrorHandling parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static TransformationErrorHandling parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static TransformationErrorHandling parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TransformationErrorHandling parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static TransformationErrorHandling parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

      public TransformationErrorHandling.Builder newBuilderForType()
      Specified by:
      newBuilderForType in interface com.google.protobuf.Message
      Specified by:
      newBuilderForType in interface com.google.protobuf.MessageLite
    • newBuilder

      public static TransformationErrorHandling.Builder newBuilder()
    • newBuilder

    • toBuilder

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

      protected TransformationErrorHandling.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static TransformationErrorHandling getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<TransformationErrorHandling> parser()
    • getParserForType

      public com.google.protobuf.Parser<TransformationErrorHandling> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

      public TransformationErrorHandling getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder