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

這則訊息所回覆的要求的 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" }