Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestionResult

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.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 Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2SuggestionResult

Returns a new instance of GoogleCloudDialogflowV2SuggestionResult.



17954
17955
17956
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17954

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#errorGoogle::Apis::DialogflowV2::GoogleRpcStatus

The Status type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by gRPC. Each Status message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the API Design Guide. Corresponds to the JSON property error



17927
17928
17929
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17927

def error
  @error
end

#generate_suggestions_responseGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2GenerateSuggestionsResponse

The response message for Conversations.GenerateSuggestions. Corresponds to the JSON property generateSuggestionsResponse



17932
17933
17934
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17932

def generate_suggestions_response
  @generate_suggestions_response
end

#suggest_articles_responseGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestArticlesResponse

The response message for Participants.SuggestArticles. Corresponds to the JSON property suggestArticlesResponse



17937
17938
17939
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17937

def suggest_articles_response
  @suggest_articles_response
end

#suggest_faq_answers_responseGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestFaqAnswersResponse

The request message for Participants.SuggestFaqAnswers. Corresponds to the JSON property suggestFaqAnswersResponse



17942
17943
17944
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17942

def suggest_faq_answers_response
  @suggest_faq_answers_response
end

#suggest_knowledge_assist_responseGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestKnowledgeAssistResponse

The response message for Participants.SuggestKnowledgeAssist. Corresponds to the JSON property suggestKnowledgeAssistResponse



17947
17948
17949
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17947

def suggest_knowledge_assist_response
  @suggest_knowledge_assist_response
end

#suggest_smart_replies_responseGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestSmartRepliesResponse

The response message for Participants.SuggestSmartReplies. Corresponds to the JSON property suggestSmartRepliesResponse



17952
17953
17954
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17952

def suggest_smart_replies_response
  @suggest_smart_replies_response
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17959
17960
17961
17962
17963
17964
17965
17966
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 17959

def update!(**args)
  @error = args[:error] if args.key?(:error)
  @generate_suggestions_response = args[:generate_suggestions_response] if args.key?(:generate_suggestions_response)
  @suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
  @suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
  @suggest_knowledge_assist_response = args[:suggest_knowledge_assist_response] if args.key?(:suggest_knowledge_assist_response)
  @suggest_smart_replies_response = args[:suggest_smart_replies_response] if args.key?(:suggest_smart_replies_response)
end