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

Represents intent information communicated to the webhook.

Generated from protobuf message `google.cloud.dialogflow.cx.v3.WebhookRequest.IntentInfo`

## Namespace

Google \\ Cloud \\ Dialogflow \\ Cx \\ V3 \\ WebhookRequest

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ last_matched_intent` | `string` Always present. The unique identifier of the last matched [intent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Intent). Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`. |
| `↳ display_name` | `string` Always present. The display name of the last matched [intent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Intent). |
| `↳ parameters` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` Parameters identified as a result of intent matching. This is a map of the name of the identified parameter to the value of the parameter identified from the user's utterance. All parameters defined in the matched intent that are identified will be surfaced here. |
| `↳ confidence` | `float` The confidence of the matched intent. Values range from 0.0 (completely uncertain) to 1.0 (completely certain). |

### getLastMatchedIntent

Always present. The unique identifier of the last matched
[intent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Intent).

Format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.

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

### setLastMatchedIntent

Always present. The unique identifier of the last matched
[intent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Intent).

Format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.

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

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

### getDisplayName

Always present. The display name of the last matched
[intent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Intent).

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

### setDisplayName

Always present. The display name of the last matched
[intent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Intent).

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

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

### getParameters

Parameters identified as a result of intent matching. This is a map of
the name of the identified parameter to the value of the parameter
identified from the user's utterance. All parameters defined in the
matched intent that are identified will be surfaced here.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setParameters

Parameters identified as a result of intent matching. This is a map of
the name of the identified parameter to the value of the parameter
identified from the user's utterance. All parameters defined in the
matched intent that are identified will be surfaced here.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

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

### getConfidence

The confidence of the matched intent. Values range from 0.0 (completely
uncertain) to 1.0 (completely certain).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setConfidence

The confidence of the matched intent. Values range from 0.0 (completely
uncertain) to 1.0 (completely certain).

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

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