AddOns Response Service

AddOns Response Service

このサービスを使用すると、Google Workspace フローを拡張する Google Workspace アドオンを構成して構築できます。

クラス

名前概要
ActionGoogle Workspace Flows を拡張する Google Workspace アドオンが新しいカードのレンダリングに使用できるアクション。
AddOnsResponseServiceAddOnsResponseService を使用すると、Google Workspace Flows を拡張する Google Workspace アドオンのレスポンスを作成できます。
ModifyCardModifyCard オブジェクトのビルダー。ModifyCard オブジェクトを Action に渡すことで、既存のカードのインターフェースを変更して更新します。
Navigationカード ナビゲーションを制御するヘルパー オブジェクト。
RenderActionユーザー操作に応じて Action を実行して、カードをレンダリングまたは更新します。
RenderActionBuilderRenderAction オブジェクトのビルダー。

Action

メソッド

メソッド戻り値の型概要
addNavigation(navigation)Actionアクションにカード ナビゲーションを追加します。

AddOnsResponseService

メソッド

メソッド戻り値の型概要
newAction()Action新しい Action を作成します。
newNavigation()Navigation新しい Navigation を作成します。
newRenderActionBuilder()RenderActionBuilder新しい RenderActionBuilder を作成します。

ModifyCard

メソッド

メソッド戻り値の型概要
setInsertSection(insertSection)ModifyCardこのアクションの挿入セクションを設定します。
setInsertWidget(insertWidget)ModifyCardこのアクションの挿入ウィジェットを設定します。
setRemoveSection(removeSection)ModifyCardこのアクションの削除セクションを設定します。
setRemoveWidget(removeWidget)ModifyCardこのアクションの削除ウィジェットを設定します。
setReplaceSection(replaceSection)ModifyCardこのアクションの置換セクションを設定します。
setReplaceWidget(replaceWidget)ModifyCardこのアクションの置換ウィジェットを設定します。

メソッド

メソッド戻り値の型概要
printJson()Stringこのオブジェクトの JSON 表現を出力します。
pushCard(card)Navigation指定されたカードをスタックにプッシュします。

RenderAction

メソッド

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

RenderActionBuilder

メソッド

メソッド戻り値の型概要
build()RenderAction現在のレンダリング アクションをビルドして検証します。
setAction(action)RenderActionBuilderアドオンが UI の更新に使用できるアクションをレンダリング アクションに設定します。
setHostAppAction(hostAppAction)RenderActionBuilder個々のホストアプリで処理されるホストアプリのアクションをレンダリング アクションに設定します。