Google Cloud Dialogflow V2 Client - Class SimpleResponses (1.4.0)

Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class SimpleResponses.

The collection of simple response candidates.

This message in QueryResult.fulfillment_messages and WebhookResponse.fulfillment_messages should contain only one SimpleResponse.

Generated from protobuf message google.cloud.dialogflow.v2.Intent.Message.SimpleResponses

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ simple_responses array<Google\Cloud\Dialogflow\V2\Intent\Message\SimpleResponse>

Required. The list of simple responses.

getSimpleResponses

Required. The list of simple responses.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSimpleResponses

Required. The list of simple responses.

Parameter
NameDescription
var array<Google\Cloud\Dialogflow\V2\Intent\Message\SimpleResponse>
Returns
TypeDescription
$this