api: google.golang.org/api/gmail/v1 Index | Files

package gmail

import "google.golang.org/api/gmail/v1"

Package gmail provides access to the Gmail API.

See https://developers.google.com/gmail/api/

Usage example:

import "google.golang.org/api/gmail/v1"
...
gmailService, err := gmail.New(oauthHttpClient)

Index

Package Files

gmail-gen.go

Constants

const (
    // Read, send, delete, and manage your email
    MailGoogleComScope = "https://mail.google.com/"

    // Manage drafts and send emails
    GmailComposeScope = "https://www.googleapis.com/auth/gmail.compose"

    // Insert mail into your mailbox
    GmailInsertScope = "https://www.googleapis.com/auth/gmail.insert"

    // Manage mailbox labels
    GmailLabelsScope = "https://www.googleapis.com/auth/gmail.labels"

    // View your email message metadata such as labels and headers, but not
    // the email body
    GmailMetadataScope = "https://www.googleapis.com/auth/gmail.metadata"

    // View and modify but not delete your email
    GmailModifyScope = "https://www.googleapis.com/auth/gmail.modify"

    // View your email messages and settings
    GmailReadonlyScope = "https://www.googleapis.com/auth/gmail.readonly"

    // Send email on your behalf
    GmailSendScope = "https://www.googleapis.com/auth/gmail.send"

    // Manage your basic mail settings
    GmailSettingsBasicScope = "https://www.googleapis.com/auth/gmail.settings.basic"

    // Manage your sensitive mail settings, including who can manage your
    // mail
    GmailSettingsSharingScope = "https://www.googleapis.com/auth/gmail.settings.sharing"
)

OAuth2 scopes used by this API.

type AutoForwarding Uses

type AutoForwarding struct {
    // Disposition: The state that a message should be left in after it has
    // been forwarded.
    //
    // Possible values:
    //   "archive"
    //   "dispositionUnspecified"
    //   "leaveInInbox"
    //   "markRead"
    //   "trash"
    Disposition string `json:"disposition,omitempty"`

    // EmailAddress: Email address to which all incoming messages are
    // forwarded. This email address must be a verified member of the
    // forwarding addresses.
    EmailAddress string `json:"emailAddress,omitempty"`

    // Enabled: Whether all incoming mail is automatically forwarded to
    // another address.
    Enabled bool `json:"enabled,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Disposition") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Disposition") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

AutoForwarding: Auto-forwarding settings for an account.

func (*AutoForwarding) MarshalJSON Uses

func (s *AutoForwarding) MarshalJSON() ([]byte, error)

type BatchDeleteMessagesRequest Uses

type BatchDeleteMessagesRequest struct {
    // Ids: The IDs of the messages to delete.
    Ids []string `json:"ids,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Ids") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Ids") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*BatchDeleteMessagesRequest) MarshalJSON Uses

func (s *BatchDeleteMessagesRequest) MarshalJSON() ([]byte, error)

type BatchModifyMessagesRequest Uses

type BatchModifyMessagesRequest struct {
    // AddLabelIds: A list of label IDs to add to messages.
    AddLabelIds []string `json:"addLabelIds,omitempty"`

    // Ids: The IDs of the messages to modify. There is a limit of 1000 ids
    // per request.
    Ids []string `json:"ids,omitempty"`

    // RemoveLabelIds: A list of label IDs to remove from messages.
    RemoveLabelIds []string `json:"removeLabelIds,omitempty"`

    // ForceSendFields is a list of field names (e.g. "AddLabelIds") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AddLabelIds") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*BatchModifyMessagesRequest) MarshalJSON Uses

func (s *BatchModifyMessagesRequest) MarshalJSON() ([]byte, error)

type Draft Uses

type Draft struct {
    // Id: The immutable ID of the draft.
    Id  string `json:"id,omitempty"`

    // Message: The message content of the draft.
    Message *Message `json:"message,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Id") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Id") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Draft: A draft email in the user's mailbox.

func (*Draft) MarshalJSON Uses

func (s *Draft) MarshalJSON() ([]byte, error)

type Filter Uses

type Filter struct {
    // Action: Action that the filter performs.
    Action *FilterAction `json:"action,omitempty"`

    // Criteria: Matching criteria for the filter.
    Criteria *FilterCriteria `json:"criteria,omitempty"`

    // Id: The server assigned ID of the filter.
    Id  string `json:"id,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Action") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Action") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Filter: Resource definition for Gmail filters. Filters apply to specific messages instead of an entire email thread.

func (*Filter) MarshalJSON Uses

func (s *Filter) MarshalJSON() ([]byte, error)

type FilterAction Uses

type FilterAction struct {
    // AddLabelIds: List of labels to add to the message.
    AddLabelIds []string `json:"addLabelIds,omitempty"`

    // Forward: Email address that the message should be forwarded to.
    Forward string `json:"forward,omitempty"`

    // RemoveLabelIds: List of labels to remove from the message.
    RemoveLabelIds []string `json:"removeLabelIds,omitempty"`

    // ForceSendFields is a list of field names (e.g. "AddLabelIds") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AddLabelIds") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

FilterAction: A set of actions to perform on a message.

func (*FilterAction) MarshalJSON Uses

func (s *FilterAction) MarshalJSON() ([]byte, error)

type FilterCriteria Uses

type FilterCriteria struct {
    // ExcludeChats: Whether the response should exclude chats.
    ExcludeChats bool `json:"excludeChats,omitempty"`

    // From: The sender's display name or email address.
    From string `json:"from,omitempty"`

    // HasAttachment: Whether the message has any attachment.
    HasAttachment bool `json:"hasAttachment,omitempty"`

    // NegatedQuery: Only return messages not matching the specified query.
    // Supports the same query format as the Gmail search box. For example,
    // "from:someuser@example.com rfc822msgid: is:unread".
    NegatedQuery string `json:"negatedQuery,omitempty"`

    // Query: Only return messages matching the specified query. Supports
    // the same query format as the Gmail search box. For example,
    // "from:someuser@example.com rfc822msgid: is:unread".
    Query string `json:"query,omitempty"`

    // Size: The size of the entire RFC822 message in bytes, including all
    // headers and attachments.
    Size int64 `json:"size,omitempty"`

    // SizeComparison: How the message size in bytes should be in relation
    // to the size field.
    //
    // Possible values:
    //   "larger"
    //   "smaller"
    //   "unspecified"
    SizeComparison string `json:"sizeComparison,omitempty"`

    // Subject: Case-insensitive phrase found in the message's subject.
    // Trailing and leading whitespace are be trimmed and adjacent spaces
    // are collapsed.
    Subject string `json:"subject,omitempty"`

    // To: The recipient's display name or email address. Includes
    // recipients in the "to", "cc", and "bcc" header fields. You can use
    // simply the local part of the email address. For example, "example"
    // and "example@" both match "example@gmail.com". This field is
    // case-insensitive.
    To  string `json:"to,omitempty"`

    // ForceSendFields is a list of field names (e.g. "ExcludeChats") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ExcludeChats") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

FilterCriteria: Message matching criteria.

func (*FilterCriteria) MarshalJSON Uses

func (s *FilterCriteria) MarshalJSON() ([]byte, error)

type ForwardingAddress Uses

type ForwardingAddress struct {
    // ForwardingEmail: An email address to which messages can be forwarded.
    ForwardingEmail string `json:"forwardingEmail,omitempty"`

    // VerificationStatus: Indicates whether this address has been verified
    // and is usable for forwarding. Read-only.
    //
    // Possible values:
    //   "accepted"
    //   "pending"
    //   "verificationStatusUnspecified"
    VerificationStatus string `json:"verificationStatus,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "ForwardingEmail") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ForwardingEmail") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

ForwardingAddress: Settings for a forwarding address.

func (*ForwardingAddress) MarshalJSON Uses

func (s *ForwardingAddress) MarshalJSON() ([]byte, error)

type History Uses

type History struct {
    // Id: The mailbox sequence ID.
    Id  uint64 `json:"id,omitempty,string"`

    // LabelsAdded: Labels added to messages in this history record.
    LabelsAdded []*HistoryLabelAdded `json:"labelsAdded,omitempty"`

    // LabelsRemoved: Labels removed from messages in this history record.
    LabelsRemoved []*HistoryLabelRemoved `json:"labelsRemoved,omitempty"`

    // Messages: List of messages changed in this history record. The fields
    // for specific change types, such as messagesAdded may duplicate
    // messages in this field. We recommend using the specific change-type
    // fields instead of this.
    Messages []*Message `json:"messages,omitempty"`

    // MessagesAdded: Messages added to the mailbox in this history record.
    MessagesAdded []*HistoryMessageAdded `json:"messagesAdded,omitempty"`

    // MessagesDeleted: Messages deleted (not Trashed) from the mailbox in
    // this history record.
    MessagesDeleted []*HistoryMessageDeleted `json:"messagesDeleted,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Id") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Id") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

History: A record of a change to the user's mailbox. Each history change may affect multiple messages in multiple ways.

func (*History) MarshalJSON Uses

func (s *History) MarshalJSON() ([]byte, error)

type HistoryLabelAdded Uses

type HistoryLabelAdded struct {
    // LabelIds: Label IDs added to the message.
    LabelIds []string `json:"labelIds,omitempty"`

    Message *Message `json:"message,omitempty"`

    // ForceSendFields is a list of field names (e.g. "LabelIds") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "LabelIds") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*HistoryLabelAdded) MarshalJSON Uses

func (s *HistoryLabelAdded) MarshalJSON() ([]byte, error)

type HistoryLabelRemoved Uses

type HistoryLabelRemoved struct {
    // LabelIds: Label IDs removed from the message.
    LabelIds []string `json:"labelIds,omitempty"`

    Message *Message `json:"message,omitempty"`

    // ForceSendFields is a list of field names (e.g. "LabelIds") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "LabelIds") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*HistoryLabelRemoved) MarshalJSON Uses

func (s *HistoryLabelRemoved) MarshalJSON() ([]byte, error)

type HistoryMessageAdded Uses

type HistoryMessageAdded struct {
    Message *Message `json:"message,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Message") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Message") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*HistoryMessageAdded) MarshalJSON Uses

func (s *HistoryMessageAdded) MarshalJSON() ([]byte, error)

type HistoryMessageDeleted Uses

type HistoryMessageDeleted struct {
    Message *Message `json:"message,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Message") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Message") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*HistoryMessageDeleted) MarshalJSON Uses

func (s *HistoryMessageDeleted) MarshalJSON() ([]byte, error)

type ImapSettings Uses

type ImapSettings struct {
    // AutoExpunge: If this value is true, Gmail will immediately expunge a
    // message when it is marked as deleted in IMAP. Otherwise, Gmail will
    // wait for an update from the client before expunging messages marked
    // as deleted.
    AutoExpunge bool `json:"autoExpunge,omitempty"`

    // Enabled: Whether IMAP is enabled for the account.
    Enabled bool `json:"enabled,omitempty"`

    // ExpungeBehavior: The action that will be executed on a message when
    // it is marked as deleted and expunged from the last visible IMAP
    // folder.
    //
    // Possible values:
    //   "archive"
    //   "deleteForever"
    //   "expungeBehaviorUnspecified"
    //   "trash"
    ExpungeBehavior string `json:"expungeBehavior,omitempty"`

    // MaxFolderSize: An optional limit on the number of messages that an
    // IMAP folder may contain. Legal values are 0, 1000, 2000, 5000 or
    // 10000. A value of zero is interpreted to mean that there is no limit.
    MaxFolderSize int64 `json:"maxFolderSize,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "AutoExpunge") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AutoExpunge") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

ImapSettings: IMAP settings for an account.

func (*ImapSettings) MarshalJSON Uses

func (s *ImapSettings) MarshalJSON() ([]byte, error)

type Label Uses

type Label struct {
    // Id: The immutable ID of the label.
    Id  string `json:"id,omitempty"`

    // LabelListVisibility: The visibility of the label in the label list in
    // the Gmail web interface.
    //
    // Possible values:
    //   "labelHide"
    //   "labelShow"
    //   "labelShowIfUnread"
    LabelListVisibility string `json:"labelListVisibility,omitempty"`

    // MessageListVisibility: The visibility of the label in the message
    // list in the Gmail web interface.
    //
    // Possible values:
    //   "hide"
    //   "show"
    MessageListVisibility string `json:"messageListVisibility,omitempty"`

    // MessagesTotal: The total number of messages with the label.
    MessagesTotal int64 `json:"messagesTotal,omitempty"`

    // MessagesUnread: The number of unread messages with the label.
    MessagesUnread int64 `json:"messagesUnread,omitempty"`

    // Name: The display name of the label.
    Name string `json:"name,omitempty"`

    // ThreadsTotal: The total number of threads with the label.
    ThreadsTotal int64 `json:"threadsTotal,omitempty"`

    // ThreadsUnread: The number of unread threads with the label.
    ThreadsUnread int64 `json:"threadsUnread,omitempty"`

    // Type: The owner type for the label. User labels are created by the
    // user and can be modified and deleted by the user and can be applied
    // to any message or thread. System labels are internally created and
    // cannot be added, modified, or deleted. System labels may be able to
    // be applied to or removed from messages and threads under some
    // circumstances but this is not guaranteed. For example, users can
    // apply and remove the INBOX and UNREAD labels from messages and
    // threads, but cannot apply or remove the DRAFTS or SENT labels from
    // messages or threads.
    //
    // Possible values:
    //   "system"
    //   "user"
    Type string `json:"type,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Id") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Id") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Label: Labels are used to categorize messages and threads within the user's mailbox.

func (*Label) MarshalJSON Uses

func (s *Label) MarshalJSON() ([]byte, error)

type ListDraftsResponse Uses

type ListDraftsResponse struct {
    // Drafts: List of drafts.
    Drafts []*Draft `json:"drafts,omitempty"`

    // NextPageToken: Token to retrieve the next page of results in the
    // list.
    NextPageToken string `json:"nextPageToken,omitempty"`

    // ResultSizeEstimate: Estimated total number of results.
    ResultSizeEstimate int64 `json:"resultSizeEstimate,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Drafts") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Drafts") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ListDraftsResponse) MarshalJSON Uses

func (s *ListDraftsResponse) MarshalJSON() ([]byte, error)

type ListFiltersResponse Uses

type ListFiltersResponse struct {
    // Filter: List of a user's filters.
    Filter []*Filter `json:"filter,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Filter") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Filter") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

ListFiltersResponse: Response for the ListFilters method.

func (*ListFiltersResponse) MarshalJSON Uses

func (s *ListFiltersResponse) MarshalJSON() ([]byte, error)

type ListForwardingAddressesResponse Uses

type ListForwardingAddressesResponse struct {
    // ForwardingAddresses: List of addresses that may be used for
    // forwarding.
    ForwardingAddresses []*ForwardingAddress `json:"forwardingAddresses,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "ForwardingAddresses")
    // to unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "ForwardingAddresses") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

ListForwardingAddressesResponse: Response for the ListForwardingAddresses method.

func (*ListForwardingAddressesResponse) MarshalJSON Uses

func (s *ListForwardingAddressesResponse) MarshalJSON() ([]byte, error)

type ListHistoryResponse Uses

type ListHistoryResponse struct {
    // History: List of history records. Any messages contained in the
    // response will typically only have id and threadId fields populated.
    History []*History `json:"history,omitempty"`

    // HistoryId: The ID of the mailbox's current history record.
    HistoryId uint64 `json:"historyId,omitempty,string"`

    // NextPageToken: Page token to retrieve the next page of results in the
    // list.
    NextPageToken string `json:"nextPageToken,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "History") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "History") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ListHistoryResponse) MarshalJSON Uses

func (s *ListHistoryResponse) MarshalJSON() ([]byte, error)

type ListLabelsResponse Uses

type ListLabelsResponse struct {
    // Labels: List of labels.
    Labels []*Label `json:"labels,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Labels") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Labels") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ListLabelsResponse) MarshalJSON Uses

func (s *ListLabelsResponse) MarshalJSON() ([]byte, error)

type ListMessagesResponse Uses

type ListMessagesResponse struct {
    // Messages: List of messages.
    Messages []*Message `json:"messages,omitempty"`

    // NextPageToken: Token to retrieve the next page of results in the
    // list.
    NextPageToken string `json:"nextPageToken,omitempty"`

    // ResultSizeEstimate: Estimated total number of results.
    ResultSizeEstimate int64 `json:"resultSizeEstimate,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Messages") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Messages") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ListMessagesResponse) MarshalJSON Uses

func (s *ListMessagesResponse) MarshalJSON() ([]byte, error)

type ListSendAsResponse Uses

type ListSendAsResponse struct {
    // SendAs: List of send-as aliases.
    SendAs []*SendAs `json:"sendAs,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "SendAs") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "SendAs") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

ListSendAsResponse: Response for the ListSendAs method.

func (*ListSendAsResponse) MarshalJSON Uses

func (s *ListSendAsResponse) MarshalJSON() ([]byte, error)

type ListSmimeInfoResponse Uses

type ListSmimeInfoResponse struct {
    // SmimeInfo: List of SmimeInfo.
    SmimeInfo []*SmimeInfo `json:"smimeInfo,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "SmimeInfo") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "SmimeInfo") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ListSmimeInfoResponse) MarshalJSON Uses

func (s *ListSmimeInfoResponse) MarshalJSON() ([]byte, error)

type ListThreadsResponse Uses

type ListThreadsResponse struct {
    // NextPageToken: Page token to retrieve the next page of results in the
    // list.
    NextPageToken string `json:"nextPageToken,omitempty"`

    // ResultSizeEstimate: Estimated total number of results.
    ResultSizeEstimate int64 `json:"resultSizeEstimate,omitempty"`

    // Threads: List of threads.
    Threads []*Thread `json:"threads,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "NextPageToken") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "NextPageToken") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ListThreadsResponse) MarshalJSON Uses

func (s *ListThreadsResponse) MarshalJSON() ([]byte, error)

type Message Uses

type Message struct {
    // HistoryId: The ID of the last history record that modified this
    // message.
    HistoryId uint64 `json:"historyId,omitempty,string"`

    // Id: The immutable ID of the message.
    Id  string `json:"id,omitempty"`

    // InternalDate: The internal message creation timestamp (epoch ms),
    // which determines ordering in the inbox. For normal SMTP-received
    // email, this represents the time the message was originally accepted
    // by Google, which is more reliable than the Date header. However, for
    // API-migrated mail, it can be configured by client to be based on the
    // Date header.
    InternalDate int64 `json:"internalDate,omitempty,string"`

    // LabelIds: List of IDs of labels applied to this message.
    LabelIds []string `json:"labelIds,omitempty"`

    // Payload: The parsed email structure in the message parts.
    Payload *MessagePart `json:"payload,omitempty"`

    // Raw: The entire email message in an RFC 2822 formatted and base64url
    // encoded string. Returned in messages.get and drafts.get responses
    // when the format=RAW parameter is supplied.
    Raw string `json:"raw,omitempty"`

    // SizeEstimate: Estimated size in bytes of the message.
    SizeEstimate int64 `json:"sizeEstimate,omitempty"`

    // Snippet: A short part of the message text.
    Snippet string `json:"snippet,omitempty"`

    // ThreadId: The ID of the thread the message belongs to. To add a
    // message or draft to a thread, the following criteria must be met:
    // - The requested threadId must be specified on the Message or
    // Draft.Message you supply with your request.
    // - The References and In-Reply-To headers must be set in compliance
    // with the RFC 2822 standard.
    // - The Subject headers must match.
    ThreadId string `json:"threadId,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "HistoryId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "HistoryId") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Message: An email message.

func (*Message) MarshalJSON Uses

func (s *Message) MarshalJSON() ([]byte, error)

type MessagePart Uses

type MessagePart struct {
    // Body: The message part body for this part, which may be empty for
    // container MIME message parts.
    Body *MessagePartBody `json:"body,omitempty"`

    // Filename: The filename of the attachment. Only present if this
    // message part represents an attachment.
    Filename string `json:"filename,omitempty"`

    // Headers: List of headers on this message part. For the top-level
    // message part, representing the entire message payload, it will
    // contain the standard RFC 2822 email headers such as To, From, and
    // Subject.
    Headers []*MessagePartHeader `json:"headers,omitempty"`

    // MimeType: The MIME type of the message part.
    MimeType string `json:"mimeType,omitempty"`

    // PartId: The immutable ID of the message part.
    PartId string `json:"partId,omitempty"`

    // Parts: The child MIME message parts of this part. This only applies
    // to container MIME message parts, for example multipart/*. For non-
    // container MIME message part types, such as text/plain, this field is
    // empty. For more information, see RFC 1521.
    Parts []*MessagePart `json:"parts,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Body") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Body") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

MessagePart: A single MIME message part.

func (*MessagePart) MarshalJSON Uses

func (s *MessagePart) MarshalJSON() ([]byte, error)

type MessagePartBody Uses

type MessagePartBody struct {
    // AttachmentId: When present, contains the ID of an external attachment
    // that can be retrieved in a separate messages.attachments.get request.
    // When not present, the entire content of the message part body is
    // contained in the data field.
    AttachmentId string `json:"attachmentId,omitempty"`

    // Data: The body data of a MIME message part as a base64url encoded
    // string. May be empty for MIME container types that have no message
    // body or when the body data is sent as a separate attachment. An
    // attachment ID is present if the body data is contained in a separate
    // attachment.
    Data string `json:"data,omitempty"`

    // Size: Number of bytes for the message part data (encoding
    // notwithstanding).
    Size int64 `json:"size,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "AttachmentId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AttachmentId") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

MessagePartBody: The body of a single MIME message part.

func (*MessagePartBody) MarshalJSON Uses

func (s *MessagePartBody) MarshalJSON() ([]byte, error)

type MessagePartHeader Uses

type MessagePartHeader struct {
    // Name: The name of the header before the : separator. For example, To.
    Name string `json:"name,omitempty"`

    // Value: The value of the header after the : separator. For example,
    // someuser@example.com.
    Value string `json:"value,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Name") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Name") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*MessagePartHeader) MarshalJSON Uses

func (s *MessagePartHeader) MarshalJSON() ([]byte, error)

type ModifyMessageRequest Uses

type ModifyMessageRequest struct {
    // AddLabelIds: A list of IDs of labels to add to this message.
    AddLabelIds []string `json:"addLabelIds,omitempty"`

    // RemoveLabelIds: A list IDs of labels to remove from this message.
    RemoveLabelIds []string `json:"removeLabelIds,omitempty"`

    // ForceSendFields is a list of field names (e.g. "AddLabelIds") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AddLabelIds") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ModifyMessageRequest) MarshalJSON Uses

func (s *ModifyMessageRequest) MarshalJSON() ([]byte, error)

type ModifyThreadRequest Uses

type ModifyThreadRequest struct {
    // AddLabelIds: A list of IDs of labels to add to this thread.
    AddLabelIds []string `json:"addLabelIds,omitempty"`

    // RemoveLabelIds: A list of IDs of labels to remove from this thread.
    RemoveLabelIds []string `json:"removeLabelIds,omitempty"`

    // ForceSendFields is a list of field names (e.g. "AddLabelIds") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AddLabelIds") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

func (*ModifyThreadRequest) MarshalJSON Uses

func (s *ModifyThreadRequest) MarshalJSON() ([]byte, error)

type PopSettings Uses

type PopSettings struct {
    // AccessWindow: The range of messages which are accessible via POP.
    //
    // Possible values:
    //   "accessWindowUnspecified"
    //   "allMail"
    //   "disabled"
    //   "fromNowOn"
    AccessWindow string `json:"accessWindow,omitempty"`

    // Disposition: The action that will be executed on a message after it
    // has been fetched via POP.
    //
    // Possible values:
    //   "archive"
    //   "dispositionUnspecified"
    //   "leaveInInbox"
    //   "markRead"
    //   "trash"
    Disposition string `json:"disposition,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "AccessWindow") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "AccessWindow") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

PopSettings: POP settings for an account.

func (*PopSettings) MarshalJSON Uses

func (s *PopSettings) MarshalJSON() ([]byte, error)

type Profile Uses

type Profile struct {
    // EmailAddress: The user's email address.
    EmailAddress string `json:"emailAddress,omitempty"`

    // HistoryId: The ID of the mailbox's current history record.
    HistoryId uint64 `json:"historyId,omitempty,string"`

    // MessagesTotal: The total number of messages in the mailbox.
    MessagesTotal int64 `json:"messagesTotal,omitempty"`

    // ThreadsTotal: The total number of threads in the mailbox.
    ThreadsTotal int64 `json:"threadsTotal,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "EmailAddress") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "EmailAddress") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Profile: Profile for a Gmail user.

func (*Profile) MarshalJSON Uses

func (s *Profile) MarshalJSON() ([]byte, error)

type SendAs Uses

type SendAs struct {
    // DisplayName: A name that appears in the "From:" header for mail sent
    // using this alias. For custom "from" addresses, when this is empty,
    // Gmail will populate the "From:" header with the name that is used for
    // the primary address associated with the account.
    DisplayName string `json:"displayName,omitempty"`

    // IsDefault: Whether this address is selected as the default "From:"
    // address in situations such as composing a new message or sending a
    // vacation auto-reply. Every Gmail account has exactly one default
    // send-as address, so the only legal value that clients may write to
    // this field is true. Changing this from false to true for an address
    // will result in this field becoming false for the other previous
    // default address.
    IsDefault bool `json:"isDefault,omitempty"`

    // IsPrimary: Whether this address is the primary address used to login
    // to the account. Every Gmail account has exactly one primary address,
    // and it cannot be deleted from the collection of send-as aliases. This
    // field is read-only.
    IsPrimary bool `json:"isPrimary,omitempty"`

    // ReplyToAddress: An optional email address that is included in a
    // "Reply-To:" header for mail sent using this alias. If this is empty,
    // Gmail will not generate a "Reply-To:" header.
    ReplyToAddress string `json:"replyToAddress,omitempty"`

    // SendAsEmail: The email address that appears in the "From:" header for
    // mail sent using this alias. This is read-only for all operations
    // except create.
    SendAsEmail string `json:"sendAsEmail,omitempty"`

    // Signature: An optional HTML signature that is included in messages
    // composed with this alias in the Gmail web UI.
    Signature string `json:"signature,omitempty"`

    // SmtpMsa: An optional SMTP service that will be used as an outbound
    // relay for mail sent using this alias. If this is empty, outbound mail
    // will be sent directly from Gmail's servers to the destination SMTP
    // service. This setting only applies to custom "from" aliases.
    SmtpMsa *SmtpMsa `json:"smtpMsa,omitempty"`

    // TreatAsAlias: Whether Gmail should  treat this address as an alias
    // for the user's primary email address. This setting only applies to
    // custom "from" aliases.
    TreatAsAlias bool `json:"treatAsAlias,omitempty"`

    // VerificationStatus: Indicates whether this address has been verified
    // for use as a send-as alias. Read-only. This setting only applies to
    // custom "from" aliases.
    //
    // Possible values:
    //   "accepted"
    //   "pending"
    //   "verificationStatusUnspecified"
    VerificationStatus string `json:"verificationStatus,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "DisplayName") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "DisplayName") to include
    // in API requests with the JSON null value. By default, fields with
    // empty values are omitted from API requests. However, any field with
    // an empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SendAs: Settings associated with a send-as alias, which can be either the primary login address associated with the account or a custom "from" address. Send-as aliases correspond to the "Send Mail As" feature in the web interface.

func (*SendAs) MarshalJSON Uses

func (s *SendAs) MarshalJSON() ([]byte, error)

type Service Uses

type Service struct {
    BasePath  string // API endpoint base URL
    UserAgent string // optional additional User-Agent fragment

    Users *UsersService
    // contains filtered or unexported fields
}

func New Uses

func New(client *http.Client) (*Service, error)

type SmimeInfo Uses

type SmimeInfo struct {
    // EncryptedKeyPassword: Encrypted key password, when key is encrypted.
    EncryptedKeyPassword string `json:"encryptedKeyPassword,omitempty"`

    // Expiration: When the certificate expires (in milliseconds since
    // epoch).
    Expiration int64 `json:"expiration,omitempty,string"`

    // Id: The immutable ID for the SmimeInfo.
    Id  string `json:"id,omitempty"`

    // IsDefault: Whether this SmimeInfo is the default one for this user's
    // send-as address.
    IsDefault bool `json:"isDefault,omitempty"`

    // IssuerCn: The S/MIME certificate issuer's common name.
    IssuerCn string `json:"issuerCn,omitempty"`

    // Pem: PEM formatted X509 concatenated certificate string (standard
    // base64 encoding). Format used for returning key, which includes
    // public key as well as certificate chain (not private key).
    Pem string `json:"pem,omitempty"`

    // Pkcs12: PKCS#12 format containing a single private/public key pair
    // and certificate chain. This format is only accepted from client for
    // creating a new SmimeInfo and is never returned, because the private
    // key is not intended to be exported. PKCS#12 may be encrypted, in
    // which case encryptedKeyPassword should be set appropriately.
    Pkcs12 string `json:"pkcs12,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g.
    // "EncryptedKeyPassword") to unconditionally include in API requests.
    // By default, fields with empty values are omitted from API requests.
    // However, any non-pointer, non-interface field appearing in
    // ForceSendFields will be sent to the server regardless of whether the
    // field is empty or not. This may be used to include empty fields in
    // Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "EncryptedKeyPassword") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

SmimeInfo: An S/MIME email config.

func (*SmimeInfo) MarshalJSON Uses

func (s *SmimeInfo) MarshalJSON() ([]byte, error)

type SmtpMsa Uses

type SmtpMsa struct {
    // Host: The hostname of the SMTP service. Required.
    Host string `json:"host,omitempty"`

    // Password: The password that will be used for authentication with the
    // SMTP service. This is a write-only field that can be specified in
    // requests to create or update SendAs settings; it is never populated
    // in responses.
    Password string `json:"password,omitempty"`

    // Port: The port of the SMTP service. Required.
    Port int64 `json:"port,omitempty"`

    // SecurityMode: The protocol that will be used to secure communication
    // with the SMTP service. Required.
    //
    // Possible values:
    //   "none"
    //   "securityModeUnspecified"
    //   "ssl"
    //   "starttls"
    SecurityMode string `json:"securityMode,omitempty"`

    // Username: The username that will be used for authentication with the
    // SMTP service. This is a write-only field that can be specified in
    // requests to create or update SendAs settings; it is never populated
    // in responses.
    Username string `json:"username,omitempty"`

    // ForceSendFields is a list of field names (e.g. "Host") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Host") to include in API
    // requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

SmtpMsa: Configuration for communication with an SMTP service.

func (*SmtpMsa) MarshalJSON Uses

func (s *SmtpMsa) MarshalJSON() ([]byte, error)

type Thread Uses

type Thread struct {
    // HistoryId: The ID of the last history record that modified this
    // thread.
    HistoryId uint64 `json:"historyId,omitempty,string"`

    // Id: The unique ID of the thread.
    Id  string `json:"id,omitempty"`

    // Messages: The list of messages in the thread.
    Messages []*Message `json:"messages,omitempty"`

    // Snippet: A short part of the message text.
    Snippet string `json:"snippet,omitempty"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "HistoryId") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "HistoryId") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

Thread: A collection of messages representing a conversation.

func (*Thread) MarshalJSON Uses

func (s *Thread) MarshalJSON() ([]byte, error)

type UsersDraftsCreateCall Uses

type UsersDraftsCreateCall struct {
    // contains filtered or unexported fields
}

func (*UsersDraftsCreateCall) Context Uses

func (c *UsersDraftsCreateCall) Context(ctx context.Context) *UsersDraftsCreateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled. This context will supersede any context previously provided to the ResumableMedia method.

func (*UsersDraftsCreateCall) Do Uses

func (c *UsersDraftsCreateCall) Do(opts ...googleapi.CallOption) (*Draft, error)

Do executes the "gmail.users.drafts.create" call. Exactly one of *Draft or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Draft.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersDraftsCreateCall) Fields Uses

func (c *UsersDraftsCreateCall) Fields(s ...googleapi.Field) *UsersDraftsCreateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersDraftsCreateCall) Header Uses

func (c *UsersDraftsCreateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersDraftsCreateCall) Media Uses

func (c *UsersDraftsCreateCall) Media(r io.Reader, options ...googleapi.MediaOption) *UsersDraftsCreateCall

Media specifies the media to upload in one or more chunks. The chunk size may be controlled by supplying a MediaOption generated by googleapi.ChunkSize. The chunk size defaults to googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload request will be determined by sniffing the contents of r, unless a MediaOption generated by googleapi.ContentType is supplied. At most one of Media and ResumableMedia may be set.

func (*UsersDraftsCreateCall) ProgressUpdater Uses

func (c *UsersDraftsCreateCall) ProgressUpdater(pu googleapi.ProgressUpdater) *UsersDraftsCreateCall

ProgressUpdater provides a callback function that will be called after every chunk. It should be a low-latency function in order to not slow down the upload operation. This should only be called when using ResumableMedia (as opposed to Media).

func (*UsersDraftsCreateCall) ResumableMedia Uses

func (c *UsersDraftsCreateCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *UsersDraftsCreateCall

ResumableMedia specifies the media to upload in chunks and can be canceled with ctx.

Deprecated: use Media instead.

At most one of Media and ResumableMedia may be set. mediaType identifies the MIME media type of the upload, such as "image/png". If mediaType is "", it will be auto-detected. The provided ctx will supersede any context previously provided to the Context method.

type UsersDraftsDeleteCall Uses

type UsersDraftsDeleteCall struct {
    // contains filtered or unexported fields
}

func (*UsersDraftsDeleteCall) Context Uses

func (c *UsersDraftsDeleteCall) Context(ctx context.Context) *UsersDraftsDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersDraftsDeleteCall) Do Uses

func (c *UsersDraftsDeleteCall) Do(opts ...googleapi.CallOption) error

Do executes the "gmail.users.drafts.delete" call.

func (*UsersDraftsDeleteCall) Fields Uses

func (c *UsersDraftsDeleteCall) Fields(s ...googleapi.Field) *UsersDraftsDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersDraftsDeleteCall) Header Uses

func (c *UsersDraftsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersDraftsGetCall Uses

type UsersDraftsGetCall struct {
    // contains filtered or unexported fields
}

func (*UsersDraftsGetCall) Context Uses

func (c *UsersDraftsGetCall) Context(ctx context.Context) *UsersDraftsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersDraftsGetCall) Do Uses

func (c *UsersDraftsGetCall) Do(opts ...googleapi.CallOption) (*Draft, error)

Do executes the "gmail.users.drafts.get" call. Exactly one of *Draft or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Draft.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersDraftsGetCall) Fields Uses

func (c *UsersDraftsGetCall) Fields(s ...googleapi.Field) *UsersDraftsGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersDraftsGetCall) Format Uses

func (c *UsersDraftsGetCall) Format(format string) *UsersDraftsGetCall

Format sets the optional parameter "format": The format to return the draft in.

Possible values:

"full" (default)
"metadata"
"minimal"
"raw"

func (*UsersDraftsGetCall) Header Uses

func (c *UsersDraftsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersDraftsGetCall) IfNoneMatch Uses

func (c *UsersDraftsGetCall) IfNoneMatch(entityTag string) *UsersDraftsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type UsersDraftsListCall Uses

type UsersDraftsListCall struct {
    // contains filtered or unexported fields
}

func (*UsersDraftsListCall) Context Uses

func (c *UsersDraftsListCall) Context(ctx context.Context) *UsersDraftsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersDraftsListCall) Do Uses

func (c *UsersDraftsListCall) Do(opts ...googleapi.CallOption) (*ListDraftsResponse, error)

Do executes the "gmail.users.drafts.list" call. Exactly one of *ListDraftsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListDraftsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersDraftsListCall) Fields Uses

func (c *UsersDraftsListCall) Fields(s ...googleapi.Field) *UsersDraftsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersDraftsListCall) Header Uses

func (c *UsersDraftsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersDraftsListCall) IfNoneMatch Uses

func (c *UsersDraftsListCall) IfNoneMatch(entityTag string) *UsersDraftsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*UsersDraftsListCall) IncludeSpamTrash Uses

func (c *UsersDraftsListCall) IncludeSpamTrash(includeSpamTrash bool) *UsersDraftsListCall

IncludeSpamTrash sets the optional parameter "includeSpamTrash": Include drafts from SPAM and TRASH in the results.

func (*UsersDraftsListCall) MaxResults Uses

func (c *UsersDraftsListCall) MaxResults(maxResults int64) *UsersDraftsListCall

MaxResults sets the optional parameter "maxResults": Maximum number of drafts to return.

func (*UsersDraftsListCall) PageToken Uses

func (c *UsersDraftsListCall) PageToken(pageToken string) *UsersDraftsListCall

PageToken sets the optional parameter "pageToken": Page token to retrieve a specific page of results in the list.

func (*UsersDraftsListCall) Pages Uses

func (c *UsersDraftsListCall) Pages(ctx context.Context, f func(*ListDraftsResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*UsersDraftsListCall) Q Uses

func (c *UsersDraftsListCall) Q(q string) *UsersDraftsListCall

Q sets the optional parameter "q": Only return draft messages matching the specified query. Supports the same query format as the Gmail search box. For example, "from:someuser@example.com rfc822msgid: is:unread".

type UsersDraftsSendCall Uses

type UsersDraftsSendCall struct {
    // contains filtered or unexported fields
}

func (*UsersDraftsSendCall) Context Uses

func (c *UsersDraftsSendCall) Context(ctx context.Context) *UsersDraftsSendCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled. This context will supersede any context previously provided to the ResumableMedia method.

func (*UsersDraftsSendCall) Do Uses

func (c *UsersDraftsSendCall) Do(opts ...googleapi.CallOption) (*Message, error)

Do executes the "gmail.users.drafts.send" call. Exactly one of *Message or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Message.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersDraftsSendCall) Fields Uses

func (c *UsersDraftsSendCall) Fields(s ...googleapi.Field) *UsersDraftsSendCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersDraftsSendCall) Header Uses

func (c *UsersDraftsSendCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersDraftsSendCall) Media Uses

func (c *UsersDraftsSendCall) Media(r io.Reader, options ...googleapi.MediaOption) *UsersDraftsSendCall

Media specifies the media to upload in one or more chunks. The chunk size may be controlled by supplying a MediaOption generated by googleapi.ChunkSize. The chunk size defaults to googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload request will be determined by sniffing the contents of r, unless a MediaOption generated by googleapi.ContentType is supplied. At most one of Media and ResumableMedia may be set.

func (*UsersDraftsSendCall) ProgressUpdater Uses

func (c *UsersDraftsSendCall) ProgressUpdater(pu googleapi.ProgressUpdater) *UsersDraftsSendCall

ProgressUpdater provides a callback function that will be called after every chunk. It should be a low-latency function in order to not slow down the upload operation. This should only be called when using ResumableMedia (as opposed to Media).

func (*UsersDraftsSendCall) ResumableMedia Uses

func (c *UsersDraftsSendCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *UsersDraftsSendCall

ResumableMedia specifies the media to upload in chunks and can be canceled with ctx.

Deprecated: use Media instead.

At most one of Media and ResumableMedia may be set. mediaType identifies the MIME media type of the upload, such as "image/png". If mediaType is "", it will be auto-detected. The provided ctx will supersede any context previously provided to the Context method.

type UsersDraftsService Uses

type UsersDraftsService struct {
    // contains filtered or unexported fields
}

func NewUsersDraftsService Uses

func NewUsersDraftsService(s *Service) *UsersDraftsService

func (*UsersDraftsService) Create Uses

func (r *UsersDraftsService) Create(userId string, draft *Draft) *UsersDraftsCreateCall

Create: Creates a new draft with the DRAFT label.

func (*UsersDraftsService) Delete Uses

func (r *UsersDraftsService) Delete(userId string, id string) *UsersDraftsDeleteCall

Delete: Immediately and permanently deletes the specified draft. Does not simply trash it.

func (*UsersDraftsService) Get Uses

func (r *UsersDraftsService) Get(userId string, id string) *UsersDraftsGetCall

Get: Gets the specified draft.

func (*UsersDraftsService) List Uses

func (r *UsersDraftsService) List(userId string) *UsersDraftsListCall

List: Lists the drafts in the user's mailbox.

func (*UsersDraftsService) Send Uses

func (r *UsersDraftsService) Send(userId string, draft *Draft) *UsersDraftsSendCall

Send: Sends the specified, existing draft to the recipients in the To, Cc, and Bcc headers.

func (*UsersDraftsService) Update Uses

func (r *UsersDraftsService) Update(userId string, id string, draft *Draft) *UsersDraftsUpdateCall

Update: Replaces a draft's content.

type UsersDraftsUpdateCall Uses

type UsersDraftsUpdateCall struct {
    // contains filtered or unexported fields
}

func (*UsersDraftsUpdateCall) Context Uses

func (c *UsersDraftsUpdateCall) Context(ctx context.Context) *UsersDraftsUpdateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled. This context will supersede any context previously provided to the ResumableMedia method.

func (*UsersDraftsUpdateCall) Do Uses

func (c *UsersDraftsUpdateCall) Do(opts ...googleapi.CallOption) (*Draft, error)

Do executes the "gmail.users.drafts.update" call. Exactly one of *Draft or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Draft.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersDraftsUpdateCall) Fields Uses

func (c *UsersDraftsUpdateCall) Fields(s ...googleapi.Field) *UsersDraftsUpdateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersDraftsUpdateCall) Header Uses

func (c *UsersDraftsUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersDraftsUpdateCall) Media Uses

func (c *UsersDraftsUpdateCall) Media(r io.Reader, options ...googleapi.MediaOption) *UsersDraftsUpdateCall

Media specifies the media to upload in one or more chunks. The chunk size may be controlled by supplying a MediaOption generated by googleapi.ChunkSize. The chunk size defaults to googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload request will be determined by sniffing the contents of r, unless a MediaOption generated by googleapi.ContentType is supplied. At most one of Media and ResumableMedia may be set.

func (*UsersDraftsUpdateCall) ProgressUpdater Uses

func (c *UsersDraftsUpdateCall) ProgressUpdater(pu googleapi.ProgressUpdater) *UsersDraftsUpdateCall

ProgressUpdater provides a callback function that will be called after every chunk. It should be a low-latency function in order to not slow down the upload operation. This should only be called when using ResumableMedia (as opposed to Media).

func (*UsersDraftsUpdateCall) ResumableMedia Uses

func (c *UsersDraftsUpdateCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *UsersDraftsUpdateCall

ResumableMedia specifies the media to upload in chunks and can be canceled with ctx.

Deprecated: use Media instead.

At most one of Media and ResumableMedia may be set. mediaType identifies the MIME media type of the upload, such as "image/png". If mediaType is "", it will be auto-detected. The provided ctx will supersede any context previously provided to the Context method.

type UsersGetProfileCall Uses

type UsersGetProfileCall struct {
    // contains filtered or unexported fields
}

func (*UsersGetProfileCall) Context Uses

func (c *UsersGetProfileCall) Context(ctx context.Context) *UsersGetProfileCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersGetProfileCall) Do Uses

func (c *UsersGetProfileCall) Do(opts ...googleapi.CallOption) (*Profile, error)

Do executes the "gmail.users.getProfile" call. Exactly one of *Profile or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Profile.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersGetProfileCall) Fields Uses

func (c *UsersGetProfileCall) Fields(s ...googleapi.Field) *UsersGetProfileCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersGetProfileCall) Header Uses

func (c *UsersGetProfileCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersGetProfileCall) IfNoneMatch Uses

func (c *UsersGetProfileCall) IfNoneMatch(entityTag string) *UsersGetProfileCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type UsersHistoryListCall Uses

type UsersHistoryListCall struct {
    // contains filtered or unexported fields
}

func (*UsersHistoryListCall) Context Uses

func (c *UsersHistoryListCall) Context(ctx context.Context) *UsersHistoryListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersHistoryListCall) Do Uses

func (c *UsersHistoryListCall) Do(opts ...googleapi.CallOption) (*ListHistoryResponse, error)

Do executes the "gmail.users.history.list" call. Exactly one of *ListHistoryResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListHistoryResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersHistoryListCall) Fields Uses

func (c *UsersHistoryListCall) Fields(s ...googleapi.Field) *UsersHistoryListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersHistoryListCall) Header Uses

func (c *UsersHistoryListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersHistoryListCall) HistoryTypes Uses

func (c *UsersHistoryListCall) HistoryTypes(historyTypes ...string) *UsersHistoryListCall

HistoryTypes sets the optional parameter "historyTypes": History types to be returned by the function

Possible values:

"labelAdded"
"labelRemoved"
"messageAdded"
"messageDeleted"

func (*UsersHistoryListCall) IfNoneMatch Uses

func (c *UsersHistoryListCall) IfNoneMatch(entityTag string) *UsersHistoryListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*UsersHistoryListCall) LabelId Uses

func (c *UsersHistoryListCall) LabelId(labelId string) *UsersHistoryListCall

LabelId sets the optional parameter "labelId": Only return messages with a label matching the ID.

func (*UsersHistoryListCall) MaxResults Uses

func (c *UsersHistoryListCall) MaxResults(maxResults int64) *UsersHistoryListCall

MaxResults sets the optional parameter "maxResults": The maximum number of history records to return.

func (*UsersHistoryListCall) PageToken Uses

func (c *UsersHistoryListCall) PageToken(pageToken string) *UsersHistoryListCall

PageToken sets the optional parameter "pageToken": Page token to retrieve a specific page of results in the list.

func (*UsersHistoryListCall) Pages Uses

func (c *UsersHistoryListCall) Pages(ctx context.Context, f func(*ListHistoryResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*UsersHistoryListCall) StartHistoryId Uses

func (c *UsersHistoryListCall) StartHistoryId(startHistoryId uint64) *UsersHistoryListCall

StartHistoryId sets the optional parameter "startHistoryId": Required. Returns history records after the specified startHistoryId. The supplied startHistoryId should be obtained from the historyId of a message, thread, or previous list response. History IDs increase chronologically but are not contiguous with random gaps in between valid IDs. Supplying an invalid or out of date startHistoryId typically returns an HTTP 404 error code. A historyId is typically valid for at least a week, but in some rare circumstances may be valid for only a few hours. If you receive an HTTP 404 error response, your application should perform a full sync. If you receive no nextPageToken in the response, there are no updates to retrieve and you can store the returned historyId for a future request.

type UsersHistoryService Uses

type UsersHistoryService struct {
    // contains filtered or unexported fields
}

func NewUsersHistoryService Uses

func NewUsersHistoryService(s *Service) *UsersHistoryService

func (*UsersHistoryService) List Uses

func (r *UsersHistoryService) List(userId string) *UsersHistoryListCall

List: Lists the history of all changes to the given mailbox. History results are returned in chronological order (increasing historyId).

type UsersLabelsCreateCall Uses

type UsersLabelsCreateCall struct {
    // contains filtered or unexported fields
}

func (*UsersLabelsCreateCall) Context Uses

func (c *UsersLabelsCreateCall) Context(ctx context.Context) *UsersLabelsCreateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersLabelsCreateCall) Do Uses

func (c *UsersLabelsCreateCall) Do(opts ...googleapi.CallOption) (*Label, error)

Do executes the "gmail.users.labels.create" call. Exactly one of *Label or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Label.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersLabelsCreateCall) Fields Uses

func (c *UsersLabelsCreateCall) Fields(s ...googleapi.Field) *UsersLabelsCreateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersLabelsCreateCall) Header Uses

func (c *UsersLabelsCreateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersLabelsDeleteCall Uses

type UsersLabelsDeleteCall struct {
    // contains filtered or unexported fields
}

func (*UsersLabelsDeleteCall) Context Uses

func (c *UsersLabelsDeleteCall) Context(ctx context.Context) *UsersLabelsDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersLabelsDeleteCall) Do Uses

func (c *UsersLabelsDeleteCall) Do(opts ...googleapi.CallOption) error

Do executes the "gmail.users.labels.delete" call.

func (*UsersLabelsDeleteCall) Fields Uses

func (c *UsersLabelsDeleteCall) Fields(s ...googleapi.Field) *UsersLabelsDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersLabelsDeleteCall) Header Uses

func (c *UsersLabelsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersLabelsGetCall Uses

type UsersLabelsGetCall struct {
    // contains filtered or unexported fields
}

func (*UsersLabelsGetCall) Context Uses

func (c *UsersLabelsGetCall) Context(ctx context.Context) *UsersLabelsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersLabelsGetCall) Do Uses

func (c *UsersLabelsGetCall) Do(opts ...googleapi.CallOption) (*Label, error)

Do executes the "gmail.users.labels.get" call. Exactly one of *Label or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Label.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersLabelsGetCall) Fields Uses

func (c *UsersLabelsGetCall) Fields(s ...googleapi.Field) *UsersLabelsGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersLabelsGetCall) Header Uses

func (c *UsersLabelsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersLabelsGetCall) IfNoneMatch Uses

func (c *UsersLabelsGetCall) IfNoneMatch(entityTag string) *UsersLabelsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type UsersLabelsListCall Uses

type UsersLabelsListCall struct {
    // contains filtered or unexported fields
}

func (*UsersLabelsListCall) Context Uses

func (c *UsersLabelsListCall) Context(ctx context.Context) *UsersLabelsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersLabelsListCall) Do Uses

func (c *UsersLabelsListCall) Do(opts ...googleapi.CallOption) (*ListLabelsResponse, error)

Do executes the "gmail.users.labels.list" call. Exactly one of *ListLabelsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListLabelsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersLabelsListCall) Fields Uses

func (c *UsersLabelsListCall) Fields(s ...googleapi.Field) *UsersLabelsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersLabelsListCall) Header Uses

func (c *UsersLabelsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersLabelsListCall) IfNoneMatch Uses

func (c *UsersLabelsListCall) IfNoneMatch(entityTag string) *UsersLabelsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type UsersLabelsPatchCall Uses

type UsersLabelsPatchCall struct {
    // contains filtered or unexported fields
}

func (*UsersLabelsPatchCall) Context Uses

func (c *UsersLabelsPatchCall) Context(ctx context.Context) *UsersLabelsPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersLabelsPatchCall) Do Uses

func (c *UsersLabelsPatchCall) Do(opts ...googleapi.CallOption) (*Label, error)

Do executes the "gmail.users.labels.patch" call. Exactly one of *Label or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Label.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersLabelsPatchCall) Fields Uses

func (c *UsersLabelsPatchCall) Fields(s ...googleapi.Field) *UsersLabelsPatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersLabelsPatchCall) Header Uses

func (c *UsersLabelsPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersLabelsService Uses

type UsersLabelsService struct {
    // contains filtered or unexported fields
}

func NewUsersLabelsService Uses

func NewUsersLabelsService(s *Service) *UsersLabelsService

func (*UsersLabelsService) Create Uses

func (r *UsersLabelsService) Create(userId string, label *Label) *UsersLabelsCreateCall

Create: Creates a new label.

func (*UsersLabelsService) Delete Uses

func (r *UsersLabelsService) Delete(userId string, id string) *UsersLabelsDeleteCall

Delete: Immediately and permanently deletes the specified label and removes it from any messages and threads that it is applied to.

func (*UsersLabelsService) Get Uses

func (r *UsersLabelsService) Get(userId string, id string) *UsersLabelsGetCall

Get: Gets the specified label.

func (*UsersLabelsService) List Uses

func (r *UsersLabelsService) List(userId string) *UsersLabelsListCall

List: Lists all labels in the user's mailbox.

func (*UsersLabelsService) Patch Uses

func (r *UsersLabelsService) Patch(userId string, id string, label *Label) *UsersLabelsPatchCall

Patch: Updates the specified label. This method supports patch semantics.

func (*UsersLabelsService) Update Uses

func (r *UsersLabelsService) Update(userId string, id string, label *Label) *UsersLabelsUpdateCall

Update: Updates the specified label.

type UsersLabelsUpdateCall Uses

type UsersLabelsUpdateCall struct {
    // contains filtered or unexported fields
}

func (*UsersLabelsUpdateCall) Context Uses

func (c *UsersLabelsUpdateCall) Context(ctx context.Context) *UsersLabelsUpdateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersLabelsUpdateCall) Do Uses

func (c *UsersLabelsUpdateCall) Do(opts ...googleapi.CallOption) (*Label, error)

Do executes the "gmail.users.labels.update" call. Exactly one of *Label or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Label.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersLabelsUpdateCall) Fields Uses

func (c *UsersLabelsUpdateCall) Fields(s ...googleapi.Field) *UsersLabelsUpdateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersLabelsUpdateCall) Header Uses

func (c *UsersLabelsUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersMessagesAttachmentsGetCall Uses

type UsersMessagesAttachmentsGetCall struct {
    // contains filtered or unexported fields
}

func (*UsersMessagesAttachmentsGetCall) Context Uses

func (c *UsersMessagesAttachmentsGetCall) Context(ctx context.Context) *UsersMessagesAttachmentsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersMessagesAttachmentsGetCall) Do Uses

func (c *UsersMessagesAttachmentsGetCall) Do(opts ...googleapi.CallOption) (*MessagePartBody, error)

Do executes the "gmail.users.messages.attachments.get" call. Exactly one of *MessagePartBody or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *MessagePartBody.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersMessagesAttachmentsGetCall) Fields Uses

func (c *UsersMessagesAttachmentsGetCall) Fields(s ...googleapi.Field) *UsersMessagesAttachmentsGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersMessagesAttachmentsGetCall) Header Uses

func (c *UsersMessagesAttachmentsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersMessagesAttachmentsGetCall) IfNoneMatch Uses

func (c *UsersMessagesAttachmentsGetCall) IfNoneMatch(entityTag string) *UsersMessagesAttachmentsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type UsersMessagesAttachmentsService Uses

type UsersMessagesAttachmentsService struct {
    // contains filtered or unexported fields
}

func NewUsersMessagesAttachmentsService Uses

func NewUsersMessagesAttachmentsService(s *Service) *UsersMessagesAttachmentsService

func (*UsersMessagesAttachmentsService) Get Uses

func (r *UsersMessagesAttachmentsService) Get(userId string, messageId string, id string) *UsersMessagesAttachmentsGetCall

Get: Gets the specified message attachment.

type UsersMessagesBatchDeleteCall Uses

type UsersMessagesBatchDeleteCall struct {
    // contains filtered or unexported fields
}

func (*UsersMessagesBatchDeleteCall) Context Uses

func (c *UsersMessagesBatchDeleteCall) Context(ctx context.Context) *UsersMessagesBatchDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersMessagesBatchDeleteCall) Do Uses

func (c *UsersMessagesBatchDeleteCall) Do(opts ...googleapi.CallOption) error

Do executes the "gmail.users.messages.batchDelete" call.

func (*UsersMessagesBatchDeleteCall) Fields Uses

func (c *UsersMessagesBatchDeleteCall) Fields(s ...googleapi.Field) *UsersMessagesBatchDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersMessagesBatchDeleteCall) Header Uses

func (c *UsersMessagesBatchDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersMessagesBatchModifyCall Uses

type UsersMessagesBatchModifyCall struct {
    // contains filtered or unexported fields
}

func (*UsersMessagesBatchModifyCall) Context Uses

func (c *UsersMessagesBatchModifyCall) Context(ctx context.Context) *UsersMessagesBatchModifyCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersMessagesBatchModifyCall) Do Uses

func (c *UsersMessagesBatchModifyCall) Do(opts ...googleapi.CallOption) error

Do executes the "gmail.users.messages.batchModify" call.

func (*UsersMessagesBatchModifyCall) Fields Uses

func (c *UsersMessagesBatchModifyCall) Fields(s ...googleapi.Field) *UsersMessagesBatchModifyCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersMessagesBatchModifyCall) Header Uses

func (c *UsersMessagesBatchModifyCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersMessagesDeleteCall Uses

type UsersMessagesDeleteCall struct {
    // contains filtered or unexported fields
}

func (*UsersMessagesDeleteCall) Context Uses

func (c *UsersMessagesDeleteCall) Context(ctx context.Context) *UsersMessagesDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersMessagesDeleteCall) Do Uses

func (c *UsersMessagesDeleteCall) Do(opts ...googleapi.CallOption) error

Do executes the "gmail.users.messages.delete" call.

func (*UsersMessagesDeleteCall) Fields Uses

func (c *UsersMessagesDeleteCall) Fields(s ...googleapi.Field) *UsersMessagesDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersMessagesDeleteCall) Header Uses

func (c *UsersMessagesDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersMessagesGetCall Uses

type UsersMessagesGetCall struct {
    // contains filtered or unexported fields
}

func (*UsersMessagesGetCall) Context Uses

func (c *UsersMessagesGetCall) Context(ctx context.Context) *UsersMessagesGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersMessagesGetCall) Do Uses

func (c *UsersMessagesGetCall) Do(opts ...googleapi.CallOption) (*Message, error)

Do executes the "gmail.users.messages.get" call. Exactly one of *Message or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Message.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersMessagesGetCall) Fields Uses

func (c *UsersMessagesGetCall) Fields(s ...googleapi.Field) *UsersMessagesGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersMessagesGetCall) Format Uses

func (c *UsersMessagesGetCall) Format(format string) *UsersMessagesGetCall

Format sets the optional parameter "format": The format to return the message in.

Possible values:

"full" (default)
"metadata"
"minimal"
"raw"

func (*UsersMessagesGetCall) Header Uses

func (c *UsersMessagesGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersMessagesGetCall) IfNoneMatch Uses

func (c *UsersMessagesGetCall) IfNoneMatch(entityTag string) *UsersMessagesGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*UsersMessagesGetCall) MetadataHeaders Uses

func (c *UsersMessagesGetCall) MetadataHeaders(metadataHeaders ...string) *UsersMessagesGetCall

MetadataHeaders sets the optional parameter "metadataHeaders": When given and format is METADATA, only include headers specified.

type UsersMessagesImportCall Uses

type UsersMessagesImportCall struct {
    // contains filtered or unexported fields
}

func (*UsersMessagesImportCall) Context Uses

func (c *UsersMessagesImportCall) Context(ctx context.Context) *UsersMessagesImportCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled. This context will supersede any context previously provided to the ResumableMedia method.

func (*UsersMessagesImportCall) Deleted Uses

func (c *UsersMessagesImportCall) Deleted(deleted bool) *UsersMessagesImportCall

Deleted sets the optional parameter "deleted": Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault administrator. Only used for G Suite accounts.

func (*UsersMessagesImportCall) Do Uses

func (c *UsersMessagesImportCall) Do(opts ...googleapi.CallOption) (*Message, error)

Do executes the "gmail.users.messages.import" call. Exactly one of *Message or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Message.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersMessagesImportCall) Fields Uses

func (c *UsersMessagesImportCall) Fields(s ...googleapi.Field) *UsersMessagesImportCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersMessagesImportCall) Header Uses

func (c *UsersMessagesImportCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersMessagesImportCall) InternalDateSource Uses

func (c *UsersMessagesImportCall) InternalDateSource(internalDateSource string) *UsersMessagesImportCall

InternalDateSource sets the optional parameter "internalDateSource": Source for Gmail's internal date of the message.

Possible values:

"dateHeader" (default)
"receivedTime"

func (*UsersMessagesImportCall) Media Uses

func (c *UsersMessagesImportCall) Media(r io.Reader, options ...googleapi.MediaOption) *UsersMessagesImportCall

Media specifies the media to upload in one or more chunks. The chunk size may be controlled by supplying a MediaOption generated by googleapi.ChunkSize. The chunk size defaults to googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload request will be determined by sniffing the contents of r, unless a MediaOption generated by googleapi.ContentType is supplied. At most one of Media and ResumableMedia may be set.

func (*UsersMessagesImportCall) NeverMarkSpam Uses

func (c *UsersMessagesImportCall) NeverMarkSpam(neverMarkSpam bool) *UsersMessagesImportCall

NeverMarkSpam sets the optional parameter "neverMarkSpam": Ignore the Gmail spam classifier decision and never mark this email as SPAM in the mailbox.

func (*UsersMessagesImportCall) ProcessForCalendar Uses

func (c *UsersMessagesImportCall) ProcessForCalendar(processForCalendar bool) *UsersMessagesImportCall

ProcessForCalendar sets the optional parameter "processForCalendar": Process calendar invites in the email and add any extracted meetings to the Google Calendar for this user.

func (*UsersMessagesImportCall) ProgressUpdater Uses

func (c *UsersMessagesImportCall) ProgressUpdater(pu googleapi.ProgressUpdater) *UsersMessagesImportCall

ProgressUpdater provides a callback function that will be called after every chunk. It should be a low-latency function in order to not slow down the upload operation. This should only be called when using ResumableMedia (as opposed to Media).

func (*UsersMessagesImportCall) ResumableMedia Uses

func (c *UsersMessagesImportCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *UsersMessagesImportCall

ResumableMedia specifies the media to upload in chunks and can be canceled with ctx.

Deprecated: use Media instead.

At most one of Media and ResumableMedia may be set. mediaType identifies the MIME media type of the upload, such as "image/png". If mediaType is "", it will be auto-detected. The provided ctx will supersede any context previously provided to the Context method.

type UsersMessagesInsertCall Uses

type UsersMessagesInsertCall struct {
    // contains filtered or unexported fields
}

func (*UsersMessagesInsertCall) Context Uses

func (c *UsersMessagesInsertCall) Context(ctx context.Context) *UsersMessagesInsertCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled. This context will supersede any context previously provided to the ResumableMedia method.

func (*UsersMessagesInsertCall) Deleted Uses

func (c *UsersMessagesInsertCall) Deleted(deleted bool) *UsersMessagesInsertCall

Deleted sets the optional parameter "deleted": Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault administrator. Only used for G Suite accounts.

func (*UsersMessagesInsertCall) Do Uses

func (c *UsersMessagesInsertCall) Do(opts ...googleapi.CallOption) (*Message, error)

Do executes the "gmail.users.messages.insert" call. Exactly one of *Message or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Message.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersMessagesInsertCall) Fields Uses

func (c *UsersMessagesInsertCall) Fields(s ...googleapi.Field) *UsersMessagesInsertCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersMessagesInsertCall) Header Uses

func (c *UsersMessagesInsertCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersMessagesInsertCall) InternalDateSource Uses

func (c *UsersMessagesInsertCall) InternalDateSource(internalDateSource string) *UsersMessagesInsertCall

InternalDateSource sets the optional parameter "internalDateSource": Source for Gmail's internal date of the message.

Possible values:

"dateHeader"
"receivedTime" (default)

func (*UsersMessagesInsertCall) Media Uses

func (c *UsersMessagesInsertCall) Media(r io.Reader, options ...googleapi.MediaOption) *UsersMessagesInsertCall

Media specifies the media to upload in one or more chunks. The chunk size may be controlled by supplying a MediaOption generated by googleapi.ChunkSize. The chunk size defaults to googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload request will be determined by sniffing the contents of r, unless a MediaOption generated by googleapi.ContentType is supplied. At most one of Media and ResumableMedia may be set.

func (*UsersMessagesInsertCall) ProgressUpdater Uses

func (c *UsersMessagesInsertCall) ProgressUpdater(pu googleapi.ProgressUpdater) *UsersMessagesInsertCall

ProgressUpdater provides a callback function that will be called after every chunk. It should be a low-latency function in order to not slow down the upload operation. This should only be called when using ResumableMedia (as opposed to Media).

func (*UsersMessagesInsertCall) ResumableMedia Uses

func (c *UsersMessagesInsertCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *UsersMessagesInsertCall

ResumableMedia specifies the media to upload in chunks and can be canceled with ctx.

Deprecated: use Media instead.

At most one of Media and ResumableMedia may be set. mediaType identifies the MIME media type of the upload, such as "image/png". If mediaType is "", it will be auto-detected. The provided ctx will supersede any context previously provided to the Context method.

type UsersMessagesListCall Uses

type UsersMessagesListCall struct {
    // contains filtered or unexported fields
}

func (*UsersMessagesListCall) Context Uses

func (c *UsersMessagesListCall) Context(ctx context.Context) *UsersMessagesListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersMessagesListCall) Do Uses

func (c *UsersMessagesListCall) Do(opts ...googleapi.CallOption) (*ListMessagesResponse, error)

Do executes the "gmail.users.messages.list" call. Exactly one of *ListMessagesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListMessagesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersMessagesListCall) Fields Uses

func (c *UsersMessagesListCall) Fields(s ...googleapi.Field) *UsersMessagesListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersMessagesListCall) Header Uses

func (c *UsersMessagesListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersMessagesListCall) IfNoneMatch Uses

func (c *UsersMessagesListCall) IfNoneMatch(entityTag string) *UsersMessagesListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*UsersMessagesListCall) IncludeSpamTrash Uses

func (c *UsersMessagesListCall) IncludeSpamTrash(includeSpamTrash bool) *UsersMessagesListCall

IncludeSpamTrash sets the optional parameter "includeSpamTrash": Include messages from SPAM and TRASH in the results.

func (*UsersMessagesListCall) LabelIds Uses

func (c *UsersMessagesListCall) LabelIds(labelIds ...string) *UsersMessagesListCall

LabelIds sets the optional parameter "labelIds": Only return messages with labels that match all of the specified label IDs.

func (*UsersMessagesListCall) MaxResults Uses

func (c *UsersMessagesListCall) MaxResults(maxResults int64) *UsersMessagesListCall

MaxResults sets the optional parameter "maxResults": Maximum number of messages to return.

func (*UsersMessagesListCall) PageToken Uses

func (c *UsersMessagesListCall) PageToken(pageToken string) *UsersMessagesListCall

PageToken sets the optional parameter "pageToken": Page token to retrieve a specific page of results in the list.

func (*UsersMessagesListCall) Pages Uses

func (c *UsersMessagesListCall) Pages(ctx context.Context, f func(*ListMessagesResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*UsersMessagesListCall) Q Uses

func (c *UsersMessagesListCall) Q(q string) *UsersMessagesListCall

Q sets the optional parameter "q": Only return messages matching the specified query. Supports the same query format as the Gmail search box. For example, "from:someuser@example.com rfc822msgid:<somemsgid@example.com> is:unread". Parameter cannot be used when accessing the api using the gmail.metadata scope.

type UsersMessagesModifyCall Uses

type UsersMessagesModifyCall struct {
    // contains filtered or unexported fields
}

func (*UsersMessagesModifyCall) Context Uses

func (c *UsersMessagesModifyCall) Context(ctx context.Context) *UsersMessagesModifyCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersMessagesModifyCall) Do Uses

func (c *UsersMessagesModifyCall) Do(opts ...googleapi.CallOption) (*Message, error)

Do executes the "gmail.users.messages.modify" call. Exactly one of *Message or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Message.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersMessagesModifyCall) Fields Uses

func (c *UsersMessagesModifyCall) Fields(s ...googleapi.Field) *UsersMessagesModifyCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersMessagesModifyCall) Header Uses

func (c *UsersMessagesModifyCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersMessagesSendCall Uses

type UsersMessagesSendCall struct {
    // contains filtered or unexported fields
}

func (*UsersMessagesSendCall) Context Uses

func (c *UsersMessagesSendCall) Context(ctx context.Context) *UsersMessagesSendCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled. This context will supersede any context previously provided to the ResumableMedia method.

func (*UsersMessagesSendCall) Do Uses

func (c *UsersMessagesSendCall) Do(opts ...googleapi.CallOption) (*Message, error)

Do executes the "gmail.users.messages.send" call. Exactly one of *Message or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Message.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersMessagesSendCall) Fields Uses

func (c *UsersMessagesSendCall) Fields(s ...googleapi.Field) *UsersMessagesSendCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersMessagesSendCall) Header Uses

func (c *UsersMessagesSendCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersMessagesSendCall) Media Uses

func (c *UsersMessagesSendCall) Media(r io.Reader, options ...googleapi.MediaOption) *UsersMessagesSendCall

Media specifies the media to upload in one or more chunks. The chunk size may be controlled by supplying a MediaOption generated by googleapi.ChunkSize. The chunk size defaults to googleapi.DefaultUploadChunkSize.The Content-Type header used in the upload request will be determined by sniffing the contents of r, unless a MediaOption generated by googleapi.ContentType is supplied. At most one of Media and ResumableMedia may be set.

func (*UsersMessagesSendCall) ProgressUpdater Uses

func (c *UsersMessagesSendCall) ProgressUpdater(pu googleapi.ProgressUpdater) *UsersMessagesSendCall

ProgressUpdater provides a callback function that will be called after every chunk. It should be a low-latency function in order to not slow down the upload operation. This should only be called when using ResumableMedia (as opposed to Media).

func (*UsersMessagesSendCall) ResumableMedia Uses

func (c *UsersMessagesSendCall) ResumableMedia(ctx context.Context, r io.ReaderAt, size int64, mediaType string) *UsersMessagesSendCall

ResumableMedia specifies the media to upload in chunks and can be canceled with ctx.

Deprecated: use Media instead.

At most one of Media and ResumableMedia may be set. mediaType identifies the MIME media type of the upload, such as "image/png". If mediaType is "", it will be auto-detected. The provided ctx will supersede any context previously provided to the Context method.

type UsersMessagesService Uses

type UsersMessagesService struct {
    Attachments *UsersMessagesAttachmentsService
    // contains filtered or unexported fields
}

func NewUsersMessagesService Uses

func NewUsersMessagesService(s *Service) *UsersMessagesService

func (*UsersMessagesService) BatchDelete Uses

func (r *UsersMessagesService) BatchDelete(userId string, batchdeletemessagesrequest *BatchDeleteMessagesRequest) *UsersMessagesBatchDeleteCall

BatchDelete: Deletes many messages by message ID. Provides no guarantees that messages were not already deleted or even existed at all.

func (*UsersMessagesService) BatchModify Uses

func (r *UsersMessagesService) BatchModify(userId string, batchmodifymessagesrequest *BatchModifyMessagesRequest) *UsersMessagesBatchModifyCall

BatchModify: Modifies the labels on the specified messages.

func (*UsersMessagesService) Delete Uses

func (r *UsersMessagesService) Delete(userId string, id string) *UsersMessagesDeleteCall

Delete: Immediately and permanently deletes the specified message. This operation cannot be undone. Prefer messages.trash instead.

func (*UsersMessagesService) Get Uses

func (r *UsersMessagesService) Get(userId string, id string) *UsersMessagesGetCall

Get: Gets the specified message.

func (*UsersMessagesService) Import Uses

func (r *UsersMessagesService) Import(userId string, message *Message) *UsersMessagesImportCall

Import: Imports a message into only this user's mailbox, with standard email delivery scanning and classification similar to receiving via SMTP. Does not send a message.

func (*UsersMessagesService) Insert Uses

func (r *UsersMessagesService) Insert(userId string, message *Message) *UsersMessagesInsertCall

Insert: Directly inserts a message into only this user's mailbox similar to IMAP APPEND, bypassing most scanning and classification. Does not send a message.

func (*UsersMessagesService) List Uses

func (r *UsersMessagesService) List(userId string) *UsersMessagesListCall

List: Lists the messages in the user's mailbox.

func (*UsersMessagesService) Modify Uses

func (r *UsersMessagesService) Modify(userId string, id string, modifymessagerequest *ModifyMessageRequest) *UsersMessagesModifyCall

Modify: Modifies the labels on the specified message.

func (*UsersMessagesService) Send Uses

func (r *UsersMessagesService) Send(userId string, message *Message) *UsersMessagesSendCall

Send: Sends the specified message to the recipients in the To, Cc, and Bcc headers.

func (*UsersMessagesService) Trash Uses

func (r *UsersMessagesService) Trash(userId string, id string) *UsersMessagesTrashCall

Trash: Moves the specified message to the trash.

func (*UsersMessagesService) Untrash Uses

func (r *UsersMessagesService) Untrash(userId string, id string) *UsersMessagesUntrashCall

Untrash: Removes the specified message from the trash.

type UsersMessagesTrashCall Uses

type UsersMessagesTrashCall struct {
    // contains filtered or unexported fields
}

func (*UsersMessagesTrashCall) Context Uses

func (c *UsersMessagesTrashCall) Context(ctx context.Context) *UsersMessagesTrashCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersMessagesTrashCall) Do Uses

func (c *UsersMessagesTrashCall) Do(opts ...googleapi.CallOption) (*Message, error)

Do executes the "gmail.users.messages.trash" call. Exactly one of *Message or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Message.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersMessagesTrashCall) Fields Uses

func (c *UsersMessagesTrashCall) Fields(s ...googleapi.Field) *UsersMessagesTrashCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersMessagesTrashCall) Header Uses

func (c *UsersMessagesTrashCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersMessagesUntrashCall Uses

type UsersMessagesUntrashCall struct {
    // contains filtered or unexported fields
}

func (*UsersMessagesUntrashCall) Context Uses

func (c *UsersMessagesUntrashCall) Context(ctx context.Context) *UsersMessagesUntrashCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersMessagesUntrashCall) Do Uses

func (c *UsersMessagesUntrashCall) Do(opts ...googleapi.CallOption) (*Message, error)

Do executes the "gmail.users.messages.untrash" call. Exactly one of *Message or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Message.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersMessagesUntrashCall) Fields Uses

func (c *UsersMessagesUntrashCall) Fields(s ...googleapi.Field) *UsersMessagesUntrashCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersMessagesUntrashCall) Header Uses

func (c *UsersMessagesUntrashCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersService Uses

type UsersService struct {
    Drafts *UsersDraftsService

    History *UsersHistoryService

    Labels *UsersLabelsService

    Messages *UsersMessagesService

    Settings *UsersSettingsService

    Threads *UsersThreadsService
    // contains filtered or unexported fields
}

func NewUsersService Uses

func NewUsersService(s *Service) *UsersService

func (*UsersService) GetProfile Uses

func (r *UsersService) GetProfile(userId string) *UsersGetProfileCall

GetProfile: Gets the current user's Gmail profile.

func (*UsersService) Stop Uses

func (r *UsersService) Stop(userId string) *UsersStopCall

Stop: Stop receiving push notifications for the given user mailbox.

func (*UsersService) Watch Uses

func (r *UsersService) Watch(userId string, watchrequest *WatchRequest) *UsersWatchCall

Watch: Set up or update a push notification watch on the given user mailbox.

type UsersSettingsFiltersCreateCall Uses

type UsersSettingsFiltersCreateCall struct {
    // contains filtered or unexported fields
}

func (*UsersSettingsFiltersCreateCall) Context Uses

func (c *UsersSettingsFiltersCreateCall) Context(ctx context.Context) *UsersSettingsFiltersCreateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersSettingsFiltersCreateCall) Do Uses

func (c *UsersSettingsFiltersCreateCall) Do(opts ...googleapi.CallOption) (*Filter, error)

Do executes the "gmail.users.settings.filters.create" call. Exactly one of *Filter or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Filter.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersSettingsFiltersCreateCall) Fields Uses

func (c *UsersSettingsFiltersCreateCall) Fields(s ...googleapi.Field) *UsersSettingsFiltersCreateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersSettingsFiltersCreateCall) Header Uses

func (c *UsersSettingsFiltersCreateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersSettingsFiltersDeleteCall Uses

type UsersSettingsFiltersDeleteCall struct {
    // contains filtered or unexported fields
}

func (*UsersSettingsFiltersDeleteCall) Context Uses

func (c *UsersSettingsFiltersDeleteCall) Context(ctx context.Context) *UsersSettingsFiltersDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersSettingsFiltersDeleteCall) Do Uses

func (c *UsersSettingsFiltersDeleteCall) Do(opts ...googleapi.CallOption) error

Do executes the "gmail.users.settings.filters.delete" call.

func (*UsersSettingsFiltersDeleteCall) Fields Uses

func (c *UsersSettingsFiltersDeleteCall) Fields(s ...googleapi.Field) *UsersSettingsFiltersDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersSettingsFiltersDeleteCall) Header Uses

func (c *UsersSettingsFiltersDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersSettingsFiltersGetCall Uses

type UsersSettingsFiltersGetCall struct {
    // contains filtered or unexported fields
}

func (*UsersSettingsFiltersGetCall) Context Uses

func (c *UsersSettingsFiltersGetCall) Context(ctx context.Context) *UsersSettingsFiltersGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersSettingsFiltersGetCall) Do Uses

func (c *UsersSettingsFiltersGetCall) Do(opts ...googleapi.CallOption) (*Filter, error)

Do executes the "gmail.users.settings.filters.get" call. Exactly one of *Filter or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Filter.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersSettingsFiltersGetCall) Fields Uses

func (c *UsersSettingsFiltersGetCall) Fields(s ...googleapi.Field) *UsersSettingsFiltersGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersSettingsFiltersGetCall) Header Uses

func (c *UsersSettingsFiltersGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersSettingsFiltersGetCall) IfNoneMatch Uses

func (c *UsersSettingsFiltersGetCall) IfNoneMatch(entityTag string) *UsersSettingsFiltersGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type UsersSettingsFiltersListCall Uses

type UsersSettingsFiltersListCall struct {
    // contains filtered or unexported fields
}

func (*UsersSettingsFiltersListCall) Context Uses

func (c *UsersSettingsFiltersListCall) Context(ctx context.Context) *UsersSettingsFiltersListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersSettingsFiltersListCall) Do Uses

func (c *UsersSettingsFiltersListCall) Do(opts ...googleapi.CallOption) (*ListFiltersResponse, error)

Do executes the "gmail.users.settings.filters.list" call. Exactly one of *ListFiltersResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListFiltersResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersSettingsFiltersListCall) Fields Uses

func (c *UsersSettingsFiltersListCall) Fields(s ...googleapi.Field) *UsersSettingsFiltersListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersSettingsFiltersListCall) Header Uses

func (c *UsersSettingsFiltersListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersSettingsFiltersListCall) IfNoneMatch Uses

func (c *UsersSettingsFiltersListCall) IfNoneMatch(entityTag string) *UsersSettingsFiltersListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type UsersSettingsFiltersService Uses

type UsersSettingsFiltersService struct {
    // contains filtered or unexported fields
}

func NewUsersSettingsFiltersService Uses

func NewUsersSettingsFiltersService(s *Service) *UsersSettingsFiltersService

func (*UsersSettingsFiltersService) Create Uses

func (r *UsersSettingsFiltersService) Create(userId string, filter *Filter) *UsersSettingsFiltersCreateCall

Create: Creates a filter.

func (*UsersSettingsFiltersService) Delete Uses

func (r *UsersSettingsFiltersService) Delete(userId string, id string) *UsersSettingsFiltersDeleteCall

Delete: Deletes a filter.

func (*UsersSettingsFiltersService) Get Uses

func (r *UsersSettingsFiltersService) Get(userId string, id string) *UsersSettingsFiltersGetCall

Get: Gets a filter.

func (*UsersSettingsFiltersService) List Uses

func (r *UsersSettingsFiltersService) List(userId string) *UsersSettingsFiltersListCall

List: Lists the message filters of a Gmail user.

type UsersSettingsForwardingAddressesCreateCall Uses

type UsersSettingsForwardingAddressesCreateCall struct {
    // contains filtered or unexported fields
}

func (*UsersSettingsForwardingAddressesCreateCall) Context Uses

func (c *UsersSettingsForwardingAddressesCreateCall) Context(ctx context.Context) *UsersSettingsForwardingAddressesCreateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersSettingsForwardingAddressesCreateCall) Do Uses

func (c *UsersSettingsForwardingAddressesCreateCall) Do(opts ...googleapi.CallOption) (*ForwardingAddress, error)

Do executes the "gmail.users.settings.forwardingAddresses.create" call. Exactly one of *ForwardingAddress or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ForwardingAddress.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersSettingsForwardingAddressesCreateCall) Fields Uses

func (c *UsersSettingsForwardingAddressesCreateCall) Fields(s ...googleapi.Field) *UsersSettingsForwardingAddressesCreateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersSettingsForwardingAddressesCreateCall) Header Uses

func (c *UsersSettingsForwardingAddressesCreateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersSettingsForwardingAddressesDeleteCall Uses

type UsersSettingsForwardingAddressesDeleteCall struct {
    // contains filtered or unexported fields
}

func (*UsersSettingsForwardingAddressesDeleteCall) Context Uses

func (c *UsersSettingsForwardingAddressesDeleteCall) Context(ctx context.Context) *UsersSettingsForwardingAddressesDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersSettingsForwardingAddressesDeleteCall) Do Uses

func (c *UsersSettingsForwardingAddressesDeleteCall) Do(opts ...googleapi.CallOption) error

Do executes the "gmail.users.settings.forwardingAddresses.delete" call.

func (*UsersSettingsForwardingAddressesDeleteCall) Fields Uses

func (c *UsersSettingsForwardingAddressesDeleteCall) Fields(s ...googleapi.Field) *UsersSettingsForwardingAddressesDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersSettingsForwardingAddressesDeleteCall) Header Uses

func (c *UsersSettingsForwardingAddressesDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersSettingsForwardingAddressesGetCall Uses

type UsersSettingsForwardingAddressesGetCall struct {
    // contains filtered or unexported fields
}

func (*UsersSettingsForwardingAddressesGetCall) Context Uses

func (c *UsersSettingsForwardingAddressesGetCall) Context(ctx context.Context) *UsersSettingsForwardingAddressesGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersSettingsForwardingAddressesGetCall) Do Uses

func (c *UsersSettingsForwardingAddressesGetCall) Do(opts ...googleapi.CallOption) (*ForwardingAddress, error)

Do executes the "gmail.users.settings.forwardingAddresses.get" call. Exactly one of *ForwardingAddress or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ForwardingAddress.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersSettingsForwardingAddressesGetCall) Fields Uses

func (c *UsersSettingsForwardingAddressesGetCall) Fields(s ...googleapi.Field) *UsersSettingsForwardingAddressesGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersSettingsForwardingAddressesGetCall) Header Uses

func (c *UsersSettingsForwardingAddressesGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersSettingsForwardingAddressesGetCall) IfNoneMatch Uses

func (c *UsersSettingsForwardingAddressesGetCall) IfNoneMatch(entityTag string) *UsersSettingsForwardingAddressesGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type UsersSettingsForwardingAddressesListCall Uses

type UsersSettingsForwardingAddressesListCall struct {
    // contains filtered or unexported fields
}

func (*UsersSettingsForwardingAddressesListCall) Context Uses

func (c *UsersSettingsForwardingAddressesListCall) Context(ctx context.Context) *UsersSettingsForwardingAddressesListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersSettingsForwardingAddressesListCall) Do Uses

func (c *UsersSettingsForwardingAddressesListCall) Do(opts ...googleapi.CallOption) (*ListForwardingAddressesResponse, error)

Do executes the "gmail.users.settings.forwardingAddresses.list" call. Exactly one of *ListForwardingAddressesResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListForwardingAddressesResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersSettingsForwardingAddressesListCall) Fields Uses

func (c *UsersSettingsForwardingAddressesListCall) Fields(s ...googleapi.Field) *UsersSettingsForwardingAddressesListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersSettingsForwardingAddressesListCall) Header Uses

func (c *UsersSettingsForwardingAddressesListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersSettingsForwardingAddressesListCall) IfNoneMatch Uses

func (c *UsersSettingsForwardingAddressesListCall) IfNoneMatch(entityTag string) *UsersSettingsForwardingAddressesListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type UsersSettingsForwardingAddressesService Uses

type UsersSettingsForwardingAddressesService struct {
    // contains filtered or unexported fields
}

func NewUsersSettingsForwardingAddressesService Uses

func NewUsersSettingsForwardingAddressesService(s *Service) *UsersSettingsForwardingAddressesService

func (*UsersSettingsForwardingAddressesService) Create Uses

func (r *UsersSettingsForwardingAddressesService) Create(userId string, forwardingaddress *ForwardingAddress) *UsersSettingsForwardingAddressesCreateCall

Create: Creates a forwarding address. If ownership verification is required, a message will be sent to the recipient and the resource's verification status will be set to pending; otherwise, the resource will be created with verification status set to accepted.

This method is only available to service account clients that have been delegated domain-wide authority.

func (*UsersSettingsForwardingAddressesService) Delete Uses

func (r *UsersSettingsForwardingAddressesService) Delete(userId string, forwardingEmail string) *UsersSettingsForwardingAddressesDeleteCall

Delete: Deletes the specified forwarding address and revokes any verification that may have been required.

This method is only available to service account clients that have been delegated domain-wide authority.

func (*UsersSettingsForwardingAddressesService) Get Uses

func (r *UsersSettingsForwardingAddressesService) Get(userId string, forwardingEmail string) *UsersSettingsForwardingAddressesGetCall

Get: Gets the specified forwarding address.

func (*UsersSettingsForwardingAddressesService) List Uses

func (r *UsersSettingsForwardingAddressesService) List(userId string) *UsersSettingsForwardingAddressesListCall

List: Lists the forwarding addresses for the specified account.

type UsersSettingsGetAutoForwardingCall Uses

type UsersSettingsGetAutoForwardingCall struct {
    // contains filtered or unexported fields
}

func (*UsersSettingsGetAutoForwardingCall) Context Uses

func (c *UsersSettingsGetAutoForwardingCall) Context(ctx context.Context) *UsersSettingsGetAutoForwardingCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersSettingsGetAutoForwardingCall) Do Uses

func (c *UsersSettingsGetAutoForwardingCall) Do(opts ...googleapi.CallOption) (*AutoForwarding, error)

Do executes the "gmail.users.settings.getAutoForwarding" call. Exactly one of *AutoForwarding or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AutoForwarding.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersSettingsGetAutoForwardingCall) Fields Uses

func (c *UsersSettingsGetAutoForwardingCall) Fields(s ...googleapi.Field) *UsersSettingsGetAutoForwardingCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersSettingsGetAutoForwardingCall) Header Uses

func (c *UsersSettingsGetAutoForwardingCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersSettingsGetAutoForwardingCall) IfNoneMatch Uses

func (c *UsersSettingsGetAutoForwardingCall) IfNoneMatch(entityTag string) *UsersSettingsGetAutoForwardingCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type UsersSettingsGetImapCall Uses

type UsersSettingsGetImapCall struct {
    // contains filtered or unexported fields
}

func (*UsersSettingsGetImapCall) Context Uses

func (c *UsersSettingsGetImapCall) Context(ctx context.Context) *UsersSettingsGetImapCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersSettingsGetImapCall) Do Uses

func (c *UsersSettingsGetImapCall) Do(opts ...googleapi.CallOption) (*ImapSettings, error)

Do executes the "gmail.users.settings.getImap" call. Exactly one of *ImapSettings or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ImapSettings.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersSettingsGetImapCall) Fields Uses

func (c *UsersSettingsGetImapCall) Fields(s ...googleapi.Field) *UsersSettingsGetImapCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersSettingsGetImapCall) Header Uses

func (c *UsersSettingsGetImapCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersSettingsGetImapCall) IfNoneMatch Uses

func (c *UsersSettingsGetImapCall) IfNoneMatch(entityTag string) *UsersSettingsGetImapCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type UsersSettingsGetPopCall Uses

type UsersSettingsGetPopCall struct {
    // contains filtered or unexported fields
}

func (*UsersSettingsGetPopCall) Context Uses

func (c *UsersSettingsGetPopCall) Context(ctx context.Context) *UsersSettingsGetPopCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersSettingsGetPopCall) Do Uses

func (c *UsersSettingsGetPopCall) Do(opts ...googleapi.CallOption) (*PopSettings, error)

Do executes the "gmail.users.settings.getPop" call. Exactly one of *PopSettings or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PopSettings.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersSettingsGetPopCall) Fields Uses

func (c *UsersSettingsGetPopCall) Fields(s ...googleapi.Field) *UsersSettingsGetPopCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersSettingsGetPopCall) Header Uses

func (c *UsersSettingsGetPopCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersSettingsGetPopCall) IfNoneMatch Uses

func (c *UsersSettingsGetPopCall) IfNoneMatch(entityTag string) *UsersSettingsGetPopCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type UsersSettingsGetVacationCall Uses

type UsersSettingsGetVacationCall struct {
    // contains filtered or unexported fields
}

func (*UsersSettingsGetVacationCall) Context Uses

func (c *UsersSettingsGetVacationCall) Context(ctx context.Context) *UsersSettingsGetVacationCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersSettingsGetVacationCall) Do Uses

func (c *UsersSettingsGetVacationCall) Do(opts ...googleapi.CallOption) (*VacationSettings, error)

Do executes the "gmail.users.settings.getVacation" call. Exactly one of *VacationSettings or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *VacationSettings.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersSettingsGetVacationCall) Fields Uses

func (c *UsersSettingsGetVacationCall) Fields(s ...googleapi.Field) *UsersSettingsGetVacationCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersSettingsGetVacationCall) Header Uses

func (c *UsersSettingsGetVacationCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersSettingsGetVacationCall) IfNoneMatch Uses

func (c *UsersSettingsGetVacationCall) IfNoneMatch(entityTag string) *UsersSettingsGetVacationCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type UsersSettingsSendAsCreateCall Uses

type UsersSettingsSendAsCreateCall struct {
    // contains filtered or unexported fields
}

func (*UsersSettingsSendAsCreateCall) Context Uses

func (c *UsersSettingsSendAsCreateCall) Context(ctx context.Context) *UsersSettingsSendAsCreateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersSettingsSendAsCreateCall) Do Uses

func (c *UsersSettingsSendAsCreateCall) Do(opts ...googleapi.CallOption) (*SendAs, error)

Do executes the "gmail.users.settings.sendAs.create" call. Exactly one of *SendAs or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SendAs.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersSettingsSendAsCreateCall) Fields Uses

func (c *UsersSettingsSendAsCreateCall) Fields(s ...googleapi.Field) *UsersSettingsSendAsCreateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersSettingsSendAsCreateCall) Header Uses

func (c *UsersSettingsSendAsCreateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersSettingsSendAsDeleteCall Uses

type UsersSettingsSendAsDeleteCall struct {
    // contains filtered or unexported fields
}

func (*UsersSettingsSendAsDeleteCall) Context Uses

func (c *UsersSettingsSendAsDeleteCall) Context(ctx context.Context) *UsersSettingsSendAsDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersSettingsSendAsDeleteCall) Do Uses

func (c *UsersSettingsSendAsDeleteCall) Do(opts ...googleapi.CallOption) error

Do executes the "gmail.users.settings.sendAs.delete" call.

func (*UsersSettingsSendAsDeleteCall) Fields Uses

func (c *UsersSettingsSendAsDeleteCall) Fields(s ...googleapi.Field) *UsersSettingsSendAsDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersSettingsSendAsDeleteCall) Header Uses

func (c *UsersSettingsSendAsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersSettingsSendAsGetCall Uses

type UsersSettingsSendAsGetCall struct {
    // contains filtered or unexported fields
}

func (*UsersSettingsSendAsGetCall) Context Uses

func (c *UsersSettingsSendAsGetCall) Context(ctx context.Context) *UsersSettingsSendAsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersSettingsSendAsGetCall) Do Uses

func (c *UsersSettingsSendAsGetCall) Do(opts ...googleapi.CallOption) (*SendAs, error)

Do executes the "gmail.users.settings.sendAs.get" call. Exactly one of *SendAs or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SendAs.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersSettingsSendAsGetCall) Fields Uses

func (c *UsersSettingsSendAsGetCall) Fields(s ...googleapi.Field) *UsersSettingsSendAsGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersSettingsSendAsGetCall) Header Uses

func (c *UsersSettingsSendAsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersSettingsSendAsGetCall) IfNoneMatch Uses

func (c *UsersSettingsSendAsGetCall) IfNoneMatch(entityTag string) *UsersSettingsSendAsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type UsersSettingsSendAsListCall Uses

type UsersSettingsSendAsListCall struct {
    // contains filtered or unexported fields
}

func (*UsersSettingsSendAsListCall) Context Uses

func (c *UsersSettingsSendAsListCall) Context(ctx context.Context) *UsersSettingsSendAsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersSettingsSendAsListCall) Do Uses

func (c *UsersSettingsSendAsListCall) Do(opts ...googleapi.CallOption) (*ListSendAsResponse, error)

Do executes the "gmail.users.settings.sendAs.list" call. Exactly one of *ListSendAsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListSendAsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersSettingsSendAsListCall) Fields Uses

func (c *UsersSettingsSendAsListCall) Fields(s ...googleapi.Field) *UsersSettingsSendAsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersSettingsSendAsListCall) Header Uses

func (c *UsersSettingsSendAsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersSettingsSendAsListCall) IfNoneMatch Uses

func (c *UsersSettingsSendAsListCall) IfNoneMatch(entityTag string) *UsersSettingsSendAsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type UsersSettingsSendAsPatchCall Uses

type UsersSettingsSendAsPatchCall struct {
    // contains filtered or unexported fields
}

func (*UsersSettingsSendAsPatchCall) Context Uses

func (c *UsersSettingsSendAsPatchCall) Context(ctx context.Context) *UsersSettingsSendAsPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersSettingsSendAsPatchCall) Do Uses

func (c *UsersSettingsSendAsPatchCall) Do(opts ...googleapi.CallOption) (*SendAs, error)

Do executes the "gmail.users.settings.sendAs.patch" call. Exactly one of *SendAs or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SendAs.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersSettingsSendAsPatchCall) Fields Uses

func (c *UsersSettingsSendAsPatchCall) Fields(s ...googleapi.Field) *UsersSettingsSendAsPatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersSettingsSendAsPatchCall) Header Uses

func (c *UsersSettingsSendAsPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersSettingsSendAsService Uses

type UsersSettingsSendAsService struct {
    SmimeInfo *UsersSettingsSendAsSmimeInfoService
    // contains filtered or unexported fields
}

func NewUsersSettingsSendAsService Uses

func NewUsersSettingsSendAsService(s *Service) *UsersSettingsSendAsService

func (*UsersSettingsSendAsService) Create Uses

func (r *UsersSettingsSendAsService) Create(userId string, sendas *SendAs) *UsersSettingsSendAsCreateCall

Create: Creates a custom "from" send-as alias. If an SMTP MSA is specified, Gmail will attempt to connect to the SMTP service to validate the configuration before creating the alias. If ownership verification is required for the alias, a message will be sent to the email address and the resource's verification status will be set to pending; otherwise, the resource will be created with verification status set to accepted. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias.

This method is only available to service account clients that have been delegated domain-wide authority.

func (*UsersSettingsSendAsService) Delete Uses

func (r *UsersSettingsSendAsService) Delete(userId string, sendAsEmail string) *UsersSettingsSendAsDeleteCall

Delete: Deletes the specified send-as alias. Revokes any verification that may have been required for using it.

This method is only available to service account clients that have been delegated domain-wide authority.

func (*UsersSettingsSendAsService) Get Uses

func (r *UsersSettingsSendAsService) Get(userId string, sendAsEmail string) *UsersSettingsSendAsGetCall

Get: Gets the specified send-as alias. Fails with an HTTP 404 error if the specified address is not a member of the collection.

func (*UsersSettingsSendAsService) List Uses

func (r *UsersSettingsSendAsService) List(userId string) *UsersSettingsSendAsListCall

List: Lists the send-as aliases for the specified account. The result includes the primary send-as address associated with the account as well as any custom "from" aliases.

func (*UsersSettingsSendAsService) Patch Uses

func (r *UsersSettingsSendAsService) Patch(userId string, sendAsEmail string, sendas *SendAs) *UsersSettingsSendAsPatchCall

Patch: Updates a send-as alias. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias.

Addresses other than the primary address for the account can only be updated by service account clients that have been delegated domain-wide authority. This method supports patch semantics.

func (*UsersSettingsSendAsService) Update Uses

func (r *UsersSettingsSendAsService) Update(userId string, sendAsEmail string, sendas *SendAs) *UsersSettingsSendAsUpdateCall

Update: Updates a send-as alias. If a signature is provided, Gmail will sanitize the HTML before saving it with the alias.

Addresses other than the primary address for the account can only be updated by service account clients that have been delegated domain-wide authority.

func (*UsersSettingsSendAsService) Verify Uses

func (r *UsersSettingsSendAsService) Verify(userId string, sendAsEmail string) *UsersSettingsSendAsVerifyCall

Verify: Sends a verification email to the specified send-as alias address. The verification status must be pending.

This method is only available to service account clients that have been delegated domain-wide authority.

type UsersSettingsSendAsSmimeInfoDeleteCall Uses

type UsersSettingsSendAsSmimeInfoDeleteCall struct {
    // contains filtered or unexported fields
}

func (*UsersSettingsSendAsSmimeInfoDeleteCall) Context Uses

func (c *UsersSettingsSendAsSmimeInfoDeleteCall) Context(ctx context.Context) *UsersSettingsSendAsSmimeInfoDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersSettingsSendAsSmimeInfoDeleteCall) Do Uses

func (c *UsersSettingsSendAsSmimeInfoDeleteCall) Do(opts ...googleapi.CallOption) error

Do executes the "gmail.users.settings.sendAs.smimeInfo.delete" call.

func (*UsersSettingsSendAsSmimeInfoDeleteCall) Fields Uses

func (c *UsersSettingsSendAsSmimeInfoDeleteCall) Fields(s ...googleapi.Field) *UsersSettingsSendAsSmimeInfoDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersSettingsSendAsSmimeInfoDeleteCall) Header Uses

func (c *UsersSettingsSendAsSmimeInfoDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersSettingsSendAsSmimeInfoGetCall Uses

type UsersSettingsSendAsSmimeInfoGetCall struct {
    // contains filtered or unexported fields
}

func (*UsersSettingsSendAsSmimeInfoGetCall) Context Uses

func (c *UsersSettingsSendAsSmimeInfoGetCall) Context(ctx context.Context) *UsersSettingsSendAsSmimeInfoGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersSettingsSendAsSmimeInfoGetCall) Do Uses

func (c *UsersSettingsSendAsSmimeInfoGetCall) Do(opts ...googleapi.CallOption) (*SmimeInfo, error)

Do executes the "gmail.users.settings.sendAs.smimeInfo.get" call. Exactly one of *SmimeInfo or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SmimeInfo.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersSettingsSendAsSmimeInfoGetCall) Fields Uses

func (c *UsersSettingsSendAsSmimeInfoGetCall) Fields(s ...googleapi.Field) *UsersSettingsSendAsSmimeInfoGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersSettingsSendAsSmimeInfoGetCall) Header Uses

func (c *UsersSettingsSendAsSmimeInfoGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersSettingsSendAsSmimeInfoGetCall) IfNoneMatch Uses

func (c *UsersSettingsSendAsSmimeInfoGetCall) IfNoneMatch(entityTag string) *UsersSettingsSendAsSmimeInfoGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type UsersSettingsSendAsSmimeInfoInsertCall Uses

type UsersSettingsSendAsSmimeInfoInsertCall struct {
    // contains filtered or unexported fields
}

func (*UsersSettingsSendAsSmimeInfoInsertCall) Context Uses

func (c *UsersSettingsSendAsSmimeInfoInsertCall) Context(ctx context.Context) *UsersSettingsSendAsSmimeInfoInsertCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersSettingsSendAsSmimeInfoInsertCall) Do Uses

func (c *UsersSettingsSendAsSmimeInfoInsertCall) Do(opts ...googleapi.CallOption) (*SmimeInfo, error)

Do executes the "gmail.users.settings.sendAs.smimeInfo.insert" call. Exactly one of *SmimeInfo or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SmimeInfo.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersSettingsSendAsSmimeInfoInsertCall) Fields Uses

func (c *UsersSettingsSendAsSmimeInfoInsertCall) Fields(s ...googleapi.Field) *UsersSettingsSendAsSmimeInfoInsertCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersSettingsSendAsSmimeInfoInsertCall) Header Uses

func (c *UsersSettingsSendAsSmimeInfoInsertCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersSettingsSendAsSmimeInfoListCall Uses

type UsersSettingsSendAsSmimeInfoListCall struct {
    // contains filtered or unexported fields
}

func (*UsersSettingsSendAsSmimeInfoListCall) Context Uses

func (c *UsersSettingsSendAsSmimeInfoListCall) Context(ctx context.Context) *UsersSettingsSendAsSmimeInfoListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersSettingsSendAsSmimeInfoListCall) Do Uses

func (c *UsersSettingsSendAsSmimeInfoListCall) Do(opts ...googleapi.CallOption) (*ListSmimeInfoResponse, error)

Do executes the "gmail.users.settings.sendAs.smimeInfo.list" call. Exactly one of *ListSmimeInfoResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListSmimeInfoResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersSettingsSendAsSmimeInfoListCall) Fields Uses

func (c *UsersSettingsSendAsSmimeInfoListCall) Fields(s ...googleapi.Field) *UsersSettingsSendAsSmimeInfoListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersSettingsSendAsSmimeInfoListCall) Header Uses

func (c *UsersSettingsSendAsSmimeInfoListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersSettingsSendAsSmimeInfoListCall) IfNoneMatch Uses

func (c *UsersSettingsSendAsSmimeInfoListCall) IfNoneMatch(entityTag string) *UsersSettingsSendAsSmimeInfoListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

type UsersSettingsSendAsSmimeInfoService Uses

type UsersSettingsSendAsSmimeInfoService struct {
    // contains filtered or unexported fields
}

func NewUsersSettingsSendAsSmimeInfoService Uses

func NewUsersSettingsSendAsSmimeInfoService(s *Service) *UsersSettingsSendAsSmimeInfoService

func (*UsersSettingsSendAsSmimeInfoService) Delete Uses

func (r *UsersSettingsSendAsSmimeInfoService) Delete(userId string, sendAsEmail string, id string) *UsersSettingsSendAsSmimeInfoDeleteCall

Delete: Deletes the specified S/MIME config for the specified send-as alias.

func (*UsersSettingsSendAsSmimeInfoService) Get Uses

func (r *UsersSettingsSendAsSmimeInfoService) Get(userId string, sendAsEmail string, id string) *UsersSettingsSendAsSmimeInfoGetCall

Get: Gets the specified S/MIME config for the specified send-as alias.

func (*UsersSettingsSendAsSmimeInfoService) Insert Uses

func (r *UsersSettingsSendAsSmimeInfoService) Insert(userId string, sendAsEmail string, smimeinfo *SmimeInfo) *UsersSettingsSendAsSmimeInfoInsertCall

Insert: Insert (upload) the given S/MIME config for the specified send-as alias. Note that pkcs12 format is required for the key.

func (*UsersSettingsSendAsSmimeInfoService) List Uses

func (r *UsersSettingsSendAsSmimeInfoService) List(userId string, sendAsEmail string) *UsersSettingsSendAsSmimeInfoListCall

List: Lists S/MIME configs for the specified send-as alias.

func (*UsersSettingsSendAsSmimeInfoService) SetDefault Uses

func (r *UsersSettingsSendAsSmimeInfoService) SetDefault(userId string, sendAsEmail string, id string) *UsersSettingsSendAsSmimeInfoSetDefaultCall

SetDefault: Sets the default S/MIME config for the specified send-as alias.

type UsersSettingsSendAsSmimeInfoSetDefaultCall Uses

type UsersSettingsSendAsSmimeInfoSetDefaultCall struct {
    // contains filtered or unexported fields
}

func (*UsersSettingsSendAsSmimeInfoSetDefaultCall) Context Uses

func (c *UsersSettingsSendAsSmimeInfoSetDefaultCall) Context(ctx context.Context) *UsersSettingsSendAsSmimeInfoSetDefaultCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersSettingsSendAsSmimeInfoSetDefaultCall) Do Uses

func (c *UsersSettingsSendAsSmimeInfoSetDefaultCall) Do(opts ...googleapi.CallOption) error

Do executes the "gmail.users.settings.sendAs.smimeInfo.setDefault" call.

func (*UsersSettingsSendAsSmimeInfoSetDefaultCall) Fields Uses

func (c *UsersSettingsSendAsSmimeInfoSetDefaultCall) Fields(s ...googleapi.Field) *UsersSettingsSendAsSmimeInfoSetDefaultCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersSettingsSendAsSmimeInfoSetDefaultCall) Header Uses

func (c *UsersSettingsSendAsSmimeInfoSetDefaultCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersSettingsSendAsUpdateCall Uses

type UsersSettingsSendAsUpdateCall struct {
    // contains filtered or unexported fields
}

func (*UsersSettingsSendAsUpdateCall) Context Uses

func (c *UsersSettingsSendAsUpdateCall) Context(ctx context.Context) *UsersSettingsSendAsUpdateCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersSettingsSendAsUpdateCall) Do Uses

func (c *UsersSettingsSendAsUpdateCall) Do(opts ...googleapi.CallOption) (*SendAs, error)

Do executes the "gmail.users.settings.sendAs.update" call. Exactly one of *SendAs or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SendAs.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersSettingsSendAsUpdateCall) Fields Uses

func (c *UsersSettingsSendAsUpdateCall) Fields(s ...googleapi.Field) *UsersSettingsSendAsUpdateCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersSettingsSendAsUpdateCall) Header Uses

func (c *UsersSettingsSendAsUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersSettingsSendAsVerifyCall Uses

type UsersSettingsSendAsVerifyCall struct {
    // contains filtered or unexported fields
}

func (*UsersSettingsSendAsVerifyCall) Context Uses

func (c *UsersSettingsSendAsVerifyCall) Context(ctx context.Context) *UsersSettingsSendAsVerifyCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersSettingsSendAsVerifyCall) Do Uses

func (c *UsersSettingsSendAsVerifyCall) Do(opts ...googleapi.CallOption) error

Do executes the "gmail.users.settings.sendAs.verify" call.

func (*UsersSettingsSendAsVerifyCall) Fields Uses

func (c *UsersSettingsSendAsVerifyCall) Fields(s ...googleapi.Field) *UsersSettingsSendAsVerifyCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersSettingsSendAsVerifyCall) Header Uses

func (c *UsersSettingsSendAsVerifyCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersSettingsService Uses

type UsersSettingsService struct {
    Filters *UsersSettingsFiltersService

    ForwardingAddresses *UsersSettingsForwardingAddressesService

    SendAs *UsersSettingsSendAsService
    // contains filtered or unexported fields
}

func NewUsersSettingsService Uses

func NewUsersSettingsService(s *Service) *UsersSettingsService

func (*UsersSettingsService) GetAutoForwarding Uses

func (r *UsersSettingsService) GetAutoForwarding(userId string) *UsersSettingsGetAutoForwardingCall

GetAutoForwarding: Gets the auto-forwarding setting for the specified account.

func (*UsersSettingsService) GetImap Uses

func (r *UsersSettingsService) GetImap(userId string) *UsersSettingsGetImapCall

GetImap: Gets IMAP settings.

func (*UsersSettingsService) GetPop Uses

func (r *UsersSettingsService) GetPop(userId string) *UsersSettingsGetPopCall

GetPop: Gets POP settings.

func (*UsersSettingsService) GetVacation Uses

func (r *UsersSettingsService) GetVacation(userId string) *UsersSettingsGetVacationCall

GetVacation: Gets vacation responder settings.

func (*UsersSettingsService) UpdateAutoForwarding Uses

func (r *UsersSettingsService) UpdateAutoForwarding(userId string, autoforwarding *AutoForwarding) *UsersSettingsUpdateAutoForwardingCall

UpdateAutoForwarding: Updates the auto-forwarding setting for the specified account. A verified forwarding address must be specified when auto-forwarding is enabled.

This method is only available to service account clients that have been delegated domain-wide authority.

func (*UsersSettingsService) UpdateImap Uses

func (r *UsersSettingsService) UpdateImap(userId string, imapsettings *ImapSettings) *UsersSettingsUpdateImapCall

UpdateImap: Updates IMAP settings.

func (*UsersSettingsService) UpdatePop Uses

func (r *UsersSettingsService) UpdatePop(userId string, popsettings *PopSettings) *UsersSettingsUpdatePopCall

UpdatePop: Updates POP settings.

func (*UsersSettingsService) UpdateVacation Uses

func (r *UsersSettingsService) UpdateVacation(userId string, vacationsettings *VacationSettings) *UsersSettingsUpdateVacationCall

UpdateVacation: Updates vacation responder settings.

type UsersSettingsUpdateAutoForwardingCall Uses

type UsersSettingsUpdateAutoForwardingCall struct {
    // contains filtered or unexported fields
}

func (*UsersSettingsUpdateAutoForwardingCall) Context Uses

func (c *UsersSettingsUpdateAutoForwardingCall) Context(ctx context.Context) *UsersSettingsUpdateAutoForwardingCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersSettingsUpdateAutoForwardingCall) Do Uses

func (c *UsersSettingsUpdateAutoForwardingCall) Do(opts ...googleapi.CallOption) (*AutoForwarding, error)

Do executes the "gmail.users.settings.updateAutoForwarding" call. Exactly one of *AutoForwarding or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AutoForwarding.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersSettingsUpdateAutoForwardingCall) Fields Uses

func (c *UsersSettingsUpdateAutoForwardingCall) Fields(s ...googleapi.Field) *UsersSettingsUpdateAutoForwardingCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersSettingsUpdateAutoForwardingCall) Header Uses

func (c *UsersSettingsUpdateAutoForwardingCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersSettingsUpdateImapCall Uses

type UsersSettingsUpdateImapCall struct {
    // contains filtered or unexported fields
}

func (*UsersSettingsUpdateImapCall) Context Uses

func (c *UsersSettingsUpdateImapCall) Context(ctx context.Context) *UsersSettingsUpdateImapCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersSettingsUpdateImapCall) Do Uses

func (c *UsersSettingsUpdateImapCall) Do(opts ...googleapi.CallOption) (*ImapSettings, error)

Do executes the "gmail.users.settings.updateImap" call. Exactly one of *ImapSettings or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ImapSettings.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersSettingsUpdateImapCall) Fields Uses

func (c *UsersSettingsUpdateImapCall) Fields(s ...googleapi.Field) *UsersSettingsUpdateImapCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersSettingsUpdateImapCall) Header Uses

func (c *UsersSettingsUpdateImapCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersSettingsUpdatePopCall Uses

type UsersSettingsUpdatePopCall struct {
    // contains filtered or unexported fields
}

func (*UsersSettingsUpdatePopCall) Context Uses

func (c *UsersSettingsUpdatePopCall) Context(ctx context.Context) *UsersSettingsUpdatePopCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersSettingsUpdatePopCall) Do Uses

func (c *UsersSettingsUpdatePopCall) Do(opts ...googleapi.CallOption) (*PopSettings, error)

Do executes the "gmail.users.settings.updatePop" call. Exactly one of *PopSettings or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *PopSettings.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersSettingsUpdatePopCall) Fields Uses

func (c *UsersSettingsUpdatePopCall) Fields(s ...googleapi.Field) *UsersSettingsUpdatePopCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersSettingsUpdatePopCall) Header Uses

func (c *UsersSettingsUpdatePopCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersSettingsUpdateVacationCall Uses

type UsersSettingsUpdateVacationCall struct {
    // contains filtered or unexported fields
}

func (*UsersSettingsUpdateVacationCall) Context Uses

func (c *UsersSettingsUpdateVacationCall) Context(ctx context.Context) *UsersSettingsUpdateVacationCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersSettingsUpdateVacationCall) Do Uses

func (c *UsersSettingsUpdateVacationCall) Do(opts ...googleapi.CallOption) (*VacationSettings, error)

Do executes the "gmail.users.settings.updateVacation" call. Exactly one of *VacationSettings or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *VacationSettings.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersSettingsUpdateVacationCall) Fields Uses

func (c *UsersSettingsUpdateVacationCall) Fields(s ...googleapi.Field) *UsersSettingsUpdateVacationCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersSettingsUpdateVacationCall) Header Uses

func (c *UsersSettingsUpdateVacationCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersStopCall Uses

type UsersStopCall struct {
    // contains filtered or unexported fields
}

func (*UsersStopCall) Context Uses

func (c *UsersStopCall) Context(ctx context.Context) *UsersStopCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersStopCall) Do Uses

func (c *UsersStopCall) Do(opts ...googleapi.CallOption) error

Do executes the "gmail.users.stop" call.

func (*UsersStopCall) Fields Uses

func (c *UsersStopCall) Fields(s ...googleapi.Field) *UsersStopCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersStopCall) Header Uses

func (c *UsersStopCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersThreadsDeleteCall Uses

type UsersThreadsDeleteCall struct {
    // contains filtered or unexported fields
}

func (*UsersThreadsDeleteCall) Context Uses

func (c *UsersThreadsDeleteCall) Context(ctx context.Context) *UsersThreadsDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersThreadsDeleteCall) Do Uses

func (c *UsersThreadsDeleteCall) Do(opts ...googleapi.CallOption) error

Do executes the "gmail.users.threads.delete" call.

func (*UsersThreadsDeleteCall) Fields Uses

func (c *UsersThreadsDeleteCall) Fields(s ...googleapi.Field) *UsersThreadsDeleteCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersThreadsDeleteCall) Header Uses

func (c *UsersThreadsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersThreadsGetCall Uses

type UsersThreadsGetCall struct {
    // contains filtered or unexported fields
}

func (*UsersThreadsGetCall) Context Uses

func (c *UsersThreadsGetCall) Context(ctx context.Context) *UsersThreadsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersThreadsGetCall) Do Uses

func (c *UsersThreadsGetCall) Do(opts ...googleapi.CallOption) (*Thread, error)

Do executes the "gmail.users.threads.get" call. Exactly one of *Thread or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Thread.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersThreadsGetCall) Fields Uses

func (c *UsersThreadsGetCall) Fields(s ...googleapi.Field) *UsersThreadsGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersThreadsGetCall) Format Uses

func (c *UsersThreadsGetCall) Format(format string) *UsersThreadsGetCall

Format sets the optional parameter "format": The format to return the messages in.

Possible values:

"full" (default)
"metadata"
"minimal"

func (*UsersThreadsGetCall) Header Uses

func (c *UsersThreadsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersThreadsGetCall) IfNoneMatch Uses

func (c *UsersThreadsGetCall) IfNoneMatch(entityTag string) *UsersThreadsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*UsersThreadsGetCall) MetadataHeaders Uses

func (c *UsersThreadsGetCall) MetadataHeaders(metadataHeaders ...string) *UsersThreadsGetCall

MetadataHeaders sets the optional parameter "metadataHeaders": When given and format is METADATA, only include headers specified.

type UsersThreadsListCall Uses

type UsersThreadsListCall struct {
    // contains filtered or unexported fields
}

func (*UsersThreadsListCall) Context Uses

func (c *UsersThreadsListCall) Context(ctx context.Context) *UsersThreadsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersThreadsListCall) Do Uses

func (c *UsersThreadsListCall) Do(opts ...googleapi.CallOption) (*ListThreadsResponse, error)

Do executes the "gmail.users.threads.list" call. Exactly one of *ListThreadsResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ListThreadsResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersThreadsListCall) Fields Uses

func (c *UsersThreadsListCall) Fields(s ...googleapi.Field) *UsersThreadsListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersThreadsListCall) Header Uses

func (c *UsersThreadsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*UsersThreadsListCall) IfNoneMatch Uses

func (c *UsersThreadsListCall) IfNoneMatch(entityTag string) *UsersThreadsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*UsersThreadsListCall) IncludeSpamTrash Uses

func (c *UsersThreadsListCall) IncludeSpamTrash(includeSpamTrash bool) *UsersThreadsListCall

IncludeSpamTrash sets the optional parameter "includeSpamTrash": Include threads from SPAM and TRASH in the results.

func (*UsersThreadsListCall) LabelIds Uses

func (c *UsersThreadsListCall) LabelIds(labelIds ...string) *UsersThreadsListCall

LabelIds sets the optional parameter "labelIds": Only return threads with labels that match all of the specified label IDs.

func (*UsersThreadsListCall) MaxResults Uses

func (c *UsersThreadsListCall) MaxResults(maxResults int64) *UsersThreadsListCall

MaxResults sets the optional parameter "maxResults": Maximum number of threads to return.

func (*UsersThreadsListCall) PageToken Uses

func (c *UsersThreadsListCall) PageToken(pageToken string) *UsersThreadsListCall

PageToken sets the optional parameter "pageToken": Page token to retrieve a specific page of results in the list.

func (*UsersThreadsListCall) Pages Uses

func (c *UsersThreadsListCall) Pages(ctx context.Context, f func(*ListThreadsResponse) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*UsersThreadsListCall) Q Uses

func (c *UsersThreadsListCall) Q(q string) *UsersThreadsListCall

Q sets the optional parameter "q": Only return threads matching the specified query. Supports the same query format as the Gmail search box. For example, "from:someuser@example.com rfc822msgid: is:unread". Parameter cannot be used when accessing the api using the gmail.metadata scope.

type UsersThreadsModifyCall Uses

type UsersThreadsModifyCall struct {
    // contains filtered or unexported fields
}

func (*UsersThreadsModifyCall) Context Uses

func (c *UsersThreadsModifyCall) Context(ctx context.Context) *UsersThreadsModifyCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersThreadsModifyCall) Do Uses

func (c *UsersThreadsModifyCall) Do(opts ...googleapi.CallOption) (*Thread, error)

Do executes the "gmail.users.threads.modify" call. Exactly one of *Thread or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Thread.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersThreadsModifyCall) Fields Uses

func (c *UsersThreadsModifyCall) Fields(s ...googleapi.Field) *UsersThreadsModifyCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersThreadsModifyCall) Header Uses

func (c *UsersThreadsModifyCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersThreadsService Uses

type UsersThreadsService struct {
    // contains filtered or unexported fields
}

func NewUsersThreadsService Uses

func NewUsersThreadsService(s *Service) *UsersThreadsService

func (*UsersThreadsService) Delete Uses

func (r *UsersThreadsService) Delete(userId string, id string) *UsersThreadsDeleteCall

Delete: Immediately and permanently deletes the specified thread. This operation cannot be undone. Prefer threads.trash instead.

func (*UsersThreadsService) Get Uses

func (r *UsersThreadsService) Get(userId string, id string) *UsersThreadsGetCall

Get: Gets the specified thread.

func (*UsersThreadsService) List Uses

func (r *UsersThreadsService) List(userId string) *UsersThreadsListCall

List: Lists the threads in the user's mailbox.

func (*UsersThreadsService) Modify Uses

func (r *UsersThreadsService) Modify(userId string, id string, modifythreadrequest *ModifyThreadRequest) *UsersThreadsModifyCall

Modify: Modifies the labels applied to the thread. This applies to all messages in the thread.

func (*UsersThreadsService) Trash Uses

func (r *UsersThreadsService) Trash(userId string, id string) *UsersThreadsTrashCall

Trash: Moves the specified thread to the trash.

func (*UsersThreadsService) Untrash Uses

func (r *UsersThreadsService) Untrash(userId string, id string) *UsersThreadsUntrashCall

Untrash: Removes the specified thread from the trash.

type UsersThreadsTrashCall Uses

type UsersThreadsTrashCall struct {
    // contains filtered or unexported fields
}

func (*UsersThreadsTrashCall) Context Uses

func (c *UsersThreadsTrashCall) Context(ctx context.Context) *UsersThreadsTrashCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersThreadsTrashCall) Do Uses

func (c *UsersThreadsTrashCall) Do(opts ...googleapi.CallOption) (*Thread, error)

Do executes the "gmail.users.threads.trash" call. Exactly one of *Thread or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Thread.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersThreadsTrashCall) Fields Uses

func (c *UsersThreadsTrashCall) Fields(s ...googleapi.Field) *UsersThreadsTrashCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersThreadsTrashCall) Header Uses

func (c *UsersThreadsTrashCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersThreadsUntrashCall Uses

type UsersThreadsUntrashCall struct {
    // contains filtered or unexported fields
}

func (*UsersThreadsUntrashCall) Context Uses

func (c *UsersThreadsUntrashCall) Context(ctx context.Context) *UsersThreadsUntrashCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersThreadsUntrashCall) Do Uses

func (c *UsersThreadsUntrashCall) Do(opts ...googleapi.CallOption) (*Thread, error)

Do executes the "gmail.users.threads.untrash" call. Exactly one of *Thread or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Thread.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersThreadsUntrashCall) Fields Uses

func (c *UsersThreadsUntrashCall) Fields(s ...googleapi.Field) *UsersThreadsUntrashCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersThreadsUntrashCall) Header Uses

func (c *UsersThreadsUntrashCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type UsersWatchCall Uses

type UsersWatchCall struct {
    // contains filtered or unexported fields
}

func (*UsersWatchCall) Context Uses

func (c *UsersWatchCall) Context(ctx context.Context) *UsersWatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersWatchCall) Do Uses

func (c *UsersWatchCall) Do(opts ...googleapi.CallOption) (*WatchResponse, error)

Do executes the "gmail.users.watch" call. Exactly one of *WatchResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *WatchResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersWatchCall) Fields Uses

func (c *UsersWatchCall) Fields(s ...googleapi.Field) *UsersWatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersWatchCall) Header Uses

func (c *UsersWatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type VacationSettings Uses

type VacationSettings struct {
    // EnableAutoReply: Flag that controls whether Gmail automatically
    // replies to messages.
    EnableAutoReply bool `json:"enableAutoReply,omitempty"`

    // EndTime: An optional end time for sending auto-replies (epoch ms).
    // When this is specified, Gmail will automatically reply only to
    // messages that it receives before the end time. If both startTime and
    // endTime are specified, startTime must precede endTime.
    EndTime int64 `json:"endTime,omitempty,string"`

    // ResponseBodyHtml: Response body in HTML format. Gmail will sanitize
    // the HTML before storing it.
    ResponseBodyHtml string `json:"responseBodyHtml,omitempty"`

    // ResponseBodyPlainText: Response body in plain text format.
    ResponseBodyPlainText string `json:"responseBodyPlainText,omitempty"`

    // ResponseSubject: Optional text to prepend to the subject line in
    // vacation responses. In order to enable auto-replies, either the
    // response subject or the response body must be nonempty.
    ResponseSubject string `json:"responseSubject,omitempty"`

    // RestrictToContacts: Flag that determines whether responses are sent
    // to recipients who are not in the user's list of contacts.
    RestrictToContacts bool `json:"restrictToContacts,omitempty"`

    // RestrictToDomain: Flag that determines whether responses are sent to
    // recipients who are outside of the user's domain. This feature is only
    // available for G Suite users.
    RestrictToDomain bool `json:"restrictToDomain,omitempty"`

    // StartTime: An optional start time for sending auto-replies (epoch
    // ms). When this is specified, Gmail will automatically reply only to
    // messages that it receives after the start time. If both startTime and
    // endTime are specified, startTime must precede endTime.
    StartTime int64 `json:"startTime,omitempty,string"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "EnableAutoReply") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "EnableAutoReply") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

VacationSettings: Vacation auto-reply settings for an account. These settings correspond to the "Vacation responder" feature in the web interface.

func (*VacationSettings) MarshalJSON Uses

func (s *VacationSettings) MarshalJSON() ([]byte, error)

type WatchRequest Uses

type WatchRequest struct {
    // LabelFilterAction: Filtering behavior of labelIds list specified.
    //
    // Possible values:
    //   "exclude"
    //   "include"
    LabelFilterAction string `json:"labelFilterAction,omitempty"`

    // LabelIds: List of label_ids to restrict notifications about. By
    // default, if unspecified, all changes are pushed out. If specified
    // then dictates which labels are required for a push notification to be
    // generated.
    LabelIds []string `json:"labelIds,omitempty"`

    // TopicName: A fully qualified Google Cloud Pub/Sub API topic name to
    // publish the events to. This topic name **must** already exist in
    // Cloud Pub/Sub and you **must** have already granted gmail "publish"
    // permission on it. For example,
    // "projects/my-project-identifier/topics/my-topic-name" (using the
    // Cloud Pub/Sub "v1" topic naming format).
    //
    // Note that the "my-project-identifier" portion must exactly match your
    // Google developer project id (the one executing this watch request).
    TopicName string `json:"topicName,omitempty"`

    // ForceSendFields is a list of field names (e.g. "LabelFilterAction")
    // to unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "LabelFilterAction") to
    // include in API requests with the JSON null value. By default, fields
    // with empty values are omitted from API requests. However, any field
    // with an empty value appearing in NullFields will be sent to the
    // server as null. It is an error if a field in this list has a
    // non-empty value. This may be used to include null fields in Patch
    // requests.
    NullFields []string `json:"-"`
}

WatchRequest: Set up or update a new push notification watch on this user's mailbox.

func (*WatchRequest) MarshalJSON Uses

func (s *WatchRequest) MarshalJSON() ([]byte, error)

type WatchResponse Uses

type WatchResponse struct {
    // Expiration: When Gmail will stop sending notifications for mailbox
    // updates (epoch millis). Call watch again before this time to renew
    // the watch.
    Expiration int64 `json:"expiration,omitempty,string"`

    // HistoryId: The ID of the mailbox's current history record.
    HistoryId uint64 `json:"historyId,omitempty,string"`

    // ServerResponse contains the HTTP response code and headers from the
    // server.
    googleapi.ServerResponse `json:"-"`

    // ForceSendFields is a list of field names (e.g. "Expiration") to
    // unconditionally include in API requests. By default, fields with
    // empty values are omitted from API requests. However, any non-pointer,
    // non-interface field appearing in ForceSendFields will be sent to the
    // server regardless of whether the field is empty or not. This may be
    // used to include empty fields in Patch requests.
    ForceSendFields []string `json:"-"`

    // NullFields is a list of field names (e.g. "Expiration") to include in
    // API requests with the JSON null value. By default, fields with empty
    // values are omitted from API requests. However, any field with an
    // empty value appearing in NullFields will be sent to the server as
    // null. It is an error if a field in this list has a non-empty value.
    // This may be used to include null fields in Patch requests.
    NullFields []string `json:"-"`
}

WatchResponse: Push notification watch response.

func (*WatchResponse) MarshalJSON Uses

func (s *WatchResponse) MarshalJSON() ([]byte, error)

Package gmail imports 13 packages (graph) and is imported by 38 packages. Updated 2017-10-21. Refresh now. Tools for package owners.