Class TransformationSummary.Builder

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

public static final class TransformationSummary.Builder extends com.google.protobuf.GeneratedMessage.Builder<TransformationSummary.Builder> implements TransformationSummaryOrBuilder
 Summary of a single transformation.
 Only one of 'transformation', 'field_transformation', or 'record_suppress'
 will be set.
 
Protobuf type google.privacy.dlp.v2.TransformationSummary
  • 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<TransformationSummary.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<TransformationSummary.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<TransformationSummary.Builder>
    • getDefaultInstanceForType

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

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

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

      public TransformationSummary.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<TransformationSummary.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<TransformationSummary.Builder>
    • mergeFrom

      public TransformationSummary.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<TransformationSummary.Builder>
      Throws:
      IOException
    • hasInfoType

      public boolean hasInfoType()
       Set if the transformation was limited to a specific InfoType.
       
      .google.privacy.dlp.v2.InfoType info_type = 1;
      Specified by:
      hasInfoType in interface TransformationSummaryOrBuilder
      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 = 1;
      Specified by:
      getInfoType in interface TransformationSummaryOrBuilder
      Returns:
      The infoType.
    • setInfoType

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

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

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

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

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

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

      public boolean hasField()
       Set if the transformation was limited to a specific FieldId.
       
      .google.privacy.dlp.v2.FieldId field = 2;
      Specified by:
      hasField in interface TransformationSummaryOrBuilder
      Returns:
      Whether the field field is set.
    • getField

      public FieldId getField()
       Set if the transformation was limited to a specific FieldId.
       
      .google.privacy.dlp.v2.FieldId field = 2;
      Specified by:
      getField in interface TransformationSummaryOrBuilder
      Returns:
      The field.
    • setField

      public TransformationSummary.Builder setField(FieldId value)
       Set if the transformation was limited to a specific FieldId.
       
      .google.privacy.dlp.v2.FieldId field = 2;
    • setField

      public TransformationSummary.Builder setField(FieldId.Builder builderForValue)
       Set if the transformation was limited to a specific FieldId.
       
      .google.privacy.dlp.v2.FieldId field = 2;
    • mergeField

      public TransformationSummary.Builder mergeField(FieldId value)
       Set if the transformation was limited to a specific FieldId.
       
      .google.privacy.dlp.v2.FieldId field = 2;
    • clearField

      public TransformationSummary.Builder clearField()
       Set if the transformation was limited to a specific FieldId.
       
      .google.privacy.dlp.v2.FieldId field = 2;
    • getFieldBuilder

      public FieldId.Builder getFieldBuilder()
       Set if the transformation was limited to a specific FieldId.
       
      .google.privacy.dlp.v2.FieldId field = 2;
    • getFieldOrBuilder

      public FieldIdOrBuilder getFieldOrBuilder()
       Set if the transformation was limited to a specific FieldId.
       
      .google.privacy.dlp.v2.FieldId field = 2;
      Specified by:
      getFieldOrBuilder in interface TransformationSummaryOrBuilder
    • hasTransformation

      public boolean hasTransformation()
       The specific transformation these stats apply to.
       
      .google.privacy.dlp.v2.PrimitiveTransformation transformation = 3;
      Specified by:
      hasTransformation in interface TransformationSummaryOrBuilder
      Returns:
      Whether the transformation field is set.
    • getTransformation

      public PrimitiveTransformation getTransformation()
       The specific transformation these stats apply to.
       
      .google.privacy.dlp.v2.PrimitiveTransformation transformation = 3;
      Specified by:
      getTransformation in interface TransformationSummaryOrBuilder
      Returns:
      The transformation.
    • setTransformation

      public TransformationSummary.Builder setTransformation(PrimitiveTransformation value)
       The specific transformation these stats apply to.
       
      .google.privacy.dlp.v2.PrimitiveTransformation transformation = 3;
    • setTransformation

      public TransformationSummary.Builder setTransformation(PrimitiveTransformation.Builder builderForValue)
       The specific transformation these stats apply to.
       
      .google.privacy.dlp.v2.PrimitiveTransformation transformation = 3;
    • mergeTransformation

      public TransformationSummary.Builder mergeTransformation(PrimitiveTransformation value)
       The specific transformation these stats apply to.
       
      .google.privacy.dlp.v2.PrimitiveTransformation transformation = 3;
    • clearTransformation

      public TransformationSummary.Builder clearTransformation()
       The specific transformation these stats apply to.
       
      .google.privacy.dlp.v2.PrimitiveTransformation transformation = 3;
    • getTransformationBuilder

      public PrimitiveTransformation.Builder getTransformationBuilder()
       The specific transformation these stats apply to.
       
      .google.privacy.dlp.v2.PrimitiveTransformation transformation = 3;
    • getTransformationOrBuilder

      public PrimitiveTransformationOrBuilder getTransformationOrBuilder()
       The specific transformation these stats apply to.
       
      .google.privacy.dlp.v2.PrimitiveTransformation transformation = 3;
      Specified by:
      getTransformationOrBuilder in interface TransformationSummaryOrBuilder
    • getFieldTransformationsList

      public List<FieldTransformation> getFieldTransformationsList()
       The field transformation that was applied.
       If multiple field transformations are requested for a single field,
       this list will contain all of them; otherwise, only one is supplied.
       
      repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;
      Specified by:
      getFieldTransformationsList in interface TransformationSummaryOrBuilder
    • getFieldTransformationsCount

      public int getFieldTransformationsCount()
       The field transformation that was applied.
       If multiple field transformations are requested for a single field,
       this list will contain all of them; otherwise, only one is supplied.
       
      repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;
      Specified by:
      getFieldTransformationsCount in interface TransformationSummaryOrBuilder
    • getFieldTransformations

      public FieldTransformation getFieldTransformations(int index)
       The field transformation that was applied.
       If multiple field transformations are requested for a single field,
       this list will contain all of them; otherwise, only one is supplied.
       
      repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;
      Specified by:
      getFieldTransformations in interface TransformationSummaryOrBuilder
    • setFieldTransformations

      public TransformationSummary.Builder setFieldTransformations(int index, FieldTransformation value)
       The field transformation that was applied.
       If multiple field transformations are requested for a single field,
       this list will contain all of them; otherwise, only one is supplied.
       
      repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;
    • setFieldTransformations

      public TransformationSummary.Builder setFieldTransformations(int index, FieldTransformation.Builder builderForValue)
       The field transformation that was applied.
       If multiple field transformations are requested for a single field,
       this list will contain all of them; otherwise, only one is supplied.
       
      repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;
    • addFieldTransformations

      public TransformationSummary.Builder addFieldTransformations(FieldTransformation value)
       The field transformation that was applied.
       If multiple field transformations are requested for a single field,
       this list will contain all of them; otherwise, only one is supplied.
       
      repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;
    • addFieldTransformations

      public TransformationSummary.Builder addFieldTransformations(int index, FieldTransformation value)
       The field transformation that was applied.
       If multiple field transformations are requested for a single field,
       this list will contain all of them; otherwise, only one is supplied.
       
      repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;
    • addFieldTransformations

      public TransformationSummary.Builder addFieldTransformations(FieldTransformation.Builder builderForValue)
       The field transformation that was applied.
       If multiple field transformations are requested for a single field,
       this list will contain all of them; otherwise, only one is supplied.
       
      repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;
    • addFieldTransformations

      public TransformationSummary.Builder addFieldTransformations(int index, FieldTransformation.Builder builderForValue)
       The field transformation that was applied.
       If multiple field transformations are requested for a single field,
       this list will contain all of them; otherwise, only one is supplied.
       
      repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;
    • addAllFieldTransformations

      public TransformationSummary.Builder addAllFieldTransformations(Iterable<? extends FieldTransformation> values)
       The field transformation that was applied.
       If multiple field transformations are requested for a single field,
       this list will contain all of them; otherwise, only one is supplied.
       
      repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;
    • clearFieldTransformations

      public TransformationSummary.Builder clearFieldTransformations()
       The field transformation that was applied.
       If multiple field transformations are requested for a single field,
       this list will contain all of them; otherwise, only one is supplied.
       
      repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;
    • removeFieldTransformations

      public TransformationSummary.Builder removeFieldTransformations(int index)
       The field transformation that was applied.
       If multiple field transformations are requested for a single field,
       this list will contain all of them; otherwise, only one is supplied.
       
      repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;
    • getFieldTransformationsBuilder

      public FieldTransformation.Builder getFieldTransformationsBuilder(int index)
       The field transformation that was applied.
       If multiple field transformations are requested for a single field,
       this list will contain all of them; otherwise, only one is supplied.
       
      repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;
    • getFieldTransformationsOrBuilder

      public FieldTransformationOrBuilder getFieldTransformationsOrBuilder(int index)
       The field transformation that was applied.
       If multiple field transformations are requested for a single field,
       this list will contain all of them; otherwise, only one is supplied.
       
      repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;
      Specified by:
      getFieldTransformationsOrBuilder in interface TransformationSummaryOrBuilder
    • getFieldTransformationsOrBuilderList

      public List<? extends FieldTransformationOrBuilder> getFieldTransformationsOrBuilderList()
       The field transformation that was applied.
       If multiple field transformations are requested for a single field,
       this list will contain all of them; otherwise, only one is supplied.
       
      repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;
      Specified by:
      getFieldTransformationsOrBuilderList in interface TransformationSummaryOrBuilder
    • addFieldTransformationsBuilder

      public FieldTransformation.Builder addFieldTransformationsBuilder()
       The field transformation that was applied.
       If multiple field transformations are requested for a single field,
       this list will contain all of them; otherwise, only one is supplied.
       
      repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;
    • addFieldTransformationsBuilder

      public FieldTransformation.Builder addFieldTransformationsBuilder(int index)
       The field transformation that was applied.
       If multiple field transformations are requested for a single field,
       this list will contain all of them; otherwise, only one is supplied.
       
      repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;
    • getFieldTransformationsBuilderList

      public List<FieldTransformation.Builder> getFieldTransformationsBuilderList()
       The field transformation that was applied.
       If multiple field transformations are requested for a single field,
       this list will contain all of them; otherwise, only one is supplied.
       
      repeated .google.privacy.dlp.v2.FieldTransformation field_transformations = 5;
    • hasRecordSuppress

      public boolean hasRecordSuppress()
       The specific suppression option these stats apply to.
       
      .google.privacy.dlp.v2.RecordSuppression record_suppress = 6;
      Specified by:
      hasRecordSuppress in interface TransformationSummaryOrBuilder
      Returns:
      Whether the recordSuppress field is set.
    • getRecordSuppress

      public RecordSuppression getRecordSuppress()
       The specific suppression option these stats apply to.
       
      .google.privacy.dlp.v2.RecordSuppression record_suppress = 6;
      Specified by:
      getRecordSuppress in interface TransformationSummaryOrBuilder
      Returns:
      The recordSuppress.
    • setRecordSuppress

      public TransformationSummary.Builder setRecordSuppress(RecordSuppression value)
       The specific suppression option these stats apply to.
       
      .google.privacy.dlp.v2.RecordSuppression record_suppress = 6;
    • setRecordSuppress

      public TransformationSummary.Builder setRecordSuppress(RecordSuppression.Builder builderForValue)
       The specific suppression option these stats apply to.
       
      .google.privacy.dlp.v2.RecordSuppression record_suppress = 6;
    • mergeRecordSuppress

      public TransformationSummary.Builder mergeRecordSuppress(RecordSuppression value)
       The specific suppression option these stats apply to.
       
      .google.privacy.dlp.v2.RecordSuppression record_suppress = 6;
    • clearRecordSuppress

      public TransformationSummary.Builder clearRecordSuppress()
       The specific suppression option these stats apply to.
       
      .google.privacy.dlp.v2.RecordSuppression record_suppress = 6;
    • getRecordSuppressBuilder

      public RecordSuppression.Builder getRecordSuppressBuilder()
       The specific suppression option these stats apply to.
       
      .google.privacy.dlp.v2.RecordSuppression record_suppress = 6;
    • getRecordSuppressOrBuilder

      public RecordSuppressionOrBuilder getRecordSuppressOrBuilder()
       The specific suppression option these stats apply to.
       
      .google.privacy.dlp.v2.RecordSuppression record_suppress = 6;
      Specified by:
      getRecordSuppressOrBuilder in interface TransformationSummaryOrBuilder
    • getResultsList

      public List<TransformationSummary.SummaryResult> getResultsList()
       Collection of all transformations that took place or had an error.
       
      repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;
      Specified by:
      getResultsList in interface TransformationSummaryOrBuilder
    • getResultsCount

      public int getResultsCount()
       Collection of all transformations that took place or had an error.
       
      repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;
      Specified by:
      getResultsCount in interface TransformationSummaryOrBuilder
    • getResults

      public TransformationSummary.SummaryResult getResults(int index)
       Collection of all transformations that took place or had an error.
       
      repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;
      Specified by:
      getResults in interface TransformationSummaryOrBuilder
    • setResults

       Collection of all transformations that took place or had an error.
       
      repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;
    • setResults

      public TransformationSummary.Builder setResults(int index, TransformationSummary.SummaryResult.Builder builderForValue)
       Collection of all transformations that took place or had an error.
       
      repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;
    • addResults

       Collection of all transformations that took place or had an error.
       
      repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;
    • addResults

       Collection of all transformations that took place or had an error.
       
      repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;
    • addResults

       Collection of all transformations that took place or had an error.
       
      repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;
    • addResults

      public TransformationSummary.Builder addResults(int index, TransformationSummary.SummaryResult.Builder builderForValue)
       Collection of all transformations that took place or had an error.
       
      repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;
    • addAllResults

       Collection of all transformations that took place or had an error.
       
      repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;
    • clearResults

      public TransformationSummary.Builder clearResults()
       Collection of all transformations that took place or had an error.
       
      repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;
    • removeResults

      public TransformationSummary.Builder removeResults(int index)
       Collection of all transformations that took place or had an error.
       
      repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;
    • getResultsBuilder

      public TransformationSummary.SummaryResult.Builder getResultsBuilder(int index)
       Collection of all transformations that took place or had an error.
       
      repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;
    • getResultsOrBuilder

      public TransformationSummary.SummaryResultOrBuilder getResultsOrBuilder(int index)
       Collection of all transformations that took place or had an error.
       
      repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;
      Specified by:
      getResultsOrBuilder in interface TransformationSummaryOrBuilder
    • getResultsOrBuilderList

      public List<? extends TransformationSummary.SummaryResultOrBuilder> getResultsOrBuilderList()
       Collection of all transformations that took place or had an error.
       
      repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;
      Specified by:
      getResultsOrBuilderList in interface TransformationSummaryOrBuilder
    • addResultsBuilder

      public TransformationSummary.SummaryResult.Builder addResultsBuilder()
       Collection of all transformations that took place or had an error.
       
      repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;
    • addResultsBuilder

      public TransformationSummary.SummaryResult.Builder addResultsBuilder(int index)
       Collection of all transformations that took place or had an error.
       
      repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;
    • getResultsBuilderList

      public List<TransformationSummary.SummaryResult.Builder> getResultsBuilderList()
       Collection of all transformations that took place or had an error.
       
      repeated .google.privacy.dlp.v2.TransformationSummary.SummaryResult results = 4;
    • getTransformedBytes

      public long getTransformedBytes()
       Total size in bytes that were transformed in some way.
       
      int64 transformed_bytes = 7;
      Specified by:
      getTransformedBytes in interface TransformationSummaryOrBuilder
      Returns:
      The transformedBytes.
    • setTransformedBytes

      public TransformationSummary.Builder setTransformedBytes(long value)
       Total size in bytes that were transformed in some way.
       
      int64 transformed_bytes = 7;
      Parameters:
      value - The transformedBytes to set.
      Returns:
      This builder for chaining.
    • clearTransformedBytes

      public TransformationSummary.Builder clearTransformedBytes()
       Total size in bytes that were transformed in some way.
       
      int64 transformed_bytes = 7;
      Returns:
      This builder for chaining.