Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class GenerateSuggestionsRequest.
The request message for Conversations.GenerateSuggestions .
Generated from protobuf message google.cloud.dialogflow.v2.GenerateSuggestionsRequest
Namespace
Google \ Cloud \ Dialogflow \ V2Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ conversation
string
Required. The conversation for which the suggestions are generated. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>
. The conversation must be created with a conversation profile which has generators configured in it to be able to get suggestions.
↳ latest_message
string
Optional. The name of the latest conversation message for which the request is triggered. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>
.
↳ trigger_events
array
Optional. A list of trigger events. Only generators configured in the conversation_profile whose trigger_event is listed here will be triggered.
getConversation
Required. The conversation for which the suggestions are generated. Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>
.
The conversation must be created with a conversation profile which has generators configured in it to be able to get suggestions.
string
setConversation
Required. The conversation for which the suggestions are generated. Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>
.
The conversation must be created with a conversation profile which has generators configured in it to be able to get suggestions.
var
string
$this
getLatestMessage
Optional. The name of the latest conversation message for which the request
is triggered. Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>/messages/<Message ID>
.
string
setLatestMessage
Optional. The name of the latest conversation message for which the request
is triggered. Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>/messages/<Message ID>
.
var
string
$this
getTriggerEvents
Optional. A list of trigger events. Only generators configured in the conversation_profile whose trigger_event is listed here will be triggered.
setTriggerEvents
Optional. A list of trigger events. Only generators configured in the conversation_profile whose trigger_event is listed here will be triggered.
var
int[]
$this
static::build
conversation
string
Required. The conversation for which the suggestions are generated. Format: projects/<Project ID>/locations/<Location
ID>/conversations/<Conversation ID>
.
The conversation must be created with a conversation profile which has generators configured in it to be able to get suggestions. Please see ConversationsClient::conversationName() for help formatting this field.