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

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

The request message for Conversations.GenerateSuggestions.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#conversation

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

#conversation=

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

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

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

#latest_message=

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

def trigger_events() -> ::Array<::Google::Cloud::Dialogflow::V2::TriggerEvent>
Returns

#trigger_events=

def trigger_events=(value) -> ::Array<::Google::Cloud::Dialogflow::V2::TriggerEvent>
Parameter
Returns