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-03-13 UTC
[null,null,["อัปเดตล่าสุด 2025-03-13 UTC"],[],[],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\" }`. |"]]