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

A transition route specifies a [intent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Intent)
that can be matched and/or a data condition that can be evaluated during a
session. When a specified transition is matched, the following actions are
taken in order:

- If there is a
  [`trigger_fulfillment`](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.TransitionRoute#_Google_Cloud_Dialogflow_Cx_V3_TransitionRoute__getTriggerFulfillment__)
  associated with the transition, it will be called.

- If there is a
  [`target_page`](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.TransitionRoute#_Google_Cloud_Dialogflow_Cx_V3_TransitionRoute__getTargetPage__)
  associated with the transition, the session will transition into the
  specified page.

- If there is a [`target_flow`](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.TransitionRoute#_Google_Cloud_Dialogflow_Cx_V3_TransitionRoute__getTargetFlow__) associated with the transition, the session will transition into the specified flow.

Generated from protobuf message `google.cloud.dialogflow.cx.v3.TransitionRoute`

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. The unique identifier of this transition route. |
| `↳ description` | `string` Optional. The description of the transition route. The maximum length is 500 characters. |
| `↳ intent` | `string` The unique identifier of an [Intent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Intent). Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`. Indicates that the transition can only happen when the given intent is matched. At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled. |
| `↳ condition` | `string` The condition to evaluate against [form parameters](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Form#_Google_Cloud_Dialogflow_Cx_V3_Form__getParameters__) or [session parameters](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.SessionInfo#_Google_Cloud_Dialogflow_Cx_V3_SessionInfo__getParameters__). See the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition). At least one of `intent` or `condition` must be specified. When both `intent` and `condition` are specified, the transition can only happen when both are fulfilled. |
| `↳ trigger_fulfillment` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Fulfillment` The fulfillment to call when the condition is satisfied. At least one of `trigger_fulfillment` and `target` must be specified. When both are defined, `trigger_fulfillment` is executed first. |
| `↳ target_page` | `string` The target page to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`. |
| `↳ target_flow` | `string` The target flow to transition to. Format: `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. |

### getName

Output only. The unique identifier of this transition route.

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

### setName

Output only. The unique identifier of this transition route.

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

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

### getDescription

Optional. The description of the transition route. The maximum length is
500 characters.

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

### setDescription

Optional. The description of the transition route. The maximum length is
500 characters.

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

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

### getIntent

The unique identifier of an [Intent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Intent).

Format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
Indicates that the transition can only happen when the given intent is
matched.
At least one of `intent` or `condition` must be specified. When both
`intent` and `condition` are specified, the transition can only happen
when both are fulfilled.

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

### setIntent

The unique identifier of an [Intent](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Intent).

Format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/intents/<IntentID>`.
Indicates that the transition can only happen when the given intent is
matched.
At least one of `intent` or `condition` must be specified. When both
`intent` and `condition` are specified, the transition can only happen
when both are fulfilled.

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

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

### getCondition

The condition to evaluate against [form
parameters](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Form#_Google_Cloud_Dialogflow_Cx_V3_Form__getParameters__) or [session
parameters](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.SessionInfo#_Google_Cloud_Dialogflow_Cx_V3_SessionInfo__getParameters__).

See the [conditions
reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
At least one of `intent` or `condition` must be specified. When both
`intent` and `condition` are specified, the transition can only happen
when both are fulfilled.

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

### setCondition

The condition to evaluate against [form
parameters](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.Form#_Google_Cloud_Dialogflow_Cx_V3_Form__getParameters__) or [session
parameters](https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.SessionInfo#_Google_Cloud_Dialogflow_Cx_V3_SessionInfo__getParameters__).

See the [conditions
reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
At least one of `intent` or `condition` must be specified. When both
`intent` and `condition` are specified, the transition can only happen
when both are fulfilled.

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

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

### getTriggerFulfillment

The fulfillment to call when the condition is satisfied. At least one of
`trigger_fulfillment` and `target` must be specified. When both are
defined, `trigger_fulfillment` is executed first.

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

### hasTriggerFulfillment

### clearTriggerFulfillment

### setTriggerFulfillment

The fulfillment to call when the condition is satisfied. At least one of
`trigger_fulfillment` and `target` must be specified. When both are
defined, `trigger_fulfillment` is executed first.

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

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

### getTargetPage

The target page to transition to.

Format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.

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

### hasTargetPage

### setTargetPage

The target page to transition to.

Format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/pages/<PageID>`.

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

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

### getTargetFlow

The target flow to transition to.

Format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.

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

### hasTargetFlow

### setTargetFlow

The target flow to transition to.

Format:
`projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`.

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

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

### getTarget

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