Skip to content

Commit

Permalink
chore(deps): [Many APIs] Update gapic-generator-java to 2.16.0 (#9288)
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: https://github.com/googleapis/googleapis-gen/commit/78f1567661df07bea7425e4341012e7b77c11254
Copy-Tag: eyJwIjoiamF2YS1ydW4vLk93bEJvdC55YW1sIiwiaCI6Ijc4ZjE1Njc2NjFkZjA3YmVhNzQyNWU0MzQxMDEyZTdiNzdjMTEyNTQifQ==
Copy-Tag: eyJwIjoiamF2YS1zY2hlZHVsZXIvLk93bEJvdC55YW1sIiwiaCI6Ijc4ZjE1Njc2NjFkZjA3YmVhNzQyNWU0MzQxMDEyZTdiNzdjMTEyNTQifQ==
Copy-Tag: eyJwIjoiamF2YS1zZWNyZXRtYW5hZ2VyLy5Pd2xCb3QueWFtbCIsImgiOiI3OGYxNTY3NjYxZGYwN2JlYTc0MjVlNDM0MTAxMmU3Yjc3YzExMjU0In0=
Copy-Tag: eyJwIjoiamF2YS1zZWN1cml0eS1wcml2YXRlLWNhLy5Pd2xCb3QueWFtbCIsImgiOiI3OGYxNTY3NjYxZGYwN2JlYTc0MjVlNDM0MTAxMmU3Yjc3YzExMjU0In0=
Copy-Tag: eyJwIjoiamF2YS1zZWN1cml0eWNlbnRlci1zZXR0aW5ncy8uT3dsQm90LnlhbWwiLCJoIjoiNzhmMTU2NzY2MWRmMDdiZWE3NDI1ZTQzNDEwMTJlN2I3N2MxMTI1NCJ9
Copy-Tag: eyJwIjoiamF2YS1zZWN1cml0eWNlbnRlci8uT3dsQm90LnlhbWwiLCJoIjoiNzhmMTU2NzY2MWRmMDdiZWE3NDI1ZTQzNDEwMTJlN2I3N2MxMTI1NCJ9
Copy-Tag: eyJwIjoiamF2YS1zZXJ2aWNlLWNvbnRyb2wvLk93bEJvdC55YW1sIiwiaCI6Ijc4ZjE1Njc2NjFkZjA3YmVhNzQyNW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HUvLk93bEJvdC55YW1sIiwiaCI6Ijc4ZjE1Njc2NjFkZjA3YmVhNzQyNWU0MzQxMDEyZTdiNzdjMTEyNTQifQ==
Copy-Tag: eyJwIjoiamF2YS10cmFjZS8uT3dsQm90LnlhbWwiLCJoIjoiNzhmMTU2NzY2MWRmMDdiZWE3NDI1ZTQzNDEwMTJlN2I3N2MxMTI1NCJ9
Copy-Tag: eyJwIjoiamF2YS10cmFuc2xhdGUvLk93bEJvdC55YW1sIiwiaCI6Ijc4ZjE1Njc2NjFkZjA3YmVhNzQyNWU0MzQxMDEyZTdiNzdjMTEyNTQifQ==
Copy-Tag: eyJwIjoiamF2YS12aWRlby1pbnRlbGxpZ2VuY2UvLk93bEJvdC55YW1sIiwiaCI6Ijc4ZjE1Njc2NjFkZjA3YmVhNzQyNWU0MzQxMDEyZTdiNzdjMTEyNTQifQ==
Copy-Tag: eyJwIjoiamF2YS12aWRlby10cmFuc2NvZGVyLy5Pd2xCb3QueWFtbCIsImgiOiI3OGYxNTY3NjYxZGYwN2JlYTc0MjVlNDM0MTAxMmU3Yjc3YzExMjU0In0=

* 🦉 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] authored Mar 29, 2023
1 parent 1f8b063 commit 542f8fb
Show file tree
Hide file tree
Showing 79 changed files with 5,113 additions and 4,181 deletions.
8 changes: 4 additions & 4 deletions java-run/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@ Java idiomatic client for [Cloud Run][product-docs].


If you are using Maven, add this to your pom.xml file:

<!-- {x-version-update-start:google-cloud-run:released} -->


```xml
<dependency>
<groupId>com.google.cloud</groupId>
Expand Down Expand Up @@ -55,7 +55,7 @@ The client application making API calls must be granted [authorization scopes][a
You will need a [Google Cloud Platform Console][developer-console] project with the Cloud Run [API enabled][enable-api].
You will need to [enable billing][enable-billing] to use Google Cloud Run.
[Follow these instructions][create-project] to get your project set up. You will also need to set up the local development environment by
[installing the Google Cloud SDK][cloud-sdk] and running the following commands in command line:
[installing the Google Cloud Command Line Interface][cloud-cli] and running the following commands in command line:
`gcloud auth login` and `gcloud config set project [YOUR PROJECT ID]`.

### Installation and setup
Expand Down Expand Up @@ -179,14 +179,14 @@ Java is a registered trademark of Oracle and/or its affiliates.
[kokoro-badge-link-5]: http://storage.googleapis.com/cloud-devrel-public/java/badges/google-cloud-java/java11.html
[stability-image]: https://img.shields.io/badge/stability-preview-yellow
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-run.svg
[maven-version-link]: https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-run&core=gav
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-run/0.13.0
[authentication]: https://github.com/googleapis/google-cloud-java#authentication
[auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes
[predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles
[iam-policy]: https://cloud.google.com/iam/docs/overview#cloud-iam-policy
[developer-console]: https://console.developers.google.com/
[create-project]: https://cloud.google.com/resource-manager/docs/creating-managing-projects
[cloud-sdk]: https://cloud.google.com/sdk/
[cloud-cli]: https://cloud.google.com/cli
[troubleshooting]: https://github.com/googleapis/google-cloud-common/blob/main/troubleshooting/readme.md#troubleshooting
[contributing]: https://github.com/googleapis/google-cloud-java/blob/main/CONTRIBUTING.md
[code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ public ExecutionsFutureStub newStub(
* Cloud Run Execution Control Plane API.
* </pre>
*/
public abstract static class ExecutionsImplBase implements io.grpc.BindableService {
public interface AsyncService {

/**
*
Expand All @@ -218,7 +218,7 @@ public abstract static class ExecutionsImplBase implements io.grpc.BindableServi
* Gets information about an Execution.
* </pre>
*/
public void getExecution(
default void getExecution(
com.google.cloud.run.v2.GetExecutionRequest request,
io.grpc.stub.StreamObserver<com.google.cloud.run.v2.Execution> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
Expand All @@ -232,7 +232,7 @@ public void getExecution(
* Lists Executions from a Job.
* </pre>
*/
public void listExecutions(
default void listExecutions(
com.google.cloud.run.v2.ListExecutionsRequest request,
io.grpc.stub.StreamObserver<com.google.cloud.run.v2.ListExecutionsResponse>
responseObserver) {
Expand All @@ -247,41 +247,31 @@ public void listExecutions(
* Deletes an Execution.
* </pre>
*/
public void deleteExecution(
default void deleteExecution(
com.google.cloud.run.v2.DeleteExecutionRequest request,
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getDeleteExecutionMethod(), responseObserver);
}
}

/**
* Base class for the server implementation of the service Executions.
*
* <pre>
* Cloud Run Execution Control Plane API.
* </pre>
*/
public abstract static class ExecutionsImplBase implements io.grpc.BindableService, AsyncService {

@java.lang.Override
public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getGetExecutionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.run.v2.GetExecutionRequest,
com.google.cloud.run.v2.Execution>(this, METHODID_GET_EXECUTION)))
.addMethod(
getListExecutionsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.run.v2.ListExecutionsRequest,
com.google.cloud.run.v2.ListExecutionsResponse>(
this, METHODID_LIST_EXECUTIONS)))
.addMethod(
getDeleteExecutionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.run.v2.DeleteExecutionRequest,
com.google.longrunning.Operation>(this, METHODID_DELETE_EXECUTION)))
.build();
return ExecutionsGrpc.bindService(this);
}
}

/**
*
* A stub to allow clients to do asynchronous rpc calls to service Executions.
*
* <pre>
* Cloud Run Execution Control Plane API.
Expand Down Expand Up @@ -348,7 +338,7 @@ public void deleteExecution(
}

/**
*
* A stub to allow clients to do synchronous rpc calls to service Executions.
*
* <pre>
* Cloud Run Execution Control Plane API.
Expand Down Expand Up @@ -407,7 +397,7 @@ public com.google.longrunning.Operation deleteExecution(
}

/**
*
* A stub to allow clients to do ListenableFuture-style rpc calls to service Executions.
*
* <pre>
* Cloud Run Execution Control Plane API.
Expand Down Expand Up @@ -474,10 +464,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 ExecutionsImplBase serviceImpl;
private final AsyncService serviceImpl;
private final int methodId;

MethodHandlers(ExecutionsImplBase serviceImpl, int methodId) {
MethodHandlers(AsyncService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
Expand Down Expand Up @@ -518,6 +508,30 @@ public io.grpc.stub.StreamObserver<Req> invoke(
}
}

public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getGetExecutionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.run.v2.GetExecutionRequest, com.google.cloud.run.v2.Execution>(
service, METHODID_GET_EXECUTION)))
.addMethod(
getListExecutionsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.run.v2.ListExecutionsRequest,
com.google.cloud.run.v2.ListExecutionsResponse>(
service, METHODID_LIST_EXECUTIONS)))
.addMethod(
getDeleteExecutionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.run.v2.DeleteExecutionRequest,
com.google.longrunning.Operation>(service, METHODID_DELETE_EXECUTION)))
.build();
}

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

0 comments on commit 542f8fb

Please sign in to comment.