Class 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.GeneratedMessageV3.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 Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TransformationSummary.Builder>
      • clear

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public TransformationSummary.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<TransformationSummary.Builder>
      • clearField

        public TransformationSummary.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<TransformationSummary.Builder>
      • clearOneof

        public TransformationSummary.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TransformationSummary.Builder>
      • setRepeatedField

        public TransformationSummary.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              int index,
                                                              Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TransformationSummary.Builder>
      • addRepeatedField

        public TransformationSummary.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TransformationSummary.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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;
      • 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;
      • 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;
      • 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;
      • 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.
      • 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;
      • 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
      • 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.
      • 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;
      • 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
      • 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;
      • 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.
      • setUnknownFields

        public final TransformationSummary.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TransformationSummary.Builder>
      • mergeUnknownFields

        public final TransformationSummary.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TransformationSummary.Builder>