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 \ ConditionalCasesMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
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<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 | |
|---|---|
| Type | Description |
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 | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getCaseContent
A list of case content.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setCaseContent
A list of case content.
| Parameter | |
|---|---|
| Name | Description |
var |
array<PBCase\CaseContent>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|