# Google Cloud Dialogflow Cx V3 Client - Class ParameterInfo (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 ParameterInfo.

Represents parameter information.

Generated from protobuf message `google.cloud.dialogflow.cx.v3.PageInfo.FormInfo.ParameterInfo`

## Namespace

Google \\ Cloud \\ Dialogflow \\ Cx \\ V3 \\ PageInfo \\ FormInfo

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ display_name` | `string` Always present for [WebhookRequest](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookRequest). Required for [WebhookResponse](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookResponse). The human-readable name of the parameter, unique within the form. This field cannot be modified by the webhook. |
| `↳ required` | `bool` Optional for both [WebhookRequest](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookRequest) and [WebhookResponse](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookResponse). Indicates whether the parameter is required. Optional parameters will not trigger prompts; however, they are filled if the user specifies them. Required parameters must be filled before form filling concludes. |
| `↳ state` | `int` Always present for [WebhookRequest](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookRequest). Required for [WebhookResponse](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookResponse). The state of the parameter. This field can be set to [INVALID](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.PageInfo.FormInfo.ParameterInfo.ParameterState#_Google_Cloud_Dialogflow_Cx_V3_PageInfo_FormInfo_ParameterInfo_ParameterState__INVALID) by the webhook to invalidate the parameter; other values set by the webhook will be ignored. |
| `↳ value` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Value` Optional for both [WebhookRequest](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookRequest) and [WebhookResponse](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookResponse). The value of the parameter. This field can be set by the webhook to change the parameter value. |
| `↳ just_collected` | `bool` Optional for [WebhookRequest](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookRequest). Ignored for [WebhookResponse](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookResponse). Indicates if the parameter value was just collected on the last conversation turn. |

### getDisplayName

Always present for
[WebhookRequest](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookRequest).

Required for
[WebhookResponse](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookResponse).
The human-readable name of the parameter, unique within the form. This
field cannot be modified by the webhook.

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

### setDisplayName

Always present for
[WebhookRequest](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookRequest).

Required for
[WebhookResponse](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookResponse).
The human-readable name of the parameter, unique within the form. This
field cannot be modified by the webhook.

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

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

### getRequired

Optional for both
[WebhookRequest](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookRequest) and
[WebhookResponse](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookResponse).

Indicates whether the parameter is required. Optional parameters will
not trigger prompts; however, they are filled if the user specifies
them. Required parameters must be filled before form filling concludes.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setRequired

Optional for both
[WebhookRequest](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookRequest) and
[WebhookResponse](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookResponse).

Indicates whether the parameter is required. Optional parameters will
not trigger prompts; however, they are filled if the user specifies
them. Required parameters must be filled before form filling concludes.

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

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

### getState

Always present for
[WebhookRequest](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookRequest).

Required for
[WebhookResponse](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookResponse). The
state of the parameter. This field can be set to
[INVALID](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.PageInfo.FormInfo.ParameterInfo.ParameterState#_Google_Cloud_Dialogflow_Cx_V3_PageInfo_FormInfo_ParameterInfo_ParameterState__INVALID)
by the webhook to invalidate the parameter; other values set by the
webhook will be ignored.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ParameterState](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.PageInfo.FormInfo.ParameterInfo.ParameterState). |

### setState

Always present for
[WebhookRequest](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookRequest).

Required for
[WebhookResponse](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookResponse). The
state of the parameter. This field can be set to
[INVALID](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.PageInfo.FormInfo.ParameterInfo.ParameterState#_Google_Cloud_Dialogflow_Cx_V3_PageInfo_FormInfo_ParameterInfo_ParameterState__INVALID)
by the webhook to invalidate the parameter; other values set by the
webhook will be ignored.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ParameterState](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.PageInfo.FormInfo.ParameterInfo.ParameterState). |

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

### getValue

Optional for both
[WebhookRequest](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookRequest) and
[WebhookResponse](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookResponse). The
value of the parameter. This field can be set by the webhook to change
the parameter value.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Value|null` |   |

### hasValue

### clearValue

### setValue

Optional for both
[WebhookRequest](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookRequest) and
[WebhookResponse](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookResponse). The
value of the parameter. This field can be set by the webhook to change
the parameter value.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Value` |

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

### getJustCollected

Optional for
[WebhookRequest](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookRequest). Ignored
for [WebhookResponse](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookResponse).

Indicates if the parameter value was just collected on the last
conversation turn.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setJustCollected

Optional for
[WebhookRequest](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookRequest). Ignored
for [WebhookResponse](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookResponse).

Indicates if the parameter value was just collected on the last
conversation turn.

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

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