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. Ignored for WebhookResponse. The unique identifier of the session. 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.
Optional for WebhookRequest. Optional for 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. The map is keyed by parameters' display names.
getSession
Always present for
WebhookRequest. Ignored for
WebhookResponse. The
unique identifier of the
session. 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. Ignored for
WebhookResponse. The
unique identifier of the
session. 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. Optional
for 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.
Optional for
WebhookRequest. Optional
for 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.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Dialogflow Cx V3 Client - Class SessionInfo (0.8.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.8.1 (latest)](/php/docs/reference/cloud-dialogflow-cx/latest/V3.SessionInfo)\n- [0.8.0](/php/docs/reference/cloud-dialogflow-cx/0.8.0/V3.SessionInfo)\n- [0.7.2](/php/docs/reference/cloud-dialogflow-cx/0.7.2/V3.SessionInfo)\n- [0.6.0](/php/docs/reference/cloud-dialogflow-cx/0.6.0/V3.SessionInfo)\n- [0.5.2](/php/docs/reference/cloud-dialogflow-cx/0.5.2/V3.SessionInfo)\n- [0.4.1](/php/docs/reference/cloud-dialogflow-cx/0.4.1/V3.SessionInfo)\n- [0.3.4](/php/docs/reference/cloud-dialogflow-cx/0.3.4/V3.SessionInfo)\n- [0.2.1](/php/docs/reference/cloud-dialogflow-cx/0.2.1/V3.SessionInfo)\n- [0.1.1](/php/docs/reference/cloud-dialogflow-cx/0.1.1/V3.SessionInfo) \nReference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class SessionInfo.\n\nRepresents session information communicated to and from the webhook.\n\nGenerated from protobuf message `google.cloud.dialogflow.cx.v3.SessionInfo`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dialogflow \\\\ Cx \\\\ V3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getSession\n\nAlways present for\n[WebhookRequest](/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookRequest). Ignored for\n[WebhookResponse](/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookResponse). The\nunique identifier of the\n[session](/php/docs/reference/cloud-dialogflow-cx/latest/V3.DetectIntentRequest#_Google_Cloud_Dialogflow_Cx_V3_DetectIntentRequest__getSession__). This\nfield can be used by the webhook to identify a session.\n\nFormat:\n`projects/\u003cProjectID\u003e/locations/\u003cLocationID\u003e/agents/\u003cAgentID\u003e/sessions/\u003cSessionID\u003e`\nor\n`projects/\u003cProjectID\u003e/locations/\u003cLocationID\u003e/agents/\u003cAgentID\u003e/environments/\u003cEnvironmentID\u003e/sessions/\u003cSessionID\u003e`\nif environment is specified.\n\n### setSession\n\nAlways present for\n[WebhookRequest](/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookRequest). Ignored for\n[WebhookResponse](/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookResponse). The\nunique identifier of the\n[session](/php/docs/reference/cloud-dialogflow-cx/latest/V3.DetectIntentRequest#_Google_Cloud_Dialogflow_Cx_V3_DetectIntentRequest__getSession__). This\nfield can be used by the webhook to identify a session.\n\nFormat:\n`projects/\u003cProjectID\u003e/locations/\u003cLocationID\u003e/agents/\u003cAgentID\u003e/sessions/\u003cSessionID\u003e`\nor\n`projects/\u003cProjectID\u003e/locations/\u003cLocationID\u003e/agents/\u003cAgentID\u003e/environments/\u003cEnvironmentID\u003e/sessions/\u003cSessionID\u003e`\nif environment is specified.\n\n### getParameters\n\nOptional for\n[WebhookRequest](/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookRequest). Optional\nfor [WebhookResponse](/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookResponse). All\nparameters collected from forms and intents during the session. Parameters\ncan be created, updated, or removed by the webhook. To remove a parameter\nfrom the session, the webhook should explicitly set the parameter value to\nnull in [WebhookResponse](/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookResponse).\n\nThe map is keyed by parameters' display names.\n\n### setParameters\n\nOptional for\n[WebhookRequest](/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookRequest). Optional\nfor [WebhookResponse](/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookResponse). All\nparameters collected from forms and intents during the session. Parameters\ncan be created, updated, or removed by the webhook. To remove a parameter\nfrom the session, the webhook should explicitly set the parameter value to\nnull in [WebhookResponse](/php/docs/reference/cloud-dialogflow-cx/latest/V3.WebhookResponse).\n\nThe map is keyed by parameters' display names."]]