/** * Run image detection and annotation for a batch of images. * * <p>Sample code: * * <pre><code> * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * List<AnnotateImageRequest> requests = new ArrayList<>(); * BatchAnnotateImagesRequest request = BatchAnnotateImagesRequest.newBuilder() * .addAllRequests(requests) * .build(); * BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(request); * } * </code></pre> * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchAnnotateImagesResponse batchAnnotateImages(BatchAnnotateImagesRequest request) { return batchAnnotateImagesCallable().call(request); }
/** * Run image detection and annotation for a batch of images. * * <p>Sample code: * * <pre><code> * try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) { * List<AnnotateImageRequest> requests = new ArrayList<>(); * BatchAnnotateImagesRequest request = BatchAnnotateImagesRequest.newBuilder() * .addAllRequests(requests) * .build(); * BatchAnnotateImagesResponse response = imageAnnotatorClient.batchAnnotateImages(request); * } * </code></pre> * * @param request The request object containing all of the parameters for the API call. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final BatchAnnotateImagesResponse batchAnnotateImages(BatchAnnotateImagesRequest request) { return batchAnnotateImagesCallable().call(request); }