枚举 | |
---|---|
minimal |
仅返回电子邮件 ID 和标签;不返回电子邮件标头、正文或载荷。 |
full |
返回完整的电子邮件消息数据,其中正文内容已解析为 payload 字段;raw 字段不使用。使用 gmail.metadata 范围访问 API 时无法使用格式。 |
raw |
返回包含 raw 字段中的正文内容的完整电子邮件消息数据,以 base64url 编码的字符串的形式;payload 字段不使用。使用 gmail.metadata 范围访问 API 时无法使用格式。 |
metadata |
仅返回电子邮件 ID、标签和电子邮件标头。 |
Format
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],[],null,["# Format\n\n| Enums ||\n|------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `minimal` | Returns only email message ID and labels; does not return the email headers, body, or payload. |\n| `full` | 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. |\n| `raw` | 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. |\n| `metadata` | Returns only email message ID, labels, and email headers. |"]]