Skip to content

Commit

Permalink
chore(deps): [Many APIs] Update gapic-generator-java to 2.16.0 (#9287)
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: eyJwIjoiamF2YS1uZXR3b3JrLW1hbmFnZW1lbnQvLk93bEJvdC55YW1sIiwiaCI6Ijc4ZjE1Njc2NjFkZjA3YmVhNzQyNWU0MzQxMDEyZTdiNzdjMTEyNTQifQ==
Copy-Tag: eyJwIjoiamF2YS1uZXR3b3JrLXNlY3VyaXR5Ly5Pd2xCb3QueWFtbCIsImgiOiI3OGYxNTY3NjYxZGYwN2JlYTc0MjVlNDM0MTAxMmU3Yjc3YzExMjU0In0=
Copy-Tag: eyJwIjoiamF2YS1uZXR3b3JrY29ubmVjdGl2aXR5Ly5Pd2xCb3QueWFtbCIsImgiOiI3OGYxNTY3NjYxZGYwN2JlYTc0MjVlNDM0MTAxMmU3Yjc3YzExMjU0In0=
Copy-Tag: eyJwIjoiamF2YS1ub3RlYm9va3MvLk93bEJvdC55YW1sIiwiaCI6Ijc4ZjE1Njc2NjFkZjA3YmVhNzQyNWU0MzQxMDEyZTdiNzdjMTEyNTQifQ==
Copy-Tag: eyJwIjoiamF2YS1vcHRpbWl6YXRpb24vLk93bEJvdC55YW1sIiwiaCI6Ijc4ZjE1Njc2NjFkZjA3YmVhNzQyNWU0MzQxMDEyZTdiNzdjMTEyNTQifQ==
Copy-Tag: eyJwIjoiamF2YS1vcmNoZXN0cmF0aW9uLWFpcmZsb3cvLk93bEJvdC55YW1sIiwiaCI6Ijc4ZjE1Njc2NjFkZjA3YmVhNzQyNWU0MzQxMDEyZTdiNzdjMTEyNTQifQ==
Copy-Tag: eyJwIjoiamF2YS1vcmdwb2xpY3kvLk93bEJvdC55YW1sIiwiaCI6Ijc4ZjE1Njc2Nj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NTQifQ==
Copy-Tag: eyJwIjoiamF2YS1yZWNvbW1lbmRlci8uT3dsQm90LnlhbWwiLCJoIjoiNzhmMTU2NzY2MWRmMDdiZWE3NDI1ZTQzNDEwMTJlN2I3N2MxMTI1NCJ9
Copy-Tag: eyJwIjoiamF2YS1yZWRpcy8uT3dsQm90LnlhbWwiLCJoIjoiNzhmMTU2NzY2MWRmMDdiZWE3NDI1ZTQzNDEwMTJlN2I3N2MxMTI1NCJ9
Copy-Tag: eyJwIjoiamF2YS1yZXNvdXJjZS1zZXR0aW5ncy8uT3dsQm90LnlhbWwiLCJoIjoiNzhmMTU2NzY2MWRmMDdiZWE3NDI1ZTQzNDEwMTJlN2I3N2MxMTI1NCJ9
Copy-Tag: eyJwIjoiamF2YS1yZXNvdXJjZW1hbmFnZXIvLk93bEJvdC55YW1sIiwiaCI6Ijc4ZjE1Njc2NjFkZjA3YmVhNzQyNWU0MzQxMDEyZTdiNzdjMTEyNTQifQ==
Copy-Tag: eyJwIjoiamF2YS1yZXRhaWwvLk93bEJvdC55YW1sIiwiaCI6Ijc4ZjE1Njc2NjFkZjA3YmVhNzQyNWU0MzQxMDEyZTdiNzdjMTEyNTQifQ==

* 🦉 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 30, 2023
1 parent 2dcb333 commit c4e99d2
Show file tree
Hide file tree
Showing 86 changed files with 5,356 additions and 4,218 deletions.
8 changes: 4 additions & 4 deletions java-network-management/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ Java idiomatic client for [Network Management API][product-docs].


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

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


```xml
<dependency>
<groupId>com.google.cloud</groupId>
Expand Down Expand Up @@ -52,7 +52,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 Network Management API [API enabled][enable-api].
You will need to [enable billing][enable-billing] to use Google Network Management API.
[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 @@ -173,14 +173,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-stable-green
[maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-network-management.svg
[maven-version-link]: https://search.maven.org/search?q=g:com.google.cloud%20AND%20a:google-cloud-network-management&core=gav
[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-network-management/1.14.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 @@ -396,7 +396,7 @@ public ReachabilityServiceFutureStub newStub(
* to troubleshoot connectivity issues.
* </pre>
*/
public abstract static class ReachabilityServiceImplBase implements io.grpc.BindableService {
public interface AsyncService {

/**
*
Expand All @@ -405,7 +405,7 @@ public abstract static class ReachabilityServiceImplBase implements io.grpc.Bind
* Lists all Connectivity Tests owned by a project.
* </pre>
*/
public void listConnectivityTests(
default void listConnectivityTests(
com.google.cloud.networkmanagement.v1.ListConnectivityTestsRequest request,
io.grpc.stub.StreamObserver<
com.google.cloud.networkmanagement.v1.ListConnectivityTestsResponse>
Expand All @@ -421,7 +421,7 @@ public void listConnectivityTests(
* Gets the details of a specific Connectivity Test.
* </pre>
*/
public void getConnectivityTest(
default void getConnectivityTest(
com.google.cloud.networkmanagement.v1.GetConnectivityTestRequest request,
io.grpc.stub.StreamObserver<com.google.cloud.networkmanagement.v1.ConnectivityTest>
responseObserver) {
Expand All @@ -446,7 +446,7 @@ public void getConnectivityTest(
* see the Connectivity Test documentation.
* </pre>
*/
public void createConnectivityTest(
default void createConnectivityTest(
com.google.cloud.networkmanagement.v1.CreateConnectivityTestRequest request,
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
Expand All @@ -471,7 +471,7 @@ public void createConnectivityTest(
* in `ConnectivityTest` for for more details.
* </pre>
*/
public void updateConnectivityTest(
default void updateConnectivityTest(
com.google.cloud.networkmanagement.v1.UpdateConnectivityTestRequest request,
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
Expand All @@ -494,7 +494,7 @@ public void updateConnectivityTest(
* the reachability result returns a value of `UNKNOWN`.
* </pre>
*/
public void rerunConnectivityTest(
default void rerunConnectivityTest(
com.google.cloud.networkmanagement.v1.RerunConnectivityTestRequest request,
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
Expand All @@ -508,60 +508,38 @@ public void rerunConnectivityTest(
* Deletes a specific `ConnectivityTest`.
* </pre>
*/
public void deleteConnectivityTest(
default void deleteConnectivityTest(
com.google.cloud.networkmanagement.v1.DeleteConnectivityTestRequest request,
io.grpc.stub.StreamObserver<com.google.longrunning.Operation> responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getDeleteConnectivityTestMethod(), responseObserver);
}
}

/**
* Base class for the server implementation of the service ReachabilityService.
*
* <pre>
* The Reachability service in the Google Cloud Network Management API provides
* services that analyze the reachability within a single Google Virtual Private
* Cloud (VPC) network, between peered VPC networks, between VPC and on-premises
* networks, or between VPC networks and internet hosts. A reachability analysis
* is based on Google Cloud network configurations.
* You can use the analysis results to verify these configurations and
* to troubleshoot connectivity issues.
* </pre>
*/
public abstract static class ReachabilityServiceImplBase
implements io.grpc.BindableService, AsyncService {

@java.lang.Override
public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getListConnectivityTestsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.networkmanagement.v1.ListConnectivityTestsRequest,
com.google.cloud.networkmanagement.v1.ListConnectivityTestsResponse>(
this, METHODID_LIST_CONNECTIVITY_TESTS)))
.addMethod(
getGetConnectivityTestMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.networkmanagement.v1.GetConnectivityTestRequest,
com.google.cloud.networkmanagement.v1.ConnectivityTest>(
this, METHODID_GET_CONNECTIVITY_TEST)))
.addMethod(
getCreateConnectivityTestMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.networkmanagement.v1.CreateConnectivityTestRequest,
com.google.longrunning.Operation>(this, METHODID_CREATE_CONNECTIVITY_TEST)))
.addMethod(
getUpdateConnectivityTestMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.networkmanagement.v1.UpdateConnectivityTestRequest,
com.google.longrunning.Operation>(this, METHODID_UPDATE_CONNECTIVITY_TEST)))
.addMethod(
getRerunConnectivityTestMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.networkmanagement.v1.RerunConnectivityTestRequest,
com.google.longrunning.Operation>(this, METHODID_RERUN_CONNECTIVITY_TEST)))
.addMethod(
getDeleteConnectivityTestMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.networkmanagement.v1.DeleteConnectivityTestRequest,
com.google.longrunning.Operation>(this, METHODID_DELETE_CONNECTIVITY_TEST)))
.build();
return ReachabilityServiceGrpc.bindService(this);
}
}

/**
*
* A stub to allow clients to do asynchronous rpc calls to service ReachabilityService.
*
* <pre>
* The Reachability service in the Google Cloud Network Management API provides
Expand Down Expand Up @@ -716,7 +694,7 @@ public void deleteConnectivityTest(
}

/**
*
* A stub to allow clients to do synchronous rpc calls to service ReachabilityService.
*
* <pre>
* The Reachability service in the Google Cloud Network Management API provides
Expand Down Expand Up @@ -852,7 +830,7 @@ public com.google.longrunning.Operation deleteConnectivityTest(
}

/**
*
* A stub to allow clients to do ListenableFuture-style rpc calls to service ReachabilityService.
*
* <pre>
* The Reachability service in the Google Cloud Network Management API provides
Expand Down Expand Up @@ -1006,10 +984,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 ReachabilityServiceImplBase serviceImpl;
private final AsyncService serviceImpl;
private final int methodId;

MethodHandlers(ReachabilityServiceImplBase serviceImpl, int methodId) {
MethodHandlers(AsyncService serviceImpl, int methodId) {
this.serviceImpl = serviceImpl;
this.methodId = methodId;
}
Expand Down Expand Up @@ -1067,6 +1045,49 @@ public io.grpc.stub.StreamObserver<Req> invoke(
}
}

public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getListConnectivityTestsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.networkmanagement.v1.ListConnectivityTestsRequest,
com.google.cloud.networkmanagement.v1.ListConnectivityTestsResponse>(
service, METHODID_LIST_CONNECTIVITY_TESTS)))
.addMethod(
getGetConnectivityTestMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.networkmanagement.v1.GetConnectivityTestRequest,
com.google.cloud.networkmanagement.v1.ConnectivityTest>(
service, METHODID_GET_CONNECTIVITY_TEST)))
.addMethod(
getCreateConnectivityTestMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.networkmanagement.v1.CreateConnectivityTestRequest,
com.google.longrunning.Operation>(service, METHODID_CREATE_CONNECTIVITY_TEST)))
.addMethod(
getUpdateConnectivityTestMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.networkmanagement.v1.UpdateConnectivityTestRequest,
com.google.longrunning.Operation>(service, METHODID_UPDATE_CONNECTIVITY_TEST)))
.addMethod(
getRerunConnectivityTestMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.networkmanagement.v1.RerunConnectivityTestRequest,
com.google.longrunning.Operation>(service, METHODID_RERUN_CONNECTIVITY_TEST)))
.addMethod(
getDeleteConnectivityTestMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.cloud.networkmanagement.v1.DeleteConnectivityTestRequest,
com.google.longrunning.Operation>(service, METHODID_DELETE_CONNECTIVITY_TEST)))
.build();
}

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

0 comments on commit c4e99d2

Please sign in to comment.