Google Cloud Dialogflow V2 Client - Class GenerateSuggestionsResponse (2.1.2)

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

The response message for Conversations.GenerateSuggestions .

Generated from protobuf message google.cloud.dialogflow.v2.GenerateSuggestionsResponse

Namespace

Google \ Cloud \ Dialogflow \ V2

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ generator_suggestion_answers
array< GenerateSuggestionsResponse\GeneratorSuggestionAnswer >

The answers generated for the conversation based on context.

↳ latest_message
string

The name of the latest conversation message used as context for compiling suggestion. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID> .

getGeneratorSuggestionAnswers

The answers generated for the conversation based on context.

Returns
Type
Description

setGeneratorSuggestionAnswers

The answers generated for the conversation based on context.

Parameter
Name
Description
Returns
Type
Description
$this

getLatestMessage

The name of the latest conversation message used as context for compiling suggestion.

Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID> .

Returns
Type
Description
string

setLatestMessage

The name of the latest conversation message used as context for compiling suggestion.

Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID> .

Parameter
Name
Description
var
string
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: