UNPKG

@google-cloud/vision

Version:
1,226 lines (1,225 loc) 425 kB
{ "nested": { "google": { "nested": { "cloud": { "nested": { "vision": { "nested": { "v1": { "options": { "cc_enable_arenas": true, "go_package": "cloud.google.com/go/vision/v2/apiv1/visionpb;visionpb", "java_multiple_files": true, "java_outer_classname": "WebDetectionProto", "java_package": "com.google.cloud.vision.v1", "objc_class_prefix": "GCVN" }, "nested": { "Vertex": { "fields": { "x": { "type": "int32", "id": 1 }, "y": { "type": "int32", "id": 2 } } }, "NormalizedVertex": { "fields": { "x": { "type": "float", "id": 1 }, "y": { "type": "float", "id": 2 } } }, "BoundingPoly": { "fields": { "vertices": { "rule": "repeated", "type": "Vertex", "id": 1 }, "normalizedVertices": { "rule": "repeated", "type": "NormalizedVertex", "id": 2 } } }, "Position": { "fields": { "x": { "type": "float", "id": 1 }, "y": { "type": "float", "id": 2 }, "z": { "type": "float", "id": 3 } } }, "ImageAnnotator": { "options": { "(google.api.default_host)": "vision.googleapis.com", "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-vision" }, "methods": { "BatchAnnotateImages": { "requestType": "BatchAnnotateImagesRequest", "responseType": "BatchAnnotateImagesResponse", "options": { "(google.api.http).post": "/v1/images:annotate", "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/{parent=projects/*}/images:annotate", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "requests" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v1/images:annotate", "body": "*", "additional_bindings": [ { "post": "/v1/{parent=projects/*/locations/*}/images:annotate", "body": "*" }, { "post": "/v1/{parent=projects/*}/images:annotate", "body": "*" } ] } }, { "(google.api.method_signature)": "requests" } ] }, "BatchAnnotateFiles": { "requestType": "BatchAnnotateFilesRequest", "responseType": "BatchAnnotateFilesResponse", "options": { "(google.api.http).post": "/v1/files:annotate", "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/{parent=projects/*}/files:annotate", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "requests" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v1/files:annotate", "body": "*", "additional_bindings": [ { "post": "/v1/{parent=projects/*/locations/*}/files:annotate", "body": "*" }, { "post": "/v1/{parent=projects/*}/files:annotate", "body": "*" } ] } }, { "(google.api.method_signature)": "requests" } ] }, "AsyncBatchAnnotateImages": { "requestType": "AsyncBatchAnnotateImagesRequest", "responseType": "google.longrunning.Operation", "options": { "(google.api.http).post": "/v1/images:asyncBatchAnnotate", "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/{parent=projects/*}/images:asyncBatchAnnotate", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "requests,output_config", "(google.longrunning.operation_info).response_type": "AsyncBatchAnnotateImagesResponse", "(google.longrunning.operation_info).metadata_type": "OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v1/images:asyncBatchAnnotate", "body": "*", "additional_bindings": [ { "post": "/v1/{parent=projects/*/locations/*}/images:asyncBatchAnnotate", "body": "*" }, { "post": "/v1/{parent=projects/*}/images:asyncBatchAnnotate", "body": "*" } ] } }, { "(google.api.method_signature)": "requests,output_config" }, { "(google.longrunning.operation_info)": { "response_type": "AsyncBatchAnnotateImagesResponse", "metadata_type": "OperationMetadata" } } ] }, "AsyncBatchAnnotateFiles": { "requestType": "AsyncBatchAnnotateFilesRequest", "responseType": "google.longrunning.Operation", "options": { "(google.api.http).post": "/v1/files:asyncBatchAnnotate", "(google.api.http).body": "*", "(google.api.http).additional_bindings.post": "/v1/{parent=projects/*}/files:asyncBatchAnnotate", "(google.api.http).additional_bindings.body": "*", "(google.api.method_signature)": "requests", "(google.longrunning.operation_info).response_type": "AsyncBatchAnnotateFilesResponse", "(google.longrunning.operation_info).metadata_type": "OperationMetadata" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v1/files:asyncBatchAnnotate", "body": "*", "additional_bindings": [ { "post": "/v1/{parent=projects/*/locations/*}/files:asyncBatchAnnotate", "body": "*" }, { "post": "/v1/{parent=projects/*}/files:asyncBatchAnnotate", "body": "*" } ] } }, { "(google.api.method_signature)": "requests" }, { "(google.longrunning.operation_info)": { "response_type": "AsyncBatchAnnotateFilesResponse", "metadata_type": "OperationMetadata" } } ] } } }, "Likelihood": { "values": { "UNKNOWN": 0, "VERY_UNLIKELY": 1, "UNLIKELY": 2, "POSSIBLE": 3, "LIKELY": 4, "VERY_LIKELY": 5 } }, "Feature": { "fields": { "type": { "type": "Type", "id": 1 }, "maxResults": { "type": "int32", "id": 2 }, "model": { "type": "string", "id": 3 } }, "nested": { "Type": { "values": { "TYPE_UNSPECIFIED": 0, "FACE_DETECTION": 1, "LANDMARK_DETECTION": 2, "LOGO_DETECTION": 3, "LABEL_DETECTION": 4, "TEXT_DETECTION": 5, "DOCUMENT_TEXT_DETECTION": 11, "SAFE_SEARCH_DETECTION": 6, "IMAGE_PROPERTIES": 7, "CROP_HINTS": 9, "WEB_DETECTION": 10, "PRODUCT_SEARCH": 12, "OBJECT_LOCALIZATION": 19 } } } }, "ImageSource": { "fields": { "gcsImageUri": { "type": "string", "id": 1 }, "imageUri": { "type": "string", "id": 2 } } }, "Image": { "fields": { "content": { "type": "bytes", "id": 1 }, "source": { "type": "ImageSource", "id": 2 } } }, "FaceAnnotation": { "fields": { "boundingPoly": { "type": "BoundingPoly", "id": 1 }, "fdBoundingPoly": { "type": "BoundingPoly", "id": 2 }, "landmarks": { "rule": "repeated", "type": "Landmark", "id": 3 }, "rollAngle": { "type": "float", "id": 4 }, "panAngle": { "type": "float", "id": 5 }, "tiltAngle": { "type": "float", "id": 6 }, "detectionConfidence": { "type": "float", "id": 7 }, "landmarkingConfidence": { "type": "float", "id": 8 }, "joyLikelihood": { "type": "Likelihood", "id": 9 }, "sorrowLikelihood": { "type": "Likelihood", "id": 10 }, "angerLikelihood": { "type": "Likelihood", "id": 11 }, "surpriseLikelihood": { "type": "Likelihood", "id": 12 }, "underExposedLikelihood": { "type": "Likelihood", "id": 13 }, "blurredLikelihood": { "type": "Likelihood", "id": 14 }, "headwearLikelihood": { "type": "Likelihood", "id": 15 } }, "nested": { "Landmark": { "fields": { "type": { "type": "Type", "id": 3 }, "position": { "type": "Position", "id": 4 } }, "nested": { "Type": { "values": { "UNKNOWN_LANDMARK": 0, "LEFT_EYE": 1, "RIGHT_EYE": 2, "LEFT_OF_LEFT_EYEBROW": 3, "RIGHT_OF_LEFT_EYEBROW": 4, "LEFT_OF_RIGHT_EYEBROW": 5, "RIGHT_OF_RIGHT_EYEBROW": 6, "MIDPOINT_BETWEEN_EYES": 7, "NOSE_TIP": 8, "UPPER_LIP": 9, "LOWER_LIP": 10, "MOUTH_LEFT": 11, "MOUTH_RIGHT": 12, "MOUTH_CENTER": 13, "NOSE_BOTTOM_RIGHT": 14, "NOSE_BOTTOM_LEFT": 15, "NOSE_BOTTOM_CENTER": 16, "LEFT_EYE_TOP_BOUNDARY": 17, "LEFT_EYE_RIGHT_CORNER": 18, "LEFT_EYE_BOTTOM_BOUNDARY": 19, "LEFT_EYE_LEFT_CORNER": 20, "RIGHT_EYE_TOP_BOUNDARY": 21, "RIGHT_EYE_RIGHT_CORNER": 22, "RIGHT_EYE_BOTTOM_BOUNDARY": 23, "RIGHT_EYE_LEFT_CORNER": 24, "LEFT_EYEBROW_UPPER_MIDPOINT": 25, "RIGHT_EYEBROW_UPPER_MIDPOINT": 26, "LEFT_EAR_TRAGION": 27, "RIGHT_EAR_TRAGION": 28, "LEFT_EYE_PUPIL": 29, "RIGHT_EYE_PUPIL": 30, "FOREHEAD_GLABELLA": 31, "CHIN_GNATHION": 32, "CHIN_LEFT_GONION": 33, "CHIN_RIGHT_GONION": 34, "LEFT_CHEEK_CENTER": 35, "RIGHT_CHEEK_CENTER": 36 } } } } } }, "LocationInfo": { "fields": { "latLng": { "type": "google.type.LatLng", "id": 1 } } }, "Property": { "fields": { "name": { "type": "string", "id": 1 }, "value": { "type": "string", "id": 2 }, "uint64Value": { "type": "uint64", "id": 3 } } }, "EntityAnnotation": { "fields": { "mid": { "type": "string", "id": 1 }, "locale": { "type": "string", "id": 2 }, "description": { "type": "string", "id": 3 }, "score": { "type": "float", "id": 4 }, "confidence": { "type": "float", "id": 5, "options": { "deprecated": true } }, "topicality": { "type": "float", "id": 6 }, "boundingPoly": { "type": "BoundingPoly", "id": 7 }, "locations": { "rule": "repeated", "type": "LocationInfo", "id": 8 }, "properties": { "rule": "repeated", "type": "Property", "id": 9 } } }, "LocalizedObjectAnnotation": { "fields": { "mid": { "type": "string", "id": 1 }, "languageCode": { "type": "string", "id": 2 }, "name": { "type": "string", "id": 3 }, "score": { "type": "float", "id": 4 }, "boundingPoly": { "type": "BoundingPoly", "id": 5 } } }, "SafeSearchAnnotation": { "fields": { "adult": { "type": "Likelihood", "id": 1 }, "spoof": { "type": "Likelihood", "id": 2 }, "medical": { "type": "Likelihood", "id": 3 }, "violence": { "type": "Likelihood", "id": 4 }, "racy": { "type": "Likelihood", "id": 9 } } }, "LatLongRect": { "fields": { "minLatLng": { "type": "google.type.LatLng", "id": 1 }, "maxLatLng": { "type": "google.type.LatLng", "id": 2 } } }, "ColorInfo": { "fields": { "color": { "type": "google.type.Color", "id": 1 }, "score": { "type": "float", "id": 2 }, "pixelFraction": { "type": "float", "id": 3 } } }, "DominantColorsAnnotation": { "fields": { "colors": { "rule": "repeated", "type": "ColorInfo", "id": 1 } } }, "ImageProperties": { "fields": { "dominantColors": { "type": "DominantColorsAnnotation", "id": 1 } } }, "CropHint": { "fields": { "boundingPoly": { "type": "BoundingPoly", "id": 1 }, "confidence": { "type": "float", "id": 2 }, "importanceFraction": { "type": "float", "id": 3 } } }, "CropHintsAnnotation": { "fields": { "cropHints": { "rule": "repeated", "type": "CropHint", "id": 1 } } }, "CropHintsParams": { "fields": { "aspectRatios": { "rule": "repeated", "type": "float", "id": 1 } } }, "WebDetectionParams": { "fields": { "includeGeoResults": { "type": "bool", "id": 2, "options": { "deprecated": true } } } }, "TextDetectionParams": { "fields": { "enableTextDetectionConfidenceScore": { "type": "bool", "id": 9 }, "advancedOcrOptions": { "rule": "repeated", "type": "string", "id": 11 } } }, "ImageContext": { "fields": { "latLongRect": { "type": "LatLongRect", "id": 1 }, "languageHints": { "rule": "repeated", "type": "string", "id": 2 }, "cropHintsParams": { "type": "CropHintsParams", "id": 4 }, "productSearchParams": { "type": "ProductSearchParams", "id": 5 }, "webDetectionParams": { "type": "WebDetectionParams", "id": 6 }, "textDetectionParams": { "type": "TextDetectionParams", "id": 12 } } }, "AnnotateImageRequest": { "fields": { "image": { "type": "Image", "id": 1 }, "features": { "rule": "repeated", "type": "Feature", "id": 2 }, "imageContext": { "type": "ImageContext", "id": 3 } } }, "ImageAnnotationContext": { "fields": { "uri": { "type": "string", "id": 1 }, "pageNumber": { "type": "int32", "id": 2 } } }, "AnnotateImageResponse": { "fields": { "faceAnnotations": { "rule": "repeated", "type": "FaceAnnotation", "id": 1 }, "landmarkAnnotations": { "rule": "repeated", "type": "EntityAnnotation", "id": 2 }, "logoAnnotations": { "rule": "repeated", "type": "EntityAnnotation", "id": 3 }, "labelAnnotations": { "rule": "repeated", "type": "EntityAnnotation", "id": 4 }, "localizedObjectAnnotations": { "rule": "repeated", "type": "LocalizedObjectAnnotation", "id": 22 }, "textAnnotations": { "rule": "repeated", "type": "EntityAnnotation", "id": 5 }, "fullTextAnnotation": { "type": "TextAnnotation", "id": 12 }, "safeSearchAnnotation": { "type": "SafeSearchAnnotation", "id": 6 }, "imagePropertiesAnnotation": { "type": "ImageProperties", "id": 8 }, "cropHintsAnnotation": { "type": "CropHintsAnnotation", "id": 11 }, "webDetection": { "type": "WebDetection", "id": 13 }, "productSearchResults": { "type": "ProductSearchResults", "id": 14 }, "error": { "type": "google.rpc.Status", "id": 9 }, "context": { "type": "ImageAnnotationContext", "id": 21 } } }, "BatchAnnotateImagesRequest": { "fields": { "requests": { "rule": "repeated", "type": "AnnotateImageRequest", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "parent": { "type": "string", "id": 4 }, "labels": { "keyType": "string", "type": "string", "id": 5, "options": { "(google.api.field_behavior)": "OPTIONAL" } } } }, "BatchAnnotateImagesResponse": { "fields": { "responses": { "rule": "repeated", "type": "AnnotateImageResponse", "id": 1 } } }, "AnnotateFileRequest": { "fields": { "inputConfig": { "type": "InputConfig", "id": 1 }, "features": { "rule": "repeated", "type": "Feature", "id": 2 }, "imageContext": { "type": "ImageContext", "id": 3 }, "pages": { "rule": "repeated", "type": "int32", "id": 4 } } }, "AnnotateFileResponse": { "fields": { "inputConfig": { "type": "InputConfig", "id": 1 }, "responses": { "rule": "repeated", "type": "AnnotateImageResponse", "id": 2 }, "totalPages": { "type": "int32", "id": 3 }, "error": { "type": "google.rpc.Status", "id": 4 } } }, "BatchAnnotateFilesRequest": { "fields": { "requests": { "rule": "repeated", "type": "AnnotateFileRequest", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "parent": { "type": "string", "id": 3 }, "labels": { "keyType": "string", "type": "string", "id": 5, "options": { "(google.api.field_behavior)": "OPTIONAL" } } } }, "BatchAnnotateFilesResponse": { "fields": { "responses": { "rule": "repeated", "type": "AnnotateFileResponse", "id": 1 } } }, "AsyncAnnotateFileRequest": { "fields": { "inputConfig": { "type": "InputConfig", "id": 1 }, "features": { "rule": "repeated", "type": "Feature", "id": 2 }, "imageContext": { "type": "ImageContext", "id": 3 }, "outputConfig": { "type": "OutputConfig", "id": 4 } } }, "AsyncAnnotateFileResponse": { "fields": { "outputConfig": { "type": "OutputConfig", "id": 1 } } }, "AsyncBatchAnnotateImagesRequest": { "fields": { "requests": { "rule": "repeated", "type": "AnnotateImageRequest", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "outputConfig": { "type": "OutputConfig", "id": 2, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "parent": { "type": "string", "id": 4 }, "labels": { "keyType": "string", "type": "string", "id": 5, "options": { "(google.api.field_behavior)": "OPTIONAL" } } } }, "AsyncBatchAnnotateImagesResponse": { "fields": { "outputConfig": { "type": "OutputConfig", "id": 1 } } }, "AsyncBatchAnnotateFilesRequest": { "fields": { "requests": { "rule": "repeated", "type": "AsyncAnnotateFileRequest", "id": 1, "options": { "(google.api.field_behavior)": "REQUIRED" } }, "parent": { "type": "string", "id": 4 }, "labels": { "keyType": "string", "type": "string", "id": 5, "options": { "(google.api.field_behavior)": "OPTIONAL" } } } }, "AsyncBatchAnnotateFilesResponse": { "fields": { "responses": { "rule": "repeated", "type": "AsyncAnnotateFileResponse", "id": 1 } } }, "InputConfig": { "fields": { "gcsSource": { "type": "GcsSource", "id": 1 }, "content": { "type": "bytes", "id": 3 }, "mimeType": { "type": "string", "id": 2 } } }, "OutputConfig": { "fields": { "gcsDestination": { "type": "GcsDestination", "id": 1 }, "batchSize": { "type": "int32", "id": 2 } } }, "GcsSource": { "fields": { "uri": { "type": "string", "id": 1 } } }, "GcsDestination": { "fields": { "uri": { "type": "string", "id": 1 } } }, "OperationMetadata": { "fields": { "state": { "type": "State", "id": 1 }, "createTime": { "type": "google.protobuf.Timestamp", "id": 5 }, "updateTime": { "type": "google.protobuf.Timestamp", "id": 6 } }, "nested": { "State": { "values": { "STATE_UNSPECIFIED": 0, "CREATED": 1, "RUNNING": 2, "DONE": 3, "CANCELLED": 4 } } } }, "ProductSearchParams": { "fields": { "boundingPoly": { "type": "BoundingPoly", "id": 9 }, "productSet": { "type": "string", "id": 6, "options": { "(google.api.resource_reference).type": "vision.googleapis.com/ProductSet" } }, "productCategories": { "rule": "repeated", "type": "string", "id": 7 }, "filter": { "type": "string", "id": 8 } } }, "ProductSearchResults": { "fields": { "indexTime": { "type": "google.protobuf.Timestamp", "id": 2 }, "results": { "rule": "repeated", "type": "Result", "id": 5 }, "productGroupedResults": { "rule": "repeated", "type": "GroupedResult", "id": 6 } }, "nested": { "Result": { "fields": { "product": { "type": "Product", "id": 1 }, "score": { "type": "float", "id": 2 }, "image": { "type": "string", "id": 3 } } }, "ObjectAnnotation": { "fields": { "mid": { "type": "string", "id": 1 }, "languageCode": { "type": "string", "id": 2 }, "name": { "type": "string", "id": 3 }, "score": { "type": "float", "id": 4 } } }, "GroupedResult": { "fields": { "boundingPoly": { "type": "BoundingPoly", "id": 1 }, "results": { "rule": "repeated", "type": "Result", "id": 2 }, "objectAnnotations": { "rule": "repeated", "type": "ObjectAnnotation", "id": 3 } } } } }, "ProductSearch": { "options": { "(google.api.default_host)": "vision.googleapis.com", "(google.api.oauth_scopes)": "https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-vision" }, "methods": { "CreateProductSet": { "requestType": "CreateProductSetRequest", "responseType": "ProductSet", "options": { "(google.api.http).post": "/v1/{parent=projects/*/locations/*}/productSets", "(google.api.http).body": "product_set", "(google.api.method_signature)": "parent,product_set,product_set_id" }, "parsedOptions": [ { "(google.api.http)": { "post": "/v1/{parent=projects/*/locations/*}/productSets", "body": "product_set" } }, { "(google.api.method_signature)": "parent,product_set,product_set_id" } ] }, "ListProductSets": { "requestType": "ListProductSetsRequest", "responseType": "ListProductSetsResponse", "options": { "(google.api.http).get": "/v1/{parent=projects/*/locations/*}/productSets", "(google.api.method_signature)": "parent" }, "parsedOptions": [ { "(google.api.http)": { "get": "/v1/{parent=projects/*/locations/*}/productSets" } }, { "(google.api.method_signature)": "parent" } ] }, "GetProductSet": { "requestType": "GetProductSetRequest", "responseType": "ProductSet", "options": { "(google.api.http).get": "/v1/{name=projects/*/locations/*/productSets/*}", "(google.api.method_signature)": "name" }, "parsedOptions": [ { "(google.api.http)": { "get": "/v1/{name=projects/*/locations/*/productSets/*}" } }, { "(google.api.method_signature)": "name" } ] }, "UpdateProductSet": { "requestType": "UpdateProductSetRequest", "responseType": "ProductSet", "options": { "(google.api.http).patch": "/v1/{product_set.name=projects/*/locations/*/productSets/*}", "(google.api.http).body": "product_set", "(google.api.method_signature)": "product_set,update_mask" }, "parsedOptions": [ { "(google.api.http)": { "patch": "/v1/{product_set.name=projects/*/locations/*/productSets/*}", "body": "product_set" } }, { "(google.api.method_signature)": "product_set,update_mask" } ] }, "DeleteProductSet": { "requestType": "DeleteProductSetRequest", "responseType": "google.protobuf.Empty", "options": { "(google.api.http).delete": "/v1/{name=projects/*/locations/*/productSets/*}",