Response
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 .
} |
フィールド |
requestId |
string
このメッセージがレスポンスであるリクエストの requestId。
|
continued |
boolean
true の場合、このレスポンスの後に、このレスポンスと同じレスポンス ストリーム内にある追加のレスポンスが続きます。
|
extensions[] |
object
アプリケーション固有のレスポンス メタデータ。 任意の型のフィールドを含むオブジェクト。型を識別する URI を含むフィールド "@type" を追加できます。例: { "id": 1234, "@type": "types.example.com/standard/id" }
|
共用体フィールド result 。レスポンスの結果。error または有効な response のいずれかです。result は次のいずれかになります。 |
error |
object (Status )
リクエストの処理中にエラーが発生した場合のエラー結果。
|
response |
object
呼び出しが成功した場合のレスポンス ペイロード。 任意の型のフィールドを含むオブジェクト。型を識別する URI を含むフィールド "@type" を追加できます。例: { "id": 1234, "@type": "types.example.com/standard/id" }
|
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-02-27 UTC。
[null,null,["最終更新日 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"]]