Response

單一要求的回應。

JSON 表示法
{
  "requestId": string,
  "continued": boolean,
  "extensions": [
    {
      "@type": string,
      field1: ...,
      ...
    }
  ],

  // Union field result can be only one of the following:
  "error": {
    object (Status)
  },
  "response": {
    "@type": string,
    field1: ...,
    ...
  }
  // End of list of possible types for union field result.
}
欄位
requestId

string

此訊息的 Request 要求的 requestId。

continued

boolean

如果為 true,這個回應後方接著包含與此「回應」位於同一回應串流中的其他回應。

extensions[]

object

應用程式專屬的回應中繼資料。

包含任意類型欄位的物件。額外的 "@type" 欄位則包含能辨識類型的 URI。例如:{ "id": 1234, "@type": "types.example.com/standard/id" }.

聯集欄位 result。回應結果,可以是 error 或有效的 responseresult 只能是下列其中一個值:
error

object (Status)

處理要求時發生錯誤。

response

object

呼叫成功時的回應回應酬載。

包含任意類型欄位的物件。額外的 "@type" 欄位則包含能辨識類型的 URI。例如:{ "id": 1234, "@type": "types.example.com/standard/id" }.