Reference documentation and code samples for the Contact Center AI Insights V1 API class Google::Cloud::ContactCenterInsights::V1::QaQuestion::AnswerChoice.
Message representing a possible answer to the question.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#bool_value
defbool_value()->::Boolean
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.
#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.
#key=
defkey=(value)->::String
Parameter
value (::String) — A short string used as an identifier.
Returns
(::String) — A short string used as an identifier.
#na_value
defna_value()->::Boolean
Returns
(::Boolean) — A value of "Not Applicable (N/A)". If provided, this field may only
be set to true. If a question receives this answer, it will be
excluded from any score calculations.
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)". If provided, this field may only
be set to true. If a question receives this answer, it will be
excluded from any score calculations.
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)". If provided, this field may only
be set to true. If a question receives this answer, it will be
excluded from any score calculations.
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.
#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.
#score
defscore()->::Float
Returns
(::Float) — Numerical score of the answer, used for generating the overall score of
a QaScorecardResult. If the answer uses na_value, this field is unused.
#score=
defscore=(value)->::Float
Parameter
value (::Float) — Numerical score of the answer, used for generating the overall score of
a QaScorecardResult. If the answer uses na_value, this field is unused.
Returns
(::Float) — Numerical score of the answer, used for generating the overall score of
a QaScorecardResult. If the answer uses na_value, this field is unused.
#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::QaQuestion::AnswerChoice (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-QaQuestion-AnswerChoice)\n- [1.5.1](/ruby/docs/reference/google-cloud-contact_center_insights-v1/1.5.1/Google-Cloud-ContactCenterInsights-V1-QaQuestion-AnswerChoice)\n- [1.4.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/1.4.0/Google-Cloud-ContactCenterInsights-V1-QaQuestion-AnswerChoice)\n- [1.3.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/1.3.0/Google-Cloud-ContactCenterInsights-V1-QaQuestion-AnswerChoice)\n- [1.2.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/1.2.0/Google-Cloud-ContactCenterInsights-V1-QaQuestion-AnswerChoice)\n- [1.1.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/1.1.0/Google-Cloud-ContactCenterInsights-V1-QaQuestion-AnswerChoice)\n- [1.0.1](/ruby/docs/reference/google-cloud-contact_center_insights-v1/1.0.1/Google-Cloud-ContactCenterInsights-V1-QaQuestion-AnswerChoice)\n- [0.22.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.22.0/Google-Cloud-ContactCenterInsights-V1-QaQuestion-AnswerChoice)\n- [0.21.1](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.21.1/Google-Cloud-ContactCenterInsights-V1-QaQuestion-AnswerChoice)\n- [0.20.1](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.20.1/Google-Cloud-ContactCenterInsights-V1-QaQuestion-AnswerChoice)\n- [0.19.1](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.19.1/Google-Cloud-ContactCenterInsights-V1-QaQuestion-AnswerChoice)\n- [0.18.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.18.0/Google-Cloud-ContactCenterInsights-V1-QaQuestion-AnswerChoice)\n- [0.17.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.17.0/Google-Cloud-ContactCenterInsights-V1-QaQuestion-AnswerChoice)\n- [0.16.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.16.0/Google-Cloud-ContactCenterInsights-V1-QaQuestion-AnswerChoice)\n- [0.15.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.15.0/Google-Cloud-ContactCenterInsights-V1-QaQuestion-AnswerChoice)\n- [0.14.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.14.0/Google-Cloud-ContactCenterInsights-V1-QaQuestion-AnswerChoice)\n- [0.13.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.13.0/Google-Cloud-ContactCenterInsights-V1-QaQuestion-AnswerChoice)\n- [0.12.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.12.0/Google-Cloud-ContactCenterInsights-V1-QaQuestion-AnswerChoice)\n- [0.11.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.11.0/Google-Cloud-ContactCenterInsights-V1-QaQuestion-AnswerChoice)\n- [0.10.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.10.0/Google-Cloud-ContactCenterInsights-V1-QaQuestion-AnswerChoice)\n- [0.9.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.9.0/Google-Cloud-ContactCenterInsights-V1-QaQuestion-AnswerChoice)\n- [0.8.2](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.8.2/Google-Cloud-ContactCenterInsights-V1-QaQuestion-AnswerChoice)\n- [0.7.2](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.7.2/Google-Cloud-ContactCenterInsights-V1-QaQuestion-AnswerChoice)\n- [0.6.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.6.0/Google-Cloud-ContactCenterInsights-V1-QaQuestion-AnswerChoice) \nReference documentation and code samples for the Contact Center AI Insights V1 API class Google::Cloud::ContactCenterInsights::V1::QaQuestion::AnswerChoice.\n\nMessage representing a possible answer to the 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.\n\n### #key=\n\n def key=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- A short string used as an identifier. \n**Returns**\n\n- (::String) --- A short string used as an identifier.\n\n### #na_value\n\n def na_value() -\u003e ::Boolean\n\n**Returns**\n\n- (::Boolean) --- A value of \"Not Applicable (N/A)\". If provided, this field may only be set to `true`. If a question receives this answer, it will be excluded from any score calculations.\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)\". If provided, this field may only be set to `true`. If a question receives this answer, it will be excluded from any score calculations.\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)\". If provided, this field may only be set to `true`. If a question receives this answer, it will be excluded from any score calculations.\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### #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### #score\n\n def score() -\u003e ::Float\n\n**Returns**\n\n- (::Float) --- Numerical score of the answer, used for generating the overall score of a QaScorecardResult. If the answer uses na_value, this field is unused.\n\n### #score=\n\n def score=(value) -\u003e ::Float\n\n**Parameter**\n\n- **value** (::Float) --- Numerical score of the answer, used for generating the overall score of a QaScorecardResult. If the answer uses na_value, this field is unused. \n**Returns**\n\n- (::Float) --- Numerical score of the answer, used for generating the overall score of a QaScorecardResult. If the answer uses na_value, this field is unused.\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."]]