# Data Loss Prevention V2 Client - Class MatchingType (2.13.0)

2.13.0 (latest) 2.12.0 2.11.0 2.10.0 2.9.2 2.8.1 2.7.0 2.6.1 2.4.1 2.3.0 2.2.3 2.1.0 2.0.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.1 1.14.0 1.13.2 1.12.0 1.11.0 1.10.2 1.9.0 1.8.6 Reference documentation and code samples for the Data Loss Prevention V2 Client class MatchingType.

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 type `google.privacy.dlp.v2.MatchingType`

## Namespace

Google \\ Cloud \\ Dlp \\ V2

## Methods

### static::name

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `value` | `mixed` |

### static::value

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `mixed` |

## Constants

### MATCHING_TYPE_UNSPECIFIED

    Value: 0

Invalid.

Generated from protobuf enum `MATCHING_TYPE_UNSPECIFIED = 0;`

### MATCHING_TYPE_FULL_MATCH

    Value: 1

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

Generated from protobuf enum `MATCHING_TYPE_FULL_MATCH = 1;`

### MATCHING_TYPE_PARTIAL_MATCH

    Value: 2

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

Generated from protobuf enum `MATCHING_TYPE_PARTIAL_MATCH = 2;`

### MATCHING_TYPE_INVERSE_MATCH

    Value: 3

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

Generated from protobuf enum `MATCHING_TYPE_INVERSE_MATCH = 3;`

### MATCHING_TYPE_RULE_SPECIFIC

    Value: 4

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.

Generated from protobuf enum `MATCHING_TYPE_RULE_SPECIFIC = 4;`