Class TransformationDescription.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TransformationDescription.Builder>
com.google.privacy.dlp.v2.TransformationDescription.Builder
All Implemented Interfaces:
TransformationDescriptionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
TransformationDescription

public static final class TransformationDescription.Builder extends com.google.protobuf.GeneratedMessage.Builder<TransformationDescription.Builder> implements TransformationDescriptionOrBuilder
 A flattened description of a `PrimitiveTransformation` or
 `RecordSuppression`.
 
Protobuf type google.privacy.dlp.v2.TransformationDescription
  • 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.Builder<TransformationDescription.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<TransformationDescription.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<TransformationDescription.Builder>
    • getDefaultInstanceForType

      public TransformationDescription getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public TransformationDescription build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public TransformationDescription buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public TransformationDescription.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransformationDescription.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<TransformationDescription.Builder>
    • mergeFrom

      public TransformationDescription.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TransformationDescription.Builder>
      Throws:
      IOException
    • getTypeValue

      public int getTypeValue()
       The transformation type.
       
      .google.privacy.dlp.v2.TransformationType type = 1;
      Specified by:
      getTypeValue in interface TransformationDescriptionOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public TransformationDescription.Builder setTypeValue(int value)
       The transformation type.
       
      .google.privacy.dlp.v2.TransformationType type = 1;
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public TransformationType getType()
       The transformation type.
       
      .google.privacy.dlp.v2.TransformationType type = 1;
      Specified by:
      getType in interface TransformationDescriptionOrBuilder
      Returns:
      The type.
    • setType

       The transformation type.
       
      .google.privacy.dlp.v2.TransformationType type = 1;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

       The transformation type.
       
      .google.privacy.dlp.v2.TransformationType type = 1;
      Returns:
      This builder for chaining.
    • getDescription

      public String getDescription()
       A description of the transformation. This is empty for a
       RECORD_SUPPRESSION, or is the output of calling toString() on the
       `PrimitiveTransformation` protocol buffer message for any other type of
       transformation.
       
      string description = 2;
      Specified by:
      getDescription in interface TransformationDescriptionOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       A description of the transformation. This is empty for a
       RECORD_SUPPRESSION, or is the output of calling toString() on the
       `PrimitiveTransformation` protocol buffer message for any other type of
       transformation.
       
      string description = 2;
      Specified by:
      getDescriptionBytes in interface TransformationDescriptionOrBuilder
      Returns:
      The bytes for description.
    • setDescription

      public TransformationDescription.Builder setDescription(String value)
       A description of the transformation. This is empty for a
       RECORD_SUPPRESSION, or is the output of calling toString() on the
       `PrimitiveTransformation` protocol buffer message for any other type of
       transformation.
       
      string description = 2;
      Parameters:
      value - The description to set.
      Returns:
      This builder for chaining.
    • clearDescription

      public TransformationDescription.Builder clearDescription()
       A description of the transformation. This is empty for a
       RECORD_SUPPRESSION, or is the output of calling toString() on the
       `PrimitiveTransformation` protocol buffer message for any other type of
       transformation.
       
      string description = 2;
      Returns:
      This builder for chaining.
    • setDescriptionBytes

      public TransformationDescription.Builder setDescriptionBytes(com.google.protobuf.ByteString value)
       A description of the transformation. This is empty for a
       RECORD_SUPPRESSION, or is the output of calling toString() on the
       `PrimitiveTransformation` protocol buffer message for any other type of
       transformation.
       
      string description = 2;
      Parameters:
      value - The bytes for description to set.
      Returns:
      This builder for chaining.
    • getCondition

      public String getCondition()
       A human-readable string representation of the `RecordCondition`
       corresponding to this transformation. Set if a `RecordCondition` was used
       to determine whether or not to apply this transformation.
      
       Examples:
       * (age_field > 85)
       * (age_field <= 18)
       * (zip_field exists)
       * (zip_field == 01234) && (city_field != "Springville")
       * (zip_field == 01234) && (age_field <= 18) && (city_field exists)
       
      string condition = 3;
      Specified by:
      getCondition in interface TransformationDescriptionOrBuilder
      Returns:
      The condition.
    • getConditionBytes

      public com.google.protobuf.ByteString getConditionBytes()
       A human-readable string representation of the `RecordCondition`
       corresponding to this transformation. Set if a `RecordCondition` was used
       to determine whether or not to apply this transformation.
      
       Examples:
       * (age_field > 85)
       * (age_field <= 18)
       * (zip_field exists)
       * (zip_field == 01234) && (city_field != "Springville")
       * (zip_field == 01234) && (age_field <= 18) && (city_field exists)
       
      string condition = 3;
      Specified by:
      getConditionBytes in interface TransformationDescriptionOrBuilder
      Returns:
      The bytes for condition.
    • setCondition

      public TransformationDescription.Builder setCondition(String value)
       A human-readable string representation of the `RecordCondition`
       corresponding to this transformation. Set if a `RecordCondition` was used
       to determine whether or not to apply this transformation.
      
       Examples:
       * (age_field > 85)
       * (age_field <= 18)
       * (zip_field exists)
       * (zip_field == 01234) && (city_field != "Springville")
       * (zip_field == 01234) && (age_field <= 18) && (city_field exists)
       
      string condition = 3;
      Parameters:
      value - The condition to set.
      Returns:
      This builder for chaining.
    • clearCondition

      public TransformationDescription.Builder clearCondition()
       A human-readable string representation of the `RecordCondition`
       corresponding to this transformation. Set if a `RecordCondition` was used
       to determine whether or not to apply this transformation.
      
       Examples:
       * (age_field > 85)
       * (age_field <= 18)
       * (zip_field exists)
       * (zip_field == 01234) && (city_field != "Springville")
       * (zip_field == 01234) && (age_field <= 18) && (city_field exists)
       
      string condition = 3;
      Returns:
      This builder for chaining.
    • setConditionBytes

      public TransformationDescription.Builder setConditionBytes(com.google.protobuf.ByteString value)
       A human-readable string representation of the `RecordCondition`
       corresponding to this transformation. Set if a `RecordCondition` was used
       to determine whether or not to apply this transformation.
      
       Examples:
       * (age_field > 85)
       * (age_field <= 18)
       * (zip_field exists)
       * (zip_field == 01234) && (city_field != "Springville")
       * (zip_field == 01234) && (age_field <= 18) && (city_field exists)
       
      string condition = 3;
      Parameters:
      value - The bytes for condition to set.
      Returns:
      This builder for chaining.
    • hasInfoType

      public boolean hasInfoType()
       Set if the transformation was limited to a specific `InfoType`.
       
      .google.privacy.dlp.v2.InfoType info_type = 4;
      Specified by:
      hasInfoType in interface TransformationDescriptionOrBuilder
      Returns:
      Whether the infoType field is set.
    • getInfoType

      public InfoType getInfoType()
       Set if the transformation was limited to a specific `InfoType`.
       
      .google.privacy.dlp.v2.InfoType info_type = 4;
      Specified by:
      getInfoType in interface TransformationDescriptionOrBuilder
      Returns:
      The infoType.
    • setInfoType

      public TransformationDescription.Builder setInfoType(InfoType value)
       Set if the transformation was limited to a specific `InfoType`.
       
      .google.privacy.dlp.v2.InfoType info_type = 4;
    • setInfoType

      public TransformationDescription.Builder setInfoType(InfoType.Builder builderForValue)
       Set if the transformation was limited to a specific `InfoType`.
       
      .google.privacy.dlp.v2.InfoType info_type = 4;
    • mergeInfoType

      public TransformationDescription.Builder mergeInfoType(InfoType value)
       Set if the transformation was limited to a specific `InfoType`.
       
      .google.privacy.dlp.v2.InfoType info_type = 4;
    • clearInfoType

      public TransformationDescription.Builder clearInfoType()
       Set if the transformation was limited to a specific `InfoType`.
       
      .google.privacy.dlp.v2.InfoType info_type = 4;
    • getInfoTypeBuilder

      public InfoType.Builder getInfoTypeBuilder()
       Set if the transformation was limited to a specific `InfoType`.
       
      .google.privacy.dlp.v2.InfoType info_type = 4;
    • getInfoTypeOrBuilder

      public InfoTypeOrBuilder getInfoTypeOrBuilder()
       Set if the transformation was limited to a specific `InfoType`.
       
      .google.privacy.dlp.v2.InfoType info_type = 4;
      Specified by:
      getInfoTypeOrBuilder in interface TransformationDescriptionOrBuilder