AI-generated Key Takeaways
- 
          The ComposeActionResponseBuilderis used to buildComposeActionResponseobjects, which are responses to Actions that compose draft messages.
- 
          This builder is not related to compose actions used for extending the Gmail compose UI. 
- 
          The build()method validates and returns the constructedComposeActionResponse.
- 
          The setGmailDraft(draft)method sets the Gmail draft to be used in the response.
A builder for Compose objects.
Methods
| Method | Return type | Brief description | 
|---|---|---|
| build() | Compose | Builds the current compose action response and validates it. | 
| set | Compose | Sets the draft Gmailcreated
usingGmailor
similar functions. | 
Detailed documentation
build()
Builds the current compose action response and validates it.
Return
Compose — A validated Compose.
Throws
Error — if the constructed compose action response isn't valid.
setGmailDraft(draft)  
Sets the draft Gmail created
using Gmail or
similar functions.
Parameters
| Name | Type | Description | 
|---|---|---|
| draft | Gmail | The Gmailto use. | 
Return
Compose — This object, for chaining.