Request
הודעת בקשה שנשלחת כחלק מביצוע באצווה.
ייצוג JSON |
{
"requestId": string,
"methodName": string,
"request": {
"@type": string,
field1: ...,
...
},
"extensions": [
{
"@type": string,
field1: ...,
...
}
]
} |
שדות |
requestId |
string
המזהה הייחודי של הבקשה הזו בתוך האצווה. הודעת התשובה עם requestId תואם היא התשובה לבקשה הזו. בשיטות של שליחת בקשות בסטרימינג, ניתן להשתמש באותו requestId מספר פעמים כדי להעביר את כל הודעות הבקשה שהן חלק משיטה אחת. ב-methods של שליחת תשובות, אותו requestId עשוי להופיע במספר הודעות תשובה.
|
methodName |
string
זוהי השיטה. חייב להיות שם שיטה שמוגדר במלואו. דוגמה: google.rpc.batch.Batch.Execute
|
request |
object
המטען הייעודי (Payload) של הבקשה. אובייקט שמכיל שדות מסוג שרירותי. שדה נוסף "@type" מכיל URI המזהה את הסוג. לדוגמה: { "id": 1234, "@type": "types.example.com/standard/id" } .
|
extensions[] |
object
מטא-נתונים של בקשות ספציפיות לאפליקציה. אובייקט שמכיל שדות מסוג שרירותי. שדה נוסף "@type" מכיל URI המזהה את הסוג. לדוגמה: { "id": 1234, "@type": "types.example.com/standard/id" } .
|
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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"]]