Google Cloud Dialogflow V2 Client - Class SimpleResponses (1.15.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

Namespace

Google \ Cloud \ Dialogflow \ V2 \ Intent \ Message

Methods

__construct

Constructor.

Parameters
Name Description
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
Type Description
Google\Protobuf\Internal\RepeatedField

setSimpleResponses

Required. The list of simple responses.

Parameter
Name Description
var array<Google\Cloud\Dialogflow\V2\Intent\Message\SimpleResponse>
Returns
Type Description
$this