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" }