code: public final BatchAnnotateFilesResponse batchAnnotateFiles(List<AnnotateFileRequest> requests) {
  
      BatchAnnotateFilesRequest request =
          BatchAnnotateFilesRequest.newBuilder().addAllRequests(requests).build();
      return batchAnnotateFiles(request);
    }
docs: 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 the first 10 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>
  try (ImageAnnotatorClient imageAnnotatorClient = ImageAnnotatorClient.create()) {
  List&lt;AnnotateFileRequest&gt; requests = new ArrayList&lt;&gt;();
  BatchAnnotateFilesResponse response = imageAnnotatorClient.batchAnnotateFiles(requests);
  }
  </code></pre>
  
  @param requests 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