Package com.google.privacy.dlp.v2
Enum 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 Summary
Enum ConstantsEnum ConstantDescriptionFull matchInverse matchPartial matchRule-specific match.Invalid. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intFull matchstatic final intInverse matchstatic final intPartial matchstatic final intRule-specific match.static final intInvalid. -
Method Summary
Modifier and TypeMethodDescriptionstatic MatchingTypeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<MatchingType>static MatchingTypevalueOf(int value) Deprecated.static MatchingTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static MatchingTypeReturns the enum constant of this type with the specified name.static MatchingType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MATCHING_TYPE_UNSPECIFIED
Invalid.
MATCHING_TYPE_UNSPECIFIED = 0; -
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
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
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
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
-
-
Field Details
-
MATCHING_TYPE_UNSPECIFIED_VALUE
public static final int MATCHING_TYPE_UNSPECIFIED_VALUEInvalid.
MATCHING_TYPE_UNSPECIFIED = 0;- See Also:
-
MATCHING_TYPE_FULL_MATCH_VALUE
public static final int MATCHING_TYPE_FULL_MATCH_VALUEFull 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_VALUEPartial 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_VALUEInverse 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_VALUERule-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
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
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 nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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 nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
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 nameNullPointerException- if the argument is null
-