Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1DialogflowAssistAnswer

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v3/classes.rb,
lib/google/apis/dialogflow_v3/representations.rb,
lib/google/apis/dialogflow_v3/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.



16224
16225
16226
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16224

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)


16212
16213
16214
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16212

def answer_record
  @answer_record
end

#intent_suggestionGoogle::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1IntentSuggestion

Represents an intent suggestion. Corresponds to the JSON property intentSuggestion



16217
16218
16219
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16217

def intent_suggestion
  @intent_suggestion
end

#query_resultGoogle::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1QueryResult

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



16222
16223
16224
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16222

def query_result
  @query_result
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16229
16230
16231
16232
16233
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 16229

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