Request
ข้อความคำขอที่ส่งเป็นส่วนหนึ่งของการดำเนินการแบบกลุ่ม
การแสดง JSON |
{
"requestId": string,
"methodName": string,
"request": {
"@type": string,
field1: ...,
...
},
"extensions": [
{
"@type": string,
field1: ...,
...
}
]
} |
ช่อง |
requestId |
string
รหัสที่ไม่ซ้ำกันของคำขอนี้ภายในกลุ่ม ข้อความตอบกลับที่มี 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 Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2025-02-27 UTC
[null,null,["อัปเดตล่าสุด 2025-02-27 UTC"],[[["Batch requests use JSON to bundle multiple API calls into a single request, each identified by a unique `requestId`."],["Each individual request within the batch specifies the `methodName` and includes a `request` object containing the call's specific data and type information."],["The `extensions` field allows for adding application-specific metadata to individual requests within the batch."]]],["A request within a batch execution is represented in JSON. It includes a unique `requestId` to link it to its response. The `methodName` specifies the fully qualified method being called. The `request` field holds the request payload as an object with a type identifier. `extensions` carries application-specific metadata, also as an object with a type identifier. Multiple requests can share the same `requestId` for streaming methods.\n"]]