Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::GenerateSuggestionsResponse (v1.9.0)

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

The response message for Conversations.GenerateSuggestions.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#generator_suggestion_answers

def generator_suggestion_answers() -> ::Array<::Google::Cloud::Dialogflow::V2::GenerateSuggestionsResponse::GeneratorSuggestionAnswer>
Returns

#generator_suggestion_answers=

def generator_suggestion_answers=(value) -> ::Array<::Google::Cloud::Dialogflow::V2::GenerateSuggestionsResponse::GeneratorSuggestionAnswer>
Parameter
Returns

#latest_message

def latest_message() -> ::String
Returns
  • (::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>.

#latest_message=

def latest_message=(value) -> ::String
Parameter
  • value (::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>.

Returns
  • (::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>.