Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeAnswer
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeAnswer
- 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
Instance Attribute Summary collapse
-
#answer ⇒ String
Corresponds to the JSON property
answer. -
#answer_record ⇒ String
Corresponds to the JSON property
answerRecord. -
#answer_sources ⇒ Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeAnswerAnswerSource>
Corresponds to the JSON property
answerSources. -
#answer_type ⇒ String
Corresponds to the JSON property
answerType.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2SearchKnowledgeAnswer
constructor
A new instance of GoogleCloudDialogflowV2SearchKnowledgeAnswer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2SearchKnowledgeAnswer
Returns a new instance of GoogleCloudDialogflowV2SearchKnowledgeAnswer.
14709 14710 14711 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14709 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answer ⇒ String
Corresponds to the JSON property answer
14692 14693 14694 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14692 def answer @answer end |
#answer_record ⇒ String
Corresponds to the JSON property answerRecord
14697 14698 14699 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14697 def answer_record @answer_record end |
#answer_sources ⇒ Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeAnswerAnswerSource>
Corresponds to the JSON property answerSources
14702 14703 14704 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14702 def answer_sources @answer_sources end |
#answer_type ⇒ String
Corresponds to the JSON property answerType
14707 14708 14709 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14707 def answer_type @answer_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
14714 14715 14716 14717 14718 14719 |
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14714 def update!(**args) @answer = args[:answer] if args.key?(:answer) @answer_record = args[:answer_record] if args.key?(:answer_record) @answer_sources = args[:answer_sources] if args.key?(:answer_sources) @answer_type = args[:answer_type] if args.key?(:answer_type) end |