Google Apps Script API
    Preparing search index...

    A thread in a user's Gmail account.

    interface GmailThread {
        addLabel(label: GmailLabel): GmailThread;
        createDraftReply(body: string): GmailDraft;
        createDraftReply(body: string, options: GmailReplyOptions): GmailDraft;
        createDraftReplyAll(body: string): GmailDraft;
        createDraftReplyAll(body: string, options: GmailReplyOptions): GmailDraft;
        getFirstMessageSubject(): string;
        getId(): string;
        getLabels(): GmailLabel[];
        getLastMessageDate(): GoogleAppsScript.Base.Date;
        getMessageCount(): number;
        getMessages(): GmailMessage[];
        getPermalink(): string;
        hasStarredMessages(): boolean;
        isImportant(): boolean;
        isInChats(): boolean;
        isInInbox(): boolean;
        isInPriorityInbox(): boolean;
        isInSpam(): boolean;
        isInTrash(): boolean;
        isUnread(): boolean;
        markImportant(): GmailThread;
        markRead(): GmailThread;
        markUnimportant(): GmailThread;
        markUnread(): GmailThread;
        moveToArchive(): GmailThread;
        moveToInbox(): GmailThread;
        moveToSpam(): GmailThread;
        moveToTrash(): GmailThread;
        refresh(): GmailThread;
        removeLabel(label: GmailLabel): GmailThread;
        reply(body: string): GmailThread;
        reply(body: string, options: GmailAdvancedOptions): GmailThread;
        replyAll(body: string): GmailThread;
        replyAll(body: string, options: GmailAdvancedOptions): GmailThread;
    }
    Index

    Methods