Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DialogflowAssistAnswer

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) ⇒ GoogleCloudDialogflowV2DialogflowAssistAnswer

Returns a new instance of GoogleCloudDialogflowV2DialogflowAssistAnswer.



9230
9231
9232
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9230

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

Instance Attribute Details

#answer_recordString

Corresponds to the JSON property answerRecord

Returns:

  • (String)


9218
9219
9220
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9218

def answer_record
  @answer_record
end

#intent_suggestionGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentSuggestion

Corresponds to the JSON property intentSuggestion



9223
9224
9225
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9223

def intent_suggestion
  @intent_suggestion
end

#query_resultGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryResult

Corresponds to the JSON property queryResult



9228
9229
9230
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9228

def query_result
  @query_result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9235
9236
9237
9238
9239
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 9235

def update!(**args)
  @answer_record = args[:answer_record] if args.key?(:answer_record)
  @intent_suggestion = args[:intent_suggestion] if args.key?(:intent_suggestion)
  @query_result = args[:query_result] if args.key?(:query_result)
end