Class: Google::Cloud::Dialogflow::V2::GenerateSuggestionsResponse

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/dialogflow/v2/participant.rb

Overview

The response message for Conversations.GenerateSuggestions.

Defined Under Namespace

Classes: GeneratorSuggestionAnswer

Instance Attribute Summary collapse

Instance Attribute Details

#generator_suggestion_answers::Array<::Google::Cloud::Dialogflow::V2::GenerateSuggestionsResponse::GeneratorSuggestionAnswer>

Returns The answers generated for the conversation based on context.

Returns:



696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
# File 'proto_docs/google/cloud/dialogflow/v2/participant.rb', line 696

class GenerateSuggestionsResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A GeneratorSuggestion answer.
  # @!attribute [rw] generator_suggestion
  #   @return [::Google::Cloud::Dialogflow::V2::GeneratorSuggestion]
  #     Suggestion details.
  # @!attribute [rw] source_generator
  #   @return [::String]
  #     The name of the generator used to generate this suggestion. Format:
  #     `projects/<Project ID>/locations/<Location ID>/generators/<Generator
  #     ID>`.
  # @!attribute [rw] answer_record
  #   @return [::String]
  #     Answer record that uniquely identifies the suggestion. This can be used
  #     to provide suggestion feedback.
  class GeneratorSuggestionAnswer
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#latest_message::String

Returns 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>.



696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
# File 'proto_docs/google/cloud/dialogflow/v2/participant.rb', line 696

class GenerateSuggestionsResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # A GeneratorSuggestion answer.
  # @!attribute [rw] generator_suggestion
  #   @return [::Google::Cloud::Dialogflow::V2::GeneratorSuggestion]
  #     Suggestion details.
  # @!attribute [rw] source_generator
  #   @return [::String]
  #     The name of the generator used to generate this suggestion. Format:
  #     `projects/<Project ID>/locations/<Location ID>/generators/<Generator
  #     ID>`.
  # @!attribute [rw] answer_record
  #   @return [::String]
  #     Answer record that uniquely identifies the suggestion. This can be used
  #     to provide suggestion feedback.
  class GeneratorSuggestionAnswer
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end