Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer
- 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
-
#answer ⇒ String
Corresponds to the JSON property
answer. -
#answer_record ⇒ String
Corresponds to the JSON property
answerRecord. -
#answer_sources ⇒ Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeAnswerAnswerSource>
Corresponds to the JSON property
answerSources. -
#answer_type ⇒ String
Corresponds to the JSON property
answerType.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer
constructor
A new instance of GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer
Returns a new instance of GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer.
19263 19264 19265 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19263 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answer ⇒ String
Corresponds to the JSON property answer
19246 19247 19248 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19246 def answer @answer end |
#answer_record ⇒ String
Corresponds to the JSON property answerRecord
19251 19252 19253 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19251 def answer_record @answer_record end |
#answer_sources ⇒ Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeAnswerAnswerSource>
Corresponds to the JSON property answerSources
19256 19257 19258 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19256 def answer_sources @answer_sources end |
#answer_type ⇒ String
Corresponds to the JSON property answerType
19261 19262 19263 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19261 def answer_type @answer_type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
19268 19269 19270 19271 19272 19273 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19268 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 |