Request
Messaggio di richiesta inviato come parte di un'esecuzione batch.
Rappresentazione JSON |
{
"requestId": string,
"methodName": string,
"request": {
"@type": string,
field1: ...,
...
},
"extensions": [
{
"@type": string,
field1: ...,
...
}
]
} |
Campi |
requestId |
string
ID univoco di questa richiesta all'interno del batch. Il messaggio di risposta con un valore requestId corrispondente è la risposta a questa richiesta. Per i metodi di flussi di richieste, lo stesso requestId può essere utilizzato più volte per passare tutti i messaggi di richiesta che fanno parte di un singolo metodo. Per i metodi di flusso di risposta, lo stesso requestId potrebbe essere visualizzato in più messaggi di risposta.
|
methodName |
string
Il metodo chiamato. Deve essere il nome completo di un metodo. Esempio: google.rpc.batch.Batch.Esecuzione
|
request |
object
Payload della richiesta. Un oggetto che contiene campi di tipo arbitrario. Un campo aggiuntivo "@type" contiene un URI che identifica il tipo. Esempio: { "id": 1234, "@type": "types.example.com/standard/id" } .
|
extensions[] |
object
Metadati delle richieste specifici per l'applicazione. Un oggetto che contiene campi di tipo arbitrario. Un campo aggiuntivo "@type" contiene un URI che identifica il tipo. Esempio: { "id": 1234, "@type": "types.example.com/standard/id" } .
|
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-02-27 UTC.
[null,null,["Ultimo aggiornamento 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"]]