公告:凡是在
2025 年 4 月 15 日前註冊使用 Earth Engine 的非商業專案,都必須
驗證非商業用途資格,才能繼續存取 Earth Engine。
ee.data.setDefaultWorkloadTag
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
設定工作負載標記,並做為重設回預設值的標記。
舉例來說,呼叫 ee.data.resetWorkloadTag()
會將工作負載標記重設為您在此選擇的預設值。如要將預設值重設為無,請傳入空白字串或將 true 傳入 ee.data.resetWorkloadTag(true)
,如下所示。
工作負載標記長度必須介於 1 至 63 個半形字元之間,且開頭和結尾須為英數字元 ([a-z0-9A-Z]),中間須包含破折號 (-)、底線 (_)、點號 (.) 和英數字元。
(.),以及介於兩者之間的英數字元,或是空白字串 (可將預設值重設為無)。
用量 | 傳回 |
---|
ee.data.setDefaultWorkloadTag(tag) | |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-07-26 (世界標準時間)。
[null,null,["上次更新時間: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 | |"]]