AnswerValue

用于保存 QaAnswer 值的消息。QaQuestion.AnswerChoice 用于定义问题的可能答案值。

JSON 表示法
{
  "key": string,

  // Union field value can be only one of the following:
  "strValue": string,
  "numValue": number,
  "boolValue": boolean,
  "naValue": boolean
  // End of list of possible types for union field value.
  "score": number,
  "potentialScore": number,
  "normalizedScore": number
}
字段
key

string

用作标识符的短字符串。与 QaQuestion.AnswerChoice.key 中使用的值相匹配。

联合字段 value。答案值可以是几种不同的类型之一。value 只能是下列其中一项:
strValue

string

字符串值。

numValue

number

数值。

boolValue

boolean

布尔值。

naValue

boolean

值为“不适用 (N/A)”。应始终为 true。

score

number

仅限输出。回答的数值得分。

potentialScore

number

仅限输出。问题的最高潜在得分。

normalizedScore

number

仅限输出。问题的标准化得分。计算方式为:得分 / 潜在得分。