Google Cloud Dialogflow Cx V3 Client - Class PBCase (0.1.1)

Reference documentation and code samples for the Google Cloud Dialogflow Cx V3 Client class PBCase.

Each case has a Boolean condition. When it is evaluated to be True, the corresponding messages will be selected and evaluated recursively.

Generated from protobuf message google.cloud.dialogflow.cx.v3.Fulfillment.ConditionalCases.Case

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3 \ Fulfillment \ ConditionalCases

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ condition string

The condition to activate and select this case. Empty means the condition is always true. The condition is evaluated against form parameters or session parameters. See the conditions reference.

↳ case_content array<Google\Cloud\Dialogflow\Cx\V3\Fulfillment\ConditionalCases\PBCase\CaseContent>

A list of case content.

getCondition

The condition to activate and select this case. Empty means the condition is always true. The condition is evaluated against form parameters or session parameters.

See the conditions reference.

Returns
TypeDescription
string

setCondition

The condition to activate and select this case. Empty means the condition is always true. The condition is evaluated against form parameters or session parameters.

See the conditions reference.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCaseContent

A list of case content.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setCaseContent

A list of case content.

Parameter
NameDescription
var array<Google\Cloud\Dialogflow\Cx\V3\Fulfillment\ConditionalCases\PBCase\CaseContent>
Returns
TypeDescription
$this