# Google Cloud Dialogflow Cx V3 Client - Class Form (0.11.1)

0.11.1 (latest) 0.11.0 0.10.2 0.9.2 0.8.1 0.7.2 0.6.0 0.5.2 0.4.1 0.3.4 0.2.1 0.1.1 Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class Form.

A form is a data model that groups related parameters that can be collected
from the user. The process in which the agent prompts the user and collects
parameter values from the user is called form filling. A form can be added to
a [page](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Page). When form filling is done, the
filled parameters will be written to the
[session](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.SessionInfo#_Google_Cloud_Dialogflow_Cx_V3_SessionInfo__getParameters__).

Generated from protobuf message `google.cloud.dialogflow.cx.v3.Form`

## Namespace

Google \\ Cloud \\ Dialogflow \\ Cx \\ V3

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parameters` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Form.Parameter>` Parameters to collect from the user. |

### getParameters

Parameters to collect from the user.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Form.Parameter>` |   |

### setParameters

Parameters to collect from the user.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Form.Parameter>` |

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