Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer
- Inherits:
-
Object
- Object
- Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer
- 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::GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswerAnswerSource>
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) ⇒ GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer
constructor
A new instance of GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer
Returns a new instance of GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer.
7579 7580 7581 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 7579 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
7557 7558 7559 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 7557 def answer @answer end |
#answer_record ⇒ String
The name of the answer record. Format: projects//locations//answer Records/
Corresponds to the JSON property answerRecord
7562 7563 7564 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 7562 def answer_record @answer_record end |
#answer_sources ⇒ Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswerAnswerSource>
All sources used to generate the answer.
Corresponds to the JSON property answerSources
7567 7568 7569 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 7567 def answer_sources @answer_sources end |
#answer_type ⇒ String
The type of the answer.
Corresponds to the JSON property answerType
7572 7573 7574 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 7572 def answer_type @answer_type end |
#confidence_score ⇒ Float
The confidence score in [0.0, 1.0] range.
Corresponds to the JSON property confidenceScore
7577 7578 7579 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 7577 def confidence_score @confidence_score end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7584 7585 7586 7587 7588 7589 7590 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 7584 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 |