ParagraphTextValidationBuilder

A DataValidationBuilder for a `https://developers.google.com/apps-script/reference/forms/paragraph-text-validation`.

```javascript
// Add a paragraph text item to a form and require the answer to be at least 100
// characters.
const form = FormApp.create('My Form');
const paragraphTextItem =
    form.addParagraphTextItem().setTitle('Describe yourself:');
const paragraphtextValidation =
    FormApp.createParagraphTextValidation()
        .setHelpText('Answer must be more than 100 characters.')
        .requireTextLengthGreaterThan(100);
paragraphTextItem.setValidation(paragraphtextValidation);
```

### Methods

| Method | Return type | Brief description |
|---|---|---|
| `https://developers.google.com/apps-script/reference/forms/paragraph-text-validation-builder#requireTextContainsPattern(String)` | `https://developers.google.com/apps-script/reference/forms/paragraph-text-validation-builder#` | Requires response to contain pattern. |
| `https://developers.google.com/apps-script/reference/forms/paragraph-text-validation-builder#requireTextDoesNotContainPattern(String)` | `https://developers.google.com/apps-script/reference/forms/paragraph-text-validation-builder#` | Requires response to not contain pattern. |
| `https://developers.google.com/apps-script/reference/forms/paragraph-text-validation-builder#requireTextDoesNotMatchPattern(String)` | `https://developers.google.com/apps-script/reference/forms/paragraph-text-validation-builder#` | Requires response to not match pattern. |
| `https://developers.google.com/apps-script/reference/forms/paragraph-text-validation-builder#requireTextLengthGreaterThanOrEqualTo(Integer)` | `https://developers.google.com/apps-script/reference/forms/paragraph-text-validation-builder#` | Requires response length to be greater than or equal to value. |
| `https://developers.google.com/apps-script/reference/forms/paragraph-text-validation-builder#requireTextLengthLessThanOrEqualTo(Integer)` | `https://developers.google.com/apps-script/reference/forms/paragraph-text-validation-builder#` | Requires response length to be less than value. |
| `https://developers.google.com/apps-script/reference/forms/paragraph-text-validation-builder#requireTextMatchesPattern(String)` | `https://developers.google.com/apps-script/reference/forms/paragraph-text-validation-builder#` | Requires response to match pattern. |

## Detailed documentation

### `requireTextContainsPattern(pattern)`

Requires response to contain pattern.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `pattern` | `String` | text must contain pattern |

#### Return


`https://developers.google.com/apps-script/reference/forms/paragraph-text-validation-builder#` --- this for chaining

*** ** * ** ***

### `requireTextDoesNotContainPattern(pattern)`

Requires response to not contain pattern.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `pattern` | `String` | text must not contain pattern |

#### Return


`https://developers.google.com/apps-script/reference/forms/paragraph-text-validation-builder#` --- this for chaining

*** ** * ** ***

### `requireTextDoesNotMatchPattern(pattern)`

Requires response to not match pattern.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `pattern` | `String` | text must not match pattern |

#### Return


`https://developers.google.com/apps-script/reference/forms/paragraph-text-validation-builder#` --- this for chaining

*** ** * ** ***

### `requireTextLengthGreaterThanOrEqualTo(number)`

Requires response length to be greater than or equal to value.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `number` | `Integer` | paragraph text length must be greater than this value |

#### Return


`https://developers.google.com/apps-script/reference/forms/paragraph-text-validation-builder#` --- this for chaining

*** ** * ** ***

### `requireTextLengthLessThanOrEqualTo(number)`

Requires response length to be less than value.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `number` | `Integer` | paragraph text length must be less than or equal to this value |

#### Return


`https://developers.google.com/apps-script/reference/forms/paragraph-text-validation-builder#` --- this for chaining

*** ** * ** ***

### `requireTextMatchesPattern(pattern)`

Requires response to match pattern.

#### Parameters

| Name | Type | Description |
|---|---|---|
| `pattern` | `String` | text must match pattern |

#### Return


`https://developers.google.com/apps-script/reference/forms/paragraph-text-validation-builder#` --- this for chaining