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 ,也可以是有效的 response 。result 只能是下列其中一项: |
error |
object (Status )
如果处理请求时出错,则返回错误结果。
|
response |
object
如果调用成功,则为响应载荷。 此对象可以包含任意类型的字段。附加字段 "@type" 包含用于标示相应类型的 URI。示例:{ "id": 1234, "@type": "types.example.com/standard/id" } 。
|
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-03-13。
[null,null,["最后更新时间 (UTC):2025-03-13。"],[],[],null,["# Response\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nA response to a single Request.\n\n| JSON representation |\n|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"requestId\": string, \"continued\": boolean, \"extensions\": [ { \"@type\": string, field1: ..., ... } ], // Union field `result` can be only one of the following: \"error\": { object (/workspace/tasks/reference/rest/v1/Status) }, \"response\": { \"@type\": string, field1: ..., ... } // End of list of possible types for union field `result`. } ``` |\n\n| Fields ||\n|----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `requestId` | `string` The requestId of the Request this message is in response to. |\n| `continued` | `boolean` If true, this Response is followed by additional responses that are in the same response stream as this Response. |\n| `extensions[]` | `object` Application specific response metadata. An object containing fields of an arbitrary type. An additional field `\"@type\"` contains a URI identifying the type. Example: `{ \"id\": 1234, \"@type\": \"types.example.com/standard/id\" }`. |\n| Union field `result`. The response result, which can be either an `error` or a valid `response`. `result` can be only one of the following: ||\n| `error` | `object (`[Status](/workspace/tasks/reference/rest/v1/Status)`)` The error result if there was an error processing the request. |\n| `response` | `object` The response payload if the call was a success. An object containing fields of an arbitrary type. An additional field `\"@type\"` contains a URI identifying the type. Example: `{ \"id\": 1234, \"@type\": \"types.example.com/standard/id\" }`. |"]]