Class SuggestionsResponse

SuggestionsResponse

可从建议回调函数返回的响应对象。这与实现自动补全功能的 TextInput widget 结合使用。

适用于 Google Workspace 插件和 Google Chat 应用。

var suggestionsResponse = CardService.newSuggestionsResponseBuilder()
    .setSuggestions(CardService.newSuggestions()
        .addSuggestion("First suggestion")
        .addSuggestion("Second suggestion"))
        .build();

方法

方法返回类型简介
printJson()String输出此对象的 JSON 表示法。

详细文档

printJson()

输出此对象的 JSON 表示法。这仅用于调试。

弃踢回攻

String