Google Cloud Dialogflow V2 Client - Class Suggestions (1.7.2)

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

The collection of suggestions.

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

Namespace

Google \ Cloud \ Dialogflow \ V2 \ Intent \ Message

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ suggestions array<Google\Cloud\Dialogflow\V2\Intent\Message\Suggestion>

Required. The list of suggested replies.

getSuggestions

Required. The list of suggested replies.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setSuggestions

Required. The list of suggested replies.

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