0.10.0 (latest) 0.9.0 0.8.4 0.7.0 0.6.0 0.5.3 0.4.0 0.3.1 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Model Armor V1 Client class ExclusionRule.

The rule that specifies conditions when filter detections are excluded from
results.

Generated from protobuf message `google.cloud.modelarmor.v1.ExclusionRule`

## Namespace

Google \\ Cloud \\ ModelArmor \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ dictionary` | `https://docs.cloud.google.com/php/docs/reference/cloud-modelarmor/latest/V1.Dictionary` Dictionary which defines the rule. |
| `↳ regex` | `https://docs.cloud.google.com/php/docs/reference/cloud-modelarmor/latest/V1.Regex` Regular expression which defines the rule. |
| `↳ matching_scope` | `int` Optional. Specifies the scope of the input that should be matched against the exclusion rule. If unspecified, defaults to MATCHING_SCOPE_PARTIAL_MATCH. |

### getDictionary

Dictionary which defines the rule.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-modelarmor/latest/V1.Dictionary|null` |   |

### hasDictionary

### setDictionary

Dictionary which defines the rule.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-modelarmor/latest/V1.Dictionary` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getRegex

Regular expression which defines the rule.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-modelarmor/latest/V1.Regex|null` |   |

### hasRegex

### setRegex

Regular expression which defines the rule.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-modelarmor/latest/V1.Regex` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMatchingScope

Optional. Specifies the scope of the input that should be matched against
the exclusion rule. If unspecified, defaults to
MATCHING_SCOPE_PARTIAL_MATCH.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### hasMatchingScope

### clearMatchingScope

### setMatchingScope

Optional. Specifies the scope of the input that should be matched against
the exclusion rule. If unspecified, defaults to
MATCHING_SCOPE_PARTIAL_MATCH.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getType

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |