Method: files.asyncBatchAnnotate
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
对常规文件(例如可能包含多页、每页可能包含多张图片的 PDF 文件)列表运行异步图片检测和注释。您可以通过 google.longrunning.Operations
接口检索进度和结果。Operation.metadata
包含 OperationMetadata
(元数据)。Operation.response
包含 AsyncBatchAnnotateFilesResponse
(结果)。
HTTP 请求
POST https://vision.googleapis.com/v1p4beta1/files:asyncBatchAnnotate
网址采用 gRPC 转码语法。
请求正文
请求正文中包含结构如下的数据:
字段 |
requests[] |
object (AsyncAnnotateFileRequest )
此批次的各个异步文件注释请求。
|
响应正文
如果成功,则响应正文包含一个 Operation
实例。
授权范围
需要以下 OAuth 范围之一:
https://www.googleapis.com/auth/cloud-platform
https://www.googleapis.com/auth/cloud-vision
如需了解详情,请参阅身份验证概览。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-08-19。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["很难理解","hardToUnderstand","thumb-down"],["信息或示例代码不正确","incorrectInformationOrSampleCode","thumb-down"],["没有我需要的信息/示例","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2025-08-19。"],[],[],null,["# Method: files.asyncBatchAnnotate\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Request body](#body.request_body)\n - [JSON representation](#body.request_body.SCHEMA_REPRESENTATION)\n- [Response body](#body.response_body)\n- [Authorization Scopes](#body.aspect)\n- [AsyncAnnotateFileRequest](#AsyncAnnotateFileRequest)\n - [JSON representation](#AsyncAnnotateFileRequest.SCHEMA_REPRESENTATION)\n\nRun asynchronous image detection and annotation for a list of generic files, such as PDF files, which may contain multiple pages and multiple images per page. Progress and results can be retrieved through the `google.longrunning.Operations` interface. `Operation.metadata` contains `OperationMetadata` (metadata). `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).\n\n### HTTP request\n\n`POST https://vision.googleapis.com/v1p4beta1/files:asyncBatchAnnotate`\n\nThe URL uses [gRPC Transcoding](https://github.com/googleapis/googleapis/blob/master/google/api/http.proto) syntax.\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](/vision/product-search/docs/reference/rest/Shared.Types/Operation).\n\n### Authorization Scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n- `https://www.googleapis.com/auth/cloud-vision`\n\nFor more information, see the [Authentication Overview](https://cloud.google.com/docs/authentication/).\n\nAsyncAnnotateFileRequest\n------------------------\n\nAn offline file annotation request."]]