# Google Cloud Contact Center Insights V1 Client - Class PhraseMatchRule (2.4.2)

2.4.2 (latest) 2.4.1 2.3.3 2.2.1 2.1.1 2.0.1 1.9.5 1.8.0 1.7.1 1.6.2 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.3 Reference documentation and code samples for the Google Cloud Contact Center Insights V1 Client class PhraseMatchRule.

The data for a phrase match rule.

Generated from protobuf message `google.cloud.contactcenterinsights.v1.PhraseMatchRule`

## Namespace

Google \\ Cloud \\ ContactCenterInsights \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ query` | `string` Required. The phrase to be matched. |
| `↳ negated` | `bool` Specifies whether the phrase must be missing from the transcript segment or present in the transcript segment. |
| `↳ config` | `https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.PhraseMatchRuleConfig` Provides additional information about the rule that specifies how to apply the rule. |

### getQuery

Required. The phrase to be matched.

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

### setQuery

Required. The phrase to be matched.

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

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

### getNegated

Specifies whether the phrase must be missing from the transcript segment or
present in the transcript segment.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setNegated

Specifies whether the phrase must be missing from the transcript segment or
present in the transcript segment.

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

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

### getConfig

Provides additional information about the rule that specifies how to apply
the rule.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.PhraseMatchRuleConfig|null` |   |

### hasConfig

### clearConfig

### setConfig

Provides additional information about the rule that specifies how to apply
the rule.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-contact-center-insights/latest/V1.PhraseMatchRuleConfig` |

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