Google Cloud Dialogflow Cx V3 Client - Class Transition (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
NameDescription
data array

Optional. Data for populating the Message object.

↳ source Google\Cloud\Dialogflow\Cx\V3\TransitionCoverage\TransitionNode

The start node of a transition.

↳ index int

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

↳ target Google\Cloud\Dialogflow\Cx\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 Google\Cloud\Dialogflow\Cx\V3\TransitionRoute

Intent route or condition route.

↳ event_handler Google\Cloud\Dialogflow\Cx\V3\EventHandler

Event handler.

getSource

The start node of a transition.

Returns
TypeDescription
Google\Cloud\Dialogflow\Cx\V3\TransitionCoverage\TransitionNode|null

hasSource

clearSource

setSource

The start node of a transition.

Parameter
NameDescription
var Google\Cloud\Dialogflow\Cx\V3\TransitionCoverage\TransitionNode
Returns
TypeDescription
$this

getIndex

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

Returns
TypeDescription
int

setIndex

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

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getTarget

The end node of a transition.

Returns
TypeDescription
Google\Cloud\Dialogflow\Cx\V3\TransitionCoverage\TransitionNode|null

hasTarget

clearTarget

setTarget

The end node of a transition.

Parameter
NameDescription
var Google\Cloud\Dialogflow\Cx\V3\TransitionCoverage\TransitionNode
Returns
TypeDescription
$this

getCovered

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

Returns
TypeDescription
bool

setCovered

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

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getTransitionRoute

Intent route or condition route.

Returns
TypeDescription
Google\Cloud\Dialogflow\Cx\V3\TransitionRoute|null

hasTransitionRoute

setTransitionRoute

Intent route or condition route.

Parameter
NameDescription
var Google\Cloud\Dialogflow\Cx\V3\TransitionRoute
Returns
TypeDescription
$this

getEventHandler

Event handler.

Returns
TypeDescription
Google\Cloud\Dialogflow\Cx\V3\EventHandler|null

hasEventHandler

setEventHandler

Event handler.

Parameter
NameDescription
var Google\Cloud\Dialogflow\Cx\V3\EventHandler
Returns
TypeDescription
$this

getDetail

Returns
TypeDescription
string