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

Message defining a custom dictionary of words or phrases for syntactic match.

Dictionary words are case-insensitive and all characters other than letters
and digits in the unicode [Basic Multilingual
Plane](https://en.wikipedia.org/wiki/Plane_%28Unicode%29#Basic_Multilingual_Plane)
will be replaced with whitespace when scanning for matches. For example, the
dictionary phrase `Sam Johnson` will match all three phrases `sam johnson`,
`Sam, Johnson`, and `Sam (Johnson)`. Additionally, the characters
surrounding any match must be of a different type than the adjacent
characters within the word, so letters must be next to non-letters and
digits must be next to non-digits. For example, the dictionary word `jen`
will match the first three letters of the text `jen123` but will return no
matches for `jennifer`.
Dictionary words containing a large number of characters that are not
letters or digits may result in unexpected matches because such characters
are treated as whitespace. For details about the size limits of dictionaries,
see [Quotas and
limits](https://docs.cloud.google.com/model-armor/quotas).

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

## Namespace

Google \\ Cloud \\ ModelArmor \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ word_list` | `https://docs.cloud.google.com/php/docs/reference/cloud-modelarmor/latest/V1.WordList` Message defining a list of words or phrases. |

### getWordList

Message defining a list of words or phrases.

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

### hasWordList

### setWordList

Message defining a list of words or phrases.

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

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

### getSource

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