Response
Una risposta a una singola richiesta.
Rappresentazione JSON |
{
"requestId": string,
"continued": boolean,
"extensions": [
{
"@type": string,
field1: ...,
...
}
],
// Union field result can be only one of the following:
"error": {
object (Status )
},
"response": {
"@type": string,
field1: ...,
...
}
// End of list of possible types for union field result .
} |
Campi |
requestId |
string
Il valore requestId dell'opzione "Richiedi questo messaggio" è in risposta.
|
continued |
boolean
Se il valore è vero, questa risposta è seguita da altre risposte nello stesso flusso di risposte di questa risposta.
|
extensions[] |
object
Metadati di risposta specifici dell'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" } .
|
Campo unione result . Il risultato della risposta, che può essere un error o un response valido. result può essere solo uno dei seguenti: |
error |
object (Status )
Il risultato dell'errore in caso di errore durante l'elaborazione della richiesta.
|
response |
object
Il payload della risposta nel caso in cui la chiamata sia riuscita. 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."],[[["The JSON response to a Request includes a request ID, continuation status, application-specific metadata, and a result field."],["The `result` field indicates either an error with a status object or a successful response payload."],["Both `extensions` and `response` fields use a flexible structure with an `@type` field to specify data types."],["If `continued` is true, expect additional responses in the same stream."]]],["A JSON response contains a `requestId` string matching the initial request. The `continued` boolean indicates if more responses will follow. `extensions` holds application-specific metadata. The `result` field, a union type, can hold either an `error` object (if the request failed) or a successful `response` object, both containing an `@type` identifier and additional fields. This describes a structure to send response messages back to the users.\n"]]