Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
getOperation
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
非同期 API メソッドは、処理が完了する前に結果を返します。getOperation を使用して、operationId を使用して非同期オペレーションのステータスを取得します。
メソッド シグネチャ
public Operation getOperation( GetOperationRequest request) throws CommonException;
GetOperationRequest
| プロパティ名 |
値 |
必須 |
説明 |
operationId |
string |
はい |
オペレーション ID。 |
エラーの動作
エラーが発生すると、ライブラリは次のいずれかのエラーコードを含む CommonException をスローします。
| エラーコード |
AUTHORIZATION_FAIL(販売店がオペレーションを所有していない場合) |
INTERNAL_SERVER_ERROR |
INVALID_OPERATION_ID |
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-08-29 UTC。
[null,null,["最終更新日 2025-08-29 UTC。"],[],["Asynchronous operations are tracked using `getOperation`, which requires an `operationId` to check their status. The `getOperation` method, part of the API, takes a `GetOperationRequest` and can throw a `CommonException`. Possible errors include `AUTHORIZATION_FAIL` (if the caller lacks ownership), `INTERNAL_SERVER_ERROR`, and `INVALID_OPERATION_ID`. The method returns before the operation is completed, allowing users to periodically retrieve updates via `getOperation`.\n"]]