Class ComposeActionResponseBuilder

  • The ComposeActionResponseBuilder is used to build ComposeActionResponse objects, 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 constructed ComposeActionResponse .

  • The setGmailDraft(draft) method sets the Gmail draft to be used in the response.

ComposeActionResponseBuilder

A builder for ComposeActionResponse objects.

Methods

Method Return type Brief description
Compose Action Response Builds the current compose action response and validates it.
Compose Action Response Builder Sets the draft Gmail Message created using Gmail Message.createDraftReply(body) or similar functions.

Detailed documentation

build()

Builds the current compose action response and validates it.

Return

ComposeActionResponse — A validated ComposeActionResponse .

Throws

Error — if the constructed compose action response isn't valid.


setGmailDraft(draft)

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

Parameters

Name Type Description
draft
Gmail Draft The Gmail Draft to use.

Return

ComposeActionResponseBuilder — This object, for chaining.

Create a Mobile Website
View Site in Mobile | Classic
Share by: