Class ExclusionRule

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.privacy.dlp.v2.ExclusionRule
All Implemented Interfaces:
ExclusionRuleOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class ExclusionRule extends com.google.protobuf.GeneratedMessage 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:
  • Field Details

    • DICTIONARY_FIELD_NUMBER

      public static final int DICTIONARY_FIELD_NUMBER
      See Also:
    • REGEX_FIELD_NUMBER

      public static final int REGEX_FIELD_NUMBER
      See Also:
    • EXCLUDE_INFO_TYPES_FIELD_NUMBER

      public static final int EXCLUDE_INFO_TYPES_FIELD_NUMBER
      See Also:
    • EXCLUDE_BY_HOTWORD_FIELD_NUMBER

      public static final int EXCLUDE_BY_HOTWORD_FIELD_NUMBER
      See Also:
    • EXCLUDE_BY_IMAGE_FINDINGS_FIELD_NUMBER

      public static final int EXCLUDE_BY_IMAGE_FINDINGS_FIELD_NUMBER
      See Also:
    • MATCHING_TYPE_FIELD_NUMBER

      public static final int MATCHING_TYPE_FIELD_NUMBER
      See Also:
  • 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
    • getTypeCase

      public ExclusionRule.TypeCase getTypeCase()
      Specified by:
      getTypeCase in interface ExclusionRuleOrBuilder
    • 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.
    • getDictionary

      public CustomInfoType.Dictionary getDictionary()
       Dictionary which defines the rule.
       
      .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;
      Specified by:
      getDictionary in interface ExclusionRuleOrBuilder
      Returns:
      The dictionary.
    • getDictionaryOrBuilder

      public CustomInfoType.DictionaryOrBuilder getDictionaryOrBuilder()
       Dictionary which defines the rule.
       
      .google.privacy.dlp.v2.CustomInfoType.Dictionary dictionary = 1;
      Specified by:
      getDictionaryOrBuilder in interface ExclusionRuleOrBuilder
    • 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.
    • getRegex

      public CustomInfoType.Regex getRegex()
       Regular expression which defines the rule.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;
      Specified by:
      getRegex in interface ExclusionRuleOrBuilder
      Returns:
      The regex.
    • getRegexOrBuilder

      public CustomInfoType.RegexOrBuilder getRegexOrBuilder()
       Regular expression which defines the rule.
       
      .google.privacy.dlp.v2.CustomInfoType.Regex regex = 2;
      Specified by:
      getRegexOrBuilder in interface ExclusionRuleOrBuilder
    • 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.
    • getExcludeInfoTypesOrBuilder

      public ExcludeInfoTypesOrBuilder getExcludeInfoTypesOrBuilder()
       Set of infoTypes for which findings would affect this rule.
       
      .google.privacy.dlp.v2.ExcludeInfoTypes exclude_info_types = 3;
      Specified by:
      getExcludeInfoTypesOrBuilder in interface ExclusionRuleOrBuilder
    • 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.
    • getExcludeByHotwordOrBuilder

      public ExcludeByHotwordOrBuilder getExcludeByHotwordOrBuilder()
       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:
      getExcludeByHotwordOrBuilder in interface ExclusionRuleOrBuilder
    • hasExcludeByImageFindings

      public boolean hasExcludeByImageFindings()
       Exclude findings based on image containment rules. For example, exclude
       an image finding if it overlaps with another image finding.
       
      .google.privacy.dlp.v2.ExcludeByImageFindings exclude_by_image_findings = 6;
      Specified by:
      hasExcludeByImageFindings in interface ExclusionRuleOrBuilder
      Returns:
      Whether the excludeByImageFindings field is set.
    • getExcludeByImageFindings

      public ExcludeByImageFindings getExcludeByImageFindings()
       Exclude findings based on image containment rules. For example, exclude
       an image finding if it overlaps with another image finding.
       
      .google.privacy.dlp.v2.ExcludeByImageFindings exclude_by_image_findings = 6;
      Specified by:
      getExcludeByImageFindings in interface ExclusionRuleOrBuilder
      Returns:
      The excludeByImageFindings.
    • getExcludeByImageFindingsOrBuilder

      public ExcludeByImageFindingsOrBuilder getExcludeByImageFindingsOrBuilder()
       Exclude findings based on image containment rules. For example, exclude
       an image finding if it overlaps with another image finding.
       
      .google.privacy.dlp.v2.ExcludeByImageFindings exclude_by_image_findings = 6;
      Specified by:
      getExcludeByImageFindingsOrBuilder in interface ExclusionRuleOrBuilder
    • 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.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ExclusionRule parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ExclusionRule parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static ExclusionRule parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static ExclusionRule parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • 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
    • newBuilder

      public static ExclusionRule.Builder newBuilder()
    • newBuilder

      public static ExclusionRule.Builder newBuilder(ExclusionRule prototype)
    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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