# Google Cloud Security Compliance V1 Client - Class RegexpPattern (0.4.0)

0.4.0 (latest) 0.3.0 0.2.1 0.1.0 Reference documentation and code samples for the Google Cloud Security Compliance V1 Client class RegexpPattern.

The regular expression (regex) validator for parameter values.

Generated from protobuf message `google.cloud.cloudsecuritycompliance.v1.RegexpPattern`

## Namespace

Google \\ Cloud \\ CloudSecurityCompliance \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ pattern` | `string` Required. The regex pattern to match the values of the parameter with. |

### getPattern

Required. The regex pattern to match the values of the parameter with.

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

### setPattern

Required. The regex pattern to match the values of the parameter with.

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

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