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

Message defining a custom regular expression.

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

## Namespace

Google \\ Cloud \\ ModelArmor \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ pattern` | `string` Required. The regular expression pattern. |

### getPattern

Required. The regular expression pattern.

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

### setPattern

Required. The regular expression pattern.

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

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