Class ComposeActionResponseBuilder
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
詳細なドキュメント
setGmailDraft(draft)
GmailMessage.createDraftReply(body) などの関数を使用して作成された下書き GmailMessage を設定します。
パラメータ
| 名前 | 型 | 説明 |
draft | GmailDraft | 使用する GmailDraft。 |
戻る
ComposeActionResponseBuilder - チェーン用のこのオブジェクト。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-12-03 UTC。
[null,null,["最終更新日 2025-12-03 UTC。"],[],["The `ComposeActionResponseBuilder` creates responses to actions that compose draft messages. It has two key methods: `build()` and `setGmailDraft(draft)`. `build()` constructs and validates the `ComposeActionResponse`. If it is invalid an error is thrown. `setGmailDraft(draft)` sets the `GmailDraft` using functions such as `GmailMessage.createDraftReply(body)`, allowing for modification of the draft before composing. The builder itself is not directly related to compose actions but creates responses when UI elements are selected.\n"]]