用于存储 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 |
用作标识符的短字符串。与 QaQuestion.AnswerChoice.key 中使用的值匹配。 |
| 答案值可以是几种不同类型之一。以下是互斥字段的列表。在响应中,最多只能设置其中一个字段: | |
strValue |
字符串值。 |
numValue |
数值。 |
boolValue |
布尔值。 |
naValue |
值为“不适用 (N/A)”。只能是 |
skipValue |
仅限输出。值为“Skip”。如果提供,此字段只能设置为 |
| 互斥字段结束。 | |
score |
仅限输出。回答的数字分数。 |
potentialScore |
仅限输出。该问题的最高可能得分。 |
normalizedScore |
仅限输出。问题的标准化得分。计算方式为:score / potentialScore。 |