// A universal action that opens a link.constopenLinkUniversalAction=CardService.newUniversalActionResponseBuilder().setOpenLink(CardService.newOpenLink().setUrl('https://www.google.com')).build();constcardBuilder1=CardService.newCardBuilder();constcardBuilder2=CardService.newCardBuilder();// Finish building the cards ...// A universal action that shows two static cards.constcardsUniversalAction=CardService.newUniversalActionResponseBuilder().displayAddOnCards([cardBuilder1.build(),cardBuilder2.build()]).build();
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2024-12-21 UTC。"],[[["`UniversalActionResponse` objects are returned from methods creating universal actions, like opening links or displaying cards."],["These objects can define actions like opening a web link using `setOpenLink()` or showing cards using `displayAddOnCards()`."],["For debugging, the `printJson()` method outputs the object's JSON representation as a string."]]],[]]