Class ExclusionRule

  • All Implemented Interfaces:
    ExclusionRuleOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class ExclusionRule
    extends com.google.protobuf.GeneratedMessageV3
    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
    See Also:
    Serialized Form
    • Field Detail

      • DICTIONARY_FIELD_NUMBER

        public static final int DICTIONARY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • EXCLUDE_INFO_TYPES_FIELD_NUMBER

        public static final int EXCLUDE_INFO_TYPES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • EXCLUDE_BY_HOTWORD_FIELD_NUMBER

        public static final int EXCLUDE_BY_HOTWORD_FIELD_NUMBER
        See Also:
        Constant Field Values
      • MATCHING_TYPE_FIELD_NUMBER

        public static final int MATCHING_TYPE_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static ExclusionRule parseFrom​(ByteBuffer data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ExclusionRule parseFrom​(ByteBuffer data,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ExclusionRule parseFrom​(com.google.protobuf.ByteString data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ExclusionRule parseFrom​(com.google.protobuf.ByteString data,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ExclusionRule parseFrom​(byte[] data)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ExclusionRule parseFrom​(byte[] data,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static ExclusionRule parseFrom​(com.google.protobuf.CodedInputStream input,
                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                       throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

        protected ExclusionRule.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static ExclusionRule getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<ExclusionRule> parser()
      • getParserForType

        public com.google.protobuf.Parser<ExclusionRule> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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