AnswerValue

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

JSON 表示法
{
  "key": string,

  // The following is a list of mutually exclusive fields. At most one of the
  // fields will be set in a response:
  "strValue": string,
  "numValue": number,
  "boolValue": boolean,
  "naValue": boolean,
  "skipValue": boolean
  // End of mutually exclusive fields.
  "score": number,
  "potentialScore": number,
  "normalizedScore": number
}
字段
key

string

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

答案值可以是几种不同类型之一。以下是互斥字段的列表。在响应中,最多只能设置其中一个字段:
strValue

string

字符串值。

numValue

number

数值。

boolValue

boolean

布尔值。

naValue

boolean

值为“不适用 (N/A)”。只能是 true。

skipValue

boolean

仅限输出。值为“Skip”。如果提供,此字段只能设置为 true。如果某个问题收到此回答,则该问题将不计入任何分数计算。这意味着该问题未经过评估。

互斥字段结束。
score

number

仅限输出。回答的数字分数。

potentialScore

number

仅限输出。该问题的最高可能得分。

normalizedScore

number

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