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

Response of MatchIntent.

Generated from protobuf message `google.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` If [natural language text](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.TextInput) was provided as input, this field will contain a copy of the text. |
| `↳ trigger_intent` | `string` If an [intent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.IntentInput) was provided as input, this field will contain a copy of the intent identifier. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`. |
| `↳ transcript` | `string` If [natural language speech audio](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.AudioInput) was provided as input, this field will contain the transcript for the audio. |
| `↳ trigger_event` | `string` If an [event](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.EventInput) was provided as input, this field will contain a copy of the event name. |
| `↳ matches` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.PBMatch>` Match results, if more than one, ordered descendingly by the confidence we have that the particular intent matches the query. |
| `↳ current_page` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Page` The current [Page](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Page). Some, not all fields are filled in this message, including but not limited to `name` and `display_name`. |

### getText

If [natural language text](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.TextInput) was
provided as input, this field will contain a copy of the text.

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

### hasText

### setText

If [natural language text](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.TextInput) was
provided as input, this field will contain a copy of the text.

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

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

### getTriggerIntent

If an [intent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.IntentInput) was 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 an [intent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.IntentInput) was provided as
input, this field will contain a copy of the intent identifier. Format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.

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

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

### getTranscript

If [natural language speech
audio](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.AudioInput) was provided as input,
this field will contain the transcript for the audio.

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

### hasTranscript

### setTranscript

If [natural language speech
audio](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.AudioInput) was provided as input,
this field will contain the transcript for the audio.

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

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

### getTriggerEvent

If an [event](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.EventInput) was provided as
input, this field will contain a copy of the event name.

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

### hasTriggerEvent

### setTriggerEvent

If an [event](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.EventInput) was provided as
input, this field will contain a copy of the event name.

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

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

### getMatches

Match results, if more than one, ordered descendingly by the confidence
we have that the particular intent matches the query.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.PBMatch>` |   |

### setMatches

Match results, if more than one, ordered descendingly by the confidence
we have that the particular intent matches the query.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.PBMatch>` |

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

### getCurrentPage

The current [Page](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Page). Some, not all
fields are filled in this message, including but not limited to `name` and
`display_name`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Page|null` |   |

### hasCurrentPage

### clearCurrentPage

### setCurrentPage

The current [Page](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Page). Some, not all
fields are filled in this message, including but not limited to `name` and
`display_name`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Page` |

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

### getQuery

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