Request
Komunikat z żądaniem wysłany w ramach wykonania zbiorczego.
Zapis JSON |
{
"requestId": string,
"methodName": string,
"request": {
"@type": string,
field1: ...,
...
},
"extensions": [
{
"@type": string,
field1: ...,
...
}
]
} |
Pola |
requestId |
string
Unikalny identyfikator tego żądania w wsadzie. Wiadomość z odpowiedzią z pasującym atrybutem requestId to odpowiedź na to żądanie. W przypadku metod strumieniowego przesyłania żądań ten sam obiekt requestId może być używany wiele razy do przekazywania wszystkich komunikatów żądania, które są częścią pojedynczej metody. W przypadku metod strumieniowania odpowiedzi ten sam atrybut requestId może się wyświetlać w wielu wiadomościach z odpowiedziami.
|
methodName |
string
Wywoływana metoda. Musi to być w pełni kwalifikowana nazwa metody. Przykład: google.rpc.batch.Batch.Execute
|
request |
object
Ładunek żądania. Obiekt zawierający pola dowolnego typu. Dodatkowe pole "@type" zawiera identyfikator URI identyfikujący typ. Przykład: { "id": 1234, "@type": "types.example.com/standard/id" } .
|
extensions[] |
object
Metadane żądania dotyczące konkretnej aplikacji. Obiekt zawierający pola dowolnego typu. Dodatkowe pole "@type" zawiera identyfikator URI identyfikujący typ. Przykład: { "id": 1234, "@type": "types.example.com/standard/id" } .
|
O ile nie stwierdzono inaczej, treść tej strony jest objęta licencją Creative Commons – uznanie autorstwa 4.0, a fragmenty kodu są dostępne na licencji Apache 2.0. Szczegółowe informacje na ten temat zawierają zasady dotyczące witryny Google Developers. Java jest zastrzeżonym znakiem towarowym firmy Oracle i jej podmiotów stowarzyszonych.
Ostatnia aktualizacja: 2025-02-27 UTC.
[null,null,["Ostatnia aktualizacja: 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"]]