如果您升級至少一項資源,控制台就會改用 Cloud Translation API,而非 AutoML API。 Google Cloud 因此,在 Google Cloud 控制台中建立新資料集時,系統預設會建立原生資料集。這項變更會套用至專案層級,因此專案的其他使用者也會看到這項變更。如要建立舊版資料集,請選取建立舊版資料集選項,或使用 AutoML API。
訓練新的自訂模型時, Google Cloud 控制台會使用 AutoML API 或 Cloud Translation API,視資料集而定。如果是舊版資料集,控制台會使用 AutoML API 建立舊版模型。如果是原生資料集, Google Cloud 控制台會使用 Cloud Translation API 建立原生模型。
Cloud Translation API
如要透過 Cloud Translation API 管理原生資源,您必須更新程式碼,使用正確的資源 ID 呼叫正確的 API。舉例來說,如果您有呼叫 AutoML API 並參照舊版資源 ID 的指令,則需要更新這些指令,改為呼叫 Cloud Translation API 並參照原生資源 ID。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-09-04 (世界標準時間)。"],[],[],null,["# Upgrade AutoML resources\n========================\n\nIf you have existing resources that were created by using the AutoML API,\nyou can upgrade those resources to manage them through the\nCloud Translation - Advanced API without any service interruptions or additional\ncosts. During the upgrade, Cloud Translation copies your AutoML\n(legacy) resources, such as datasets and models, and creates new\nCloud Translation (native) resources through the Cloud Translation API.\n\nWe recommend that you use Cloud Translation because future enhancements to\ndatasets and customs models will apply only to Cloud Translation. Upgraded\nresources can take advantage of those future enhancements such as additional\nlanguage pair support.\n\nThere's no requirement to upgrade your resources. You can still use the\nAutoML API, which will continue to be available.\n\nUpgrade considerations\n----------------------\n\nAfter upgrading, your native and legacy resources exist together but are managed\nby different APIs. To access and manage the upgraded resources, you must use the\nCloud Translation API, not the AutoML API.\n\nThe native resources are identical to legacy resources except for their resource\nIDs. Cloud Translation doesn't make any changes to legacy resources. You can\ncontinue to work with your legacy resources as before.\n\nYou can choose to upgrade some or all of your resources. When you upgrade a\ndataset, any models that are associated with that dataset are also automatically\nupgraded. Only models without an underlying dataset (like in cases where the\nassociated dataset was deleted) can be manually upgraded on their own.\n\n### Differences between legacy and native resources\n\nThe following table outlines the differences between legacy and native\nresources.\n\n### Google Cloud console behavior post upgrade\n\nIf you upgrade at least one resource, the Google Cloud console switches to\nusing the Cloud Translation API instead of the AutoML API. So, when you create\nnew datasets in the Google Cloud console, you create native datasets by\ndefault. This change happens at the project level, so other users of your\nproject also see this change. To create a legacy dataset, you must select the\ncreate legacy dataset option or use the AutoML API.\n\nWhen training new custom models, the Google Cloud console uses the\nAutoML API or Cloud Translation API, depending on the dataset. For legacy\ndatasets, the console uses the AutoML API to create legacy models. For\nnative datasets, the Google Cloud console uses the Cloud Translation API to\ncreate native models.\n\n### Cloud Translation API\n\nTo manage native resources through the Cloud Translation API, you need to update\nyour code to call the correct APIs with the correct resource IDs. For example,\nif you have commands that call the AutoML API and reference legacy resource\nIDs, you need to update those commands to call the Cloud Translation API and\nreference the native resource IDs.\n\nFor more information about the Cloud Translation API, see the\n[projects.locations.datasets](/translate/docs/reference/rest/v3/projects.locations.datasets) and\n[projects.locations.models](/translate/docs/reference/rest/v3/projects.locations.models) resources.\n\nUpgrade resources\n-----------------\n\nUse the Google Cloud console to upgrade existing AutoML resources to\nCloud Translation resources.\n\n1. Go to the Cloud Translation console.\n\n [Go to the\n Translation page](https://console.cloud.google.com/translation)\n2. Click **Datasets** to view your existing datasets.\n\n3. Click **Upgrade** to open the **Upgrade dataset** pane, which lists the\n datasets that you can upgrade.\n\n When you upgrade a dataset, any model that's associated with that dataset\n is also automatically upgraded.\n4. Select the datasets to upgrade, and then click **Start upgrading**.\n\n On the **Datasets** page, the Google Cloud console lists your upgraded and\n legacy datasets in separate tables.\n5. To manually upgrade models, in the navigation pane, click **Models** to view\n your existing models.\n\n You can manually upgrade only models without an underlying dataset (like if\n the model's associated dataset was deleted).\n6. Click **Upgrade** to open the **Upgrade model** pane.\n\n7. Select the models to upgrade, and the click **Start upgrading**.\n\n On the **Models** page, the Google Cloud console lists your upgraded and\n legacy models in separate tables.\n\nAfter you upgrade your resources, consider making the following changes:\n\n- Update existing code to use the Cloud Translation API and newly created resources. For more information, see [Create and manage datasets](/translate/docs/advanced/automl-datasets) and [Create and manage models](/translate/docs/advanced/automl-models).\n- For translation predictions, use the Cloud Translation API instead of the AutoML API. For more information, see [translating text with a custom\n model](/translate/docs/advanced/translating-text-v3).\n\nDelete legacy resources\n-----------------------\n\nAfter you have fully migrated to using the new resources and the\nCloud Translation API, you can remove your legacy resources so that you only have a\nsingle set of resources to work with.\n\n1. Go to the Cloud Translation console.\n\n [Go to the\n Translation page](https://console.cloud.google.com/translation)\n2. In the navigation pane, click **Datasets** to view legacy datasets.\n\n3. For each dataset in the **Legacy datasets** table, select more_vert **More \\\u003e Delete** and then click\n **Confirm**.\n\n4. In the navigation pane, click **Models** to view legacy models.\n\n5. For each model in the **Legacy models** table, select more_vert **More \\\u003e Delete** and then click\n **Confirm**."]]