Class ComposeActionResponseBuilder
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
תיעוד מפורט
setGmailDraft(draft)
מגדירה את הטיוטה GmailMessage שנוצרה באמצעות GmailMessage.createDraftReply(body) או פונקציות דומות.
פרמטרים
| שם | סוג | תיאור |
draft | GmailDraft | GmailDraft שבו רוצים להשתמש. |
חזרה
ComposeActionResponseBuilder – האובייקט הזה, לשרשור.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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"]]