Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SuggestionResult

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SuggestionResult

Returns a new instance of GoogleCloudDialogflowV2beta1SuggestionResult.



22134
22135
22136
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22134

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

Instance Attribute Details

#errorGoogle::Apis::DialogflowV2::GoogleRpcStatus

Corresponds to the JSON property error



22097
22098
22099
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22097

def error
  @error
end

#generate_suggestions_responseGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1GenerateSuggestionsResponse

Corresponds to the JSON property generateSuggestionsResponse



22102
22103
22104
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22102

def generate_suggestions_response
  @generate_suggestions_response
end

#suggest_articles_responseGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SuggestArticlesResponse

Corresponds to the JSON property suggestArticlesResponse



22107
22108
22109
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22107

def suggest_articles_response
  @suggest_articles_response
end

#suggest_dialogflow_assists_responseGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse

Corresponds to the JSON property suggestDialogflowAssistsResponse



22112
22113
22114
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22112

def suggest_dialogflow_assists_response
  @suggest_dialogflow_assists_response
end

#suggest_entity_extraction_responseGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse

Corresponds to the JSON property suggestEntityExtractionResponse



22117
22118
22119
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22117

def suggest_entity_extraction_response
  @suggest_entity_extraction_response
end

#suggest_faq_answers_responseGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse

Corresponds to the JSON property suggestFaqAnswersResponse



22122
22123
22124
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22122

def suggest_faq_answers_response
  @suggest_faq_answers_response
end

#suggest_knowledge_assist_responseGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SuggestKnowledgeAssistResponse

Corresponds to the JSON property suggestKnowledgeAssistResponse



22127
22128
22129
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22127

def suggest_knowledge_assist_response
  @suggest_knowledge_assist_response
end

#suggest_smart_replies_responseGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse

Corresponds to the JSON property suggestSmartRepliesResponse



22132
22133
22134
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22132

def suggest_smart_replies_response
  @suggest_smart_replies_response
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



22139
22140
22141
22142
22143
22144
22145
22146
22147
22148
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 22139

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_dialogflow_assists_response = args[:suggest_dialogflow_assists_response] if args.key?(:suggest_dialogflow_assists_response)
  @suggest_entity_extraction_response = args[:suggest_entity_extraction_response] if args.key?(:suggest_entity_extraction_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