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

做為 ID 的簡短字串。與 QaQuestion.AnswerChoice.key 中使用的值相符。

聯集欄位 value。答案值可以是幾種不同類型,value 只能是下列其中一個設定:
strValue

string

字串值。

numValue

number

數值。

boolValue

boolean

布林值。

naValue

boolean

值為「不適用 (N/A)」。應一律為 true。

score

number

僅供輸出。答案的得分。

potentialScore

number

僅供輸出。問題的最高可能分數。

normalizedScore

number

僅供輸出。問題的正規化分數。計算方式為「分數 / 可能提升分數」。