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

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

答案值可能是幾種不同類型之一。以下是互斥欄位清單。回應中最多會設定下列其中一個欄位:
strValue

string

字串值。

numValue

number

數值。

boolValue

boolean

布林值。

naValue

boolean

「不適用 (N/A)」值。只能是 true。

skipValue

boolean

僅供輸出。「略過」值。如有提供,這個欄位只能設為 true。如果問題收到這個答案,就不會計入任何分數。這表示問題未經過評估。

互斥欄位結束。
score

number

僅供輸出。答案的數值分數。

potentialScore

number

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

normalizedScore

number

僅供輸出。問題的正規化分數。計算方式為 score / potentialScore。