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

Overview

Represents a Dialogflow assist answer.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1DialogflowAssistAnswer

Returns a new instance of GoogleCloudDialogflowV2beta1DialogflowAssistAnswer.



10895
10896
10897
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10895

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

Instance Attribute Details

#answer_recordString

The name of answer record, in the format of "projects//locations// answerRecords/" Corresponds to the JSON property answerRecord

Returns:

  • (String)


10883
10884
10885
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10883

def answer_record
  @answer_record
end

#intent_suggestionGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentSuggestion

Represents an intent suggestion. Corresponds to the JSON property intentSuggestion



10888
10889
10890
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10888

def intent_suggestion
  @intent_suggestion
end

#query_resultGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryResult

Represents the result of conversational query or event processing. Corresponds to the JSON property queryResult



10893
10894
10895
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10893

def query_result
  @query_result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10900
10901
10902
10903
10904
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 10900

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