公告:所有在
2025 年 4 月 15 日之前注册使用 Earth Engine 的非商业项目都必须
验证是否符合非商业性质的资格条件,才能继续使用 Earth Engine。
ee.data.setDefaultWorkloadTag
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
设置工作负载标记,并将其设为要重置回到的默认标记。
例如,调用 ee.data.resetWorkloadTag()
会将工作负载标记重置为此处选择的默认值。如需将默认值重置为无,请传入空字符串或向 ee.data.resetWorkloadTag(true)
传入 true,如下所示。
工作负载标记必须为 1-63 个字符,以字母数字字符 ([a-z0-9A-Z]) 开头和结尾,中间可以有短划线 (-)、下划线 (_)、点
中间可以使用短划线 (-)、下划线 (_)、点 (.) 和字母数字字符,也可以使用空字符串将默认值重置为无。
用法 | 返回 |
---|
ee.data.setDefaultWorkloadTag(tag) | |
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-26。
[null,null,["最后更新时间 (UTC):2025-07-26。"],[[["\u003cp\u003eSets the default workload tag used by Earth Engine for tracking and managing API requests.\u003c/p\u003e\n"],["\u003cp\u003eCalling \u003ccode\u003eee.data.resetWorkloadTag()\u003c/code\u003e will revert the workload tag to this default.\u003c/p\u003e\n"],["\u003cp\u003eThe workload tag can be reset to none by providing an empty string or using \u003ccode\u003eee.data.resetWorkloadTag(true)\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eValid workload tags are 1-63 characters long and follow specific formatting rules with alphanumeric start and end, allowing dashes, underscores, dots and alphanumerics in between.\u003c/p\u003e\n"]]],[],null,["# ee.data.setDefaultWorkloadTag\n\n\u003cbr /\u003e\n\nSets the workload tag, and as the default for which to reset back to.\n\n\u003cbr /\u003e\n\nFor example, calling `ee.data.resetWorkloadTag()` will reset the workload tag back to the default chosen here. To reset the default back to none, pass in an empty string or pass in true to `ee.data.resetWorkloadTag(true)`, like so.\n\nWorkload tag must be 1 - 63 characters, beginning and ending with an alphanumeric character (\\[a-z0-9A-Z\\]) with dashes (-), underscores (_), dots\n\n(.), and alphanumerics between, or an empty string to reset the default back to none.\n\n| Usage | Returns |\n|--------------------------------------|---------|\n| `ee.data.setDefaultWorkloadTag(tag)` | |\n\n| Argument | Type | Details |\n|----------|--------|---------|\n| `tag` | String | |"]]