Class SuggestionsResponse

SuggestionsResponse

提案コールバック関数から返せるレスポンス オブジェクト。これは、オートコンプリートを実装する TextInput ウィジェットで使用されます。

Google Workspace アドオンと Google Chat アプリでご利用いただけます。

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

Methods

メソッド戻り値の型概要
printJson()Stringこのオブジェクトの JSON 表現を出力します。

詳細なドキュメント

printJson()

このオブジェクトの JSON 表現を出力します。これはデバッグ専用です。

リターン

String