Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class MatchIntentRequest.
Request of MatchIntent.
Generated from protobuf message google.cloud.dialogflow.cx.v3.MatchIntentRequest
Namespace
Google \ Cloud \ Dialogflow \ Cx \ V3
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ session
string
Required. The name of the session this query is sent to. Format: projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/sessions/<SessionID> or projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/sessions/<SessionID>. If Environment ID is not specified, we assume default 'draft' environment. It's up to the API caller to choose an appropriate Session ID. It can be a random number or some type of session identifiers (preferably hashed). The length of the Session ID must not exceed 36 characters. For more information, see the sessions guide.
Persist session parameter changes from query_params.
getSession
Required. The name of the session this query is sent to.
Format:
projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/sessions/<SessionID>
or
projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/sessions/<SessionID>.
If Environment ID is not specified, we assume default 'draft'
environment.
It's up to the API caller to choose an appropriate Session ID. It can be
a random number or some type of session identifiers (preferably hashed).
The length of the Session ID must not exceed 36 characters.
For more information, see the sessions
guide.
Returns
Type
Description
string
setSession
Required. The name of the session this query is sent to.
Format:
projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/sessions/<SessionID>
or
projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/environments/<EnvironmentID>/sessions/<SessionID>.
If Environment ID is not specified, we assume default 'draft'
environment.
It's up to the API caller to choose an appropriate Session ID. It can be
a random number or some type of session identifiers (preferably hashed).
The length of the Session ID must not exceed 36 characters.
For more information, see the sessions
guide.
[[["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 MatchIntentRequest (0.8.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.8.1 (latest)](/php/docs/reference/cloud-dialogflow-cx/latest/V3.MatchIntentRequest)\n- [0.8.0](/php/docs/reference/cloud-dialogflow-cx/0.8.0/V3.MatchIntentRequest)\n- [0.7.2](/php/docs/reference/cloud-dialogflow-cx/0.7.2/V3.MatchIntentRequest)\n- [0.6.0](/php/docs/reference/cloud-dialogflow-cx/0.6.0/V3.MatchIntentRequest)\n- [0.5.2](/php/docs/reference/cloud-dialogflow-cx/0.5.2/V3.MatchIntentRequest)\n- [0.4.1](/php/docs/reference/cloud-dialogflow-cx/0.4.1/V3.MatchIntentRequest)\n- [0.3.4](/php/docs/reference/cloud-dialogflow-cx/0.3.4/V3.MatchIntentRequest)\n- [0.2.1](/php/docs/reference/cloud-dialogflow-cx/0.2.1/V3.MatchIntentRequest)\n- [0.1.1](/php/docs/reference/cloud-dialogflow-cx/0.1.1/V3.MatchIntentRequest) \nReference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class MatchIntentRequest.\n\nRequest of MatchIntent.\n\nGenerated from protobuf message `google.cloud.dialogflow.cx.v3.MatchIntentRequest`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dialogflow \\\\ Cx \\\\ V3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getSession\n\nRequired. The name of the session this query is sent to.\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 ID` is not specified, we assume default 'draft'\nenvironment.\nIt's up to the API caller to choose an appropriate `Session ID`. It can be\na random number or some type of session identifiers (preferably hashed).\nThe length of the `Session ID` must not exceed 36 characters.\nFor more information, see the [sessions\nguide](https://cloud.google.com/dialogflow/cx/docs/concept/session).\n\n### setSession\n\nRequired. The name of the session this query is sent to.\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 ID` is not specified, we assume default 'draft'\nenvironment.\nIt's up to the API caller to choose an appropriate `Session ID`. It can be\na random number or some type of session identifiers (preferably hashed).\nThe length of the `Session ID` must not exceed 36 characters.\nFor more information, see the [sessions\nguide](https://cloud.google.com/dialogflow/cx/docs/concept/session).\n\n### getQueryParams\n\nThe parameters of this query.\n\n### hasQueryParams\n\n### clearQueryParams\n\n### setQueryParams\n\nThe parameters of this query.\n\n### getQueryInput\n\nRequired. The input specification.\n\n### hasQueryInput\n\n### clearQueryInput\n\n### setQueryInput\n\nRequired. The input specification.\n\n### getPersistParameterChanges\n\nPersist session parameter changes from `query_params`.\n\n### setPersistParameterChanges\n\nPersist session parameter changes from `query_params`."]]