Reference documentation and code samples for the Contact Center AI Insights V1 API class Google::Cloud::ContactCenterInsights::V1::QaAnswer::AnswerValue.
Note: The following fields are mutually exclusive: bool_value, str_value, num_value, na_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
#bool_value=
defbool_value=(value)->::Boolean
Parameter
value (::Boolean) — Boolean value.
Note: The following fields are mutually exclusive: bool_value, str_value, num_value, na_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::Boolean) — Boolean value.
Note: The following fields are mutually exclusive: bool_value, str_value, num_value, na_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
#key
defkey()->::String
Returns
(::String) — A short string used as an identifier. Matches the value used in
QaQuestion.AnswerChoice.key.
#key=
defkey=(value)->::String
Parameter
value (::String) — A short string used as an identifier. Matches the value used in
QaQuestion.AnswerChoice.key.
Returns
(::String) — A short string used as an identifier. Matches the value used in
QaQuestion.AnswerChoice.key.
#na_value
defna_value()->::Boolean
Returns
(::Boolean) — A value of "Not Applicable (N/A)". Should only ever be true.
Note: The following fields are mutually exclusive: na_value, str_value, num_value, bool_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
#na_value=
defna_value=(value)->::Boolean
Parameter
value (::Boolean) — A value of "Not Applicable (N/A)". Should only ever be true.
Note: The following fields are mutually exclusive: na_value, str_value, num_value, bool_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::Boolean) — A value of "Not Applicable (N/A)". Should only ever be true.
Note: The following fields are mutually exclusive: na_value, str_value, num_value, bool_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
#normalized_score
defnormalized_score()->::Float
Returns
(::Float) — Output only. Normalized score of the questions. Calculated as score /
potential_score.
#num_value
defnum_value()->::Float
Returns
(::Float) — Numerical value.
Note: The following fields are mutually exclusive: num_value, str_value, bool_value, na_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
#num_value=
defnum_value=(value)->::Float
Parameter
value (::Float) — Numerical value.
Note: The following fields are mutually exclusive: num_value, str_value, bool_value, na_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::Float) — Numerical value.
Note: The following fields are mutually exclusive: num_value, str_value, bool_value, na_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
#potential_score
defpotential_score()->::Float
Returns
(::Float) — Output only. The maximum potential score of the question.
#score
defscore()->::Float
Returns
(::Float) — Output only. Numerical score of the answer.
#str_value
defstr_value()->::String
Returns
(::String) — String value.
Note: The following fields are mutually exclusive: str_value, num_value, bool_value, na_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
#str_value=
defstr_value=(value)->::String
Parameter
value (::String) — String value.
Note: The following fields are mutually exclusive: str_value, num_value, bool_value, na_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
Returns
(::String) — String value.
Note: The following fields are mutually exclusive: str_value, num_value, bool_value, na_value. If a field in that set is populated, all other fields in the set will automatically be cleared.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Contact Center AI Insights V1 API - Class Google::Cloud::ContactCenterInsights::V1::QaAnswer::AnswerValue (v1.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.6.0 (latest)](/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Cloud-ContactCenterInsights-V1-QaAnswer-AnswerValue)\n- [1.5.1](/ruby/docs/reference/google-cloud-contact_center_insights-v1/1.5.1/Google-Cloud-ContactCenterInsights-V1-QaAnswer-AnswerValue)\n- [1.4.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/1.4.0/Google-Cloud-ContactCenterInsights-V1-QaAnswer-AnswerValue)\n- [1.3.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/1.3.0/Google-Cloud-ContactCenterInsights-V1-QaAnswer-AnswerValue)\n- [1.2.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/1.2.0/Google-Cloud-ContactCenterInsights-V1-QaAnswer-AnswerValue)\n- [1.1.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/1.1.0/Google-Cloud-ContactCenterInsights-V1-QaAnswer-AnswerValue)\n- [1.0.1](/ruby/docs/reference/google-cloud-contact_center_insights-v1/1.0.1/Google-Cloud-ContactCenterInsights-V1-QaAnswer-AnswerValue)\n- [0.22.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.22.0/Google-Cloud-ContactCenterInsights-V1-QaAnswer-AnswerValue)\n- [0.21.1](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.21.1/Google-Cloud-ContactCenterInsights-V1-QaAnswer-AnswerValue)\n- [0.20.1](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.20.1/Google-Cloud-ContactCenterInsights-V1-QaAnswer-AnswerValue)\n- [0.19.1](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.19.1/Google-Cloud-ContactCenterInsights-V1-QaAnswer-AnswerValue)\n- [0.18.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.18.0/Google-Cloud-ContactCenterInsights-V1-QaAnswer-AnswerValue)\n- [0.17.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.17.0/Google-Cloud-ContactCenterInsights-V1-QaAnswer-AnswerValue)\n- [0.16.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.16.0/Google-Cloud-ContactCenterInsights-V1-QaAnswer-AnswerValue)\n- [0.15.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.15.0/Google-Cloud-ContactCenterInsights-V1-QaAnswer-AnswerValue)\n- [0.14.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.14.0/Google-Cloud-ContactCenterInsights-V1-QaAnswer-AnswerValue)\n- [0.13.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.13.0/Google-Cloud-ContactCenterInsights-V1-QaAnswer-AnswerValue)\n- [0.12.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.12.0/Google-Cloud-ContactCenterInsights-V1-QaAnswer-AnswerValue)\n- [0.11.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.11.0/Google-Cloud-ContactCenterInsights-V1-QaAnswer-AnswerValue)\n- [0.10.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.10.0/Google-Cloud-ContactCenterInsights-V1-QaAnswer-AnswerValue)\n- [0.9.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.9.0/Google-Cloud-ContactCenterInsights-V1-QaAnswer-AnswerValue)\n- [0.8.2](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.8.2/Google-Cloud-ContactCenterInsights-V1-QaAnswer-AnswerValue)\n- [0.7.2](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.7.2/Google-Cloud-ContactCenterInsights-V1-QaAnswer-AnswerValue)\n- [0.6.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.6.0/Google-Cloud-ContactCenterInsights-V1-QaAnswer-AnswerValue) \nReference documentation and code samples for the Contact Center AI Insights V1 API class Google::Cloud::ContactCenterInsights::V1::QaAnswer::AnswerValue.\n\nMessage for holding the value of a\n[QaAnswer](/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Cloud-ContactCenterInsights-V1-QaAnswer \"Google::Cloud::ContactCenterInsights::V1::QaAnswer (class)\").\n[QaQuestion.AnswerChoice](/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Cloud-ContactCenterInsights-V1-QaQuestion-AnswerChoice \"Google::Cloud::ContactCenterInsights::V1::QaQuestion::AnswerChoice (class)\")\ndefines the possible answer values for a question. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #bool_value\n\n def bool_value() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- Boolean value.\n\n Note: The following fields are mutually exclusive: `bool_value`, `str_value`, `num_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #bool_value=\n\n def bool_value=(value) -\u003e ::Boolean\n\n**Parameter**\n\n- **value** (::Boolean) --- Boolean value.\n\n\nNote: The following fields are mutually exclusive: `bool_value`, `str_value`, `num_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::Boolean) --- Boolean value.\n\n Note: The following fields are mutually exclusive: `bool_value`, `str_value`, `num_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #key\n\n def key() -\u003e ::String\n\n**Returns**\n\n- (::String) --- A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key.\n\n### #key=\n\n def key=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key. \n**Returns**\n\n- (::String) --- A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key.\n\n### #na_value\n\n def na_value() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- A value of \"Not Applicable (N/A)\". Should only ever be `true`.\n\n\n Note: The following fields are mutually exclusive: `na_value`, `str_value`, `num_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #na_value=\n\n def na_value=(value) -\u003e ::Boolean\n\n**Parameter**\n\n- **value** (::Boolean) --- A value of \"Not Applicable (N/A)\". Should only ever be `true`.\n\n\nNote: The following fields are mutually exclusive: `na_value`, `str_value`, `num_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::Boolean) --- A value of \"Not Applicable (N/A)\". Should only ever be `true`.\n\n\n Note: The following fields are mutually exclusive: `na_value`, `str_value`, `num_value`, `bool_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #normalized_score\n\n def normalized_score() -\u003e ::Float\n\n**Returns**\n\n- (::Float) --- Output only. Normalized score of the questions. Calculated as score / potential_score.\n\n### #num_value\n\n def num_value() -\u003e ::Float\n\n**Returns**\n\n- (::Float) --- Numerical value.\n\n Note: The following fields are mutually exclusive: `num_value`, `str_value`, `bool_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #num_value=\n\n def num_value=(value) -\u003e ::Float\n\n**Parameter**\n\n- **value** (::Float) --- Numerical value.\n\n\nNote: The following fields are mutually exclusive: `num_value`, `str_value`, `bool_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::Float) --- Numerical value.\n\n Note: The following fields are mutually exclusive: `num_value`, `str_value`, `bool_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #potential_score\n\n def potential_score() -\u003e ::Float\n\n**Returns**\n\n- (::Float) --- Output only. The maximum potential score of the question.\n\n### #score\n\n def score() -\u003e ::Float\n\n**Returns**\n\n- (::Float) --- Output only. Numerical score of the answer.\n\n### #str_value\n\n def str_value() -\u003e ::String\n\n**Returns**\n\n- (::String) --- String value.\n\n Note: The following fields are mutually exclusive: `str_value`, `num_value`, `bool_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.\n\n### #str_value=\n\n def str_value=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- String value.\n\n\nNote: The following fields are mutually exclusive: `str_value`, `num_value`, `bool_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared. \n**Returns**\n\n- (::String) --- String value.\n\n Note: The following fields are mutually exclusive: `str_value`, `num_value`, `bool_value`, `na_value`. If a field in that set is populated, all other fields in the set will automatically be cleared."]]