{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* HubName name = HubName.of("[PROJECT]", "[HUB]");
* Hub response = hubServiceClient.getHub(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.
* HubServiceSettings hubServiceSettings =
* HubServiceSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -94,6 +98,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.
* HubServiceSettings hubServiceSettings =
* HubServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
* HubServiceClient hubServiceClient = HubServiceClient.create(hubServiceSettings);
@@ -170,6 +176,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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* for (Hub element : hubServiceClient.listHubs(parent).iterateAll()) {
@@ -194,6 +202,8 @@ public final ListHubsPagedResponse listHubs(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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* for (Hub element : hubServiceClient.listHubs(parent).iterateAll()) {
@@ -217,6 +227,8 @@ public final ListHubsPagedResponse listHubs(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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* ListHubsRequest request =
* ListHubsRequest.newBuilder()
@@ -246,6 +258,8 @@ public final ListHubsPagedResponse listHubs(ListHubsRequest request) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* ListHubsRequest request =
* ListHubsRequest.newBuilder()
@@ -274,6 +288,8 @@ public final UnaryCallable listHubsPaged
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* ListHubsRequest request =
* ListHubsRequest.newBuilder()
@@ -309,6 +325,8 @@ public final UnaryCallable listHubsCallable()
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* HubName name = HubName.of("[PROJECT]", "[HUB]");
* Hub response = hubServiceClient.getHub(name);
@@ -331,6 +349,8 @@ public final Hub getHub(HubName name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String name = HubName.of("[PROJECT]", "[HUB]").toString();
* Hub response = hubServiceClient.getHub(name);
@@ -352,6 +372,8 @@ public final Hub getHub(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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* GetHubRequest request =
* GetHubRequest.newBuilder().setName(HubName.of("[PROJECT]", "[HUB]").toString()).build();
@@ -373,6 +395,8 @@ public final Hub getHub(GetHubRequest request) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* GetHubRequest request =
* GetHubRequest.newBuilder().setName(HubName.of("[PROJECT]", "[HUB]").toString()).build();
@@ -393,6 +417,8 @@ public final UnaryCallable getHubCallable() {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* Hub hub = Hub.newBuilder().build();
@@ -424,6 +450,8 @@ public final OperationFuture createHubAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* Hub hub = Hub.newBuilder().build();
@@ -451,6 +479,8 @@ public final OperationFuture createHubAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* CreateHubRequest request =
* CreateHubRequest.newBuilder()
@@ -477,6 +507,8 @@ public final OperationFuture createHubAsync(CreateHubReq
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* CreateHubRequest request =
* CreateHubRequest.newBuilder()
@@ -504,6 +536,8 @@ public final OperationFuture createHubAsync(CreateHubReq
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* CreateHubRequest request =
* CreateHubRequest.newBuilder()
@@ -529,6 +563,8 @@ public final UnaryCallable createHubCallable() {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* Hub hub = Hub.newBuilder().build();
* FieldMask updateMask = FieldMask.newBuilder().build();
@@ -557,6 +593,8 @@ public final OperationFuture updateHubAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* UpdateHubRequest request =
* UpdateHubRequest.newBuilder()
@@ -582,6 +620,8 @@ public final OperationFuture updateHubAsync(UpdateHubReq
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* UpdateHubRequest request =
* UpdateHubRequest.newBuilder()
@@ -608,6 +648,8 @@ public final OperationFuture updateHubAsync(UpdateHubReq
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* UpdateHubRequest request =
* UpdateHubRequest.newBuilder()
@@ -632,6 +674,8 @@ public final UnaryCallable updateHubCallable() {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* HubName name = HubName.of("[PROJECT]", "[HUB]");
* hubServiceClient.deleteHubAsync(name).get();
@@ -654,6 +698,8 @@ public final OperationFuture deleteHubAsync(HubName na
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String name = HubName.of("[PROJECT]", "[HUB]").toString();
* hubServiceClient.deleteHubAsync(name).get();
@@ -675,6 +721,8 @@ public final OperationFuture deleteHubAsync(String nam
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* DeleteHubRequest request =
* DeleteHubRequest.newBuilder()
@@ -699,6 +747,8 @@ public final OperationFuture deleteHubAsync(DeleteHubR
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* DeleteHubRequest request =
* DeleteHubRequest.newBuilder()
@@ -724,6 +774,8 @@ public final OperationFuture deleteHubAsync(DeleteHubR
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* DeleteHubRequest request =
* DeleteHubRequest.newBuilder()
@@ -747,6 +799,8 @@ public final UnaryCallable deleteHubCallable() {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* for (Spoke element : hubServiceClient.listSpokes(parent).iterateAll()) {
@@ -771,6 +825,8 @@ public final ListSpokesPagedResponse listSpokes(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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* for (Spoke element : hubServiceClient.listSpokes(parent).iterateAll()) {
@@ -794,6 +850,8 @@ public final ListSpokesPagedResponse listSpokes(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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* ListSpokesRequest request =
* ListSpokesRequest.newBuilder()
@@ -823,6 +881,8 @@ public final ListSpokesPagedResponse listSpokes(ListSpokesRequest request) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* ListSpokesRequest request =
* ListSpokesRequest.newBuilder()
@@ -851,6 +911,8 @@ public final UnaryCallable listSpoke
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* ListSpokesRequest request =
* ListSpokesRequest.newBuilder()
@@ -886,6 +948,8 @@ public final UnaryCallable listSpokesCall
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* SpokeName name = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]");
* Spoke response = hubServiceClient.getSpoke(name);
@@ -908,6 +972,8 @@ public final Spoke getSpoke(SpokeName name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String name = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString();
* Spoke response = hubServiceClient.getSpoke(name);
@@ -929,6 +995,8 @@ public final Spoke getSpoke(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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* GetSpokeRequest request =
* GetSpokeRequest.newBuilder()
@@ -952,6 +1020,8 @@ public final Spoke getSpoke(GetSpokeRequest request) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* GetSpokeRequest request =
* GetSpokeRequest.newBuilder()
@@ -974,6 +1044,8 @@ public final UnaryCallable getSpokeCallable() {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* Spoke spoke = Spoke.newBuilder().build();
@@ -1005,6 +1077,8 @@ public final OperationFuture createSpokeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* Spoke spoke = Spoke.newBuilder().build();
@@ -1036,6 +1110,8 @@ public final OperationFuture createSpokeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* CreateSpokeRequest request =
* CreateSpokeRequest.newBuilder()
@@ -1063,6 +1139,8 @@ public final OperationFuture createSpokeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* CreateSpokeRequest request =
* CreateSpokeRequest.newBuilder()
@@ -1090,6 +1168,8 @@ public final OperationFuture createSpokeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* CreateSpokeRequest request =
* CreateSpokeRequest.newBuilder()
@@ -1115,6 +1195,8 @@ public final UnaryCallable createSpokeCallable()
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* Spoke spoke = Spoke.newBuilder().build();
* FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1143,6 +1225,8 @@ public final OperationFuture updateSpokeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* UpdateSpokeRequest request =
* UpdateSpokeRequest.newBuilder()
@@ -1169,6 +1253,8 @@ public final OperationFuture updateSpokeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* UpdateSpokeRequest request =
* UpdateSpokeRequest.newBuilder()
@@ -1195,6 +1281,8 @@ public final OperationFuture updateSpokeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* UpdateSpokeRequest request =
* UpdateSpokeRequest.newBuilder()
@@ -1219,6 +1307,8 @@ public final UnaryCallable updateSpokeCallable()
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* SpokeName name = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]");
* hubServiceClient.deleteSpokeAsync(name).get();
@@ -1241,6 +1331,8 @@ public final OperationFuture deleteSpokeAsync(SpokeNam
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String name = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString();
* hubServiceClient.deleteSpokeAsync(name).get();
@@ -1262,6 +1354,8 @@ public final OperationFuture deleteSpokeAsync(String n
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* DeleteSpokeRequest request =
* DeleteSpokeRequest.newBuilder()
@@ -1287,6 +1381,8 @@ public final OperationFuture deleteSpokeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* DeleteSpokeRequest request =
* DeleteSpokeRequest.newBuilder()
@@ -1312,6 +1408,8 @@ public final OperationFuture deleteSpokeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* DeleteSpokeRequest request =
* DeleteSpokeRequest.newBuilder()
diff --git a/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java
index f452d00f..1494c9f0 100644
--- a/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.java
+++ b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/HubServiceSettings.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.
@@ -57,6 +57,8 @@
* For example, to set the total timeout of getHub to 30 seconds:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* HubServiceSettings.Builder hubServiceSettingsBuilder = HubServiceSettings.newBuilder();
* hubServiceSettingsBuilder
* .getHubSettings()
diff --git a/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java
index 65d5bc2e..55d9a476 100644
--- a/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/package-info.java
+++ b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/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.
@@ -28,6 +28,8 @@
* Sample for HubServiceClient:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* HubName name = HubName.of("[PROJECT]", "[HUB]");
* Hub response = hubServiceClient.getHub(name);
diff --git a/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java
index 8ee01f16..26be51b1 100644
--- a/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.java
+++ b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceCallableFactory.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-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java
index b3673309..91b811c5 100644
--- a/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.java
+++ b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/GrpcHubServiceStub.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-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java
index 3d47c728..10d60c8c 100644
--- a/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.java
+++ b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStub.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-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java
index 2047e0e6..8db4e439 100644
--- a/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java
+++ b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.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.
@@ -90,6 +90,8 @@
* For example, to set the total timeout of getHub to 30 seconds:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* HubServiceStubSettings.Builder hubServiceSettingsBuilder = HubServiceStubSettings.newBuilder();
* hubServiceSettingsBuilder
* .getHubSettings()
diff --git a/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java
index 18e3a85f..85056ca6 100644
--- a/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.java
+++ b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClient.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.
@@ -49,6 +49,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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* HubName name = HubName.of("[PROJECT]", "[HUB]");
* Hub response = hubServiceClient.getHub(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.
* HubServiceSettings hubServiceSettings =
* HubServiceSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -94,6 +98,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.
* HubServiceSettings hubServiceSettings =
* HubServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
* HubServiceClient hubServiceClient = HubServiceClient.create(hubServiceSettings);
@@ -171,6 +177,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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* for (Hub element : hubServiceClient.listHubs(parent).iterateAll()) {
@@ -195,6 +203,8 @@ public final ListHubsPagedResponse listHubs(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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* for (Hub element : hubServiceClient.listHubs(parent).iterateAll()) {
@@ -218,6 +228,8 @@ public final ListHubsPagedResponse listHubs(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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* ListHubsRequest request =
* ListHubsRequest.newBuilder()
@@ -247,6 +259,8 @@ public final ListHubsPagedResponse listHubs(ListHubsRequest request) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* ListHubsRequest request =
* ListHubsRequest.newBuilder()
@@ -275,6 +289,8 @@ public final UnaryCallable listHubsPaged
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* ListHubsRequest request =
* ListHubsRequest.newBuilder()
@@ -310,6 +326,8 @@ public final UnaryCallable listHubsCallable()
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* HubName name = HubName.of("[PROJECT]", "[HUB]");
* Hub response = hubServiceClient.getHub(name);
@@ -332,6 +350,8 @@ public final Hub getHub(HubName name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String name = HubName.of("[PROJECT]", "[HUB]").toString();
* Hub response = hubServiceClient.getHub(name);
@@ -353,6 +373,8 @@ public final Hub getHub(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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* GetHubRequest request =
* GetHubRequest.newBuilder().setName(HubName.of("[PROJECT]", "[HUB]").toString()).build();
@@ -374,6 +396,8 @@ public final Hub getHub(GetHubRequest request) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* GetHubRequest request =
* GetHubRequest.newBuilder().setName(HubName.of("[PROJECT]", "[HUB]").toString()).build();
@@ -394,6 +418,8 @@ public final UnaryCallable getHubCallable() {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* Hub hub = Hub.newBuilder().build();
@@ -425,6 +451,8 @@ public final OperationFuture createHubAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* Hub hub = Hub.newBuilder().build();
@@ -452,6 +480,8 @@ public final OperationFuture createHubAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* CreateHubRequest request =
* CreateHubRequest.newBuilder()
@@ -478,6 +508,8 @@ public final OperationFuture createHubAsync(CreateHubReq
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* CreateHubRequest request =
* CreateHubRequest.newBuilder()
@@ -505,6 +537,8 @@ public final OperationFuture createHubAsync(CreateHubReq
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* CreateHubRequest request =
* CreateHubRequest.newBuilder()
@@ -530,6 +564,8 @@ public final UnaryCallable createHubCallable() {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* Hub hub = Hub.newBuilder().build();
* FieldMask updateMask = FieldMask.newBuilder().build();
@@ -558,6 +594,8 @@ public final OperationFuture updateHubAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* UpdateHubRequest request =
* UpdateHubRequest.newBuilder()
@@ -583,6 +621,8 @@ public final OperationFuture updateHubAsync(UpdateHubReq
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* UpdateHubRequest request =
* UpdateHubRequest.newBuilder()
@@ -609,6 +649,8 @@ public final OperationFuture updateHubAsync(UpdateHubReq
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* UpdateHubRequest request =
* UpdateHubRequest.newBuilder()
@@ -633,6 +675,8 @@ public final UnaryCallable updateHubCallable() {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* HubName name = HubName.of("[PROJECT]", "[HUB]");
* hubServiceClient.deleteHubAsync(name).get();
@@ -655,6 +699,8 @@ public final OperationFuture deleteHubAsync(HubName na
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String name = HubName.of("[PROJECT]", "[HUB]").toString();
* hubServiceClient.deleteHubAsync(name).get();
@@ -676,6 +722,8 @@ public final OperationFuture deleteHubAsync(String nam
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* DeleteHubRequest request =
* DeleteHubRequest.newBuilder()
@@ -700,6 +748,8 @@ public final OperationFuture deleteHubAsync(DeleteHubR
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* DeleteHubRequest request =
* DeleteHubRequest.newBuilder()
@@ -725,6 +775,8 @@ public final OperationFuture deleteHubAsync(DeleteHubR
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* DeleteHubRequest request =
* DeleteHubRequest.newBuilder()
@@ -748,6 +800,8 @@ public final UnaryCallable deleteHubCallable() {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* for (Spoke element : hubServiceClient.listSpokes(parent).iterateAll()) {
@@ -772,6 +826,8 @@ public final ListSpokesPagedResponse listSpokes(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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* for (Spoke element : hubServiceClient.listSpokes(parent).iterateAll()) {
@@ -795,6 +851,8 @@ public final ListSpokesPagedResponse listSpokes(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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* ListSpokesRequest request =
* ListSpokesRequest.newBuilder()
@@ -824,6 +882,8 @@ public final ListSpokesPagedResponse listSpokes(ListSpokesRequest request) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* ListSpokesRequest request =
* ListSpokesRequest.newBuilder()
@@ -852,6 +912,8 @@ public final UnaryCallable listSpoke
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* ListSpokesRequest request =
* ListSpokesRequest.newBuilder()
@@ -887,6 +949,8 @@ public final UnaryCallable listSpokesCall
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* SpokeName name = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]");
* Spoke response = hubServiceClient.getSpoke(name);
@@ -909,6 +973,8 @@ public final Spoke getSpoke(SpokeName name) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String name = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString();
* Spoke response = hubServiceClient.getSpoke(name);
@@ -930,6 +996,8 @@ public final Spoke getSpoke(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 (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* GetSpokeRequest request =
* GetSpokeRequest.newBuilder()
@@ -953,6 +1021,8 @@ public final Spoke getSpoke(GetSpokeRequest request) {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* GetSpokeRequest request =
* GetSpokeRequest.newBuilder()
@@ -975,6 +1045,8 @@ public final UnaryCallable getSpokeCallable() {
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* Spoke spoke = Spoke.newBuilder().build();
@@ -1006,6 +1078,8 @@ public final OperationFuture createSpokeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* Spoke spoke = Spoke.newBuilder().build();
@@ -1037,6 +1111,8 @@ public final OperationFuture createSpokeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* CreateSpokeRequest request =
* CreateSpokeRequest.newBuilder()
@@ -1064,6 +1140,8 @@ public final OperationFuture createSpokeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* CreateSpokeRequest request =
* CreateSpokeRequest.newBuilder()
@@ -1091,6 +1169,8 @@ public final OperationFuture createSpokeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* CreateSpokeRequest request =
* CreateSpokeRequest.newBuilder()
@@ -1116,6 +1196,8 @@ public final UnaryCallable createSpokeCallable()
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* Spoke spoke = Spoke.newBuilder().build();
* FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1144,6 +1226,8 @@ public final OperationFuture updateSpokeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* UpdateSpokeRequest request =
* UpdateSpokeRequest.newBuilder()
@@ -1170,6 +1254,8 @@ public final OperationFuture updateSpokeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* UpdateSpokeRequest request =
* UpdateSpokeRequest.newBuilder()
@@ -1196,6 +1282,8 @@ public final OperationFuture updateSpokeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* UpdateSpokeRequest request =
* UpdateSpokeRequest.newBuilder()
@@ -1220,6 +1308,8 @@ public final UnaryCallable updateSpokeCallable()
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* SpokeName name = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]");
* hubServiceClient.deleteSpokeAsync(name).get();
@@ -1242,6 +1332,8 @@ public final OperationFuture deleteSpokeAsync(SpokeNam
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String name = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString();
* hubServiceClient.deleteSpokeAsync(name).get();
@@ -1263,6 +1355,8 @@ public final OperationFuture deleteSpokeAsync(String n
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* DeleteSpokeRequest request =
* DeleteSpokeRequest.newBuilder()
@@ -1288,6 +1382,8 @@ public final OperationFuture deleteSpokeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* DeleteSpokeRequest request =
* DeleteSpokeRequest.newBuilder()
@@ -1313,6 +1409,8 @@ public final OperationFuture deleteSpokeAsync(
* Sample code:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* DeleteSpokeRequest request =
* DeleteSpokeRequest.newBuilder()
diff --git a/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java
index a2d35ac8..127727c7 100644
--- a/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.java
+++ b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceSettings.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.
@@ -57,6 +57,8 @@
* For example, to set the total timeout of getHub to 30 seconds:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* HubServiceSettings.Builder hubServiceSettingsBuilder = HubServiceSettings.newBuilder();
* hubServiceSettingsBuilder
* .getHubSettings()
diff --git a/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java
index 55d0a4e6..214f5db5 100644
--- a/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/package-info.java
+++ b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/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 HubServiceClient:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* HubName name = HubName.of("[PROJECT]", "[HUB]");
* Hub response = hubServiceClient.getHub(name);
diff --git a/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java
index cd0307cd..38916f30 100644
--- a/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.java
+++ b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceCallableFactory.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-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java
index 048e6c3e..82989683 100644
--- a/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.java
+++ b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/GrpcHubServiceStub.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-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java
index cc103345..b0f411c7 100644
--- a/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.java
+++ b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStub.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-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java
index 6a88b64a..d6118520 100644
--- a/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java
+++ b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.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.
@@ -90,6 +90,8 @@
* For example, to set the total timeout of getHub to 30 seconds:
*
*
{@code
+ * // This snippet has been automatically generated for illustrative purposes only.
+ * // It may require modifications to work in your environment.
* HubServiceStubSettings.Builder hubServiceSettingsBuilder = HubServiceStubSettings.newBuilder();
* hubServiceSettingsBuilder
* .getHubSettings()
diff --git a/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java b/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java
index 82d2c3b3..59093f90 100644
--- a/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.java
+++ b/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/HubServiceClientTest.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-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java b/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java
index 87afd72b..c463ef4c 100644
--- a/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.java
+++ b/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubService.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-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java b/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java
index 737726c5..27334d31 100644
--- a/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.java
+++ b/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1/MockHubServiceImpl.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-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java b/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java
index 2906ea39..7d8a655c 100644
--- a/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.java
+++ b/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/HubServiceClientTest.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-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java b/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java
index 88288c83..89660bd3 100644
--- a/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.java
+++ b/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubService.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-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java b/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java
index eb873c11..94490c91 100644
--- a/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.java
+++ b/google-cloud-networkconnectivity/src/test/java/com/google/cloud/networkconnectivity/v1alpha1/MockHubServiceImpl.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/grpc-google-cloud-networkconnectivity-v1/pom.xml b/grpc-google-cloud-networkconnectivity-v1/pom.xml
index 7825bf2d..087e8b31 100644
--- a/grpc-google-cloud-networkconnectivity-v1/pom.xml
+++ b/grpc-google-cloud-networkconnectivity-v1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
grpc-google-cloud-networkconnectivity-v1
- 1.1.2
+ 1.2.0
grpc-google-cloud-networkconnectivity-v1
GRPC library for google-cloud-networkconnectivity
com.google.cloud
google-cloud-networkconnectivity-parent
- 1.1.2
+ 1.2.0
diff --git a/grpc-google-cloud-networkconnectivity-v1alpha1/pom.xml b/grpc-google-cloud-networkconnectivity-v1alpha1/pom.xml
index 90f4282e..91adf205 100644
--- a/grpc-google-cloud-networkconnectivity-v1alpha1/pom.xml
+++ b/grpc-google-cloud-networkconnectivity-v1alpha1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
grpc-google-cloud-networkconnectivity-v1alpha1
- 0.7.2
+ 0.8.0
grpc-google-cloud-networkconnectivity-v1alpha1
GRPC library for google-cloud-networkconnectivity
com.google.cloud
google-cloud-networkconnectivity-parent
- 1.1.2
+ 1.2.0
diff --git a/pom.xml b/pom.xml
index fae2fccd..4ac73b70 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
com.google.cloud
google-cloud-networkconnectivity-parent
pom
- 1.1.2
+ 1.2.0
Google Network Connectivity Center Parent
https://github.com/googleapis/java-
@@ -14,7 +14,7 @@
com.google.cloud
google-cloud-shared-config
- 1.3.2
+ 1.4.0
@@ -61,33 +61,33 @@
com.google.cloud
google-cloud-networkconnectivity
- 1.1.2
+ 1.2.0
com.google.api.grpc
proto-google-cloud-networkconnectivity-v1
- 1.1.2
+ 1.2.0
com.google.api.grpc
grpc-google-cloud-networkconnectivity-v1
- 1.1.2
+ 1.2.0
com.google.api.grpc
proto-google-cloud-networkconnectivity-v1alpha1
- 0.7.2
+ 0.8.0
com.google.api.grpc
grpc-google-cloud-networkconnectivity-v1alpha1
- 0.7.2
+ 0.8.0
com.google.cloud
google-cloud-shared-dependencies
- 2.10.0
+ 2.12.0
pom
import
@@ -125,7 +125,7 @@
org.apache.maven.plugins
maven-project-info-reports-plugin
- 3.2.2
+ 3.3.0
@@ -152,7 +152,7 @@
org.apache.maven.plugins
maven-javadoc-plugin
- 3.3.2
+ 3.4.0
html
diff --git a/proto-google-cloud-networkconnectivity-v1/pom.xml b/proto-google-cloud-networkconnectivity-v1/pom.xml
index a2a328a6..6e164eef 100644
--- a/proto-google-cloud-networkconnectivity-v1/pom.xml
+++ b/proto-google-cloud-networkconnectivity-v1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-cloud-networkconnectivity-v1
- 1.1.2
+ 1.2.0
proto-google-cloud-networkconnectivity-v1
Proto library for google-cloud-networkconnectivity
com.google.cloud
google-cloud-networkconnectivity-parent
- 1.1.2
+ 1.2.0
diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java
index 2046435f..61e809a6 100644
--- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java
+++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateHubRequest.java
@@ -120,6 +120,8 @@ private CreateHubRequest(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java
index e3f5ff3c..ee425410 100644
--- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java
+++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/CreateSpokeRequest.java
@@ -120,6 +120,8 @@ private CreateSpokeRequest(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java
index 41903fa9..548a4501 100644
--- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java
+++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteHubRequest.java
@@ -96,6 +96,8 @@ private DeleteHubRequest(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java
index 52d729d5..35cd3ed6 100644
--- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java
+++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/DeleteSpokeRequest.java
@@ -96,6 +96,8 @@ private DeleteSpokeRequest(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java
index cb52b8c4..0b962c5b 100644
--- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java
+++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetHubRequest.java
@@ -88,6 +88,8 @@ private GetHubRequest(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java
index 5c515924..2740fb58 100644
--- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java
+++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/GetSpokeRequest.java
@@ -88,6 +88,8 @@ private GetSpokeRequest(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java
index 29fd9a5a..7e18c963 100644
--- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java
+++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Hub.java
@@ -174,6 +174,8 @@ private Hub(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
@@ -401,7 +403,7 @@ public int getLabelsCount() {
@java.lang.Override
public boolean containsLabels(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
return internalGetLabels().getMap().containsKey(key);
}
@@ -440,7 +442,7 @@ public java.util.Map getLabelsMap() {
@java.lang.Override
public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -459,7 +461,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
@java.lang.Override
public java.lang.String getLabelsOrThrow(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
if (!map.containsKey(key)) {
@@ -1769,7 +1771,7 @@ public int getLabelsCount() {
@java.lang.Override
public boolean containsLabels(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
return internalGetLabels().getMap().containsKey(key);
}
@@ -1809,7 +1811,7 @@ public java.util.Map getLabelsMap() {
public java.lang.String getLabelsOrDefault(
java.lang.String key, java.lang.String defaultValue) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -1828,7 +1830,7 @@ public java.lang.String getLabelsOrDefault(
@java.lang.Override
public java.lang.String getLabelsOrThrow(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
if (!map.containsKey(key)) {
@@ -1854,7 +1856,7 @@ public Builder clearLabels() {
*/
public Builder removeLabels(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
internalGetMutableLabels().getMutableMap().remove(key);
return this;
@@ -1877,11 +1879,12 @@ public java.util.Map getMutableLabels() {
*/
public Builder putLabels(java.lang.String key, java.lang.String value) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
if (value == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map value");
}
+
internalGetMutableLabels().getMutableMap().put(key, value);
return this;
}
diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java
index df6797bf..0a2d092f 100644
--- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.java
+++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubName.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-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java
index a64d318d..7aa53198 100644
--- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java
+++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/HubOrBuilder.java
@@ -178,7 +178,12 @@ public interface HubOrBuilder
*
* map<string, string> labels = 4;
*/
- java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+ /* nullable */
+ java.lang.String getLabelsOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue);
/**
*
*
diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachments.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachments.java
index d9b036d5..9ce984fe 100644
--- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachments.java
+++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedInterconnectAttachments.java
@@ -100,6 +100,8 @@ private LinkedInterconnectAttachments(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java
index fc742551..7b2a33e3 100644
--- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java
+++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedRouterApplianceInstances.java
@@ -105,6 +105,8 @@ private LinkedRouterApplianceInstances(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java
index e1869e58..617c1748 100644
--- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java
+++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LinkedVpnTunnels.java
@@ -100,6 +100,8 @@ private LinkedVpnTunnels(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java
index 7fb7745c..114819ee 100644
--- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java
+++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsRequest.java
@@ -117,6 +117,8 @@ private ListHubsRequest(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java
index bc4ac4a5..bd72ad06 100644
--- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java
+++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListHubsResponse.java
@@ -112,6 +112,8 @@ private ListHubsResponse(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java
index af0550af..4dd1d8c4 100644
--- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java
+++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesRequest.java
@@ -117,6 +117,8 @@ private ListSpokesRequest(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java
index 38cc1b0e..1b6f1ad6 100644
--- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java
+++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/ListSpokesResponse.java
@@ -112,6 +112,8 @@ private ListSpokesResponse(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java
index c1f74e6a..86f33e9f 100644
--- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java
+++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationMetadata.java
@@ -107,6 +107,8 @@ private LocationMetadata(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java
index 8be28737..4975dfe1 100644
--- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/LocationName.java
+++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/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.
diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java
index f593ec11..ffb1c9b7 100644
--- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java
+++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/OperationMetadata.java
@@ -147,6 +147,8 @@ private OperationMetadata(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java
index bd2b650c..fdb3a6e4 100644
--- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java
+++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RouterApplianceInstance.java
@@ -99,6 +99,8 @@ private RouterApplianceInstance(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java
index d3ff0b12..601e4fbd 100644
--- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java
+++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/RoutingVPC.java
@@ -94,6 +94,8 @@ private RoutingVPC(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java
index 64d15f6d..0117c528 100644
--- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java
+++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/Spoke.java
@@ -225,6 +225,8 @@ private Spoke(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
@@ -449,7 +451,7 @@ public int getLabelsCount() {
@java.lang.Override
public boolean containsLabels(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
return internalGetLabels().getMap().containsKey(key);
}
@@ -488,7 +490,7 @@ public java.util.Map getLabelsMap() {
@java.lang.Override
public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -507,7 +509,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
@java.lang.Override
public java.lang.String getLabelsOrThrow(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
if (!map.containsKey(key)) {
@@ -2009,7 +2011,7 @@ public int getLabelsCount() {
@java.lang.Override
public boolean containsLabels(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
return internalGetLabels().getMap().containsKey(key);
}
@@ -2049,7 +2051,7 @@ public java.util.Map getLabelsMap() {
public java.lang.String getLabelsOrDefault(
java.lang.String key, java.lang.String defaultValue) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -2068,7 +2070,7 @@ public java.lang.String getLabelsOrDefault(
@java.lang.Override
public java.lang.String getLabelsOrThrow(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
if (!map.containsKey(key)) {
@@ -2094,7 +2096,7 @@ public Builder clearLabels() {
*/
public Builder removeLabels(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
internalGetMutableLabels().getMutableMap().remove(key);
return this;
@@ -2117,11 +2119,12 @@ public java.util.Map getMutableLabels() {
*/
public Builder putLabels(java.lang.String key, java.lang.String value) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
if (value == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map value");
}
+
internalGetMutableLabels().getMutableMap().put(key, value);
return this;
}
diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java
index dbfed3b1..58598455 100644
--- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.java
+++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeName.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-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java
index 6a5a9dbc..96c1cb5a 100644
--- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java
+++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/SpokeOrBuilder.java
@@ -178,7 +178,12 @@ public interface SpokeOrBuilder
*
* map<string, string> labels = 4;
*/
- java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+ /* nullable */
+ java.lang.String getLabelsOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue);
/**
*
*
diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java
index 0cdc15d7..b6bf3b6c 100644
--- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java
+++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateHubRequest.java
@@ -119,6 +119,8 @@ private UpdateHubRequest(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java
index 92bc0333..e1a85921 100644
--- a/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java
+++ b/proto-google-cloud-networkconnectivity-v1/src/main/java/com/google/cloud/networkconnectivity/v1/UpdateSpokeRequest.java
@@ -119,6 +119,8 @@ private UpdateSpokeRequest(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1alpha1/pom.xml b/proto-google-cloud-networkconnectivity-v1alpha1/pom.xml
index 89da9d78..aec7ce2d 100644
--- a/proto-google-cloud-networkconnectivity-v1alpha1/pom.xml
+++ b/proto-google-cloud-networkconnectivity-v1alpha1/pom.xml
@@ -4,13 +4,13 @@
4.0.0
com.google.api.grpc
proto-google-cloud-networkconnectivity-v1alpha1
- 0.7.2
+ 0.8.0
proto-google-cloud-networkconnectivity-v1alpha1
Proto library for google-cloud-networkconnectivity
com.google.cloud
google-cloud-networkconnectivity-parent
- 1.1.2
+ 1.2.0
diff --git a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java
index 4149dc9a..d96f9c0a 100644
--- a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java
+++ b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateHubRequest.java
@@ -121,6 +121,8 @@ private CreateHubRequest(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java
index fd1f63cb..f366062a 100644
--- a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java
+++ b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/CreateSpokeRequest.java
@@ -121,6 +121,8 @@ private CreateSpokeRequest(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java
index 99360a97..f5e8e691 100644
--- a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java
+++ b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteHubRequest.java
@@ -96,6 +96,8 @@ private DeleteHubRequest(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java
index 59e2dbf4..4a6bd0e3 100644
--- a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java
+++ b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/DeleteSpokeRequest.java
@@ -96,6 +96,8 @@ private DeleteSpokeRequest(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java
index 1ff83448..bf5b7a64 100644
--- a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java
+++ b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetHubRequest.java
@@ -88,6 +88,8 @@ private GetHubRequest(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java
index e306c274..147acc75 100644
--- a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java
+++ b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/GetSpokeRequest.java
@@ -88,6 +88,8 @@ private GetSpokeRequest(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java
index 141cf1e6..96acefb8 100644
--- a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java
+++ b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Hub.java
@@ -170,6 +170,8 @@ private Hub(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
@@ -385,7 +387,7 @@ public int getLabelsCount() {
@java.lang.Override
public boolean containsLabels(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
return internalGetLabels().getMap().containsKey(key);
}
@@ -420,7 +422,7 @@ public java.util.Map getLabelsMap() {
@java.lang.Override
public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -437,7 +439,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
@java.lang.Override
public java.lang.String getLabelsOrThrow(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
if (!map.containsKey(key)) {
@@ -1671,7 +1673,7 @@ public int getLabelsCount() {
@java.lang.Override
public boolean containsLabels(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
return internalGetLabels().getMap().containsKey(key);
}
@@ -1707,7 +1709,7 @@ public java.util.Map getLabelsMap() {
public java.lang.String getLabelsOrDefault(
java.lang.String key, java.lang.String defaultValue) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -1724,7 +1726,7 @@ public java.lang.String getLabelsOrDefault(
@java.lang.Override
public java.lang.String getLabelsOrThrow(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
if (!map.containsKey(key)) {
@@ -1748,7 +1750,7 @@ public Builder clearLabels() {
*/
public Builder removeLabels(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
internalGetMutableLabels().getMutableMap().remove(key);
return this;
@@ -1769,11 +1771,12 @@ public java.util.Map getMutableLabels() {
*/
public Builder putLabels(java.lang.String key, java.lang.String value) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
if (value == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map value");
}
+
internalGetMutableLabels().getMutableMap().put(key, value);
return this;
}
diff --git a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java
index b4e342d4..7531a551 100644
--- a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.java
+++ b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubName.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-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java
index 312a67fe..524c0061 100644
--- a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java
+++ b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/HubOrBuilder.java
@@ -160,7 +160,12 @@ public interface HubOrBuilder
*
* map<string, string> labels = 4;
*/
- java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+ /* nullable */
+ java.lang.String getLabelsOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue);
/**
*
*
diff --git a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequest.java b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequest.java
index 2d896f15..a64ec615 100644
--- a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequest.java
+++ b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsRequest.java
@@ -117,6 +117,8 @@ private ListHubsRequest(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java
index d05e7d07..38565894 100644
--- a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java
+++ b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListHubsResponse.java
@@ -114,6 +114,8 @@ private ListHubsResponse(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java
index f675bca9..64c1cc0c 100644
--- a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java
+++ b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesRequest.java
@@ -117,6 +117,8 @@ private ListSpokesRequest(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java
index 39a12555..5ce9f4f0 100644
--- a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java
+++ b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/ListSpokesResponse.java
@@ -114,6 +114,8 @@ private ListSpokesResponse(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java
index 139fe195..1a27ad0c 100644
--- a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/LocationName.java
+++ b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/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.
diff --git a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java
index eecb99e6..e2acc859 100644
--- a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java
+++ b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/OperationMetadata.java
@@ -147,6 +147,8 @@ private OperationMetadata(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java
index 558c25b9..b80c4d82 100644
--- a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java
+++ b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstance.java
@@ -105,6 +105,8 @@ private RouterApplianceInstance(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
@@ -231,6 +233,8 @@ public com.google.protobuf.ByteString getIpAddressBytes() {
/**
* string network_interface = 2 [deprecated = true];
*
+ * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface
+ * is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533
* @return The networkInterface.
*/
@java.lang.Override
@@ -249,6 +253,8 @@ public java.lang.String getNetworkInterface() {
/**
* string network_interface = 2 [deprecated = true];
*
+ * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface
+ * is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533
* @return The bytes for networkInterface.
*/
@java.lang.Override
@@ -841,6 +847,9 @@ public Builder setIpAddressBytes(com.google.protobuf.ByteString value) {
/**
* string network_interface = 2 [deprecated = true];
*
+ * @deprecated
+ * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is
+ * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533
* @return The networkInterface.
*/
@java.lang.Deprecated
@@ -858,6 +867,9 @@ public java.lang.String getNetworkInterface() {
/**
* string network_interface = 2 [deprecated = true];
*
+ * @deprecated
+ * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is
+ * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533
* @return The bytes for networkInterface.
*/
@java.lang.Deprecated
@@ -875,6 +887,9 @@ public com.google.protobuf.ByteString getNetworkInterfaceBytes() {
/**
* string network_interface = 2 [deprecated = true];
*
+ * @deprecated
+ * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is
+ * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533
* @param value The networkInterface to set.
* @return This builder for chaining.
*/
@@ -891,6 +906,9 @@ public Builder setNetworkInterface(java.lang.String value) {
/**
* string network_interface = 2 [deprecated = true];
*
+ * @deprecated
+ * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is
+ * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533
* @return This builder for chaining.
*/
@java.lang.Deprecated
@@ -903,6 +921,9 @@ public Builder clearNetworkInterface() {
/**
* string network_interface = 2 [deprecated = true];
*
+ * @deprecated
+ * google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface is
+ * deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533
* @param value The bytes for networkInterface to set.
* @return This builder for chaining.
*/
diff --git a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java
index ca23054f..9d10c38a 100644
--- a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java
+++ b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/RouterApplianceInstanceOrBuilder.java
@@ -76,6 +76,8 @@ public interface RouterApplianceInstanceOrBuilder
/**
* string network_interface = 2 [deprecated = true];
*
+ * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface
+ * is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533
* @return The networkInterface.
*/
@java.lang.Deprecated
@@ -83,6 +85,8 @@ public interface RouterApplianceInstanceOrBuilder
/**
* string network_interface = 2 [deprecated = true];
*
+ * @deprecated google.cloud.networkconnectivity.v1alpha1.RouterApplianceInstance.network_interface
+ * is deprecated. See google/cloud/networkconnectivity/v1alpha1/hub.proto;l=533
* @return The bytes for networkInterface.
*/
@java.lang.Deprecated
diff --git a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java
index b52997b0..6c05b4b7 100644
--- a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java
+++ b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/Spoke.java
@@ -204,6 +204,8 @@ private Spoke(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
@@ -426,7 +428,7 @@ public int getLabelsCount() {
@java.lang.Override
public boolean containsLabels(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
return internalGetLabels().getMap().containsKey(key);
}
@@ -461,7 +463,7 @@ public java.util.Map getLabelsMap() {
@java.lang.Override
public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -478,7 +480,7 @@ public java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.Strin
@java.lang.Override
public java.lang.String getLabelsOrThrow(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
if (!map.containsKey(key)) {
@@ -2020,7 +2022,7 @@ public int getLabelsCount() {
@java.lang.Override
public boolean containsLabels(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
return internalGetLabels().getMap().containsKey(key);
}
@@ -2056,7 +2058,7 @@ public java.util.Map getLabelsMap() {
public java.lang.String getLabelsOrDefault(
java.lang.String key, java.lang.String defaultValue) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
@@ -2073,7 +2075,7 @@ public java.lang.String getLabelsOrDefault(
@java.lang.Override
public java.lang.String getLabelsOrThrow(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
java.util.Map map = internalGetLabels().getMap();
if (!map.containsKey(key)) {
@@ -2097,7 +2099,7 @@ public Builder clearLabels() {
*/
public Builder removeLabels(java.lang.String key) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
internalGetMutableLabels().getMutableMap().remove(key);
return this;
@@ -2118,11 +2120,12 @@ public java.util.Map getMutableLabels() {
*/
public Builder putLabels(java.lang.String key, java.lang.String value) {
if (key == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map key");
}
if (value == null) {
- throw new java.lang.NullPointerException();
+ throw new NullPointerException("map value");
}
+
internalGetMutableLabels().getMutableMap().put(key, value);
return this;
}
diff --git a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java
index 22c67a08..d23164af 100644
--- a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.java
+++ b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeName.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-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java
index f5a88672..86af90db 100644
--- a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java
+++ b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/SpokeOrBuilder.java
@@ -160,7 +160,12 @@ public interface SpokeOrBuilder
*
* map<string, string> labels = 4;
*/
- java.lang.String getLabelsOrDefault(java.lang.String key, java.lang.String defaultValue);
+
+ /* nullable */
+ java.lang.String getLabelsOrDefault(
+ java.lang.String key,
+ /* nullable */
+ java.lang.String defaultValue);
/**
*
*
diff --git a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java
index 6467ad70..65a4bc0a 100644
--- a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java
+++ b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateHubRequest.java
@@ -120,6 +120,8 @@ private UpdateHubRequest(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java
index 03110439..511e6651 100644
--- a/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java
+++ b/proto-google-cloud-networkconnectivity-v1alpha1/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/UpdateSpokeRequest.java
@@ -120,6 +120,8 @@ private UpdateSpokeRequest(
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
+ } catch (com.google.protobuf.UninitializedMessageException e) {
+ throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
} finally {
diff --git a/samples/install-without-bom/pom.xml b/samples/install-without-bom/pom.xml
index aa47059f..4f7686df 100644
--- a/samples/install-without-bom/pom.xml
+++ b/samples/install-without-bom/pom.xml
@@ -29,7 +29,7 @@
com.google.cloud
google-cloud-networkconnectivity
- 1.1.1
+ 1.1.2
diff --git a/samples/pom.xml b/samples/pom.xml
index b3694bcc..542bb586 100644
--- a/samples/pom.xml
+++ b/samples/pom.xml
@@ -46,7 +46,7 @@
org.sonatype.plugins
nexus-staging-maven-plugin
- 1.6.11
+ 1.6.13
true
diff --git a/samples/snapshot/pom.xml b/samples/snapshot/pom.xml
index 1525cbe7..7d413982 100644
--- a/samples/snapshot/pom.xml
+++ b/samples/snapshot/pom.xml
@@ -28,7 +28,7 @@
com.google.cloud
google-cloud-networkconnectivity
- 1.1.1
+ 1.1.2
diff --git a/samples/snippets/pom.xml b/samples/snippets/pom.xml
index 2e385e8a..d8b20a8d 100644
--- a/samples/snippets/pom.xml
+++ b/samples/snippets/pom.xml
@@ -28,7 +28,7 @@
com.google.cloud
google-cloud-networkconnectivity
- 1.1.1
+ 1.1.2
diff --git a/versions.txt b/versions.txt
index afc41c8e..9e6bd228 100644
--- a/versions.txt
+++ b/versions.txt
@@ -1,8 +1,8 @@
# Format:
# module:released-version:current-version
-google-cloud-networkconnectivity:1.1.2:1.1.2
-grpc-google-cloud-networkconnectivity-v1alpha1:0.7.2:0.7.2
-grpc-google-cloud-networkconnectivity-v1:1.1.2:1.1.2
-proto-google-cloud-networkconnectivity-v1alpha1:0.7.2:0.7.2
-proto-google-cloud-networkconnectivity-v1:1.1.2:1.1.2
+google-cloud-networkconnectivity:1.2.0:1.2.0
+grpc-google-cloud-networkconnectivity-v1alpha1:0.8.0:0.8.0
+grpc-google-cloud-networkconnectivity-v1:1.2.0:1.2.0
+proto-google-cloud-networkconnectivity-v1alpha1:0.8.0:0.8.0
+proto-google-cloud-networkconnectivity-v1:1.2.0:1.2.0