# Google Cloud Dialogflow Cx V3 Client - Class MatchIntentRequest (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 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](https://cloud.google.com/dialogflow/cx/docs/concept/session). |
| `↳ query_params` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.QueryParameters` The parameters of this query. |
| `↳ query_input` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.QueryInput` Required. The input specification. |
| `↳ persist_parameter_changes` | `bool` 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](https://cloud.google.com/dialogflow/cx/docs/concept/session).

| **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](https://cloud.google.com/dialogflow/cx/docs/concept/session).

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

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

### getQueryParams

The parameters of this query.

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

### hasQueryParams

### clearQueryParams

### setQueryParams

The parameters of this query.

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

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

### getQueryInput

Required. The input specification.

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

### hasQueryInput

### clearQueryInput

### setQueryInput

Required. The input specification.

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

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

### getPersistParameterChanges

Persist session parameter changes from `query_params`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setPersistParameterChanges

Persist session parameter changes from `query_params`.

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

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