Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::GenerateCompanionSuggestionsResponse (v1.18.0)

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

Represents the response message for GenerateCompanionSuggestions.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#answer_record

def answer_record() -> ::String
Returns
  • (::String) — Answer record that uniquely identifies the suggestion. Format: projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>.

#answer_record=

def answer_record=(value) -> ::String
Parameter
  • value (::String) — Answer record that uniquely identifies the suggestion. Format: projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>.
Returns
  • (::String) — Answer record that uniquely identifies the suggestion. Format: projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record ID>.

#companion_suggestion

def companion_suggestion() -> ::Google::Cloud::Dialogflow::V2::CompanionSuggestion
Returns

#companion_suggestion=

def companion_suggestion=(value) -> ::Google::Cloud::Dialogflow::V2::CompanionSuggestion
Parameter
Returns

#latest_message

def latest_message() -> ::String
Returns
  • (::String) — The name of the latest conversation message used to compile suggestion for. 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 to compile suggestion for. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>.
Returns
  • (::String) — The name of the latest conversation message used to compile suggestion for. Format: projects/<Project ID>/locations/<Location ID>/conversations/<Conversation ID>/messages/<Message ID>.

#suggestion_index

def suggestion_index() -> ::Integer
Returns
  • (::Integer) — Output only. The 1-based sequential index of the suggestion generated in this session.