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

A transition in a page.

Generated from protobuf message `google.cloud.dialogflow.cx.v3.TransitionCoverage.Transition`

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ source` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.TransitionCoverage.TransitionNode` The start node of a transition. |
| `↳ index` | `int` The index of a transition in the transition list. Starting from 0. |
| `↳ target` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.TransitionCoverage.TransitionNode` The end node of a transition. |
| `↳ covered` | `bool` Whether the transition is covered by at least one of the agent's test cases. |
| `↳ transition_route` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.TransitionRoute` Intent route or condition route. |
| `↳ event_handler` | `https://docs.cloud.google.com/php/docs/reference/cloud-dialogflow-cx/latest/V3.EventHandler` Event handler. |

### getSource

The start node of a transition.

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

### hasSource

### clearSource

### setSource

The start node of a transition.

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

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

### getIndex

The index of a transition in the transition list. Starting from 0.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setIndex

The index of a transition in the transition list. Starting from 0.

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

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

### getTarget

The end node of a transition.

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

### hasTarget

### clearTarget

### setTarget

The end node of a transition.

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

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

### getCovered

Whether the transition is covered by at least one of the
agent's test cases.

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

### setCovered

Whether the transition is covered by at least one of the
agent's test cases.

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

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

### getTransitionRoute

Intent route or condition route.

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

### hasTransitionRoute

### setTransitionRoute

Intent route or condition route.

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

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

### getEventHandler

Event handler.

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

### hasEventHandler

### setEventHandler

Event handler.

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

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

### getDetail

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