Class: Google::Cloud::Dialogflow::V2::SuggestionResult

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

Overview

One response of different type of suggestion response which is used in the response of Participants.AnalyzeContent and Participants.AnalyzeContent, as well as HumanAgentAssistantEvent.

Instance Attribute Summary collapse

Instance Attribute Details

#error::Google::Rpc::Status

Returns Error status if the request failed.

Note: The following fields are mutually exclusive: error, suggest_articles_response, suggest_knowledge_assist_response, suggest_faq_answers_response, suggest_smart_replies_response, generate_suggestions_response. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Google::Rpc::Status)

    Error status if the request failed.

    Note: The following fields are mutually exclusive: error, suggest_articles_response, suggest_knowledge_assist_response, suggest_faq_answers_response, suggest_smart_replies_response, generate_suggestions_response. If a field in that set is populated, all other fields in the set will automatically be cleared.



1018
1019
1020
1021
# File 'proto_docs/google/cloud/dialogflow/v2/participant.rb', line 1018

class SuggestionResult
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#generate_suggestions_response::Google::Cloud::Dialogflow::V2::GenerateSuggestionsResponse

Returns Suggestions generated using generators triggered by customer or agent messages.

Note: The following fields are mutually exclusive: generate_suggestions_response, error, suggest_articles_response, suggest_knowledge_assist_response, suggest_faq_answers_response, suggest_smart_replies_response. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Google::Cloud::Dialogflow::V2::GenerateSuggestionsResponse)

    Suggestions generated using generators triggered by customer or agent messages.

    Note: The following fields are mutually exclusive: generate_suggestions_response, error, suggest_articles_response, suggest_knowledge_assist_response, suggest_faq_answers_response, suggest_smart_replies_response. If a field in that set is populated, all other fields in the set will automatically be cleared.



1018
1019
1020
1021
# File 'proto_docs/google/cloud/dialogflow/v2/participant.rb', line 1018

class SuggestionResult
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#suggest_articles_response::Google::Cloud::Dialogflow::V2::SuggestArticlesResponse

Returns SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.

Note: The following fields are mutually exclusive: suggest_articles_response, error, suggest_knowledge_assist_response, suggest_faq_answers_response, suggest_smart_replies_response, generate_suggestions_response. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Google::Cloud::Dialogflow::V2::SuggestArticlesResponse)

    SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.

    Note: The following fields are mutually exclusive: suggest_articles_response, error, suggest_knowledge_assist_response, suggest_faq_answers_response, suggest_smart_replies_response, generate_suggestions_response. If a field in that set is populated, all other fields in the set will automatically be cleared.



1018
1019
1020
1021
# File 'proto_docs/google/cloud/dialogflow/v2/participant.rb', line 1018

class SuggestionResult
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#suggest_faq_answers_response::Google::Cloud::Dialogflow::V2::SuggestFaqAnswersResponse

Returns SuggestFaqAnswersResponse if request is for FAQ_ANSWER.

Note: The following fields are mutually exclusive: suggest_faq_answers_response, error, suggest_articles_response, suggest_knowledge_assist_response, suggest_smart_replies_response, generate_suggestions_response. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Google::Cloud::Dialogflow::V2::SuggestFaqAnswersResponse)

    SuggestFaqAnswersResponse if request is for FAQ_ANSWER.

    Note: The following fields are mutually exclusive: suggest_faq_answers_response, error, suggest_articles_response, suggest_knowledge_assist_response, suggest_smart_replies_response, generate_suggestions_response. If a field in that set is populated, all other fields in the set will automatically be cleared.



1018
1019
1020
1021
# File 'proto_docs/google/cloud/dialogflow/v2/participant.rb', line 1018

class SuggestionResult
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#suggest_knowledge_assist_response::Google::Cloud::Dialogflow::V2::SuggestKnowledgeAssistResponse

Returns SuggestKnowledgeAssistResponse if request is for KNOWLEDGE_ASSIST.

Note: The following fields are mutually exclusive: suggest_knowledge_assist_response, error, suggest_articles_response, suggest_faq_answers_response, suggest_smart_replies_response, generate_suggestions_response. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Google::Cloud::Dialogflow::V2::SuggestKnowledgeAssistResponse)

    SuggestKnowledgeAssistResponse if request is for KNOWLEDGE_ASSIST.

    Note: The following fields are mutually exclusive: suggest_knowledge_assist_response, error, suggest_articles_response, suggest_faq_answers_response, suggest_smart_replies_response, generate_suggestions_response. If a field in that set is populated, all other fields in the set will automatically be cleared.



1018
1019
1020
1021
# File 'proto_docs/google/cloud/dialogflow/v2/participant.rb', line 1018

class SuggestionResult
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#suggest_smart_replies_response::Google::Cloud::Dialogflow::V2::SuggestSmartRepliesResponse

Returns SuggestSmartRepliesResponse if request is for SMART_REPLY.

Note: The following fields are mutually exclusive: suggest_smart_replies_response, error, suggest_articles_response, suggest_knowledge_assist_response, suggest_faq_answers_response, generate_suggestions_response. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns:

  • (::Google::Cloud::Dialogflow::V2::SuggestSmartRepliesResponse)

    SuggestSmartRepliesResponse if request is for SMART_REPLY.

    Note: The following fields are mutually exclusive: suggest_smart_replies_response, error, suggest_articles_response, suggest_knowledge_assist_response, suggest_faq_answers_response, generate_suggestions_response. If a field in that set is populated, all other fields in the set will automatically be cleared.



1018
1019
1020
1021
# File 'proto_docs/google/cloud/dialogflow/v2/participant.rb', line 1018

class SuggestionResult
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end