# Contact Center AI Insights V1 API - Class Google::Cloud::ContactCenterInsights::V1::QaAnswer::AnswerValue (v1.10.0)

1.10.0 (latest) 1.9.0 1.8.1 1.7.0 1.6.0 1.5.1 1.4.0 1.3.0 1.2.0 1.1.0 1.0.1 0.22.0 0.21.1 0.20.1 0.19.1 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.2 0.7.2 0.6.0 Reference documentation and code samples for the Contact Center AI Insights V1 API class Google::Cloud::ContactCenterInsights::V1::QaAnswer::AnswerValue.

Message for holding the value of a
[QaAnswer](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Cloud-ContactCenterInsights-V1-QaAnswer "Google::Cloud::ContactCenterInsights::V1::QaAnswer (class)").
[QaQuestion.AnswerChoice](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Cloud-ContactCenterInsights-V1-QaQuestion-AnswerChoice "Google::Cloud::ContactCenterInsights::V1::QaQuestion::AnswerChoice (class)")
defines the possible answer values for a question.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #bool_value

    def bool_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=

    def bool_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

    def key() -> ::String

**Returns**

- (::String) --- A short string used as an identifier. Matches the value used in QaQuestion.AnswerChoice.key.

### #key=

    def key=(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

    def na_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=

    def na_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

    def normalized_score() -> ::Float

**Returns**

- (::Float) --- Output only. Normalized score of the questions. Calculated as score / potential_score.

### #num_value

    def num_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=

    def num_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

    def potential_score() -> ::Float

**Returns**

- (::Float) --- Output only. The maximum potential score of the question.

### #score

    def score() -> ::Float

**Returns**

- (::Float) --- Output only. Numerical score of the answer.

### #str_value

    def str_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=

    def str_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.