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
Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
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.
Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.Suggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Internal\RepeatedField |
|
setSuggestions
Required. The list of suggested replies.
Generated from protobuf field repeated .google.cloud.dialogflow.v2.Intent.Message.Suggestion suggestions = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
var |
array<Google\Cloud\Dialogflow\V2\Intent\Message\Suggestion>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|