Class ComposeActionResponseBuilder

ComposeActionResponseBuilder

A builder for ComposeActionResponse objects.

Methods

MethodReturn typeBrief description
build()ComposeActionResponseBuilds the current compose action response and validates it.
setGmailDraft(draft)ComposeActionResponseBuilderSets the draft GmailMessage created using GmailMessage.createDraftReply(body) or similar functions.

Detailed documentation

build()

Builds the current compose action response and validates it.

Return

ComposeActionResponse — a validated ComposeActionResponse.


setGmailDraft(draft)

Sets the draft GmailMessage created using GmailMessage.createDraftReply(body) or similar functions.

Parameters

NameTypeDescription
draftGmailDraftthe GmailDraft to use.

Return

ComposeActionResponseBuilder — this object, for chaining.

Send feedback about...

Apps Script
Apps Script