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

Message defining a list of words or phrases.

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

## Namespace

Google \\ Cloud \\ ModelArmor \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ words` | `string[]` Required. Words or phrases defining the dictionary. The dictionary must contain at least one phrase and every phrase must contain at least two characters that are letters or digits. |

### getWords

Required. Words or phrases defining the dictionary. The dictionary must
contain at least one phrase and every phrase must contain at least two
characters that are letters or digits.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<string>` |   |

### setWords

Required. Words or phrases defining the dictionary. The dictionary must
contain at least one phrase and every phrase must contain at least two
characters that are letters or digits.

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

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