# Google Cloud Dialogflow Cx V3 Client - Class SafetySignals (0.11.1)

0.11.1 (latest) 0.11.0 0.10.2 0.9.2 0.8.1 0.7.2 0.6.0 0.5.2 0.4.1 0.3.4 0.2.1 0.1.1 Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class SafetySignals.

Safety check results.

Generated from protobuf message `google.cloud.dialogflow.cx.v3.DataStoreConnectionSignals.SafetySignals`

## Namespace

Google \\ Cloud \\ Dialogflow \\ Cx \\ V3 \\ DataStoreConnectionSignals

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ decision` | `int` Safety decision. |
| `↳ banned_phrase_match` | `int` Specifies banned phrase match subject. |
| `↳ matched_banned_phrase` | `string` The matched banned phrase if there was a match. |

### getDecision

Safety decision.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [SafetyDecision](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DataStoreConnectionSignals.SafetySignals.SafetyDecision). |

### setDecision

Safety decision.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [SafetyDecision](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DataStoreConnectionSignals.SafetySignals.SafetyDecision). |

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

### getBannedPhraseMatch

Specifies banned phrase match subject.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [BannedPhraseMatch](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DataStoreConnectionSignals.SafetySignals.BannedPhraseMatch). |

### setBannedPhraseMatch

Specifies banned phrase match subject.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [BannedPhraseMatch](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DataStoreConnectionSignals.SafetySignals.BannedPhraseMatch). |

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

### getMatchedBannedPhrase

The matched banned phrase if there was a match.

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

### setMatchedBannedPhrase

The matched banned phrase if there was a match.

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

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