Class ComposeActionResponseBuilder
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Tài liệu chi tiết
setGmailDraft(draft)
Đặt bản nháp GmailMessage đã tạo bằng GmailMessage.createDraftReply(body) hoặc các hàm tương tự.
Thông số
| Tên | Loại | Mô tả |
draft | GmailDraft | GmailDraft để sử dụng. |
Cầu thủ trả bóng
ComposeActionResponseBuilder – Đối tượng này, để liên kết.
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-12-03 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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"]]