可從建議回呼函式傳回的回應物件。這會用於
TextInput
個實作自動完成功能的小工具。
適用於 Google Workspace 外掛程式和 Google Chat 應用程式。
var suggestionsResponse = CardService.newSuggestionsResponseBuilder() .setSuggestions(CardService.newSuggestions() .addSuggestion("First suggestion") .addSuggestion("Second suggestion")) .build();
方法
方法 | 傳回類型 | 簡短說明 |
---|---|---|
printJson() | String | 列印這個物件的 JSON 表示法。 |
內容詳盡的說明文件
printJson()
列印這個物件的 JSON 表示法。此功能僅適用於偵錯。
回攻員
String