Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaAnswer
- Inherits:
-
Object
- Object
- Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaAnswer
- 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
An answer to a QaQuestion.
Instance Attribute Summary collapse
-
#answer_sources ⇒ Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource>
List of all individual answers given to the question.
-
#answer_value ⇒ Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue
Message for holding the value of the answer.
-
#conversation ⇒ String
The conversation the answer applies to.
-
#potential_score ⇒ Float
The maximum potential score of the question.
-
#qa_question ⇒ String
The QaQuestion answered by this answer.
-
#question_body ⇒ String
Question text.
-
#tags ⇒ Array<String>
User-defined list of arbitrary tags.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1QaAnswer
constructor
A new instance of GoogleCloudContactcenterinsightsV1QaAnswer.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1QaAnswer
Returns a new instance of GoogleCloudContactcenterinsightsV1QaAnswer.
4091 4092 4093 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4091 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answer_sources ⇒ Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaAnswerAnswerSource>
List of all individual answers given to the question.
Corresponds to the JSON property answerSources
4054 4055 4056 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4054 def answer_sources @answer_sources end |
#answer_value ⇒ Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue
Message for holding the value of the answer. QaQuestion.AnswerChoice defines
the possible answer values for a question.
Corresponds to the JSON property answerValue
4060 4061 4062 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4060 def answer_value @answer_value end |
#conversation ⇒ String
The conversation the answer applies to.
Corresponds to the JSON property conversation
4065 4066 4067 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4065 def conversation @conversation end |
#potential_score ⇒ Float
The maximum potential score of the question. If the question was answered
using na_value
, this field will be zero. Deprecated: Use AnswerValue.
potential_score instead.
Corresponds to the JSON property potentialScore
4072 4073 4074 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4072 def potential_score @potential_score end |
#qa_question ⇒ String
The QaQuestion answered by this answer.
Corresponds to the JSON property qaQuestion
4077 4078 4079 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4077 def qa_question @qa_question end |
#question_body ⇒ String
Question text. E.g., "Did the agent greet the customer?"
Corresponds to the JSON property questionBody
4082 4083 4084 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4082 def question_body @question_body end |
#tags ⇒ Array<String>
User-defined list of arbitrary tags. Matches the value from QaScorecard.
ScorecardQuestion.tags. Used for grouping/organization and for weighting the
score of each answer.
Corresponds to the JSON property tags
4089 4090 4091 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4089 def @tags end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4096 4097 4098 4099 4100 4101 4102 4103 4104 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4096 def update!(**args) @answer_sources = args[:answer_sources] if args.key?(:answer_sources) @answer_value = args[:answer_value] if args.key?(:answer_value) @conversation = args[:conversation] if args.key?(:conversation) @potential_score = args[:potential_score] if args.key?(:potential_score) @qa_question = args[:qa_question] if args.key?(:qa_question) @question_body = args[:question_body] if args.key?(:question_body) @tags = args[:tags] if args.key?(:tags) end |