Dialogflow V2 API - Class Google::Cloud::Dialogflow::V2::SuggestionResult (v1.7.0)

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

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

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#error

def error() -> ::Google::Rpc::Status
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. If a field in that set is populated, all other fields in the set will automatically be cleared.

#error=

def error=(value) -> ::Google::Rpc::Status
Parameter
  • value (::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. 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. If a field in that set is populated, all other fields in the set will automatically be cleared.

#suggest_articles_response

def suggest_articles_response() -> ::Google::Cloud::Dialogflow::V2::SuggestArticlesResponse
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. If a field in that set is populated, all other fields in the set will automatically be cleared.

#suggest_articles_response=

def suggest_articles_response=(value) -> ::Google::Cloud::Dialogflow::V2::SuggestArticlesResponse
Parameter
  • value (::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. 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. If a field in that set is populated, all other fields in the set will automatically be cleared.

#suggest_faq_answers_response

def suggest_faq_answers_response() -> ::Google::Cloud::Dialogflow::V2::SuggestFaqAnswersResponse
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. If a field in that set is populated, all other fields in the set will automatically be cleared.

#suggest_faq_answers_response=

def suggest_faq_answers_response=(value) -> ::Google::Cloud::Dialogflow::V2::SuggestFaqAnswersResponse
Parameter
  • value (::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. 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. If a field in that set is populated, all other fields in the set will automatically be cleared.

#suggest_knowledge_assist_response

def suggest_knowledge_assist_response() -> ::Google::Cloud::Dialogflow::V2::SuggestKnowledgeAssistResponse
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. If a field in that set is populated, all other fields in the set will automatically be cleared.

#suggest_knowledge_assist_response=

def suggest_knowledge_assist_response=(value) -> ::Google::Cloud::Dialogflow::V2::SuggestKnowledgeAssistResponse
Parameter
  • value (::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. 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. If a field in that set is populated, all other fields in the set will automatically be cleared.

#suggest_smart_replies_response

def suggest_smart_replies_response() -> ::Google::Cloud::Dialogflow::V2::SuggestSmartRepliesResponse
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. If a field in that set is populated, all other fields in the set will automatically be cleared.

#suggest_smart_replies_response=

def suggest_smart_replies_response=(value) -> ::Google::Cloud::Dialogflow::V2::SuggestSmartRepliesResponse
Parameter
  • value (::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. 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. If a field in that set is populated, all other fields in the set will automatically be cleared.