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

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

Represents a fulfillment response to the user.

Generated from protobuf message google.cloud.dialogflow.cx.v3.WebhookResponse.FulfillmentResponse

Namespace

Google \ Cloud \ Dialogflow \ Cx \ V3 \ WebhookResponse

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ messages array<Google\Cloud\Dialogflow\Cx\V3\ResponseMessage>

The list of rich message responses to present to the user.

↳ merge_behavior int

Merge behavior for messages.

getMessages

The list of rich message responses to present to the user.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setMessages

The list of rich message responses to present to the user.

Parameter
NameDescription
var array<Google\Cloud\Dialogflow\Cx\V3\ResponseMessage>
Returns
TypeDescription
$this

getMergeBehavior

Merge behavior for messages.

Returns
TypeDescription
int

setMergeBehavior

Merge behavior for messages.

Parameter
NameDescription
var int
Returns
TypeDescription
$this