Response
Eine Antwort auf eine einzelne Anfrage.
JSON-Darstellung |
{
"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 .
} |
Felder |
requestId |
string
Die requestId der Anfrage, auf die diese Nachricht reagiert.
|
continued |
boolean
Falls wahr, folgen auf diese Antwort weitere Antworten, die sich im selben Antwortstream wie diese Antwort befinden.
|
extensions[] |
object
Anwendungsspezifische Antwortmetadaten. Ein Objekt, das Felder eines beliebigen Typs enthält. Ein zusätzliches Feld "@type" enthält einen URI zur Identifizierung des Typs. Beispiel: { "id": 1234, "@type": "types.example.com/standard/id" } .
|
Union-Feld result . Das Antwortergebnis, das entweder ein error oder eine gültige response sein kann. Für result ist nur einer der folgenden Werte zulässig: |
error |
object (Status )
Das Fehlerergebnis, wenn bei der Verarbeitung der Anfrage ein Fehler aufgetreten ist.
|
response |
object
Die Nutzlast der Antwort, wenn der Aufruf erfolgreich war. Ein Objekt, das Felder eines beliebigen Typs enthält. Ein zusätzliches Feld "@type" enthält einen URI zur Identifizierung des Typs. Beispiel: { "id": 1234, "@type": "types.example.com/standard/id" } .
|
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2025-02-27 (UTC).
[null,null,["Zuletzt aktualisiert: 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"]]