Skip to content

Commit

Permalink
chore(deps): [Many APIs] Update gapic-generator-java to 2.16.0 (#9289)
Browse files Browse the repository at this point in the history
* chore(deps): Update gapic-generator-java to 2.16.0

PiperOrigin-RevId: 520153493

Source-Link: googleapis/googleapis@26a424a

Source-Link: googleapis/googleapis-gen@78f1567
Copy-Tag: eyJwIjoiamF2YS12aXNpb24vLk93bEJvdC55YW1sIiwiaCI6Ijc4ZjE1Njc2NjFkZjA3YmVhNzQyNWU0MzQxMDEyZTdiNzdjMTEyNTQifQ==
Copy-Tag: eyJwIjoiamF2YS12bW1pZ3JhdGlvbi8uT3dsQm90LnlhbWwiLCJoIjoiNzhmMTU2NzY2MWRmMDdiZWE3NDI1ZTQzNDEwMTJlN2I3N2MxMTI1NCJ9
Copy-Tag: eyJwIjoiamF2YS12bXdhcmVlbmdpbmUvLk93bEJvdC55YW1sIiwiaCI6Ijc4ZjE1Njc2NjFkZjA3YmVhNzQyNWU0MzQxMDEyZTdiNzdjMTEyNTQifQ==
Copy-Tag: eyJwIjoiamF2YS12cGNhY2Nlc3MvLk93bEJvdC55YW1sIiwiaCI6Ijc4ZjE1Njc2NjFkZjA3YmVhNzQyNWU0MzQxMDEyZTdiNzdjMTEyNTQifQ==
Copy-Tag: eyJwIjoiamF2YS13ZWJyaXNrLy5Pd2xCb3QueWFtbCIsImgiOiI3OGYxNTY3NjYxZGYwN2JlYTc0MjVlNDM0MTAxMmU3Yjc3YzExMjU0In0=
Copy-Tag: eyJwIjoiamF2YS13ZWJzZWN1cml0eXNjYW5uZXIvLk93bEJvdC55YW1sIiwiaCI6Ijc4ZjE1Njc2NjFkZjA3YmVhNzQyNWU0MzQxMDEyZTdiNzdjMTEyNTQifQ==
Copy-Tag: eyJwIjoiamF2YS13b3JrZmxvdy1leGVjdXRpb25zLy5Pd2xCb3QueWFtbCIsImgiOiI3OGYxNTY3NjYxZGYwN2JlYTc0MjVlNDM0MTAxMmU3Yjc3YzExMjU0In0=
Copy-Tag: eyJwIjoiamF2YS13b3JrZmxvd3MvLk93bEJvdC55YW1sIiwiaCI6Ijc4ZjE1Njc2NjFkZjA3YmVhNzQyNWU0MzQxMDEyZTdiNzdjMTEyNTQifQ==
Copy-Tag: eyJwIjoiamF2YS13b3Jrc3RhdGlvbnMvLk93bEJvdC55YW1sIiwiaCI6Ijc4ZjE1Njc2NjFkZjA3YmVhNzQyNWU0MzQxMDEyZTdiNzdjMTEyNTQifQ==

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

---------

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
gcf-owl-bot[bot] and gcf-owl-bot[bot] committed Mar 29, 2023
1 parent 542f8fb commit 9fb0202
Show file tree
Hide file tree
Showing 30 changed files with 2,343 additions and 1,962 deletions.
2 changes: 2 additions & 0 deletions java-vision/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Java idiomatic client for [Cloud Vision][product-docs].


If you are using Maven, add this to your pom.xml file:
<!-- {x-version-update-start:google-cloud-vision:released} -->


```xml
Expand All @@ -34,6 +35,7 @@ If you are using SBT, add this to your dependencies:
```Scala
libraryDependencies += "com.google.cloud" % "google-cloud-vision" % "3.11.0"
```
<!-- {x-version-update-end} -->

## Authentication

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@ public ImageAnnotatorFutureStub newStub(
* ImageAnnotator service returns detected entities from the images.
* </pre>
*/
public abstract static class ImageAnnotatorImplBase implements io.grpc.BindableService {
public interface AsyncService {

/**
*
Expand All @@ -292,7 +292,7 @@ public abstract static class ImageAnnotatorImplBase implements io.grpc.BindableS
* Run image detection and annotation for a batch of images.
* </pre>
*/
public void batchAnnotateImages(
default void batchAnnotateImages(
com.google.cloud.vision.v1.BatchAnnotateImagesRequest request,
io.grpc.stub.StreamObserver<com.google.cloud.vision.v1.BatchAnnotateImagesResponse>
responseObserver) {
Expand All @@ -312,7 +312,7 @@ public void batchAnnotateImages(
* extracted.
* </pre>
*/
public void batchAnnotateFiles(
default void batchAnnotateFiles(
com.google.cloud.vision.v1.BatchAnnotateFilesRequest request,
io.grpc.stub.StreamObserver<com.google.cloud.vision.v1.BatchAnnotateFilesResponse>
responseObserver) {
Expand All @@ -333,7 +333,7 @@ public void batchAnnotateFiles(
* GCS bucket, each json file containing BatchAnnotateImagesResponse proto.
* </pre>
*/
public void asyncBatchAnnotateImages(
default void asyncBatchAnnotateImages(
com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest request,
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
Expand All @@ -352,49 +352,34 @@ public void asyncBatchAnnotateImages(
* `Operation.response` contains `AsyncBatchAnnotateFilesResponse` (results).
* </pre>
*/
public void asyncBatchAnnotateFiles(
default void asyncBatchAnnotateFiles(
com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest request,
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getAsyncBatchAnnotateFilesMethod(), responseObserver);
}
}

/**
* Base class for the server implementation of the service ImageAnnotator.
*
* <pre>
* 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.
* </pre>
*/
public abstract static class ImageAnnotatorImplBase
implements io.grpc.BindableService, AsyncService {

@java.lang.Override
public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getBatchAnnotateImagesMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.vision.v1.BatchAnnotateImagesRequest,
com.google.cloud.vision.v1.BatchAnnotateImagesResponse>(
this, METHODID_BATCH_ANNOTATE_IMAGES)))
.addMethod(
getBatchAnnotateFilesMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.vision.v1.BatchAnnotateFilesRequest,
com.google.cloud.vision.v1.BatchAnnotateFilesResponse>(
this, METHODID_BATCH_ANNOTATE_FILES)))
.addMethod(
getAsyncBatchAnnotateImagesMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest,
com.google.longrunning.Operation>(
this, METHODID_ASYNC_BATCH_ANNOTATE_IMAGES)))
.addMethod(
getAsyncBatchAnnotateFilesMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest,
com.google.longrunning.Operation>(this, METHODID_ASYNC_BATCH_ANNOTATE_FILES)))
.build();
return ImageAnnotatorGrpc.bindService(this);
}
}

/**
*
* A stub to allow clients to do asynchronous rpc calls to service ImageAnnotator.
*
* <pre>
* Service that performs Google Cloud Vision API detection tasks over client
Expand Down Expand Up @@ -497,7 +482,7 @@ public void asyncBatchAnnotateFiles(
}

/**
*
* A stub to allow clients to do synchronous rpc calls to service ImageAnnotator.
*
* <pre>
* Service that performs Google Cloud Vision API detection tasks over client
Expand Down Expand Up @@ -587,7 +572,7 @@ public com.google.longrunning.Operation asyncBatchAnnotateFiles(
}

/**
*
* A stub to allow clients to do ListenableFuture-style rpc calls to service ImageAnnotator.
*
* <pre>
* Service that performs Google Cloud Vision API detection tasks over client
Expand Down Expand Up @@ -689,10 +674,10 @@ private static final class MethodHandlers<Req, Resp>
io.grpc.stub.ServerCalls.ServerStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.ClientStreamingMethod<Req, Resp>,
io.grpc.stub.ServerCalls.BidiStreamingMethod<Req, Resp> {
private final ImageAnnotatorImplBase serviceImpl;
private final AsyncService serviceImpl;
private final int methodId;

MethodHandlers(ImageAnnotatorImplBase serviceImpl, int methodId) {
MethodHandlers(AsyncService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
Expand Down Expand Up @@ -739,6 +724,39 @@ public io.grpc.stub.StreamObserver<Req> invoke(
}
}

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.v1.BatchAnnotateImagesRequest,
com.google.cloud.vision.v1.BatchAnnotateImagesResponse>(
service, METHODID_BATCH_ANNOTATE_IMAGES)))
.addMethod(
getBatchAnnotateFilesMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.vision.v1.BatchAnnotateFilesRequest,
com.google.cloud.vision.v1.BatchAnnotateFilesResponse>(
service, METHODID_BATCH_ANNOTATE_FILES)))
.addMethod(
getAsyncBatchAnnotateImagesMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.vision.v1.AsyncBatchAnnotateImagesRequest,
com.google.longrunning.Operation>(
service, METHODID_ASYNC_BATCH_ANNOTATE_IMAGES)))
.addMethod(
getAsyncBatchAnnotateFilesMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.vision.v1.AsyncBatchAnnotateFilesRequest,
com.google.longrunning.Operation>(
service, METHODID_ASYNC_BATCH_ANNOTATE_FILES)))
.build();
}

private abstract static class ImageAnnotatorBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
io.grpc.protobuf.ProtoServiceDescriptorSupplier {
Expand Down
Loading

0 comments on commit 9fb0202

Please sign in to comment.