Class ActionResponse

アクションレスポンス

コールバック関数(フォーム レスポンス ハンドラなど)から返され、クライアントに対して 1 つ以上のアクションを実行するレスポンス オブジェクト。一部のアクションの組み合わせはサポートされていません。

// An action that opens a link const actionResponse =     CardService.newActionResponseBuilder()         .setOpenLink(CardService.newOpenLink().setUrl('https://www.google.com'))         .build();  // An action that shows a notification. const notificationActionResponse = CardService.newActionResponseBuilder()                            .setNotification(                                CardService.newNotification().setText(                                    'Some info to display to user'),                                )                            .build();  // An action that shows an additional card. It also sets a flag to indicate that // the original state data has changed.  const cardBuilder = CardService.newCardBuilder(); // Build card ... const navigationActionResponse = CardService.newActionResponseBuilder()                            .setNavigation(CardService.newNavigation().pushCard(                                cardBuilder.build()))                            .setStateChanged(true)                            .build();

メソッド

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

詳細なドキュメント

printJson()

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

戻る

String