Enum MatchingType

java.lang.Object
java.lang.Enum<MatchingType>
com.google.privacy.dlp.v2.MatchingType
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<MatchingType>

@Generated public enum MatchingType extends Enum<MatchingType> implements com.google.protobuf.ProtocolMessageEnum
 Type of the match which can be applied to different ways of matching, like
 Dictionary, regular expression and intersecting with findings of another
 infoType.
 
Protobuf enum google.privacy.dlp.v2.MatchingType
  • Enum Constant Details

    • MATCHING_TYPE_UNSPECIFIED

      public static final MatchingType MATCHING_TYPE_UNSPECIFIED
       Invalid.
       
      MATCHING_TYPE_UNSPECIFIED = 0;
    • MATCHING_TYPE_FULL_MATCH

      public static final MatchingType MATCHING_TYPE_FULL_MATCH
       Full match.
      
       - Dictionary: join of Dictionary results matched the complete finding quote
       - Regex: all regex matches fill a finding quote from start to end
       - Exclude infoType: completely inside affecting infoTypes findings
       
      MATCHING_TYPE_FULL_MATCH = 1;
    • MATCHING_TYPE_PARTIAL_MATCH

      public static final MatchingType MATCHING_TYPE_PARTIAL_MATCH
       Partial match.
      
       - Dictionary: at least one of the tokens in the finding matches
       - Regex: substring of the finding matches
       - Exclude infoType: intersects with affecting infoTypes findings
       
      MATCHING_TYPE_PARTIAL_MATCH = 2;
    • MATCHING_TYPE_INVERSE_MATCH

      public static final MatchingType MATCHING_TYPE_INVERSE_MATCH
       Inverse match.
      
       - Dictionary: no tokens in the finding match the dictionary
       - Regex: finding doesn't match the regex
       - Exclude infoType: no intersection with affecting infoTypes findings
       
      MATCHING_TYPE_INVERSE_MATCH = 3;
    • MATCHING_TYPE_RULE_SPECIFIC

      public static final MatchingType MATCHING_TYPE_RULE_SPECIFIC
       Rule-specific match.
      
       The matching logic is based on the specific rule being used. This is
       required for rules where the matching behavior is not a simple string
       comparison (e.g., image containment). This matching type can only be
       used with the `ExcludeByImageFindings` rule.
      
       - Exclude by image findings: The matching logic is defined within
       `ExcludeByImageFindings` based on spatial relationships between bounding
       boxes.
       
      MATCHING_TYPE_RULE_SPECIFIC = 4;
    • UNRECOGNIZED

      public static final MatchingType UNRECOGNIZED
  • Field Details

    • MATCHING_TYPE_UNSPECIFIED_VALUE

      public static final int MATCHING_TYPE_UNSPECIFIED_VALUE
       Invalid.
       
      MATCHING_TYPE_UNSPECIFIED = 0;
      See Also:
    • MATCHING_TYPE_FULL_MATCH_VALUE

      public static final int MATCHING_TYPE_FULL_MATCH_VALUE
       Full match.
      
       - Dictionary: join of Dictionary results matched the complete finding quote
       - Regex: all regex matches fill a finding quote from start to end
       - Exclude infoType: completely inside affecting infoTypes findings
       
      MATCHING_TYPE_FULL_MATCH = 1;
      See Also:
    • MATCHING_TYPE_PARTIAL_MATCH_VALUE

      public static final int MATCHING_TYPE_PARTIAL_MATCH_VALUE
       Partial match.
      
       - Dictionary: at least one of the tokens in the finding matches
       - Regex: substring of the finding matches
       - Exclude infoType: intersects with affecting infoTypes findings
       
      MATCHING_TYPE_PARTIAL_MATCH = 2;
      See Also:
    • MATCHING_TYPE_INVERSE_MATCH_VALUE

      public static final int MATCHING_TYPE_INVERSE_MATCH_VALUE
       Inverse match.
      
       - Dictionary: no tokens in the finding match the dictionary
       - Regex: finding doesn't match the regex
       - Exclude infoType: no intersection with affecting infoTypes findings
       
      MATCHING_TYPE_INVERSE_MATCH = 3;
      See Also:
    • MATCHING_TYPE_RULE_SPECIFIC_VALUE

      public static final int MATCHING_TYPE_RULE_SPECIFIC_VALUE
       Rule-specific match.
      
       The matching logic is based on the specific rule being used. This is
       required for rules where the matching behavior is not a simple string
       comparison (e.g., image containment). This matching type can only be
       used with the `ExcludeByImageFindings` rule.
      
       - Exclude by image findings: The matching logic is defined within
       `ExcludeByImageFindings` based on spatial relationships between bounding
       boxes.
       
      MATCHING_TYPE_RULE_SPECIFIC = 4;
      See Also:
  • Method Details

    • values

      public static MatchingType[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static MatchingType valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static MatchingType valueOf(int value)
      Deprecated.
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static MatchingType forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<MatchingType> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static MatchingType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      desc - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null