Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestionInput

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

Overview

Represents the selection of a suggestion.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2SuggestionInput

Returns a new instance of GoogleCloudDialogflowV2SuggestionInput.



15717
15718
15719
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15717

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

Instance Attribute Details

#answer_recordString

Required. The ID of a suggestion selected by the human agent. The suggestion(s) were generated in a previous call to request Dialogflow assist. The format is: projects//locations//answerRecords/ where is an alphanumeric string. Corresponds to the JSON property answerRecord

Returns:

  • (String)


15715
15716
15717
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15715

def answer_record
  @answer_record
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15722
15723
15724
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15722

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