Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class MatchIntentResponse.
Response ofMatchIntent.
Generated from protobuf messagegoogle.cloud.dialogflow.cx.v3.MatchIntentResponse
Namespace
Google \ Cloud \ Dialogflow \ Cx \ V3
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ text
string
Ifnatural language textwas provided as input, this field will contain a copy of the text.
↳ trigger_intent
string
If anintentwas provided as input, this field will contain a copy of the intent identifier. Format:projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>.
The currentPage. Some, not all fields are filled in this message, including but not limited tonameanddisplay_name.
getText
Ifnatural language textwas
provided as input, this field will contain a copy of the text.
Returns
Type
Description
string
hasText
setText
Ifnatural language textwas
provided as input, this field will contain a copy of the text.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getTriggerIntent
If anintentwas provided as
input, this field will contain a copy of the intent identifier. Format:projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>.
Returns
Type
Description
string
hasTriggerIntent
setTriggerIntent
If anintentwas provided as
input, this field will contain a copy of the intent identifier. Format:projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>.
[[["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 MatchIntentResponse (0.8.1)\n\nVersion latestkeyboard_arrow_down\n\n- [0.8.1 (latest)](/php/docs/reference/cloud-dialogflow-cx/latest/V3.MatchIntentResponse)\n- [0.8.0](/php/docs/reference/cloud-dialogflow-cx/0.8.0/V3.MatchIntentResponse)\n- [0.7.2](/php/docs/reference/cloud-dialogflow-cx/0.7.2/V3.MatchIntentResponse)\n- [0.6.0](/php/docs/reference/cloud-dialogflow-cx/0.6.0/V3.MatchIntentResponse)\n- [0.5.2](/php/docs/reference/cloud-dialogflow-cx/0.5.2/V3.MatchIntentResponse)\n- [0.4.1](/php/docs/reference/cloud-dialogflow-cx/0.4.1/V3.MatchIntentResponse)\n- [0.3.4](/php/docs/reference/cloud-dialogflow-cx/0.3.4/V3.MatchIntentResponse)\n- [0.2.1](/php/docs/reference/cloud-dialogflow-cx/0.2.1/V3.MatchIntentResponse)\n- [0.1.1](/php/docs/reference/cloud-dialogflow-cx/0.1.1/V3.MatchIntentResponse) \nReference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class MatchIntentResponse.\n\nResponse of MatchIntent.\n\nGenerated from protobuf message `google.cloud.dialogflow.cx.v3.MatchIntentResponse`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dialogflow \\\\ Cx \\\\ V3\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getText\n\nIf [natural language text](/php/docs/reference/cloud-dialogflow-cx/latest/V3.TextInput) was\nprovided as input, this field will contain a copy of the text.\n\n### hasText\n\n### setText\n\nIf [natural language text](/php/docs/reference/cloud-dialogflow-cx/latest/V3.TextInput) was\nprovided as input, this field will contain a copy of the text.\n\n### getTriggerIntent\n\nIf an [intent](/php/docs/reference/cloud-dialogflow-cx/latest/V3.IntentInput) was provided as\ninput, this field will contain a copy of the intent identifier. Format:\n`projects/\u003cProjectID\u003e/locations/\u003cLocationID\u003e/agents/\u003cAgentID\u003e/intents/\u003cIntentID\u003e`.\n\n### hasTriggerIntent\n\n### setTriggerIntent\n\nIf an [intent](/php/docs/reference/cloud-dialogflow-cx/latest/V3.IntentInput) was provided as\ninput, this field will contain a copy of the intent identifier. Format:\n`projects/\u003cProjectID\u003e/locations/\u003cLocationID\u003e/agents/\u003cAgentID\u003e/intents/\u003cIntentID\u003e`.\n\n### getTranscript\n\nIf [natural language speech\naudio](/php/docs/reference/cloud-dialogflow-cx/latest/V3.AudioInput) was provided as input,\nthis field will contain the transcript for the audio.\n\n### hasTranscript\n\n### setTranscript\n\nIf [natural language speech\naudio](/php/docs/reference/cloud-dialogflow-cx/latest/V3.AudioInput) was provided as input,\nthis field will contain the transcript for the audio.\n\n### getTriggerEvent\n\nIf an [event](/php/docs/reference/cloud-dialogflow-cx/latest/V3.EventInput) was provided as\ninput, this field will contain a copy of the event name.\n\n### hasTriggerEvent\n\n### setTriggerEvent\n\nIf an [event](/php/docs/reference/cloud-dialogflow-cx/latest/V3.EventInput) was provided as\ninput, this field will contain a copy of the event name.\n\n### getMatches\n\nMatch results, if more than one, ordered descendingly by the confidence\nwe have that the particular intent matches the query.\n\n### setMatches\n\nMatch results, if more than one, ordered descendingly by the confidence\nwe have that the particular intent matches the query.\n\n### getCurrentPage\n\nThe current [Page](/php/docs/reference/cloud-dialogflow-cx/latest/V3.Page). Some, not all\nfields are filled in this message, including but not limited to `name` and\n`display_name`.\n\n### hasCurrentPage\n\n### clearCurrentPage\n\n### setCurrentPage\n\nThe current [Page](/php/docs/reference/cloud-dialogflow-cx/latest/V3.Page). Some, not all\nfields are filled in this message, including but not limited to `name` and\n`display_name`.\n\n### getQuery"]]