Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DialogflowAssistAnswer

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1DialogflowAssistAnswer

Returns a new instance of GoogleCloudDialogflowV2beta1DialogflowAssistAnswer.



12829
12830
12831
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12829

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

Instance Attribute Details

#answer_recordString

Corresponds to the JSON property answerRecord

Returns:

  • (String)


12817
12818
12819
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12817

def answer_record
  @answer_record
end

#intent_suggestionGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentSuggestion

Corresponds to the JSON property intentSuggestion



12822
12823
12824
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12822

def intent_suggestion
  @intent_suggestion
end

#query_resultGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryResult

Corresponds to the JSON property queryResult



12827
12828
12829
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12827

def query_result
  @query_result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12834
12835
12836
12837
12838
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 12834

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