# Cloud Vision Alpha API

Integrates Google Vision features, including image labeling, face, logo, and landmark detection, optical character recognition (OCR), and detection of explicit content, into applications.

- [REST Resource: v1.files](https://docs.cloud.google.com/vision/deprecation/docs/reference/rest#v1.files)
- [REST Resource: v1.images](https://docs.cloud.google.com/vision/deprecation/docs/reference/rest#v1.images)
- [REST Resource: v1.locations.operations](https://docs.cloud.google.com/vision/deprecation/docs/reference/rest#v1.locations.operations)
- [REST Resource: v1.operations](https://docs.cloud.google.com/vision/deprecation/docs/reference/rest#v1.operations)
- [REST Resource: v1.projects.locations.productSets](https://docs.cloud.google.com/vision/deprecation/docs/reference/rest#v1.projects.locations.productSets)
- [REST Resource: v1.projects.locations.productSets.products](https://docs.cloud.google.com/vision/deprecation/docs/reference/rest#v1.projects.locations.productSets.products)
- [REST Resource: v1.projects.locations.products](https://docs.cloud.google.com/vision/deprecation/docs/reference/rest#v1.projects.locations.products)
- [REST Resource: v1.projects.locations.products.referenceImages](https://docs.cloud.google.com/vision/deprecation/docs/reference/rest#v1.projects.locations.products.referenceImages)

## Service: alpha-vision.googleapis.com

All URIs below are relative to `https://alpha-vision.googleapis.com`

This service provides the following [discovery document](https://developers.google.com/discovery/v1/reference/apis):

- <https://alpha-vision.googleapis.com/$discovery/rest?version=v1>

## REST Resource: [v1.files](https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/files)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/files/annotate` | `POST /v1/files:annotate` Service that performs image detection and annotation for a batch of files. |
| `https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/files/asyncBatchAnnotate` | `POST /v1/files:asyncBatchAnnotate` Run 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. |

## REST Resource: [v1.images](https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/images)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/images/annotate` | `POST /v1/images:annotate` Run image detection and annotation for a batch of images. |
| `https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/images/asyncBatchAnnotate` | `POST /v1/images:asyncBatchAnnotate` Run asynchronous image detection and annotation for a list of images. |

## REST Resource: [v1.locations.operations](https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/locations.operations)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/locations.operations/get` | `GET /v1/{name=locations/*/operations/*}` Gets the latest state of a long-running operation. |

## REST Resource: [v1.operations](https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/operations)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/operations/cancel` | `POST /v1/{name=operations/**}:cancel` Starts asynchronous cancellation on a long-running operation. |
| `https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/operations/delete` | `DELETE /v1/{name=operations/**}` Deletes a long-running operation. |
| `https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/operations/get` | `GET /v1/{name=operations/*}` Gets the latest state of a long-running operation. |
| `https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/operations/list` | `GET /v1/{name}` Lists operations that match the specified filter in the request. |

## REST Resource: [v1.projects.locations.productSets](https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/projects.locations.productSets)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/projects.locations.productSets/addProduct` | `POST /v1/{name=projects/*/locations/*/productSets/*}:addProduct` Adds a Product to the specified ProductSet. |
| `https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/projects.locations.productSets/create` | `POST /v1/{parent=projects/*/locations/*}/productSets` Creates and returns a new ProductSet resource. |
| `https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/projects.locations.productSets/delete` | `DELETE /v1/{name=projects/*/locations/*/productSets/*}` Permanently deletes a ProductSet. |
| `https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/projects.locations.productSets/get` | `GET /v1/{name=projects/*/locations/*/productSets/*}` Gets information associated with a ProductSet. |
| `https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/projects.locations.productSets/import` | `POST /v1/{parent=projects/*/locations/*}/productSets:import` Asynchronous API that imports a list of reference images to specified product sets based on a list of image information. |
| `https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/projects.locations.productSets/list` | `GET /v1/{parent=projects/*/locations/*}/productSets` Lists ProductSets in an unspecified order. |
| `https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/projects.locations.productSets/patch` | `PATCH /v1/{productSet.name=projects/*/locations/*/productSets/*}` Makes changes to a ProductSet resource. |
| `https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/projects.locations.productSets/removeProduct` | `POST /v1/{name=projects/*/locations/*/productSets/*}:removeProduct` Removes a Product from the specified ProductSet. |

## REST Resource: [v1.projects.locations.productSets.products](https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/projects.locations.productSets.products)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/projects.locations.productSets.products/list` | `GET /v1/{name=projects/*/locations/*/productSets/*}/products` Lists the Products in a ProductSet, in an unspecified order. |

## REST Resource: [v1.projects.locations.products](https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/projects.locations.products)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/projects.locations.products/create` | `POST /v1/{parent=projects/*/locations/*}/products` Creates and returns a new product resource. |
| `https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/projects.locations.products/delete` | `DELETE /v1/{name=projects/*/locations/*/products/*}` Permanently deletes a product and its reference images. |
| `https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/projects.locations.products/get` | `GET /v1/{name=projects/*/locations/*/products/*}` Gets information associated with a Product. |
| `https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/projects.locations.products/list` | `GET /v1/{parent=projects/*/locations/*}/products` Lists products in an unspecified order. |
| `https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/projects.locations.products/patch` | `PATCH /v1/{product.name=projects/*/locations/*/products/*}` Makes changes to a Product resource. |

## REST Resource: [v1.projects.locations.products.referenceImages](https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/projects.locations.products.referenceImages)

| Methods ||
|---|---|
| `https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/projects.locations.products.referenceImages/create` | `POST /v1/{parent=projects/*/locations/*/products/*}/referenceImages` Creates and returns a new ReferenceImage resource. |
| `https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/projects.locations.products.referenceImages/delete` | `DELETE /v1/{name=projects/*/locations/*/products/*/referenceImages/*}` Permanently deletes a reference image. |
| `https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/projects.locations.products.referenceImages/get` | `GET /v1/{name=projects/*/locations/*/products/*/referenceImages/*}` Gets information associated with a ReferenceImage. |
| `https://docs.cloud.google.com/vision/deprecation/docs/reference/rest/v1/projects.locations.products.referenceImages/list` | `GET /v1/{parent=projects/*/locations/*/products/*}/referenceImages` Lists reference images. |