From 3ace23bf1260d589cf5071296c7f9bcd060a04b2 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 5 May 2022 20:12:16 +0000 Subject: [PATCH] chore(deps): upgrade gapic-generator-java to 2.7.0 and update gax-java to 2.16.0 (#194) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 446250659 Source-Link: https://github.com/googleapis/googleapis/commit/dc4ef314fecf1b00833e78288cf2eb4d2b165ad1 Source-Link: https://github.com/googleapis/googleapis-gen/commit/5fdda4ddfbab87998e77e4a453e0ff87986d2db8 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNWZkZGE0ZGRmYmFiODc5OThlNzdlNGE0NTNlMGZmODc5ODZkMmRiOCJ9 --- .../vpcaccess/v1/VpcAccessServiceClient.java | 46 ++++++++++++++++++- .../v1/VpcAccessServiceSettings.java | 4 +- .../cloud/vpcaccess/v1/package-info.java | 4 +- .../GrpcVpcAccessServiceCallableFactory.java | 2 +- .../v1/stub/GrpcVpcAccessServiceStub.java | 2 +- .../v1/stub/VpcAccessServiceStub.java | 2 +- .../v1/stub/VpcAccessServiceStubSettings.java | 4 +- .../vpcaccess/v1/MockVpcAccessService.java | 2 +- .../v1/MockVpcAccessServiceImpl.java | 2 +- .../v1/VpcAccessServiceClientTest.java | 2 +- .../cloud/vpcaccess/v1/ConnectorName.java | 2 +- .../cloud/vpcaccess/v1/LocationName.java | 2 +- 12 files changed, 62 insertions(+), 12 deletions(-) diff --git a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClient.java b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClient.java index 1a50ff3c..565e0c12 100644 --- a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClient.java +++ b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClient.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -48,6 +48,8 @@ * calls that map to API methods. Sample code to get started: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) { * ConnectorName name = ConnectorName.of("[PROJECT]", "[LOCATION]", "[CONNECTOR]"); * Connector response = vpcAccessServiceClient.getConnector(name); @@ -84,6 +86,8 @@ *To customize credentials: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * VpcAccessServiceSettings vpcAccessServiceSettings = * VpcAccessServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -95,6 +99,8 @@ *To customize the endpoint: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * VpcAccessServiceSettings vpcAccessServiceSettings = * VpcAccessServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * VpcAccessServiceClient vpcAccessServiceClient = @@ -174,6 +180,8 @@ public final OperationsClient getOperationsClient() { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * String connectorId = "connectorId1724784200"; @@ -207,6 +215,8 @@ public final OperationFuturecreateConnectorAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * String connectorId = "connectorId1724784200"; @@ -240,6 +250,8 @@ public final OperationFuturecreateConnectorAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) { * CreateConnectorRequest request = * CreateConnectorRequest.newBuilder() @@ -266,6 +278,8 @@ public final OperationFuturecreateConnectorAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) { * CreateConnectorRequest request = * CreateConnectorRequest.newBuilder() @@ -292,6 +306,8 @@ public final OperationFuturecreateConnectorAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) { * CreateConnectorRequest request = * CreateConnectorRequest.newBuilder() @@ -317,6 +333,8 @@ public final UnaryCallablecreateConnectorCal * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) { * ConnectorName name = ConnectorName.of("[PROJECT]", "[LOCATION]", "[CONNECTOR]"); * Connector response = vpcAccessServiceClient.getConnector(name); @@ -339,6 +357,8 @@ public final Connector getConnector(ConnectorName name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) { * String name = ConnectorName.of("[PROJECT]", "[LOCATION]", "[CONNECTOR]").toString(); * Connector response = vpcAccessServiceClient.getConnector(name); @@ -360,6 +380,8 @@ public final Connector getConnector(String name) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) { * GetConnectorRequest request = * GetConnectorRequest.newBuilder() @@ -383,6 +405,8 @@ public final Connector getConnector(GetConnectorRequest request) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) { * GetConnectorRequest request = * GetConnectorRequest.newBuilder() @@ -406,6 +430,8 @@ public final UnaryCallablegetConnectorCallable( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (Connector element : vpcAccessServiceClient.listConnectors(parent).iterateAll()) { @@ -432,6 +458,8 @@ public final ListConnectorsPagedResponse listConnectors(LocationName parent) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (Connector element : vpcAccessServiceClient.listConnectors(parent).iterateAll()) { @@ -455,6 +483,8 @@ public final ListConnectorsPagedResponse listConnectors(String parent) { *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) { * ListConnectorsRequest request = * ListConnectorsRequest.newBuilder() @@ -482,6 +512,8 @@ public final ListConnectorsPagedResponse listConnectors(ListConnectorsRequest re *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) { * ListConnectorsRequest request = * ListConnectorsRequest.newBuilder() @@ -510,6 +542,8 @@ public final ListConnectorsPagedResponse listConnectors(ListConnectorsRequest re *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) { * ListConnectorsRequest request = * ListConnectorsRequest.newBuilder() @@ -545,6 +579,8 @@ public final ListConnectorsPagedResponse listConnectors(ListConnectorsRequest re *Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) { * ConnectorName name = ConnectorName.of("[PROJECT]", "[LOCATION]", "[CONNECTOR]"); * vpcAccessServiceClient.deleteConnectorAsync(name).get(); @@ -567,6 +603,8 @@ public final OperationFuturedeleteConnectorAsync(Conn * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) { * String name = ConnectorName.of("[PROJECT]", "[LOCATION]", "[CONNECTOR]").toString(); * vpcAccessServiceClient.deleteConnectorAsync(name).get(); @@ -588,6 +626,8 @@ public final OperationFuturedeleteConnectorAsync(Stri * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) { * DeleteConnectorRequest request = * DeleteConnectorRequest.newBuilder() @@ -612,6 +652,8 @@ public final OperationFuturedeleteConnectorAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) { * DeleteConnectorRequest request = * DeleteConnectorRequest.newBuilder() @@ -636,6 +678,8 @@ public final OperationFuturedeleteConnectorAsync( * Sample code: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) { * DeleteConnectorRequest request = * DeleteConnectorRequest.newBuilder() diff --git a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java index 8bf9ae56..dad3d315 100644 --- a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java +++ b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -55,6 +55,8 @@ *For example, to set the total timeout of getConnector to 30 seconds: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * VpcAccessServiceSettings.Builder vpcAccessServiceSettingsBuilder = * VpcAccessServiceSettings.newBuilder(); * vpcAccessServiceSettingsBuilder diff --git a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/package-info.java b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/package-info.java index 88008ad9..ad55ba29 100644 --- a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/package-info.java +++ b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/package-info.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -26,6 +26,8 @@ *Sample for VpcAccessServiceClient: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * try (VpcAccessServiceClient vpcAccessServiceClient = VpcAccessServiceClient.create()) { * ConnectorName name = ConnectorName.of("[PROJECT]", "[LOCATION]", "[CONNECTOR]"); * Connector response = vpcAccessServiceClient.getConnector(name); diff --git a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceCallableFactory.java b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceCallableFactory.java index 00852d6f..6864188f 100644 --- a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceCallableFactory.java +++ b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceCallableFactory.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceStub.java b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceStub.java index 1950c7d7..eb7b7474 100644 --- a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceStub.java +++ b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/GrpcVpcAccessServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStub.java b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStub.java index 85338320..675ea276 100644 --- a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStub.java +++ b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStub.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java index 7bf8dd7b..ef346659 100644 --- a/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java +++ b/google-cloud-vpcaccess/src/main/java/com/google/cloud/vpcaccess/v1/stub/VpcAccessServiceStubSettings.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -80,6 +80,8 @@ *For example, to set the total timeout of getConnector to 30 seconds: * *
{@code + * // This snippet has been automatically generated for illustrative purposes only. + * // It may require modifications to work in your environment. * VpcAccessServiceStubSettings.Builder vpcAccessServiceSettingsBuilder = * VpcAccessServiceStubSettings.newBuilder(); * vpcAccessServiceSettingsBuilder diff --git a/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessService.java b/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessService.java index 9e98f24a..4baa4c81 100644 --- a/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessService.java +++ b/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessService.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessServiceImpl.java b/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessServiceImpl.java index 0fe9cdcc..2708288c 100644 --- a/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessServiceImpl.java +++ b/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/MockVpcAccessServiceImpl.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientTest.java b/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientTest.java index 3d222758..6fbcbdcd 100644 --- a/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientTest.java +++ b/google-cloud-vpcaccess/src/test/java/com/google/cloud/vpcaccess/v1/VpcAccessServiceClientTest.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java index 15582306..a247923a 100644 --- a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java +++ b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/ConnectorName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. diff --git a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/LocationName.java b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/LocationName.java index 419e05bd..5ae990f1 100644 --- a/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/LocationName.java +++ b/proto-google-cloud-vpcaccess-v1/src/main/java/com/google/cloud/vpcaccess/v1/LocationName.java @@ -1,5 +1,5 @@ /* - * Copyright 2021 Google LLC + * Copyright 2022 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License.