Class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1DialogflowAssistAnswer

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v3beta1/classes.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb,
lib/google/apis/dialogflow_v3beta1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1DialogflowAssistAnswer

Returns a new instance of GoogleCloudDialogflowV2beta1DialogflowAssistAnswer.



19028
19029
19030
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19028

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

Instance Attribute Details

#answer_recordString

Corresponds to the JSON property answerRecord

Returns:

  • (String)


19016
19017
19018
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19016

def answer_record
  @answer_record
end

#intent_suggestionGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1IntentSuggestion

Corresponds to the JSON property intentSuggestion



19021
19022
19023
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19021

def intent_suggestion
  @intent_suggestion
end

#query_resultGoogle::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1QueryResult

Corresponds to the JSON property queryResult



19026
19027
19028
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19026

def query_result
  @query_result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19033
19034
19035
19036
19037
# File 'lib/google/apis/dialogflow_v3beta1/classes.rb', line 19033

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