public final BatchAnnotateFilesResponse batchAnnotateFiles(List<AnnotateFileRequest> requests) {
    BatchAnnotateFilesRequest request =
        BatchAnnotateFilesRequest.newBuilder().addAllRequests(requests).build();
    return batchAnnotateFiles(request);
  }
Service that performs image detection and annotation for a batch of files. Now only
"application/pdf", "image/tiff" and "image/gif" are supported.

<p>This service will extract at most 5 (customers can specify which 5 in
AnnotateFileRequest.pages) frames (gif) or pages (pdf or tiff) from each file provided and
perform detection and annotation for each image extracted.

<p>Sample code:

<pre>{@code
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
  List<AnnotateFileRequest> requests = new ArrayList<>();
  BatchAnnotateFilesResponse response = imageAnnotatorClient.batchAnnotateFiles(requests);
}
}</pre>

@param requests Required. The list of file annotation requests. Right now we support only one
    AnnotateFileRequest in BatchAnnotateFilesRequest.
@throws com.google.api.gax.rpc.ApiException if the remote call fails
java-vision/google-cloud-vision/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorClient.java