Response
Respons terhadap satu Permintaan.
Representasi 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 .
} |
Kolom |
requestId |
string
requestId Permintaan yang direspons oleh pesan ini.
|
continued |
boolean
Jika benar, Respons ini diikuti dengan respons tambahan yang berada di aliran respons yang sama dengan Respons ini.
|
extensions[] |
object
Metadata respons khusus aplikasi. Objek yang berisi kolom tipe arbitrer. Kolom tambahan "@type" berisi URI yang mengidentifikasi jenis. Contoh: { "id": 1234, "@type": "types.example.com/standard/id" } .
|
Kolom union result . Hasil respons, yang dapat berupa error atau response yang valid. result hanya dapat berupa salah satu dari hal berikut: |
error |
object (Status )
Hasil error jika terjadi error saat memproses permintaan.
|
response |
object
Payload respons jika panggilan berhasil. Objek yang berisi kolom tipe arbitrer. Kolom tambahan "@type" berisi URI yang mengidentifikasi jenis. Contoh: { "id": 1234, "@type": "types.example.com/standard/id" } .
|
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-12-20 UTC.
[null,null,["Terakhir diperbarui pada 2024-12-20 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."]]],[]]