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
หากเป็นจริง คำตอบนี้จะมีคำตอบเพิ่มเติมตามมาในสตรีมคำตอบเดียวกันกับคำตอบนี้
|
extensions[] |
object
ข้อมูลเมตาการตอบกลับเฉพาะแอปพลิเคชัน ออบเจ็กต์ที่มีฟิลด์ประเภทใดก็ได้ ช่องเพิ่มเติม "@type" มี URI ที่ระบุประเภท ตัวอย่าง: { "id": 1234, "@type": "types.example.com/standard/id" }
|
ฟิลด์สหภาพ result ผลลัพธ์การตอบกลับ ซึ่งอาจเป็น error หรือ response ที่ถูกต้อง result ต้องเป็นค่าใดค่าหนึ่งต่อไปนี้เท่านั้น |
error |
object (Status )
ผลลัพธ์ข้อผิดพลาดหากเกิดข้อผิดพลาดขณะประมวลผลคําขอ
|
response |
object
เพย์โหลดการตอบกลับหากการเรียกใช้สำเร็จ ออบเจ็กต์ที่มีฟิลด์ประเภทใดก็ได้ ช่องเพิ่มเติม "@type" มี URI ที่ระบุประเภท ตัวอย่าง: { "id": 1234, "@type": "types.example.com/standard/id" }
|
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-12-20 UTC
[null,null,["อัปเดตล่าสุด 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."]]],[]]