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 Anfrage-ID der Anfrage, auf die diese Nachricht eine Antwort ist.

continued

boolean

Wenn „true“ (wahr) festgelegt ist, folgt auf diese Antwort eine weitere Antwort, die sich im selben Antwortstream befindet.

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 kann entweder ein error oder eine gültige response sein. 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 Antwortnutzlast, 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" }.