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 \ MessageMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ simple_responses |
array<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<SimpleResponse>
|
Returns | |
---|---|
Type | Description |
$this |