Class ExclusionRule.Builder

  • All Implemented Interfaces:
    ExclusionRuleOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    ExclusionRule

    public static final class ExclusionRule.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<ExclusionRule.Builder>
    implements ExclusionRuleOrBuilder
     The rule that specifies conditions when findings of infoTypes specified in
     `InspectionRuleSet` are removed from results.
     
    Protobuf type google.privacy.dlp.v2.ExclusionRule
    • 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<ExclusionRule.Builder>
      • clear

        public ExclusionRule.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<ExclusionRule.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<ExclusionRule.Builder>
      • getDefaultInstanceForType

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

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

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

        public ExclusionRule.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<ExclusionRule.Builder>
      • setField

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

        public ExclusionRule.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<ExclusionRule.Builder>
      • clearOneof

        public ExclusionRule.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<ExclusionRule.Builder>
      • setRepeatedField

        public ExclusionRule.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<ExclusionRule.Builder>
      • addRepeatedField

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

        public ExclusionRule.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<ExclusionRule.Builder>
      • isInitialized

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

        public ExclusionRule.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<ExclusionRule.Builder>
        Throws:
        IOException
      • hasDictionary

        public boolean hasDictionary()
         Dictionary which defines the rule.
         
        .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;
        Specified by:
        hasDictionary in interface ExclusionRuleOrBuilder
        Returns:
        Whether the dictionary field is set.
      • clearDictionary

        public ExclusionRule.Builder clearDictionary()
         Dictionary which defines the rule.
         
        .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;
      • getDictionaryBuilder

        public CustomInfoType.Dictionary.Builder getDictionaryBuilder()
         Dictionary which defines the rule.
         
        .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;
      • hasRegex

        public boolean hasRegex()
         Regular expression which defines the rule.
         
        .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;
        Specified by:
        hasRegex in interface ExclusionRuleOrBuilder
        Returns:
        Whether the regex field is set.
      • clearRegex

        public ExclusionRule.Builder clearRegex()
         Regular expression which defines the rule.
         
        .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;
      • getRegexBuilder

        public CustomInfoType.Regex.Builder getRegexBuilder()
         Regular expression which defines the rule.
         
        .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;
      • hasExcludeInfoTypes

        public boolean hasExcludeInfoTypes()
         Set of infoTypes for which findings would affect this rule.
         
        .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;
        Specified by:
        hasExcludeInfoTypes in interface ExclusionRuleOrBuilder
        Returns:
        Whether the excludeInfoTypes field is set.
      • getExcludeInfoTypes

        public ExcludeInfoTypes getExcludeInfoTypes()
         Set of infoTypes for which findings would affect this rule.
         
        .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;
        Specified by:
        getExcludeInfoTypes in interface ExclusionRuleOrBuilder
        Returns:
        The excludeInfoTypes.
      • setExcludeInfoTypes

        public ExclusionRule.Builder setExcludeInfoTypes​(ExcludeInfoTypes value)
         Set of infoTypes for which findings would affect this rule.
         
        .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;
      • setExcludeInfoTypes

        public ExclusionRule.Builder setExcludeInfoTypes​(ExcludeInfoTypes.Builder builderForValue)
         Set of infoTypes for which findings would affect this rule.
         
        .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;
      • mergeExcludeInfoTypes

        public ExclusionRule.Builder mergeExcludeInfoTypes​(ExcludeInfoTypes value)
         Set of infoTypes for which findings would affect this rule.
         
        .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;
      • clearExcludeInfoTypes

        public ExclusionRule.Builder clearExcludeInfoTypes()
         Set of infoTypes for which findings would affect this rule.
         
        .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;
      • getExcludeInfoTypesBuilder

        public ExcludeInfoTypes.Builder getExcludeInfoTypesBuilder()
         Set of infoTypes for which findings would affect this rule.
         
        .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;
      • hasExcludeByHotword

        public boolean hasExcludeByHotword()
         Drop if the hotword rule is contained in the proximate context. For
         tabular data, the context includes the column name.
         
        .google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5;
        Specified by:
        hasExcludeByHotword in interface ExclusionRuleOrBuilder
        Returns:
        Whether the excludeByHotword field is set.
      • getExcludeByHotword

        public ExcludeByHotword getExcludeByHotword()
         Drop if the hotword rule is contained in the proximate context. For
         tabular data, the context includes the column name.
         
        .google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5;
        Specified by:
        getExcludeByHotword in interface ExclusionRuleOrBuilder
        Returns:
        The excludeByHotword.
      • setExcludeByHotword

        public ExclusionRule.Builder setExcludeByHotword​(ExcludeByHotword value)
         Drop if the hotword rule is contained in the proximate context. For
         tabular data, the context includes the column name.
         
        .google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5;
      • setExcludeByHotword

        public ExclusionRule.Builder setExcludeByHotword​(ExcludeByHotword.Builder builderForValue)
         Drop if the hotword rule is contained in the proximate context. For
         tabular data, the context includes the column name.
         
        .google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5;
      • mergeExcludeByHotword

        public ExclusionRule.Builder mergeExcludeByHotword​(ExcludeByHotword value)
         Drop if the hotword rule is contained in the proximate context. For
         tabular data, the context includes the column name.
         
        .google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5;
      • clearExcludeByHotword

        public ExclusionRule.Builder clearExcludeByHotword()
         Drop if the hotword rule is contained in the proximate context. For
         tabular data, the context includes the column name.
         
        .google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5;
      • getExcludeByHotwordBuilder

        public ExcludeByHotword.Builder getExcludeByHotwordBuilder()
         Drop if the hotword rule is contained in the proximate context. For
         tabular data, the context includes the column name.
         
        .google.privacy.dlp.v2.ExcludeByHotword exclude_by_hotword = 5;
      • getMatchingTypeValue

        public int getMatchingTypeValue()
         How the rule is applied, see MatchingType documentation for details.
         
        .google.privacy.dlp.v2.MatchingType matching_type = 4;
        Specified by:
        getMatchingTypeValue in interface ExclusionRuleOrBuilder
        Returns:
        The enum numeric value on the wire for matchingType.
      • setMatchingTypeValue

        public ExclusionRule.Builder setMatchingTypeValue​(int value)
         How the rule is applied, see MatchingType documentation for details.
         
        .google.privacy.dlp.v2.MatchingType matching_type = 4;
        Parameters:
        value - The enum numeric value on the wire for matchingType to set.
        Returns:
        This builder for chaining.
      • getMatchingType

        public MatchingType getMatchingType()
         How the rule is applied, see MatchingType documentation for details.
         
        .google.privacy.dlp.v2.MatchingType matching_type = 4;
        Specified by:
        getMatchingType in interface ExclusionRuleOrBuilder
        Returns:
        The matchingType.
      • setMatchingType

        public ExclusionRule.Builder setMatchingType​(MatchingType value)
         How the rule is applied, see MatchingType documentation for details.
         
        .google.privacy.dlp.v2.MatchingType matching_type = 4;
        Parameters:
        value - The matchingType to set.
        Returns:
        This builder for chaining.
      • clearMatchingType

        public ExclusionRule.Builder clearMatchingType()
         How the rule is applied, see MatchingType documentation for details.
         
        .google.privacy.dlp.v2.MatchingType matching_type = 4;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final ExclusionRule.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<ExclusionRule.Builder>
      • mergeUnknownFields

        public final ExclusionRule.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<ExclusionRule.Builder>