Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Menunggu hingga operasi jangka panjang yang ditentukan selesai atau mencapai waktu tunggu maksimum yang ditentukan, yang menampilkan status terbaru. Jika operasi sudah selesai, status terbaru segera ditampilkan. Jika waktu tunggu yang ditentukan lebih besar daripada waktu tunggu HTTP/RPC default, waktu tunggu HTTP/RPC akan digunakan. Jika server tidak mendukung metode ini, google.rpc.Code.UNIMPLEMENTED akan ditampilkan. Perhatikan bahwa metode ini atas dasar upaya terbaik. Fungsi ini dapat menampilkan status terbaru sebelum waktu tunggu yang ditentukan (termasuk seketika), yang berarti bahkan respons langsung tidak menjamin bahwa operasi selesai.
Permintaan HTTP
POST https://{TRANSLATION_GDC_ENDPOINT}/v3/{name}:wait
Parameter jalur
Parameter
name
string
Nama resource operasi untuk ditunggu.
Isi permintaan
Isi permintaan memuat data dengan struktur berikut:
Durasi maksimum untuk menunggu sebelum waktu habis. Jika dibiarkan kosong, waktu menunggu paling lama adalah yang diizinkan oleh protokol HTTP / RPC yang mendasarinya. Jika batas waktu RPC juga ditentukan, yang lebih singkat akan digunakan.
Durasi dalam detik dengan maksimal sembilan digit pecahan, yang diakhiri dengan 's'. Contoh: "3.5s".
Isi respons
Jika berhasil, isi respons akan berisi instance Operation.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-29 UTC."],[[["\u003cp\u003eThis operation waits for a long-running process to complete or until a specified timeout, returning the latest state of the operation.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ename\u003c/code\u003e parameter in the request path indicates the specific operation to wait for.\u003c/p\u003e\n"],["\u003cp\u003eThe request body can include a \u003ccode\u003etimeout\u003c/code\u003e field, which is a string in duration format that sets the maximum wait time, otherwise the HTTP/RPC timeout will apply.\u003c/p\u003e\n"],["\u003cp\u003eA successful response will return an instance of an Operation object.\u003c/p\u003e\n"],["\u003cp\u003eThis operation requires one of two specific OAuth scopes: \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-translation\u003c/code\u003e or \u003ccode\u003ehttps://www.googleapis.com/auth/cloud-platform\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Method: projects.operations.wait\n\nWaits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is immediately returned. If the timeout specified is greater than the default HTTP/RPC timeout, the HTTP/RPC timeout is used. If the server does not support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Note that this method is on a best-effort basis. It may return the latest state before the specified timeout (including immediately), meaning even an immediate response is no guarantee that the operation is done.\n\n### HTTP request\n\n`POST https://{TRANSLATION_GDC_ENDPOINT}/v3/{name}:wait`\n\n### Path parameters\n\n### Request body\n\nThe request body contains data with the following structure:\n\n### Response body\n\nIf successful, the response body contains an instance of [Operation](/distributed-cloud/hosted/docs/latest/gdch/apis/vertex-ai/translation/rest/v3/projects.operations#Operation).\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-translation`\n- `https://www.googleapis.com/auth/cloud-platform`"]]