google.longrunning.Operations interface. Operation.metadata contains OperationMetadata (metadata). Operation.response contains AsyncBatchAnnotateImagesResponse (results). This service will write image annotation outputs to json files in customer GCS bucket, each json file containing BatchAnnotateImagesResponse proto.curl --location --request POST 'https://vision.googleapis.com//v1p2beta1/images:asyncBatchAnnotate' \
--header 'Content-Type: application/json' \
--data-raw '{
"outputConfig": {
"batchSize": 0,
"gcsDestination": {
"uri": "string"
}
},
"parent": "string",
"requests": [
{
"features": [
{
"maxResults": 0,
"model": "string",
"type": "TYPE_UNSPECIFIED"
}
],
"image": {
"content": "string",
"source": {
"gcsImageUri": "string",
"imageUri": "string"
}
},
"imageContext": {
"cropHintsParams": {
"aspectRatios": [
0
]
},
"languageHints": [
"string"
],
"latLongRect": {
"maxLatLng": {
"latitude": 0,
"longitude": 0
},
"minLatLng": {
"latitude": 0,
"longitude": 0
}
},
"productSearchParams": {
"boundingPoly": {
"normalizedVertices": [
{
"x": 0,
"y": 0
}
],
"vertices": [
{
"x": 0,
"y": 0
}
]
},
"filter": "string",
"productCategories": [
"string"
],
"productSet": "string"
},
"textDetectionParams": {
"advancedOcrOptions": [
"string"
],
"enableTextDetectionConfidenceScore": true
},
"webDetectionParams": {
"includeGeoResults": true
}
}
}
]
}'{
"done": true,
"error": {
"code": 0,
"details": [
{
"property1": null,
"property2": null
}
],
"message": "string"
},
"metadata": {
"property1": null,
"property2": null
},
"name": "string",
"response": {
"property1": null,
"property2": null
}
}