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

Represents session information communicated to and from the webhook.

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ session` | `string` Always present 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). The unique identifier of the [session](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DetectIntentRequest#_Google_Cloud_Dialogflow_Cx_V3_DetectIntentRequest__getSession__). This field can be used by the webhook to identify a session. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/sessions/<SessionID>` or `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/sessions/<SessionID>` if environment is specified. |
| `↳ parameters` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Optional for [WebhookRequest](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookRequest). Optional for [WebhookResponse](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookResponse). All parameters collected from forms and intents during the session. Parameters can be created, updated, or removed by the webhook. To remove a parameter from the session, the webhook should explicitly set the parameter value to null in [WebhookResponse](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookResponse). The map is keyed by parameters' display names. |

### getSession

Always present 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). The
unique identifier of the
[session](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DetectIntentRequest#_Google_Cloud_Dialogflow_Cx_V3_DetectIntentRequest__getSession__). This
field can be used by the webhook to identify a session.

Format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/sessions/<SessionID>`
or
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/sessions/<SessionID>`
if environment is specified.

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

### setSession

Always present 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). The
unique identifier of the
[session](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.DetectIntentRequest#_Google_Cloud_Dialogflow_Cx_V3_DetectIntentRequest__getSession__). This
field can be used by the webhook to identify a session.

Format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/sessions/<SessionID>`
or
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/sessions/<SessionID>`
if environment is specified.

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

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

### getParameters

Optional for
[WebhookRequest](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookRequest). Optional
for [WebhookResponse](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookResponse). All
parameters collected from forms and intents during the session. Parameters
can be created, updated, or removed by the webhook. To remove a parameter
from the session, the webhook should explicitly set the parameter value to
null in [WebhookResponse](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookResponse).

The map is keyed by parameters' display names.

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

### setParameters

Optional for
[WebhookRequest](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookRequest). Optional
for [WebhookResponse](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookResponse). All
parameters collected from forms and intents during the session. Parameters
can be created, updated, or removed by the webhook. To remove a parameter
from the session, the webhook should explicitly set the parameter value to
null in [WebhookResponse](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookResponse).

The map is keyed by parameters' display names.

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

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