Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue
- Inherits:
-
Object
- Object
- Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue
- 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
Message for holding the value of the answer. QaQuestion.AnswerChoice defines the possible answer values for a question.
Instance Attribute Summary collapse
-
#bool_value ⇒ Boolean
(also: #bool_value?)
Boolean value.
-
#key ⇒ String
A short string used as an identifier.
-
#na_value ⇒ Boolean
(also: #na_value?)
A value of "Not Applicable (N/A)".
-
#normalized_score ⇒ Float
Output only.
-
#num_value ⇒ Float
Numerical value.
-
#potential_score ⇒ Float
Output only.
-
#score ⇒ Float
Output only.
-
#str_value ⇒ String
String value.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue
constructor
A new instance of GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue
Returns a new instance of GoogleCloudContactcenterinsightsV1QaAnswerAnswerValue.
4184 4185 4186 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4184 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bool_value ⇒ Boolean Also known as: bool_value?
Boolean value.
Corresponds to the JSON property boolValue
4143 4144 4145 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4143 def bool_value @bool_value end |
#key ⇒ String
A short string used as an identifier. Matches the value used in QaQuestion.
AnswerChoice.key.
Corresponds to the JSON property key
4150 4151 4152 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4150 def key @key end |
#na_value ⇒ Boolean Also known as: na_value?
A value of "Not Applicable (N/A)".
Corresponds to the JSON property naValue
4155 4156 4157 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4155 def na_value @na_value end |
#normalized_score ⇒ Float
Output only. Normalized score of the questions. Calculated as score /
potential_score iff potential_score != 0 else 0
Corresponds to the JSON property normalizedScore
4162 4163 4164 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4162 def normalized_score @normalized_score end |
#num_value ⇒ Float
Numerical value.
Corresponds to the JSON property numValue
4167 4168 4169 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4167 def num_value @num_value end |
#potential_score ⇒ Float
Output only. The maximum potential score of the question.
Corresponds to the JSON property potentialScore
4172 4173 4174 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4172 def potential_score @potential_score end |
#score ⇒ Float
Output only. Numerical score of the answer.
Corresponds to the JSON property score
4177 4178 4179 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4177 def score @score end |
#str_value ⇒ String
String value.
Corresponds to the JSON property strValue
4182 4183 4184 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4182 def str_value @str_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 4189 def update!(**args) @bool_value = args[:bool_value] if args.key?(:bool_value) @key = args[:key] if args.key?(:key) @na_value = args[:na_value] if args.key?(:na_value) @normalized_score = args[:normalized_score] if args.key?(:normalized_score) @num_value = args[:num_value] if args.key?(:num_value) @potential_score = args[:potential_score] if args.key?(:potential_score) @score = args[:score] if args.key?(:score) @str_value = args[:str_value] if args.key?(:str_value) end |