Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer
- Inherits:
-
Object
- Object
- Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/contactcenterinsights_v1/classes.rb,
lib/google/apis/contactcenterinsights_v1/representations.rb,
lib/google/apis/contactcenterinsights_v1/representations.rb
Overview
Represents a SearchKnowledge answer.
Instance Attribute Summary collapse
-
#answer ⇒ String
The piece of text from the knowledge base documents that answers the search query Corresponds to the JSON property
answer. -
#answer_record ⇒ String
The name of the answer record.
-
#answer_sources ⇒ Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswerAnswerSource>
All sources used to generate the answer.
-
#answer_type ⇒ String
The type of the answer.
-
#confidence_score ⇒ Float
The confidence score in [0.0, 1.0] range.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer
constructor
A new instance of GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer
Returns a new instance of GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer.
3769 3770 3771 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 3769 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answer ⇒ String
The piece of text from the knowledge base documents that answers the search
query
Corresponds to the JSON property answer
3747 3748 3749 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 3747 def answer @answer end |
#answer_record ⇒ String
The name of the answer record. Format: projects//locations//answer Records/
Corresponds to the JSON property answerRecord
3752 3753 3754 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 3752 def answer_record @answer_record end |
#answer_sources ⇒ Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswerAnswerSource>
All sources used to generate the answer.
Corresponds to the JSON property answerSources
3757 3758 3759 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 3757 def answer_sources @answer_sources end |
#answer_type ⇒ String
The type of the answer.
Corresponds to the JSON property answerType
3762 3763 3764 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 3762 def answer_type @answer_type end |
#confidence_score ⇒ Float
The confidence score in [0.0, 1.0] range.
Corresponds to the JSON property confidenceScore
3767 3768 3769 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 3767 def confidence_score @confidence_score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3774 3775 3776 3777 3778 3779 3780 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 3774 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) @confidence_score = args[:confidence_score] if args.key?(:confidence_score) end |