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 PiAndJailbreakFilterSettings.

Prompt injection and Jailbreak Filter settings.

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

## Namespace

Google \\ Cloud \\ ModelArmor \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ filter_enforcement` | `int` Optional. Tells whether Prompt injection and Jailbreak filter is enabled or disabled. |
| `↳ confidence_level` | `int` Optional. Confidence level for this filter. Confidence level is used to determine the threshold for the filter. If detection confidence is equal to or greater than the specified level, a positive match is reported. Confidence level will only be used if the filter is enabled. |

### getFilterEnforcement

Optional. Tells whether Prompt injection and Jailbreak filter is enabled or
disabled.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [PiAndJailbreakFilterEnforcement](https://docs.cloud.google.com/php/docs/reference/cloud-modelarmor/latest/V1.PiAndJailbreakFilterSettings.PiAndJailbreakFilterEnforcement). |

### setFilterEnforcement

Optional. Tells whether Prompt injection and Jailbreak filter is enabled or
disabled.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [PiAndJailbreakFilterEnforcement](https://docs.cloud.google.com/php/docs/reference/cloud-modelarmor/latest/V1.PiAndJailbreakFilterSettings.PiAndJailbreakFilterEnforcement). |

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

### getConfidenceLevel

Optional. Confidence level for this filter.

Confidence level is used to determine the threshold for the filter. If
detection confidence is equal to or greater than the specified level, a
positive match is reported. Confidence level will only be used if the
filter is enabled.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [DetectionConfidenceLevel](https://docs.cloud.google.com/php/docs/reference/cloud-modelarmor/latest/V1.DetectionConfidenceLevel). |

### setConfidenceLevel

Optional. Confidence level for this filter.

Confidence level is used to determine the threshold for the filter. If
detection confidence is equal to or greater than the specified level, a
positive match is reported. Confidence level will only be used if the
filter is enabled.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [DetectionConfidenceLevel](https://docs.cloud.google.com/php/docs/reference/cloud-modelarmor/latest/V1.DetectionConfidenceLevel). |

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