public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
    return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
        .addMethod(
            getBatchAnnotateImagesMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesRequest,
                    com.google.cloud.vision.v1p4beta1.BatchAnnotateImagesResponse>(
                    service, METHODID_BATCH_ANNOTATE_IMAGES)))
        .addMethod(
            getBatchAnnotateFilesMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesRequest,
                    com.google.cloud.vision.v1p4beta1.BatchAnnotateFilesResponse>(
                    service, METHODID_BATCH_ANNOTATE_FILES)))
        .addMethod(
            getAsyncBatchAnnotateImagesMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateImagesRequest,
                    com.google.longrunning.Operation>(
                    service, METHODID_ASYNC_BATCH_ANNOTATE_IMAGES)))
        .addMethod(
            getAsyncBatchAnnotateFilesMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
                new MethodHandlers<
                    com.google.cloud.vision.v1p4beta1.AsyncBatchAnnotateFilesRequest,
                    com.google.longrunning.Operation>(
                    service, METHODID_ASYNC_BATCH_ANNOTATE_FILES)))
        .build();
  }
<pre>
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. Progress and results can be retrieved through the
`google.longrunning.Operations` interface.
`Operation.metadata` contains `OperationMetadata` (metadata).
`Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
</pre>
java-vision/grpc-google-cloud-vision-v1p4beta1/src/main/java/com/google/cloud/vision/v1p4beta1/ImageAnnotatorGrpc.java