Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class DetectIntentRequest.
The request to detect user's intent.
Generated from protobuf message google.cloud.dialogflow.cx.v3.DetectIntentRequest
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/<Session ID> 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. Note: Always use agent versions for production traffic. See Versions and environments.
Instructs the speech synthesizer how to generate the output audio.
getSession
Required. The name of the session this query is sent to.
Format:
projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/sessions/<Session
ID> 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.
Note: Always use agent versions for production traffic.
See Versions and
environments.
Returns
Type
Description
string
setSession
Required. The name of the session this query is sent to.
Format:
projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/sessions/<Session
ID> 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.
Note: Always use agent versions for production traffic.
See Versions and
environments.
[[["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 DetectIntentRequest (0.8.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.8.1 (latest)](/php/docs/reference/cloud-dialogflow-cx/latest/V3.DetectIntentRequest)\n- [0.8.0](/php/docs/reference/cloud-dialogflow-cx/0.8.0/V3.DetectIntentRequest)\n- [0.7.2](/php/docs/reference/cloud-dialogflow-cx/0.7.2/V3.DetectIntentRequest)\n- [0.6.0](/php/docs/reference/cloud-dialogflow-cx/0.6.0/V3.DetectIntentRequest)\n- [0.5.2](/php/docs/reference/cloud-dialogflow-cx/0.5.2/V3.DetectIntentRequest)\n- [0.4.1](/php/docs/reference/cloud-dialogflow-cx/0.4.1/V3.DetectIntentRequest)\n- [0.3.4](/php/docs/reference/cloud-dialogflow-cx/0.3.4/V3.DetectIntentRequest)\n- [0.2.1](/php/docs/reference/cloud-dialogflow-cx/0.2.1/V3.DetectIntentRequest)\n- [0.1.1](/php/docs/reference/cloud-dialogflow-cx/0.1.1/V3.DetectIntentRequest) \nReference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class DetectIntentRequest.\n\nThe request to detect user's intent.\n\nGenerated from protobuf message `google.cloud.dialogflow.cx.v3.DetectIntentRequest`\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/\u003cSession\nID\u003e` or\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).\nNote: Always use agent versions for production traffic.\nSee [Versions and\nenvironments](https://cloud.google.com/dialogflow/cx/docs/concept/version).\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/\u003cSession\nID\u003e` or\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).\nNote: Always use agent versions for production traffic.\nSee [Versions and\nenvironments](https://cloud.google.com/dialogflow/cx/docs/concept/version).\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### getOutputAudioConfig\n\nInstructs the speech synthesizer how to generate the output audio.\n\n### hasOutputAudioConfig\n\n### clearOutputAudioConfig\n\n### setOutputAudioConfig\n\nInstructs the speech synthesizer how to generate the output audio."]]