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 และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 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"]]