Request
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
JSON 表示法 |
{
"requestId": string,
"methodName": string,
"request": {
"@type": string,
field1: ...,
...
},
"extensions": [
{
"@type": string,
field1: ...,
...
}
]
} |
字段 |
requestId |
string
此请求在批处理中的唯一 ID。包含匹配 requestId 的响应消息是对此请求的响应。对于请求流式传输方法,可以多次使用同一 requestId 来传递单个方法中的所有请求消息。对于响应流式传输方法,同一 requestId 可能会出现在多条响应消息中。
|
methodName |
string
被调用的方法。必须是完全限定的方法名称。示例:google.rpc.batch.Batch.Execute
|
request |
object
请求载荷。 此对象可以包含任意类型的字段。附加字段 "@type" 包含用于标示相应类型的 URI。示例:{ "id": 1234, "@type": "types.example.com/standard/id" } 。
|
extensions[] |
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,["# Request\n\n- [JSON representation](#SCHEMA_REPRESENTATION)\n\nA request message sent as part of a batch execution.\n\n| JSON representation |\n|------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ``` { \"requestId\": string, \"methodName\": string, \"request\": { \"@type\": string, field1: ..., ... }, \"extensions\": [ { \"@type\": string, field1: ..., ... } ] } ``` |\n\n| Fields ||\n|----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `requestId` | `string` Unique id of this request within the batch. The Response message with a matching `requestId` is the response to this request. For request-streaming methods, the same `requestId` may be used multiple times to pass all request messages that are part of a single method. For response-streaming methods, the same `requestId` may show up in multiple Response messages. |\n| `methodName` | `string` The method being called. Must be a fully qualified method name. Example: google.rpc.batch.Batch.Execute |\n| `request` | `object` The request payload. 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| `extensions[]` | `object` Application specific request 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\" }`. |"]]