Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer
- 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 Knowledge Assist answer.
Instance Attribute Summary collapse
-
#answer_record ⇒ String
The name of the answer record.
-
#suggested_query ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuery
Represents a suggested query.
-
#suggested_query_answer ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer
Represents an answer from Knowledge.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer
constructor
A new instance of GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer
Returns a new instance of GoogleCloudDialogflowV2beta1KnowledgeAssistAnswer.
16772 16773 16774 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16772 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answer_record ⇒ String
The name of the answer record. Format: projects//locations//answer Records/
.
Corresponds to the JSON property answerRecord
16759 16760 16761 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16759 def answer_record @answer_record end |
#suggested_query ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerSuggestedQuery
Represents a suggested query.
Corresponds to the JSON property suggestedQuery
16764 16765 16766 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16764 def suggested_query @suggested_query end |
#suggested_query_answer ⇒ Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer
Represents an answer from Knowledge. Currently supports FAQ and Generative
answers.
Corresponds to the JSON property suggestedQueryAnswer
16770 16771 16772 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16770 def suggested_query_answer @suggested_query_answer end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
16777 16778 16779 16780 16781 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16777 def update!(**args) @answer_record = args[:answer_record] if args.key?(:answer_record) @suggested_query = args[:suggested_query] if args.key?(:suggested_query) @suggested_query_answer = args[:suggested_query_answer] if args.key?(:suggested_query_answer) end |