Google.Apis.Gmail.v1 The Gmail Service. The API version. The discovery version used to generate this service. Constructs a new service. Constructs a new service. The service initializer. Gets the service supported features. Gets the service name. Gets the service base URI. Gets the service base path. Gets the batch base URI; null if unspecified. Gets the batch base path; null if unspecified. Available OAuth 2.0 scopes for use with the Gmail API. Read, compose, send, and permanently delete all your email from Gmail Manage drafts and send emails when you interact with the add-on View your email messages when you interact with the add-on View your email message metadata when the add-on is running View your email messages when the add-on is running Manage drafts and send emails Add emails into your Gmail mailbox See and edit your email labels View your email message metadata such as labels and headers, but not the email body Read, compose, and send emails from your Gmail account View your email messages and settings Send email on your behalf See, edit, create, or change your email settings and filters in Gmail Manage your sensitive mail settings, including who can manage your mail Available OAuth 2.0 scope constants for use with the Gmail API. Read, compose, send, and permanently delete all your email from Gmail Manage drafts and send emails when you interact with the add-on View your email messages when you interact with the add-on View your email message metadata when the add-on is running View your email messages when the add-on is running Manage drafts and send emails Add emails into your Gmail mailbox See and edit your email labels View your email message metadata such as labels and headers, but not the email body Read, compose, and send emails from your Gmail account View your email messages and settings Send email on your behalf See, edit, create, or change your email settings and filters in Gmail Manage your sensitive mail settings, including who can manage your mail Gets the Users resource. A base abstract class for Gmail requests. Constructs a new GmailBaseServiceRequest instance. V1 error format. V1 error format. v1 error format v2 error format OAuth access token. Data format for response. Data format for response. Responses with Content-Type of application/json Media download with context-dependent Content-Type Responses with Content-Type of application/x-protobuf JSONP Selector specifying which fields to include in a partial response. API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. OAuth 2.0 token for the current user. Returns response with indentations and line breaks. Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Legacy upload protocol for media (e.g. "media", "multipart"). Upload protocol for media (e.g. "raw", "multipart"). Initializes Gmail parameter list. The "users" collection of methods. The service which this resource belongs to. Constructs a new resource. Gets the Drafts resource. The "drafts" collection of methods. The service which this resource belongs to. Constructs a new resource. Creates a new draft with the `DRAFT` label. The body of the request. The user's email address. The special value `me` can be used to indicate the authenticated user. Creates a new draft with the `DRAFT` label. Constructs a new Create request. The user's email address. The special value `me` can be used to indicate the authenticated user. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Create parameter list. Creates a new draft with the `DRAFT` label. Considerations regarding : If is seekable, then the stream position will be reset to 0 before reading commences. If is not seekable, then it will be read from its current position Caller is responsible for maintaining the open until the upload is completed Caller is responsible for closing the The body of the request. The user's email address. The special value `me` can be used to indicate the authenticated user. The stream to upload. See remarks for further information. The content type of the stream to upload. Create media upload which supports resumable upload. V1 error format. V1 error format. v1 error format v2 error format OAuth access token. Data format for response. Data format for response. Responses with Content-Type of application/json Media download with context-dependent Content-Type Responses with Content-Type of application/x-protobuf JSONP Selector specifying which fields to include in a partial response. API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. OAuth 2.0 token for the current user. Returns response with indentations and line breaks. Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Legacy upload protocol for media (e.g. "media", "multipart"). Upload protocol for media (e.g. "raw", "multipart"). The user's email address. The special value `me` can be used to indicate the authenticated user. Constructs a new Create media upload instance. Considerations regarding : If is seekable, then the stream position will be reset to 0 before reading commences. If is not seekable, then it will be read from its current position Caller is responsible for maintaining the open until the upload is completed Caller is responsible for closing the Immediately and permanently deletes the specified draft. Does not simply trash it. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the draft to delete. Immediately and permanently deletes the specified draft. Does not simply trash it. Constructs a new Delete request. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the draft to delete. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Delete parameter list. Gets the specified draft. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the draft to retrieve. Gets the specified draft. Constructs a new Get request. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the draft to retrieve. The format to return the draft in. The format to return the draft in. Returns only email message ID and labels; does not return the email headers, body, or payload. Returns the full email message data with body content parsed in the `payload` field; the `raw` field is not used. Format cannot be used when accessing the api using the gmail.metadata scope. Returns the full email message data with body content in the `raw` field as a base64url encoded string; the `payload` field is not used. Format cannot be used when accessing the api using the gmail.metadata scope. Returns only email message ID, labels, and email headers. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Get parameter list. Lists the drafts in the user's mailbox. The user's email address. The special value `me` can be used to indicate the authenticated user. Lists the drafts in the user's mailbox. Constructs a new List request. The user's email address. The special value `me` can be used to indicate the authenticated user. Include drafts from `SPAM` and `TRASH` in the results. Maximum number of drafts to return. This field defaults to 100. The maximum allowed value for this field is 500. Page token to retrieve a specific page of results in the list. 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"`. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes List parameter list. Sends the specified, existing draft to the recipients in the `To`, `Cc`, and `Bcc` headers. The body of the request. The user's email address. The special value `me` can be used to indicate the authenticated user. Sends the specified, existing draft to the recipients in the `To`, `Cc`, and `Bcc` headers. Constructs a new Send request. The user's email address. The special value `me` can be used to indicate the authenticated user. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Send parameter list. Sends the specified, existing draft to the recipients in the `To`, `Cc`, and `Bcc` headers. Considerations regarding : If is seekable, then the stream position will be reset to 0 before reading commences. If is not seekable, then it will be read from its current position Caller is responsible for maintaining the open until the upload is completed Caller is responsible for closing the The body of the request. The user's email address. The special value `me` can be used to indicate the authenticated user. The stream to upload. See remarks for further information. The content type of the stream to upload. Send media upload which supports resumable upload. V1 error format. V1 error format. v1 error format v2 error format OAuth access token. Data format for response. Data format for response. Responses with Content-Type of application/json Media download with context-dependent Content-Type Responses with Content-Type of application/x-protobuf JSONP Selector specifying which fields to include in a partial response. API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. OAuth 2.0 token for the current user. Returns response with indentations and line breaks. Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Legacy upload protocol for media (e.g. "media", "multipart"). Upload protocol for media (e.g. "raw", "multipart"). The user's email address. The special value `me` can be used to indicate the authenticated user. Constructs a new Send media upload instance. Considerations regarding : If is seekable, then the stream position will be reset to 0 before reading commences. If is not seekable, then it will be read from its current position Caller is responsible for maintaining the open until the upload is completed Caller is responsible for closing the Replaces a draft's content. The body of the request. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the draft to update. Replaces a draft's content. Constructs a new Update request. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the draft to update. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Update parameter list. Replaces a draft's content. Considerations regarding : If is seekable, then the stream position will be reset to 0 before reading commences. If is not seekable, then it will be read from its current position Caller is responsible for maintaining the open until the upload is completed Caller is responsible for closing the The body of the request. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the draft to update. The stream to upload. See remarks for further information. The content type of the stream to upload. Update media upload which supports resumable upload. V1 error format. V1 error format. v1 error format v2 error format OAuth access token. Data format for response. Data format for response. Responses with Content-Type of application/json Media download with context-dependent Content-Type Responses with Content-Type of application/x-protobuf JSONP Selector specifying which fields to include in a partial response. API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. OAuth 2.0 token for the current user. Returns response with indentations and line breaks. Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Legacy upload protocol for media (e.g. "media", "multipart"). Upload protocol for media (e.g. "raw", "multipart"). The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the draft to update. Constructs a new Update media upload instance. Considerations regarding : If is seekable, then the stream position will be reset to 0 before reading commences. If is not seekable, then it will be read from its current position Caller is responsible for maintaining the open until the upload is completed Caller is responsible for closing the Gets the History resource. The "history" collection of methods. The service which this resource belongs to. Constructs a new resource. Lists the history of all changes to the given mailbox. History results are returned in chronological order (increasing `historyId`). The user's email address. The special value `me` can be used to indicate the authenticated user. Lists the history of all changes to the given mailbox. History results are returned in chronological order (increasing `historyId`). Constructs a new List request. The user's email address. The special value `me` can be used to indicate the authenticated user. History types to be returned by the function Use this property to set a single value for the parameter, or to set multiple values. Do not set both properties. History types to be returned by the function Use this property to set one or more values for the parameter. Do not set both this property and . History types to be returned by the function Only return messages with a label matching the ID. Maximum number of history records to return. This field defaults to 100. The maximum allowed value for this field is 500. Page token to retrieve a specific page of results in the list. 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. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes List parameter list. Gets the Labels resource. The "labels" collection of methods. The service which this resource belongs to. Constructs a new resource. Creates a new label. The body of the request. The user's email address. The special value `me` can be used to indicate the authenticated user. Creates a new label. Constructs a new Create request. The user's email address. The special value `me` can be used to indicate the authenticated user. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Create parameter list. Immediately and permanently deletes the specified label and removes it from any messages and threads that it is applied to. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the label to delete. Immediately and permanently deletes the specified label and removes it from any messages and threads that it is applied to. Constructs a new Delete request. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the label to delete. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Delete parameter list. Gets the specified label. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the label to retrieve. Gets the specified label. Constructs a new Get request. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the label to retrieve. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Get parameter list. Lists all labels in the user's mailbox. The user's email address. The special value `me` can be used to indicate the authenticated user. Lists all labels in the user's mailbox. Constructs a new List request. The user's email address. The special value `me` can be used to indicate the authenticated user. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes List parameter list. Patch the specified label. The body of the request. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the label to update. Patch the specified label. Constructs a new Patch request. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the label to update. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Patch parameter list. Updates the specified label. The body of the request. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the label to update. Updates the specified label. Constructs a new Update request. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the label to update. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Update parameter list. Gets the Messages resource. The "messages" collection of methods. The service which this resource belongs to. Constructs a new resource. Gets the Attachments resource. The "attachments" collection of methods. The service which this resource belongs to. Constructs a new resource. Gets the specified message attachment. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the message containing the attachment. The ID of the attachment. Gets the specified message attachment. Constructs a new Get request. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the message containing the attachment. The ID of the attachment. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Get parameter list. Deletes many messages by message ID. Provides no guarantees that messages were not already deleted or even existed at all. The body of the request. The user's email address. The special value `me` can be used to indicate the authenticated user. Deletes many messages by message ID. Provides no guarantees that messages were not already deleted or even existed at all. Constructs a new BatchDelete request. The user's email address. The special value `me` can be used to indicate the authenticated user. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes BatchDelete parameter list. Modifies the labels on the specified messages. The body of the request. The user's email address. The special value `me` can be used to indicate the authenticated user. Modifies the labels on the specified messages. Constructs a new BatchModify request. The user's email address. The special value `me` can be used to indicate the authenticated user. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes BatchModify parameter list. Immediately and permanently deletes the specified message. This operation cannot be undone. Prefer `messages.trash` instead. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the message to delete. Immediately and permanently deletes the specified message. This operation cannot be undone. Prefer `messages.trash` instead. Constructs a new Delete request. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the message to delete. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Delete parameter list. Gets the specified message. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the message to retrieve. This ID is usually retrieved using `messages.list`. The ID is also contained in the result when a message is inserted (`messages.insert`) or imported (`messages.import`). Gets the specified message. Constructs a new Get request. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the message to retrieve. This ID is usually retrieved using `messages.list`. The ID is also contained in the result when a message is inserted (`messages.insert`) or imported (`messages.import`). The format to return the message in. The format to return the message in. Returns only email message ID and labels; does not return the email headers, body, or payload. Returns the full email message data with body content parsed in the `payload` field; the `raw` field is not used. Format cannot be used when accessing the api using the gmail.metadata scope. Returns the full email message data with body content in the `raw` field as a base64url encoded string; the `payload` field is not used. Format cannot be used when accessing the api using the gmail.metadata scope. Returns only email message ID, labels, and email headers. When given and format is `METADATA`, only include headers specified. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Get parameter list. Imports a message into only this user's mailbox, with standard email delivery scanning and classification similar to receiving via SMTP. This method doesn't perform SPF checks, so it might not work for some spam messages, such as those attempting to perform domain spoofing. This method does not send a message. Note that the maximum size of the message is 150MB. The body of the request. The user's email address. The special value `me` can be used to indicate the authenticated user. Imports a message into only this user's mailbox, with standard email delivery scanning and classification similar to receiving via SMTP. This method doesn't perform SPF checks, so it might not work for some spam messages, such as those attempting to perform domain spoofing. This method does not send a message. Note that the maximum size of the message is 150MB. Constructs a new Import request. The user's email address. The special value `me` can be used to indicate the authenticated user. Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault administrator. Only used for Google Workspace accounts. Source for Gmail's internal date of the message. Source for Gmail's internal date of the message. Internal message date set to current time when received by Gmail. Internal message time based on 'Date' header in email, when valid. Ignore the Gmail spam classifier decision and never mark this email as SPAM in the mailbox. Process calendar invites in the email and add any extracted meetings to the Google Calendar for this user. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Import parameter list. Imports a message into only this user's mailbox, with standard email delivery scanning and classification similar to receiving via SMTP. This method doesn't perform SPF checks, so it might not work for some spam messages, such as those attempting to perform domain spoofing. This method does not send a message. Note that the maximum size of the message is 150MB. Considerations regarding : If is seekable, then the stream position will be reset to 0 before reading commences. If is not seekable, then it will be read from its current position Caller is responsible for maintaining the open until the upload is completed Caller is responsible for closing the The body of the request. The user's email address. The special value `me` can be used to indicate the authenticated user. The stream to upload. See remarks for further information. The content type of the stream to upload. Import media upload which supports resumable upload. V1 error format. V1 error format. v1 error format v2 error format OAuth access token. Data format for response. Data format for response. Responses with Content-Type of application/json Media download with context-dependent Content-Type Responses with Content-Type of application/x-protobuf JSONP Selector specifying which fields to include in a partial response. API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. OAuth 2.0 token for the current user. Returns response with indentations and line breaks. Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Legacy upload protocol for media (e.g. "media", "multipart"). Upload protocol for media (e.g. "raw", "multipart"). The user's email address. The special value `me` can be used to indicate the authenticated user. Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault administrator. Only used for Google Workspace accounts. Source for Gmail's internal date of the message. Source for Gmail's internal date of the message. Internal message date set to current time when received by Gmail. Internal message time based on 'Date' header in email, when valid. Ignore the Gmail spam classifier decision and never mark this email as SPAM in the mailbox. Process calendar invites in the email and add any extracted meetings to the Google Calendar for this user. Constructs a new Import media upload instance. Considerations regarding : If is seekable, then the stream position will be reset to 0 before reading commences. If is not seekable, then it will be read from its current position Caller is responsible for maintaining the open until the upload is completed Caller is responsible for closing the Directly inserts a message into only this user's mailbox similar to `IMAP APPEND`, bypassing most scanning and classification. Does not send a message. The body of the request. The user's email address. The special value `me` can be used to indicate the authenticated user. Directly inserts a message into only this user's mailbox similar to `IMAP APPEND`, bypassing most scanning and classification. Does not send a message. Constructs a new Insert request. The user's email address. The special value `me` can be used to indicate the authenticated user. Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault administrator. Only used for Google Workspace accounts. Source for Gmail's internal date of the message. Source for Gmail's internal date of the message. Internal message date set to current time when received by Gmail. Internal message time based on 'Date' header in email, when valid. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Insert parameter list. Directly inserts a message into only this user's mailbox similar to `IMAP APPEND`, bypassing most scanning and classification. Does not send a message. Considerations regarding : If is seekable, then the stream position will be reset to 0 before reading commences. If is not seekable, then it will be read from its current position Caller is responsible for maintaining the open until the upload is completed Caller is responsible for closing the The body of the request. The user's email address. The special value `me` can be used to indicate the authenticated user. The stream to upload. See remarks for further information. The content type of the stream to upload. Insert media upload which supports resumable upload. V1 error format. V1 error format. v1 error format v2 error format OAuth access token. Data format for response. Data format for response. Responses with Content-Type of application/json Media download with context-dependent Content-Type Responses with Content-Type of application/x-protobuf JSONP Selector specifying which fields to include in a partial response. API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. OAuth 2.0 token for the current user. Returns response with indentations and line breaks. Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Legacy upload protocol for media (e.g. "media", "multipart"). Upload protocol for media (e.g. "raw", "multipart"). The user's email address. The special value `me` can be used to indicate the authenticated user. Mark the email as permanently deleted (not TRASH) and only visible in Google Vault to a Vault administrator. Only used for Google Workspace accounts. Source for Gmail's internal date of the message. Source for Gmail's internal date of the message. Internal message date set to current time when received by Gmail. Internal message time based on 'Date' header in email, when valid. Constructs a new Insert media upload instance. Considerations regarding : If is seekable, then the stream position will be reset to 0 before reading commences. If is not seekable, then it will be read from its current position Caller is responsible for maintaining the open until the upload is completed Caller is responsible for closing the Lists the messages in the user's mailbox. For example usage, see [List Gmail messages](https://developers.google.com/workspace/gmail/api/guides/list-messages). The user's email address. The special value `me` can be used to indicate the authenticated user. Lists the messages in the user's mailbox. For example usage, see [List Gmail messages](https://developers.google.com/workspace/gmail/api/guides/list-messages). Constructs a new List request. The user's email address. The special value `me` can be used to indicate the authenticated user. Include messages from `SPAM` and `TRASH` in the results. Only return messages with labels that match all of the specified label IDs. Messages in a thread might have labels that other messages in the same thread don't have. To learn more, see [Manage labels on messages and threads](https://developers.google.com/workspace/gmail/api/guides/labels#manage_labels_on_messages_threads). Maximum number of messages to return. This field defaults to 100. The maximum allowed value for this field is 500. Page token to retrieve a specific page of results in the list. 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"`. Parameter cannot be used when accessing the api using the gmail.metadata scope. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes List parameter list. Modifies the labels on the specified message. The body of the request. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the message to modify. Modifies the labels on the specified message. Constructs a new Modify request. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the message to modify. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Modify parameter list. Sends the specified message to the recipients in the `To`, `Cc`, and `Bcc` headers. For example usage, see [Sending email](https://developers.google.com/workspace/gmail/api/guides/sending). The body of the request. The user's email address. The special value `me` can be used to indicate the authenticated user. Sends the specified message to the recipients in the `To`, `Cc`, and `Bcc` headers. For example usage, see [Sending email](https://developers.google.com/workspace/gmail/api/guides/sending). Constructs a new Send request. The user's email address. The special value `me` can be used to indicate the authenticated user. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Send parameter list. Sends the specified message to the recipients in the `To`, `Cc`, and `Bcc` headers. For example usage, see [Sending email](https://developers.google.com/workspace/gmail/api/guides/sending). Considerations regarding : If is seekable, then the stream position will be reset to 0 before reading commences. If is not seekable, then it will be read from its current position Caller is responsible for maintaining the open until the upload is completed Caller is responsible for closing the The body of the request. The user's email address. The special value `me` can be used to indicate the authenticated user. The stream to upload. See remarks for further information. The content type of the stream to upload. Send media upload which supports resumable upload. V1 error format. V1 error format. v1 error format v2 error format OAuth access token. Data format for response. Data format for response. Responses with Content-Type of application/json Media download with context-dependent Content-Type Responses with Content-Type of application/x-protobuf JSONP Selector specifying which fields to include in a partial response. API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. OAuth 2.0 token for the current user. Returns response with indentations and line breaks. Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Legacy upload protocol for media (e.g. "media", "multipart"). Upload protocol for media (e.g. "raw", "multipart"). The user's email address. The special value `me` can be used to indicate the authenticated user. Constructs a new Send media upload instance. Considerations regarding : If is seekable, then the stream position will be reset to 0 before reading commences. If is not seekable, then it will be read from its current position Caller is responsible for maintaining the open until the upload is completed Caller is responsible for closing the Moves the specified message to the trash. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the message to Trash. Moves the specified message to the trash. Constructs a new Trash request. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the message to Trash. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Trash parameter list. Removes the specified message from the trash. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the message to remove from Trash. Removes the specified message from the trash. Constructs a new Untrash request. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the message to remove from Trash. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Untrash parameter list. Gets the Settings resource. The "settings" collection of methods. The service which this resource belongs to. Constructs a new resource. Gets the Cse resource. The "cse" collection of methods. The service which this resource belongs to. Constructs a new resource. Gets the Identities resource. The "identities" collection of methods. The service which this resource belongs to. Constructs a new resource. Creates and configures a client-side encryption identity that's authorized to send mail from the user account. Google publishes the S/MIME certificate to a shared domain-wide directory so that people within a Google Workspace organization can encrypt and send mail to the identity. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured. The body of the request. The requester's primary email address. To indicate the authenticated user, you can use the special value `me`. Creates and configures a client-side encryption identity that's authorized to send mail from the user account. Google publishes the S/MIME certificate to a shared domain-wide directory so that people within a Google Workspace organization can encrypt and send mail to the identity. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured. Constructs a new Create request. The requester's primary email address. To indicate the authenticated user, you can use the special value `me`. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Create parameter list. Deletes a client-side encryption identity. The authenticated user can no longer use the identity to send encrypted messages. You cannot restore the identity after you delete it. Instead, use the CreateCseIdentity method to create another identity with the same configuration. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured. The requester's primary email address. To indicate the authenticated user, you can use the special value `me`. The primary email address associated with the client-side encryption identity configuration that's removed. Deletes a client-side encryption identity. The authenticated user can no longer use the identity to send encrypted messages. You cannot restore the identity after you delete it. Instead, use the CreateCseIdentity method to create another identity with the same configuration. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured. Constructs a new Delete request. The requester's primary email address. To indicate the authenticated user, you can use the special value `me`. The primary email address associated with the client-side encryption identity configuration that's removed. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Delete parameter list. Retrieves a client-side encryption identity configuration. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured. The requester's primary email address. To indicate the authenticated user, you can use the special value `me`. The primary email address associated with the client-side encryption identity configuration that's retrieved. Retrieves a client-side encryption identity configuration. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured. Constructs a new Get request. The requester's primary email address. To indicate the authenticated user, you can use the special value `me`. The primary email address associated with the client-side encryption identity configuration that's retrieved. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Get parameter list. Lists the client-side encrypted identities for an authenticated user. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured. The requester's primary email address. To indicate the authenticated user, you can use the special value `me`. Lists the client-side encrypted identities for an authenticated user. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured. Constructs a new List request. The requester's primary email address. To indicate the authenticated user, you can use the special value `me`. The number of identities to return. If not provided, the page size will default to 20 entries. Pagination token indicating which page of identities to return. If the token is not supplied, then the API will return the first page of results. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes List parameter list. Associates a different key pair with an existing client-side encryption identity. The updated key pair must validate against Google's [S/MIME certificate profiles](https://support.google.com/a/answer/7300887). For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured. The body of the request. The requester's primary email address. To indicate the authenticated user, you can use the special value `me`. The email address of the client-side encryption identity to update. Associates a different key pair with an existing client-side encryption identity. The updated key pair must validate against Google's [S/MIME certificate profiles](https://support.google.com/a/answer/7300887). For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured. Constructs a new Patch request. The requester's primary email address. To indicate the authenticated user, you can use the special value `me`. The email address of the client-side encryption identity to update. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Patch parameter list. Gets the Keypairs resource. The "keypairs" collection of methods. The service which this resource belongs to. Constructs a new resource. Creates and uploads a client-side encryption S/MIME public key certificate chain and private key metadata for the authenticated user. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured. The body of the request. The requester's primary email address. To indicate the authenticated user, you can use the special value `me`. Creates and uploads a client-side encryption S/MIME public key certificate chain and private key metadata for the authenticated user. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured. Constructs a new Create request. The requester's primary email address. To indicate the authenticated user, you can use the special value `me`. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Create parameter list. Turns off a client-side encryption key pair. The authenticated user can no longer use the key pair to decrypt incoming CSE message texts or sign outgoing CSE mail. To regain access, use the EnableCseKeyPair to turn on the key pair. After 30 days, you can permanently delete the key pair by using the ObliterateCseKeyPair method. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured. The body of the request. The requester's primary email address. To indicate the authenticated user, you can use the special value `me`. The identifier of the key pair to turn off. Turns off a client-side encryption key pair. The authenticated user can no longer use the key pair to decrypt incoming CSE message texts or sign outgoing CSE mail. To regain access, use the EnableCseKeyPair to turn on the key pair. After 30 days, you can permanently delete the key pair by using the ObliterateCseKeyPair method. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured. Constructs a new Disable request. The requester's primary email address. To indicate the authenticated user, you can use the special value `me`. The identifier of the key pair to turn off. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Disable parameter list. Turns on a client-side encryption key pair that was turned off. The key pair becomes active again for any associated client-side encryption identities. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured. The body of the request. The requester's primary email address. To indicate the authenticated user, you can use the special value `me`. The identifier of the key pair to turn on. Turns on a client-side encryption key pair that was turned off. The key pair becomes active again for any associated client-side encryption identities. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured. Constructs a new Enable request. The requester's primary email address. To indicate the authenticated user, you can use the special value `me`. The identifier of the key pair to turn on. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Enable parameter list. Retrieves an existing client-side encryption key pair. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured. The requester's primary email address. To indicate the authenticated user, you can use the special value `me`. The identifier of the key pair to retrieve. Retrieves an existing client-side encryption key pair. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured. Constructs a new Get request. The requester's primary email address. To indicate the authenticated user, you can use the special value `me`. The identifier of the key pair to retrieve. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Get parameter list. Lists client-side encryption key pairs for an authenticated user. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured. The requester's primary email address. To indicate the authenticated user, you can use the special value `me`. Lists client-side encryption key pairs for an authenticated user. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured. Constructs a new List request. The requester's primary email address. To indicate the authenticated user, you can use the special value `me`. The number of key pairs to return. If not provided, the page size will default to 20 entries. Pagination token indicating which page of key pairs to return. If the token is not supplied, then the API will return the first page of results. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes List parameter list. Deletes a client-side encryption key pair permanently and immediately. You can only permanently delete key pairs that have been turned off for more than 30 days. To turn off a key pair, use the DisableCseKeyPair method. Gmail can't restore or decrypt any messages that were encrypted by an obliterated key. Authenticated users and Google Workspace administrators lose access to reading the encrypted messages. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured. The body of the request. The requester's primary email address. To indicate the authenticated user, you can use the special value `me`. The identifier of the key pair to obliterate. Deletes a client-side encryption key pair permanently and immediately. You can only permanently delete key pairs that have been turned off for more than 30 days. To turn off a key pair, use the DisableCseKeyPair method. Gmail can't restore or decrypt any messages that were encrypted by an obliterated key. Authenticated users and Google Workspace administrators lose access to reading the encrypted messages. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured. Constructs a new Obliterate request. The requester's primary email address. To indicate the authenticated user, you can use the special value `me`. The identifier of the key pair to obliterate. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Obliterate parameter list. Gets the Delegates resource. The "delegates" collection of methods. The service which this resource belongs to. Constructs a new resource. Adds a delegate with its verification status set directly to `accepted`, without sending any verification email. The delegate user must be a member of the same Google Workspace organization as the delegator user. Gmail imposes limitations on the number of delegates and delegators each user in a Google Workspace organization can have. These limits depend on your organization, but in general each user can have up to 25 delegates and up to 10 delegators. Note that a delegate user must be referred to by their primary email address, and not an email alias. Also note that when a new delegate is created, there may be up to a one minute delay before the new delegate is available for use. This method is only available to service account clients that have been delegated domain-wide authority. The body of the request. User's email address. The special value "me" can be used to indicate the authenticated user. Adds a delegate with its verification status set directly to `accepted`, without sending any verification email. The delegate user must be a member of the same Google Workspace organization as the delegator user. Gmail imposes limitations on the number of delegates and delegators each user in a Google Workspace organization can have. These limits depend on your organization, but in general each user can have up to 25 delegates and up to 10 delegators. Note that a delegate user must be referred to by their primary email address, and not an email alias. Also note that when a new delegate is created, there may be up to a one minute delay before the new delegate is available for use. This method is only available to service account clients that have been delegated domain-wide authority. Constructs a new Create request. User's email address. The special value "me" can be used to indicate the authenticated user. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Create parameter list. Removes the specified delegate (which can be of any verification status), and revokes any verification that may have been required for using it. Note that a delegate user must be referred to by their primary email address, and not an email alias. This method is only available to service account clients that have been delegated domain-wide authority. User's email address. The special value "me" can be used to indicate the authenticated user. The email address of the user to be removed as a delegate. Removes the specified delegate (which can be of any verification status), and revokes any verification that may have been required for using it. Note that a delegate user must be referred to by their primary email address, and not an email alias. This method is only available to service account clients that have been delegated domain-wide authority. Constructs a new Delete request. User's email address. The special value "me" can be used to indicate the authenticated user. The email address of the user to be removed as a delegate. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Delete parameter list. Gets the specified delegate. Note that a delegate user must be referred to by their primary email address, and not an email alias. This method is only available to service account clients that have been delegated domain-wide authority. User's email address. The special value "me" can be used to indicate the authenticated user. The email address of the user whose delegate relationship is to be retrieved. Gets the specified delegate. Note that a delegate user must be referred to by their primary email address, and not an email alias. This method is only available to service account clients that have been delegated domain-wide authority. Constructs a new Get request. User's email address. The special value "me" can be used to indicate the authenticated user. The email address of the user whose delegate relationship is to be retrieved. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Get parameter list. Lists the delegates for the specified account. This method is only available to service account clients that have been delegated domain-wide authority. User's email address. The special value "me" can be used to indicate the authenticated user. Lists the delegates for the specified account. This method is only available to service account clients that have been delegated domain-wide authority. Constructs a new List request. User's email address. The special value "me" can be used to indicate the authenticated user. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes List parameter list. Gets the Filters resource. The "filters" collection of methods. The service which this resource belongs to. Constructs a new resource. Creates a filter. Note: you can only create a maximum of 1,000 filters. The body of the request. User's email address. The special value "me" can be used to indicate the authenticated user. Creates a filter. Note: you can only create a maximum of 1,000 filters. Constructs a new Create request. User's email address. The special value "me" can be used to indicate the authenticated user. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Create parameter list. Immediately and permanently deletes the specified filter. User's email address. The special value "me" can be used to indicate the authenticated user. The ID of the filter to be deleted. Immediately and permanently deletes the specified filter. Constructs a new Delete request. User's email address. The special value "me" can be used to indicate the authenticated user. The ID of the filter to be deleted. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Delete parameter list. Gets a filter. User's email address. The special value "me" can be used to indicate the authenticated user. The ID of the filter to be fetched. Gets a filter. Constructs a new Get request. User's email address. The special value "me" can be used to indicate the authenticated user. The ID of the filter to be fetched. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Get parameter list. Lists the message filters of a Gmail user. User's email address. The special value "me" can be used to indicate the authenticated user. Lists the message filters of a Gmail user. Constructs a new List request. User's email address. The special value "me" can be used to indicate the authenticated user. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes List parameter list. Gets the ForwardingAddresses resource. The "forwardingAddresses" collection of methods. The service which this resource belongs to. Constructs a new resource. 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. The body of the request. User's email address. The special value "me" can be used to indicate the authenticated user. 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. Constructs a new Create request. User's email address. The special value "me" can be used to indicate the authenticated user. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Create parameter list. 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. User's email address. The special value "me" can be used to indicate the authenticated user. The forwarding address to be deleted. 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. Constructs a new Delete request. User's email address. The special value "me" can be used to indicate the authenticated user. The forwarding address to be deleted. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Delete parameter list. Gets the specified forwarding address. User's email address. The special value "me" can be used to indicate the authenticated user. The forwarding address to be retrieved. Gets the specified forwarding address. Constructs a new Get request. User's email address. The special value "me" can be used to indicate the authenticated user. The forwarding address to be retrieved. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Get parameter list. Lists the forwarding addresses for the specified account. User's email address. The special value "me" can be used to indicate the authenticated user. Lists the forwarding addresses for the specified account. Constructs a new List request. User's email address. The special value "me" can be used to indicate the authenticated user. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes List parameter list. Gets the SendAs resource. The "sendAs" collection of methods. The service which this resource belongs to. Constructs a new resource. Gets the SmimeInfo resource. The "smimeInfo" collection of methods. The service which this resource belongs to. Constructs a new resource. Deletes the specified S/MIME config for the specified send-as alias. The user's email address. The special value `me` can be used to indicate the authenticated user. The email address that appears in the "From:" header for mail sent using this alias. The immutable ID for the SmimeInfo. Deletes the specified S/MIME config for the specified send-as alias. Constructs a new Delete request. The user's email address. The special value `me` can be used to indicate the authenticated user. The email address that appears in the "From:" header for mail sent using this alias. The immutable ID for the SmimeInfo. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Delete parameter list. Gets the specified S/MIME config for the specified send-as alias. The user's email address. The special value `me` can be used to indicate the authenticated user. The email address that appears in the "From:" header for mail sent using this alias. The immutable ID for the SmimeInfo. Gets the specified S/MIME config for the specified send-as alias. Constructs a new Get request. The user's email address. The special value `me` can be used to indicate the authenticated user. The email address that appears in the "From:" header for mail sent using this alias. The immutable ID for the SmimeInfo. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Get parameter list. Insert (upload) the given S/MIME config for the specified send-as alias. Note that pkcs12 format is required for the key. The body of the request. The user's email address. The special value `me` can be used to indicate the authenticated user. The email address that appears in the "From:" header for mail sent using this alias. Insert (upload) the given S/MIME config for the specified send-as alias. Note that pkcs12 format is required for the key. Constructs a new Insert request. The user's email address. The special value `me` can be used to indicate the authenticated user. The email address that appears in the "From:" header for mail sent using this alias. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Insert parameter list. Lists S/MIME configs for the specified send-as alias. The user's email address. The special value `me` can be used to indicate the authenticated user. The email address that appears in the "From:" header for mail sent using this alias. Lists S/MIME configs for the specified send-as alias. Constructs a new List request. The user's email address. The special value `me` can be used to indicate the authenticated user. The email address that appears in the "From:" header for mail sent using this alias. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes List parameter list. Sets the default S/MIME config for the specified send-as alias. The user's email address. The special value `me` can be used to indicate the authenticated user. The email address that appears in the "From:" header for mail sent using this alias. The immutable ID for the SmimeInfo. Sets the default S/MIME config for the specified send-as alias. Constructs a new SetDefault request. The user's email address. The special value `me` can be used to indicate the authenticated user. The email address that appears in the "From:" header for mail sent using this alias. The immutable ID for the SmimeInfo. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes SetDefault parameter list. 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. The body of the request. User's email address. The special value "me" can be used to indicate the authenticated user. 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. Constructs a new Create request. User's email address. The special value "me" can be used to indicate the authenticated user. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Create parameter list. 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. User's email address. The special value "me" can be used to indicate the authenticated user. The send-as alias to be deleted. 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. Constructs a new Delete request. User's email address. The special value "me" can be used to indicate the authenticated user. The send-as alias to be deleted. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Delete parameter list. Gets the specified send-as alias. Fails with an HTTP 404 error if the specified address is not a member of the collection. User's email address. The special value "me" can be used to indicate the authenticated user. The send-as alias to be retrieved. Gets the specified send-as alias. Fails with an HTTP 404 error if the specified address is not a member of the collection. Constructs a new Get request. User's email address. The special value "me" can be used to indicate the authenticated user. The send-as alias to be retrieved. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Get parameter 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. User's email address. The special value "me" can be used to indicate the authenticated user. 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. Constructs a new List request. User's email address. The special value "me" can be used to indicate the authenticated user. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes List parameter list. Patch the specified send-as alias. The body of the request. User's email address. The special value "me" can be used to indicate the authenticated user. The send-as alias to be updated. Patch the specified send-as alias. Constructs a new Patch request. User's email address. The special value "me" can be used to indicate the authenticated user. The send-as alias to be updated. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Patch parameter list. 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. The body of the request. User's email address. The special value "me" can be used to indicate the authenticated user. The send-as alias to be updated. 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. Constructs a new Update request. User's email address. The special value "me" can be used to indicate the authenticated user. The send-as alias to be updated. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Update parameter list. 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. User's email address. The special value "me" can be used to indicate the authenticated user. The send-as alias to be verified. 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. Constructs a new Verify request. User's email address. The special value "me" can be used to indicate the authenticated user. The send-as alias to be verified. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Verify parameter list. Gets the auto-forwarding setting for the specified account. User's email address. The special value "me" can be used to indicate the authenticated user. Gets the auto-forwarding setting for the specified account. Constructs a new GetAutoForwarding request. User's email address. The special value "me" can be used to indicate the authenticated user. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes GetAutoForwarding parameter list. Gets IMAP settings. User's email address. The special value "me" can be used to indicate the authenticated user. Gets IMAP settings. Constructs a new GetImap request. User's email address. The special value "me" can be used to indicate the authenticated user. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes GetImap parameter list. Gets language settings. User's email address. The special value "me" can be used to indicate the authenticated user. Gets language settings. Constructs a new GetLanguage request. User's email address. The special value "me" can be used to indicate the authenticated user. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes GetLanguage parameter list. Gets POP settings. User's email address. The special value "me" can be used to indicate the authenticated user. Gets POP settings. Constructs a new GetPop request. User's email address. The special value "me" can be used to indicate the authenticated user. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes GetPop parameter list. Gets vacation responder settings. User's email address. The special value "me" can be used to indicate the authenticated user. Gets vacation responder settings. Constructs a new GetVacation request. User's email address. The special value "me" can be used to indicate the authenticated user. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes GetVacation parameter list. 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. The body of the request. User's email address. The special value "me" can be used to indicate the authenticated user. 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. Constructs a new UpdateAutoForwarding request. User's email address. The special value "me" can be used to indicate the authenticated user. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes UpdateAutoForwarding parameter list. Updates IMAP settings. The body of the request. User's email address. The special value "me" can be used to indicate the authenticated user. Updates IMAP settings. Constructs a new UpdateImap request. User's email address. The special value "me" can be used to indicate the authenticated user. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes UpdateImap parameter list. Updates language settings. If successful, the return object contains the `displayLanguage` that was saved for the user, which may differ from the value passed into the request. This is because the requested `displayLanguage` may not be directly supported by Gmail but have a close variant that is, and so the variant may be chosen and saved instead. The body of the request. User's email address. The special value "me" can be used to indicate the authenticated user. Updates language settings. If successful, the return object contains the `displayLanguage` that was saved for the user, which may differ from the value passed into the request. This is because the requested `displayLanguage` may not be directly supported by Gmail but have a close variant that is, and so the variant may be chosen and saved instead. Constructs a new UpdateLanguage request. User's email address. The special value "me" can be used to indicate the authenticated user. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes UpdateLanguage parameter list. Updates POP settings. The body of the request. User's email address. The special value "me" can be used to indicate the authenticated user. Updates POP settings. Constructs a new UpdatePop request. User's email address. The special value "me" can be used to indicate the authenticated user. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes UpdatePop parameter list. Updates vacation responder settings. The body of the request. User's email address. The special value "me" can be used to indicate the authenticated user. Updates vacation responder settings. Constructs a new UpdateVacation request. User's email address. The special value "me" can be used to indicate the authenticated user. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes UpdateVacation parameter list. Gets the Threads resource. The "threads" collection of methods. The service which this resource belongs to. Constructs a new resource. Immediately and permanently deletes the specified thread. Any messages that belong to the thread are also deleted. This operation cannot be undone. Prefer `threads.trash` instead. The user's email address. The special value `me` can be used to indicate the authenticated user. ID of the Thread to delete. Immediately and permanently deletes the specified thread. Any messages that belong to the thread are also deleted. This operation cannot be undone. Prefer `threads.trash` instead. Constructs a new Delete request. The user's email address. The special value `me` can be used to indicate the authenticated user. ID of the Thread to delete. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Delete parameter list. Gets the specified thread. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the thread to retrieve. Gets the specified thread. Constructs a new Get request. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the thread to retrieve. The format to return the messages in. The format to return the messages in. Returns the full email message data with body content parsed in the `payload` field; the `raw` field is not used. Format cannot be used when accessing the api using the gmail.metadata scope. Returns only email message IDs, labels, and email headers. Returns only email message IDs and labels; does not return the email headers, body, or payload. When given and format is METADATA, only include headers specified. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Get parameter list. Lists the threads in the user's mailbox. The user's email address. The special value `me` can be used to indicate the authenticated user. Lists the threads in the user's mailbox. Constructs a new List request. The user's email address. The special value `me` can be used to indicate the authenticated user. Include threads from `SPAM` and `TRASH` in the results. Only return threads with labels that match all of the specified label IDs. Maximum number of threads to return. This field defaults to 100. The maximum allowed value for this field is 500. Page token to retrieve a specific page of results in the list. 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. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes List parameter list. Modifies the labels applied to the thread. This applies to all messages in the thread. The body of the request. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the thread to modify. Modifies the labels applied to the thread. This applies to all messages in the thread. Constructs a new Modify request. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the thread to modify. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Modify parameter list. Moves the specified thread to the trash. Any messages that belong to the thread are also moved to the trash. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the thread to Trash. Moves the specified thread to the trash. Any messages that belong to the thread are also moved to the trash. Constructs a new Trash request. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the thread to Trash. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Trash parameter list. Removes the specified thread from the trash. Any messages that belong to the thread are also removed from the trash. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the thread to remove from Trash. Removes the specified thread from the trash. Any messages that belong to the thread are also removed from the trash. Constructs a new Untrash request. The user's email address. The special value `me` can be used to indicate the authenticated user. The ID of the thread to remove from Trash. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Untrash parameter list. Gets the current user's Gmail profile. The user's email address. The special value `me` can be used to indicate the authenticated user. Gets the current user's Gmail profile. Constructs a new GetProfile request. The user's email address. The special value `me` can be used to indicate the authenticated user. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes GetProfile parameter list. Stop receiving push notifications for the given user mailbox. The user's email address. The special value `me` can be used to indicate the authenticated user. Stop receiving push notifications for the given user mailbox. Constructs a new Stop request. The user's email address. The special value `me` can be used to indicate the authenticated user. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Stop parameter list. Set up or update a push notification watch on the given user mailbox. The body of the request. The user's email address. The special value `me` can be used to indicate the authenticated user. Set up or update a push notification watch on the given user mailbox. Constructs a new Watch request. The user's email address. The special value `me` can be used to indicate the authenticated user. Gets or sets the body of this request. Returns the body of the request. Gets the method name. Gets the HTTP method. Gets the REST path. Initializes Watch parameter list. Auto-forwarding settings for an account. The state that a message should be left in after it has been forwarded. Email address to which all incoming messages are forwarded. This email address must be a verified member of the forwarding addresses. Whether all incoming mail is automatically forwarded to another address. The ETag of the item. The IDs of the messages to delete. The ETag of the item. A list of label IDs to add to messages. The IDs of the messages to modify. There is a limit of 1000 ids per request. A list of label IDs to remove from messages. The ETag of the item. Field values for a classification label. Required. The field ID for the Classification Label Value. Maps to the ID field of the Google Drive `Label.Field` object. Selection choice ID for the selection option. Should only be set if the field type is `SELECTION` in the Google Drive `Label.Field` object. Maps to the id field of the Google Drive `Label.Field.SelectionOptions` resource. The ETag of the item. Classification Labels applied to the email message. Classification Labels are different from Gmail inbox labels. Only used for Google Workspace accounts. [Learn more about classification labels](https://support.google.com/a/answer/9292382). Field values for the given classification label ID. Required. The canonical or raw alphanumeric classification label ID. Maps to the ID field of the Google Drive Label resource. The ETag of the item. The client-side encryption (CSE) configuration for the email address of an authenticated user. Gmail uses CSE configurations to save drafts of client-side encrypted email messages, and to sign and send encrypted email messages. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured. The email address for the sending identity. The email address must be the primary email address of the authenticated user. If a key pair is associated, the ID of the key pair, CseKeyPair. The configuration of a CSE identity that uses different key pairs for signing and encryption. The ETag of the item. A client-side encryption S/MIME key pair, which is comprised of a public key, its certificate chain, and metadata for its paired private key. Gmail uses the key pair to complete the following tasks: - Sign outgoing client-side encrypted messages. - Save and reopen drafts of client-side encrypted messages. - Save and reopen sent messages. - Decrypt incoming or archived S/MIME messages. For administrators managing identities and keypairs for users in their organization, requests require authorization with a [service account](https://developers.google.com/identity/protocols/OAuth2ServiceAccount) that has [domain-wide delegation authority](https://developers.google.com/identity/protocols/OAuth2ServiceAccount#delegatingauthority) to impersonate users with the `https://www.googleapis.com/auth/gmail.settings.basic` scope. For users managing their own identities and keypairs, requests require [hardware key encryption](https://support.google.com/a/answer/14153163) turned on and configured. Output only. If a key pair is set to `DISABLED`, the time that the key pair's state changed from `ENABLED` to `DISABLED`. This field is present only when the key pair is in state `DISABLED`. representation of . representation of . Output only. The current state of the key pair. Output only. The immutable ID for the client-side encryption S/MIME key pair. Output only. The public key and its certificate chain, in [PEM](https://en.wikipedia.org/wiki/Privacy-Enhanced_Mail) format. Input only. The public key and its certificate chain. The chain must be in [PKCS#7](https://en.wikipedia.org/wiki/PKCS_7) format and use PEM encoding and ASCII armor. Metadata for instances of this key pair's private key. Output only. The email address identities that are specified on the leaf certificate. The ETag of the item. Metadata for a private key instance. Metadata for hardware keys. Metadata for a private key instance managed by an external key access control list service. Output only. The immutable ID for the private key metadata instance. The ETag of the item. Settings for a delegate. Delegates can read, send, and delete messages, as well as view and add contacts, for the delegator's account. See "Set up mail delegation" for more information about delegates. The email address of the delegate. Indicates whether this address has been verified and can act as a delegate for the account. Read-only. The ETag of the item. Requests to turn off a client-side encryption key pair. The ETag of the item. A draft email in the user's mailbox. The immutable ID of the draft. The message content of the draft. The ETag of the item. Requests to turn on a client-side encryption key pair. The ETag of the item. Resource definition for Gmail filters. Filters apply to specific messages instead of an entire email thread. Action that the filter performs. Matching criteria for the filter. The server assigned ID of the filter. The ETag of the item. A set of actions to perform on a message. List of labels to add to the message. Email address that the message should be forwarded to. List of labels to remove from the message. The ETag of the item. Message matching criteria. Whether the response should exclude chats. The sender's display name or email address. Whether the message has any attachment. 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"`. 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"`. The size of the entire RFC822 message in bytes, including all headers and attachments. How the message size in bytes should be in relation to the size field. Case-insensitive phrase found in the message's subject. Trailing and leading whitespace are be trimmed and adjacent spaces are collapsed. 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. The ETag of the item. Settings for a forwarding address. An email address to which messages can be forwarded. Indicates whether this address has been verified and is usable for forwarding. Read-only. The ETag of the item. Metadata for hardware keys. If [hardware key encryption](https://support.google.com/a/answer/14153163) is set up for the Google Workspace organization, users can optionally store their private key on their smart card and use it to sign and decrypt email messages in Gmail by inserting their smart card into a reader attached to their Windows device. Description about the hardware key. The ETag of the item. A record of a change to the user's mailbox. Each history change may affect multiple messages in multiple ways. The mailbox sequence ID. Labels added to messages in this history record. Labels removed from messages in this history record. 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 added to the mailbox in this history record. Messages deleted (not Trashed) from the mailbox in this history record. The ETag of the item. Label IDs added to the message. The ETag of the item. Label IDs removed from the message. The ETag of the item. The ETag of the item. The ETag of the item. IMAP settings for an account. 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. Whether IMAP is enabled for the account. The action that will be executed on a message when it is marked as deleted and expunged from the last visible IMAP folder. 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. The ETag of the item. Metadata for private keys managed by an external key access control list service. For details about managing key access, see [Google Workspace CSE API Reference](https://developers.google.com/workspace/cse/reference). Opaque data generated and used by the key access control list service. Maximum size: 8 KiB. The URI of the key access control list service that manages the private key. The ETag of the item. Labels are used to categorize messages and threads within the user's mailbox. The maximum number of labels supported for a user's mailbox is 10,000. The color to assign to the label. Color is only available for labels that have their `type` set to `user`. The immutable ID of the label. The visibility of the label in the label list in the Gmail web interface. The visibility of messages with this label in the message list in the Gmail web interface. The total number of messages with the label. The number of unread messages with the label. The display name of the label. The total number of threads with the label. The number of unread threads with the label. 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. The ETag of the item. The background color represented as hex string #RRGGBB (ex #000000). This field is required in order to set the color of a label. Only the following predefined set of color values are allowed: \#000000, #434343, #666666, #999999, #cccccc, #efefef, #f3f3f3, #ffffff, \#fb4c2f, #ffad47, #fad165, #16a766, #43d692, #4a86e8, #a479e2, #f691b3, \#f6c5be, #ffe6c7, #fef1d1, #b9e4d0, #c6f3de, #c9daf8, #e4d7f5, #fcdee8, \#efa093, #ffd6a2, #fce8b3, #89d3b2, #a0eac9, #a4c2f4, #d0bcf1, #fbc8d9, \#e66550, #ffbc6b, #fcda83, #44b984, #68dfa9, #6d9eeb, #b694e8, #f7a7c0, \#cc3a21, #eaa041, #f2c960, #149e60, #3dc789, #3c78d8, #8e63ce, #e07798, \#ac2b16, #cf8933, #d5ae49, #0b804b, #2a9c68, #285bac, #653e9b, #b65775, \#822111, #a46a21, #aa8831, #076239, #1a764d, #1c4587, #41236d, #83334c \#464646, #e7e7e7, #0d3472, #b6cff5, #0d3b44, #98d7e4, #3d188e, #e3d7ff, \#711a36, #fbd3e0, #8a1c0a, #f2b2a8, #7a2e0b, #ffc8af, #7a4706, #ffdeb5, \#594c05, #fbe983, #684e07, #fdedc1, #0b4f30, #b3efd3, #04502e, #a2dcc1, \#c2c2c2, #4986e7, #2da2bb, #b99aff, #994a64, #f691b2, #ff7537, #ffad46, \#662e37, #ebdbde, #cca6ac, #094228, #42d692, #16a765 The text color of the label, represented as hex string. This field is required in order to set the color of a label. Only the following predefined set of color values are allowed: \#000000, #434343, #666666, #999999, #cccccc, #efefef, #f3f3f3, #ffffff, \#fb4c2f, #ffad47, #fad165, #16a766, #43d692, #4a86e8, #a479e2, #f691b3, \#f6c5be, #ffe6c7, #fef1d1, #b9e4d0, #c6f3de, #c9daf8, #e4d7f5, #fcdee8, \#efa093, #ffd6a2, #fce8b3, #89d3b2, #a0eac9, #a4c2f4, #d0bcf1, #fbc8d9, \#e66550, #ffbc6b, #fcda83, #44b984, #68dfa9, #6d9eeb, #b694e8, #f7a7c0, \#cc3a21, #eaa041, #f2c960, #149e60, #3dc789, #3c78d8, #8e63ce, #e07798, \#ac2b16, #cf8933, #d5ae49, #0b804b, #2a9c68, #285bac, #653e9b, #b65775, \#822111, #a46a21, #aa8831, #076239, #1a764d, #1c4587, #41236d, #83334c \#464646, #e7e7e7, #0d3472, #b6cff5, #0d3b44, #98d7e4, #3d188e, #e3d7ff, \#711a36, #fbd3e0, #8a1c0a, #f2b2a8, #7a2e0b, #ffc8af, #7a4706, #ffdeb5, \#594c05, #fbe983, #684e07, #fdedc1, #0b4f30, #b3efd3, #04502e, #a2dcc1, \#c2c2c2, #4986e7, #2da2bb, #b99aff, #994a64, #f691b2, #ff7537, #ffad46, \#662e37, #ebdbde, #cca6ac, #094228, #42d692, #16a765 The ETag of the item. Language settings for an account. These settings correspond to the "Language settings" feature in the web interface. The language to display Gmail in, formatted as an RFC 3066 Language Tag (for example `en-GB`, `fr` or `ja` for British English, French, or Japanese respectively). The set of languages supported by Gmail evolves over time, so please refer to the "Language" dropdown in the Gmail settings for all available options, as described in the language settings help article. For a table of sample values, see [Manage language settings](https://developers.google.com/workspace/gmail/api/guides/language-settings). Not all Gmail clients can display the same set of languages. In the case that a user's display language is not available for use on a particular client, said client automatically chooses to display in the closest supported variant (or a reasonable default). The ETag of the item. One page of the list of CSE identities configured for the user. Pagination token to be passed to a subsequent ListCseIdentities call in order to retrieve the next page of identities. If this value is not returned or is the empty string, then no further pages remain. The ETag of the item. One page of the list of CSE key pairs installed for the user. Pagination token to be passed to a subsequent ListCseKeyPairs call in order to retrieve the next page of key pairs. If this value is not returned, then no further pages remain. The ETag of the item. Response for the ListDelegates method. List of the user's delegates (with any verification status). If an account doesn't have delegates, this field doesn't appear. The ETag of the item. List of drafts. Note that the `Message` property in each `Draft` resource only contains an `id` and a `threadId`. The [`messages.get`](https://developers.google.com/workspace/gmail/api/v1/reference/users/messages/get) method can fetch additional message details. Token to retrieve the next page of results in the list. Estimated total number of results. The ETag of the item. Response for the ListFilters method. List of a user's filters. The ETag of the item. Response for the ListForwardingAddresses method. List of addresses that may be used for forwarding. The ETag of the item. List of history records. Any `messages` contained in the response will typically only have `id` and `threadId` fields populated. The ID of the mailbox's current history record. Page token to retrieve the next page of results in the list. The ETag of the item. List of labels. Note that each label resource only contains an `id`, `name`, `messageListVisibility`, `labelListVisibility`, and `type`. The [`labels.get`](https://developers.google.com/workspace/gmail/api/v1/reference/users/labels/get) method can fetch additional label details. The ETag of the item. List of messages. Note that each message resource contains only an `id` and a `threadId`. Additional message details can be fetched using the messages.get method. Token to retrieve the next page of results in the list. Estimated total number of results. The ETag of the item. Response for the ListSendAs method. List of send-as aliases. The ETag of the item. List of SmimeInfo. The ETag of the item. Page token to retrieve the next page of results in the list. Estimated total number of results. List of threads. Note that each thread resource does not contain a list of `messages`. The list of `messages` for a given thread can be fetched using the [`threads.get`](https://developers.google.com/workspace/gmail/api/v1/reference/users/threads/get) method. The ETag of the item. An email message. Classification Label values on the message. Available Classification Label schemas can be queried using the Google Drive Labels API. Each classification label ID must be unique. If duplicate IDs are provided, only one will be retained, and the selection is arbitrary. Only used for Google Workspace accounts. The ID of the last history record that modified this message. The immutable ID of the message. 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. List of IDs of labels applied to this message. The parsed email structure in the message parts. 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. Estimated size in bytes of the message. A short part of the message text. The ID of the thread the message belongs to. To add a message or draft to a thread, the following criteria must be met: 1. The requested `threadId` must be specified on the `Message` or `Draft.Message` you supply with your request. 2. The `References` and `In-Reply-To` headers must be set in compliance with the [RFC 2822](https://tools.ietf.org/html/rfc2822) standard. 3. The `Subject` headers must match. The ETag of the item. A single MIME message part. The message part body for this part, which may be empty for container MIME message parts. The filename of the attachment. Only present if this message part represents an attachment. 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`. The MIME type of the message part. The immutable ID of the message part. 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. The ETag of the item. The body of a single MIME message part. 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. 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. Number of bytes for the message part data (encoding notwithstanding). The ETag of the item. The name of the header before the `:` separator. For example, `To`. The value of the header after the `:` separator. For example, `someuser@example.com`. The ETag of the item. A list of IDs of labels to add to this message. You can add up to 100 labels with each update. A list IDs of labels to remove from this message. You can remove up to 100 labels with each update. The ETag of the item. A list of IDs of labels to add to this thread. You can add up to 100 labels with each update. A list of IDs of labels to remove from this thread. You can remove up to 100 labels with each update. The ETag of the item. Request to obliterate a CSE key pair. The ETag of the item. POP settings for an account. The range of messages which are accessible via POP. The action that will be executed on a message after it has been fetched via POP. The ETag of the item. Profile for a Gmail user. The user's email address. The ID of the mailbox's current history record. The total number of messages in the mailbox. The total number of threads in the mailbox. The ETag of the item. 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. 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. If the admin has disabled the ability for users to update their name format, requests to update this field for the primary login will silently fail. 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. 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. 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. The email address that appears in the "From:" header for mail sent using this alias. This is read-only for all operations except create. An optional HTML signature that is included in messages composed with this alias in the Gmail web UI. This signature is added to new emails only. 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. Whether Gmail should treat this address as an alias for the user's primary email address. This setting only applies to custom "from" aliases. Indicates whether this address has been verified for use as a send-as alias. Read-only. This setting only applies to custom "from" aliases. The ETag of the item. The configuration of a CSE identity that uses different key pairs for signing and encryption. The ID of the CseKeyPair that encrypts signed outgoing mail. The ID of the CseKeyPair that signs outgoing mail. The ETag of the item. An S/MIME email config. Encrypted key password, when key is encrypted. When the certificate expires (in milliseconds since epoch). The immutable ID for the SmimeInfo. Whether this SmimeInfo is the default one for this user's send-as address. The S/MIME certificate issuer's common name. 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). 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. The ETag of the item. Configuration for communication with an SMTP service. The hostname of the SMTP service. Required. 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. The port of the SMTP service. Required. The protocol that will be used to secure communication with the SMTP service. Required. 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. The ETag of the item. A collection of messages representing a conversation. The ID of the last history record that modified this thread. The unique ID of the thread. The list of messages in the thread. A short part of the message text. The ETag of the item. Vacation auto-reply settings for an account. These settings correspond to the "Vacation responder" feature in the web interface. Flag that controls whether Gmail automatically replies to messages. 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`. Response body in HTML format. Gmail will sanitize the HTML before storing it. If both `response_body_plain_text` and `response_body_html` are specified, `response_body_html` will be used. Response body in plain text format. If both `response_body_plain_text` and `response_body_html` are specified, `response_body_html` will be used. 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. Flag that determines whether responses are sent to recipients who are not in the user's list of contacts. Flag that determines whether responses are sent to recipients who are outside of the user's domain. This feature is only available for Google Workspace users. 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`. The ETag of the item. Set up or update a new push notification watch on this user's mailbox. Filtering behavior of `labelIds list` specified. This field is deprecated because it caused incorrect behavior in some cases; use `label_filter_behavior` instead. Filtering behavior of `labelIds list` specified. This field replaces `label_filter_action`; if set, `label_filter_action` is ignored. 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. 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). The ETag of the item. Push notification watch response. When Gmail will stop sending notifications for mailbox updates (epoch millis). Call `watch` again before this time to renew the watch. The ID of the mailbox's current history record. The ETag of the item.