The interfaces provided are listed below, along with usage samples.
ImageAnnotatorClient
Service Description: Service that performs Google Cloud Vision API detection tasks over client images, such as face, landmark, logo, label, and text detection. The ImageAnnotator service returns detected entities from the images.
Sample for ImageAnnotatorClient:
try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
List<AnnotateImageRequest> requests = new ArrayList<>();
BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(requests);
}
ProductSearchClient
Service Description: Manages Products and ProductSets of reference images for use in product search. It uses the following resource model:
- The API has a collection of ProductSet
resources, named projects/*/locations/*/productSets/*
, which acts as a way to put
different products into groups to limit identification.
In parallel,
- The API has a collection of Product resources,
named projects/*/locations/*/products/*
- Each Product has a collection of
ReferenceImage resources, named
projects/*/locations/*/products/*/referenceImages/*
Sample for ProductSearchClient:
try (ProductSearchClient productSearchClient = ProductSearchClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
ProductSet productSet = ProductSet.newBuilder().build();
String productSetId = "productSetId1003042158";
ProductSet response = productSearchClient.createProductSet(parent, productSet, productSetId);
}
Classes
AddProductToProductSetRequest
Request message for the AddProductToProductSet
method.
Protobuf type google.cloud.vision.v1p4beta1.AddProductToProductSetRequest
AddProductToProductSetRequest.Builder
Request message for the AddProductToProductSet
method.
Protobuf type google.cloud.vision.v1p4beta1.AddProductToProductSetRequest
AnnotateFileRequest
A request to annotate one single file, e.g. a PDF, TIFF or GIF file.
Protobuf type google.cloud.vision.v1p4beta1.AnnotateFileRequest
AnnotateFileRequest.Builder
A request to annotate one single file, e.g. a PDF, TIFF or GIF file.
Protobuf type google.cloud.vision.v1p4beta1.AnnotateFileRequest
AnnotateFileResponse
Response to a single file annotation request. A file may contain one or more images, which individually have their own responses.
Protobuf type google.cloud.vision.v1p4beta1.AnnotateFileResponse
AnnotateFileResponse.Builder
Response to a single file annotation request. A file may contain one or more images, which individually have their own responses.
Protobuf type google.cloud.vision.v1p4beta1.AnnotateFileResponse
AnnotateImageRequest
Request for performing Google Cloud Vision API tasks over a user-provided image, with user-requested features, and with context information.
Protobuf type google.cloud.vision.v1p4beta1.AnnotateImageRequest
AnnotateImageRequest.Builder
Request for performing Google Cloud Vision API tasks over a user-provided image, with user-requested features, and with context information.
Protobuf type google.cloud.vision.v1p4beta1.AnnotateImageRequest
AnnotateImageResponse
Response to an image annotation request.
Protobuf type google.cloud.vision.v1p4beta1.AnnotateImageResponse
AnnotateImageResponse.Builder
Response to an image annotation request.
Protobuf type google.cloud.vision.v1p4beta1.AnnotateImageResponse
AsyncAnnotateFileRequest
An offline file annotation request.
Protobuf type google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest
AsyncAnnotateFileRequest.Builder
An offline file annotation request.
Protobuf type google.cloud.vision.v1p4beta1.AsyncAnnotateFileRequest
AsyncAnnotateFileResponse
The response for a single offline file annotation request.
Protobuf type google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse
AsyncAnnotateFileResponse.Builder
The response for a single offline file annotation request.
Protobuf type google.cloud.vision.v1p4beta1.AsyncAnnotateFileResponse
AsyncBatchAnnotateFilesRequest
Multiple async file annotation requests are batched into a single service call.
Protobuf type google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest
AsyncBatchAnnotateFilesRequest.Builder
Multiple async file annotation requests are batched into a single service call.
Protobuf type google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest
AsyncBatchAnnotateFilesResponse
Response to an async batch file annotation request.
Protobuf type google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse
AsyncBatchAnnotateFilesResponse.Builder
Response to an async batch file annotation request.
Protobuf type google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesResponse
AsyncBatchAnnotateImagesRequest
Request for async image annotation for a list of images.
Protobuf type google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest
AsyncBatchAnnotateImagesRequest.Builder
Request for async image annotation for a list of images.
Protobuf type google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest
AsyncBatchAnnotateImagesResponse
Response to an async batch image annotation request.
Protobuf type google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse
AsyncBatchAnnotateImagesResponse.Builder
Response to an async batch image annotation request.
Protobuf type google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesResponse
BatchAnnotateFilesRequest
A list of requests to annotate files using the BatchAnnotateFiles API.
Protobuf type google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest
BatchAnnotateFilesRequest.Builder
A list of requests to annotate files using the BatchAnnotateFiles API.
Protobuf type google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest
BatchAnnotateFilesResponse
A list of file annotation responses.
Protobuf type google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse
BatchAnnotateFilesResponse.Builder
A list of file annotation responses.
Protobuf type google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse
BatchAnnotateImagesRequest
Multiple image annotation requests are batched into a single service call.
Protobuf type google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest
BatchAnnotateImagesRequest.Builder
Multiple image annotation requests are batched into a single service call.
Protobuf type google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest
BatchAnnotateImagesResponse
Response to a batch image annotation request.
Protobuf type google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse
BatchAnnotateImagesResponse.Builder
Response to a batch image annotation request.
Protobuf type google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse
BatchOperationMetadata
Metadata for the batch operations such as the current state.
This is included in the metadata
field of the Operation
returned by the
GetOperation
call of the google::longrunning::Operations
service.
Protobuf type google.cloud.vision.v1p4beta1.BatchOperationMetadata
BatchOperationMetadata.Builder
Metadata for the batch operations such as the current state.
This is included in the metadata
field of the Operation
returned by the
GetOperation
call of the google::longrunning::Operations
service.
Protobuf type google.cloud.vision.v1p4beta1.BatchOperationMetadata
Block
Logical element on the page.
Protobuf type google.cloud.vision.v1p4beta1.Block
Block.Builder
Logical element on the page.
Protobuf type google.cloud.vision.v1p4beta1.Block
BoundingPoly
A bounding polygon for the detected image annotation.
Protobuf type google.cloud.vision.v1p4beta1.BoundingPoly
BoundingPoly.Builder
A bounding polygon for the detected image annotation.
Protobuf type google.cloud.vision.v1p4beta1.BoundingPoly
Celebrity
A Celebrity is a group of Faces with an identity.
Protobuf type google.cloud.vision.v1p4beta1.Celebrity
Celebrity.Builder
A Celebrity is a group of Faces with an identity.
Protobuf type google.cloud.vision.v1p4beta1.Celebrity
CelebrityProto
ColorInfo
Color information consists of RGB channels, score, and the fraction of the image that the color occupies in the image.
Protobuf type google.cloud.vision.v1p4beta1.ColorInfo
ColorInfo.Builder
Color information consists of RGB channels, score, and the fraction of the image that the color occupies in the image.
Protobuf type google.cloud.vision.v1p4beta1.ColorInfo
CreateProductRequest
Request message for the CreateProduct
method.
Protobuf type google.cloud.vision.v1p4beta1.CreateProductRequest
CreateProductRequest.Builder
Request message for the CreateProduct
method.
Protobuf type google.cloud.vision.v1p4beta1.CreateProductRequest