Class TransformationErrorHandling.Builder (3.2.1) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 3.2.1keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
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
   
   
  
  
    
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 
  
 
     
    
  
  
  
     
  
 
  
    
    
      
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-30 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]