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" में, टाइप की पहचान करने वाला यूआरआई होता है. उदाहरण: { "id": 1234, "@type": "types.example.com/standard/id" } .
|
यूनियन फ़ील्ड result . रिस्पॉन्स का नतीजा, जो कि error या मान्य response हो सकता है. result इनमें से सिर्फ़ एक हो सकता है: |
error |
object (Status )
अनुरोध को प्रोसेस करने में कोई गड़बड़ी होने पर, गड़बड़ी का मैसेज.
|
response |
object
कॉल पूरा होने पर, रिस्पॉन्स पेलोड. ऐसा ऑब्जेक्ट जिसमें आर्बिट्रेरी टाइप के फ़ील्ड शामिल होते हैं. अतिरिक्त फ़ील्ड "@type" में, टाइप की पहचान करने वाला यूआरआई होता है. उदाहरण: { "id": 1234, "@type": "types.example.com/standard/id" } .
|
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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"]]