Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
VorschlägeAntwort
Ein Antwortobjekt, das von einer Callback-Funktion für Vorschläge zurückgegeben werden kann. Wird für TextInput-Widgets verwendet, die die automatische Vervollständigung implementieren.
Verfügbar für Google Workspace-Add-ons und Google Chat-Apps.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-07-26 (UTC)."],[[["\u003cp\u003e\u003ccode\u003eSuggestionsResponse\u003c/code\u003e objects, used with \u003ccode\u003eTextInput\u003c/code\u003e widgets for autocomplete, facilitate suggestions within Google Workspace Add-ons and Google Chat apps.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can leverage the \u003ccode\u003eSuggestionsResponseBuilder\u003c/code\u003e to construct a response containing suggestions using methods like \u003ccode\u003esetSuggestions\u003c/code\u003e and \u003ccode\u003eaddSuggestion\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eFor debugging purposes, the \u003ccode\u003eprintJson()\u003c/code\u003e method outputs the JSON structure of the \u003ccode\u003eSuggestionsResponse\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,["SuggestionsResponse\n\nA response object that can be returned from a suggestions callback function. This is used with\n[TextInput](/apps-script/reference/card-service/text-input) widgets that implement autocomplete.\n\nAvailable for Google Workspace add-ons and Google Chat apps.\n\n```javascript\nconst suggestionsResponse = CardService.newSuggestionsResponseBuilder()\n .setSuggestions(\n CardService.newSuggestions()\n .addSuggestion('First suggestion')\n .addSuggestion('Second suggestion'),\n )\n .build();\n``` \n\nMethods\n\n| Method | Return type | Brief description |\n|-----------------------------|-------------|------------------------------------------------|\n| [printJson()](#printJson()) | `String` | Prints the JSON representation of this object. |\n\nDetailed documentation \n\n`print``Json()` \nPrints the JSON representation of this object. This is for debugging only.\n\nReturn\n\n\n`String`"]]