Class UniversalActionResponse
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
UniversalActionResponse
रिस्पॉन्स ऑब्जेक्ट, जो यूनिवर्सल ऐक्शन बनाने वाले किसी तरीके से दिखाया जा सकता है.
// A universal action that opens a link.
const openLinkUniversalAction = CardService.newUniversalActionResponseBuilder()
.setOpenLink(CardService.newOpenLink()
.setUrl("https://www.google.com"))
.build();
const cardBuilder1 = CardService.newCardBuilder();
const cardBuilder2 = CardService.newCardBuilder();
// Finish building the cards ...
// A universal action that shows two static cards.
const cardsUniversalAction = CardService.newUniversalActionResponseBuilder()
.displayAddOnCards([
cardBuilder1.build(),
cardBuilder2.build(),
]).build();
तरीके
तरीका | रिटर्न टाइप | संक्षिप्त विवरण |
printJson() | String | इस ऑब्जेक्ट का JSON फ़ॉर्मैट प्रिंट करता है. |
ज़्यादा जानकारी के साथ दस्तावेज़
printJson()
इस ऑब्जेक्ट का JSON फ़ॉर्मैट प्रिंट करता है. यह सिर्फ़ डीबग करने के लिए है.
रिटर्न
String
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 2024-01-31 (UTC) को अपडेट किया गया.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"वह जानकारी मौजूद नहीं है जो मुझे चाहिए"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"बहुत मुश्किल है / बहुत सारे चरण हैं"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"पुराना"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"अनुवाद से जुड़ी समस्या"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"सैंपल / कोड से जुड़ी समस्या"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"अन्य"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"समझने में आसान है"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"मेरी समस्या हल हो गई"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"अन्य"
}]
{
"last_modified": "आखिरी बार 2024-01-31 (UTC) को अपडेट किया गया.",
"state": ""
}