{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* HubName name = HubName.of("[PROJECT]", "[HUB]");
* Hub response = hubServiceClient.getHub(name);
@@ -85,8 +88,11 @@
* To customize credentials:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* HubServiceSettings hubServiceSettings =
* HubServiceSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -97,8 +103,11 @@
* To customize the endpoint:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* HubServiceSettings hubServiceSettings =
* HubServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
* HubServiceClient hubServiceClient = HubServiceClient.create(hubServiceSettings);
@@ -172,8 +181,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* for (Hub element : hubServiceClient.listHubs(parent).iterateAll()) {
@@ -198,8 +210,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* for (Hub element : hubServiceClient.listHubs(parent).iterateAll()) {
@@ -223,8 +238,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* ListHubsRequest request =
* ListHubsRequest.newBuilder()
@@ -254,8 +272,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* ListHubsRequest request =
* ListHubsRequest.newBuilder()
@@ -284,8 +305,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* ListHubsRequest request =
* ListHubsRequest.newBuilder()
@@ -321,8 +345,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* HubName name = HubName.of("[PROJECT]", "[HUB]");
* Hub response = hubServiceClient.getHub(name);
@@ -345,8 +372,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String name = HubName.of("[PROJECT]", "[HUB]").toString();
* Hub response = hubServiceClient.getHub(name);
@@ -368,8 +398,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* GetHubRequest request =
* GetHubRequest.newBuilder().setName(HubName.of("[PROJECT]", "[HUB]").toString()).build();
@@ -391,8 +424,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* GetHubRequest request =
* GetHubRequest.newBuilder().setName(HubName.of("[PROJECT]", "[HUB]").toString()).build();
@@ -413,8 +449,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* Hub hub = Hub.newBuilder().build();
@@ -446,8 +485,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* Hub hub = Hub.newBuilder().build();
@@ -475,8 +517,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* CreateHubRequest request =
* CreateHubRequest.newBuilder()
@@ -503,8 +548,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* CreateHubRequest request =
* CreateHubRequest.newBuilder()
@@ -532,8 +580,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* CreateHubRequest request =
* CreateHubRequest.newBuilder()
@@ -559,8 +610,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* Hub hub = Hub.newBuilder().build();
* FieldMask updateMask = FieldMask.newBuilder().build();
@@ -589,8 +643,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* UpdateHubRequest request =
* UpdateHubRequest.newBuilder()
@@ -616,8 +673,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* UpdateHubRequest request =
* UpdateHubRequest.newBuilder()
@@ -644,8 +704,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* UpdateHubRequest request =
* UpdateHubRequest.newBuilder()
@@ -670,8 +733,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* HubName name = HubName.of("[PROJECT]", "[HUB]");
* hubServiceClient.deleteHubAsync(name).get();
@@ -694,8 +760,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String name = HubName.of("[PROJECT]", "[HUB]").toString();
* hubServiceClient.deleteHubAsync(name).get();
@@ -717,8 +786,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* DeleteHubRequest request =
* DeleteHubRequest.newBuilder()
@@ -743,8 +815,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* DeleteHubRequest request =
* DeleteHubRequest.newBuilder()
@@ -770,8 +845,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* DeleteHubRequest request =
* DeleteHubRequest.newBuilder()
@@ -795,8 +873,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* for (Spoke element : hubServiceClient.listSpokes(parent).iterateAll()) {
@@ -821,8 +902,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* for (Spoke element : hubServiceClient.listSpokes(parent).iterateAll()) {
@@ -846,8 +930,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* ListSpokesRequest request =
* ListSpokesRequest.newBuilder()
@@ -877,8 +964,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* ListSpokesRequest request =
* ListSpokesRequest.newBuilder()
@@ -907,8 +997,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* ListSpokesRequest request =
* ListSpokesRequest.newBuilder()
@@ -944,8 +1037,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* SpokeName name = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]");
* Spoke response = hubServiceClient.getSpoke(name);
@@ -968,8 +1064,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String name = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString();
* Spoke response = hubServiceClient.getSpoke(name);
@@ -991,8 +1090,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* GetSpokeRequest request =
* GetSpokeRequest.newBuilder()
@@ -1016,8 +1118,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* GetSpokeRequest request =
* GetSpokeRequest.newBuilder()
@@ -1040,8 +1145,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* Spoke spoke = Spoke.newBuilder().build();
@@ -1073,8 +1181,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* Spoke spoke = Spoke.newBuilder().build();
@@ -1106,8 +1217,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* CreateSpokeRequest request =
* CreateSpokeRequest.newBuilder()
@@ -1135,8 +1249,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* CreateSpokeRequest request =
* CreateSpokeRequest.newBuilder()
@@ -1164,8 +1281,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* CreateSpokeRequest request =
* CreateSpokeRequest.newBuilder()
@@ -1191,8 +1311,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* Spoke spoke = Spoke.newBuilder().build();
* FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1221,8 +1344,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* UpdateSpokeRequest request =
* UpdateSpokeRequest.newBuilder()
@@ -1249,8 +1375,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* UpdateSpokeRequest request =
* UpdateSpokeRequest.newBuilder()
@@ -1277,8 +1406,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* UpdateSpokeRequest request =
* UpdateSpokeRequest.newBuilder()
@@ -1303,8 +1435,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* SpokeName name = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]");
* hubServiceClient.deleteSpokeAsync(name).get();
@@ -1327,8 +1462,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String name = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString();
* hubServiceClient.deleteSpokeAsync(name).get();
@@ -1350,8 +1488,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* DeleteSpokeRequest request =
* DeleteSpokeRequest.newBuilder()
@@ -1377,8 +1518,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* DeleteSpokeRequest request =
* DeleteSpokeRequest.newBuilder()
@@ -1404,8 +1548,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* 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 1494c9f0..e33fae23 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
@@ -57,16 +57,16 @@
* 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* HubServiceSettings.Builder hubServiceSettingsBuilder = HubServiceSettings.newBuilder();
* hubServiceSettingsBuilder
* .getHubSettings()
* .setRetrySettings(
- * hubServiceSettingsBuilder
- * .getHubSettings()
- * .getRetrySettings()
- * .toBuilder()
+ * hubServiceSettingsBuilder.getHubSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* HubServiceSettings hubServiceSettings = hubServiceSettingsBuilder.build();
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 55d9a476..0aa0afcf 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
@@ -28,8 +28,11 @@
* Sample for HubServiceClient:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* 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/HubServiceStubSettings.java b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1/stub/HubServiceStubSettings.java
index da5cf6d6..d1eac02c 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
@@ -90,16 +90,16 @@
* 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* HubServiceStubSettings.Builder hubServiceSettingsBuilder = HubServiceStubSettings.newBuilder();
* hubServiceSettingsBuilder
* .getHubSettings()
* .setRetrySettings(
- * hubServiceSettingsBuilder
- * .getHubSettings()
- * .getRetrySettings()
- * .toBuilder()
+ * hubServiceSettingsBuilder.getHubSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* HubServiceStubSettings hubServiceSettings = hubServiceSettingsBuilder.build();
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 c535ed31..c549dac3 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
@@ -49,8 +49,11 @@
* 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* HubName name = HubName.of("[PROJECT]", "[HUB]");
* Hub response = hubServiceClient.getHub(name);
@@ -86,8 +89,11 @@
* To customize credentials:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* HubServiceSettings hubServiceSettings =
* HubServiceSettings.newBuilder()
* .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
@@ -98,8 +104,11 @@
* To customize the endpoint:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* HubServiceSettings hubServiceSettings =
* HubServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
* HubServiceClient hubServiceClient = HubServiceClient.create(hubServiceSettings);
@@ -174,8 +183,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* for (Hub element : hubServiceClient.listHubs(parent).iterateAll()) {
@@ -200,8 +212,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* for (Hub element : hubServiceClient.listHubs(parent).iterateAll()) {
@@ -225,8 +240,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* ListHubsRequest request =
* ListHubsRequest.newBuilder()
@@ -256,8 +274,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* ListHubsRequest request =
* ListHubsRequest.newBuilder()
@@ -286,8 +307,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* ListHubsRequest request =
* ListHubsRequest.newBuilder()
@@ -323,8 +347,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* HubName name = HubName.of("[PROJECT]", "[HUB]");
* Hub response = hubServiceClient.getHub(name);
@@ -347,8 +374,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String name = HubName.of("[PROJECT]", "[HUB]").toString();
* Hub response = hubServiceClient.getHub(name);
@@ -370,8 +400,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* GetHubRequest request =
* GetHubRequest.newBuilder().setName(HubName.of("[PROJECT]", "[HUB]").toString()).build();
@@ -393,8 +426,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* GetHubRequest request =
* GetHubRequest.newBuilder().setName(HubName.of("[PROJECT]", "[HUB]").toString()).build();
@@ -415,8 +451,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* Hub hub = Hub.newBuilder().build();
@@ -448,8 +487,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* Hub hub = Hub.newBuilder().build();
@@ -477,8 +519,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* CreateHubRequest request =
* CreateHubRequest.newBuilder()
@@ -505,8 +550,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* CreateHubRequest request =
* CreateHubRequest.newBuilder()
@@ -534,8 +582,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* CreateHubRequest request =
* CreateHubRequest.newBuilder()
@@ -561,8 +612,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* Hub hub = Hub.newBuilder().build();
* FieldMask updateMask = FieldMask.newBuilder().build();
@@ -591,8 +645,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* UpdateHubRequest request =
* UpdateHubRequest.newBuilder()
@@ -618,8 +675,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* UpdateHubRequest request =
* UpdateHubRequest.newBuilder()
@@ -646,8 +706,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* UpdateHubRequest request =
* UpdateHubRequest.newBuilder()
@@ -672,8 +735,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* HubName name = HubName.of("[PROJECT]", "[HUB]");
* hubServiceClient.deleteHubAsync(name).get();
@@ -696,8 +762,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String name = HubName.of("[PROJECT]", "[HUB]").toString();
* hubServiceClient.deleteHubAsync(name).get();
@@ -719,8 +788,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* DeleteHubRequest request =
* DeleteHubRequest.newBuilder()
@@ -745,8 +817,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* DeleteHubRequest request =
* DeleteHubRequest.newBuilder()
@@ -772,8 +847,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* DeleteHubRequest request =
* DeleteHubRequest.newBuilder()
@@ -797,8 +875,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* for (Spoke element : hubServiceClient.listSpokes(parent).iterateAll()) {
@@ -823,8 +904,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* for (Spoke element : hubServiceClient.listSpokes(parent).iterateAll()) {
@@ -848,8 +932,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* ListSpokesRequest request =
* ListSpokesRequest.newBuilder()
@@ -879,8 +966,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* ListSpokesRequest request =
* ListSpokesRequest.newBuilder()
@@ -909,8 +999,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* ListSpokesRequest request =
* ListSpokesRequest.newBuilder()
@@ -946,8 +1039,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* SpokeName name = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]");
* Spoke response = hubServiceClient.getSpoke(name);
@@ -970,8 +1066,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String name = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString();
* Spoke response = hubServiceClient.getSpoke(name);
@@ -993,8 +1092,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* GetSpokeRequest request =
* GetSpokeRequest.newBuilder()
@@ -1018,8 +1120,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* GetSpokeRequest request =
* GetSpokeRequest.newBuilder()
@@ -1042,8 +1147,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
* Spoke spoke = Spoke.newBuilder().build();
@@ -1075,8 +1183,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
* Spoke spoke = Spoke.newBuilder().build();
@@ -1108,8 +1219,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* CreateSpokeRequest request =
* CreateSpokeRequest.newBuilder()
@@ -1137,8 +1251,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* CreateSpokeRequest request =
* CreateSpokeRequest.newBuilder()
@@ -1166,8 +1283,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* CreateSpokeRequest request =
* CreateSpokeRequest.newBuilder()
@@ -1193,8 +1313,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* Spoke spoke = Spoke.newBuilder().build();
* FieldMask updateMask = FieldMask.newBuilder().build();
@@ -1223,8 +1346,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* UpdateSpokeRequest request =
* UpdateSpokeRequest.newBuilder()
@@ -1251,8 +1377,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* UpdateSpokeRequest request =
* UpdateSpokeRequest.newBuilder()
@@ -1279,8 +1408,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* UpdateSpokeRequest request =
* UpdateSpokeRequest.newBuilder()
@@ -1305,8 +1437,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* SpokeName name = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]");
* hubServiceClient.deleteSpokeAsync(name).get();
@@ -1329,8 +1464,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* String name = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString();
* hubServiceClient.deleteSpokeAsync(name).get();
@@ -1352,8 +1490,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* DeleteSpokeRequest request =
* DeleteSpokeRequest.newBuilder()
@@ -1379,8 +1520,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
* DeleteSpokeRequest request =
* DeleteSpokeRequest.newBuilder()
@@ -1406,8 +1550,11 @@ 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* 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 127727c7..fbd6e3be 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
@@ -57,16 +57,16 @@
* 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* HubServiceSettings.Builder hubServiceSettingsBuilder = HubServiceSettings.newBuilder();
* hubServiceSettingsBuilder
* .getHubSettings()
* .setRetrySettings(
- * hubServiceSettingsBuilder
- * .getHubSettings()
- * .getRetrySettings()
- * .toBuilder()
+ * hubServiceSettingsBuilder.getHubSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* HubServiceSettings hubServiceSettings = hubServiceSettingsBuilder.build();
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 214f5db5..00833f1a 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
@@ -26,8 +26,11 @@
* Sample for HubServiceClient:
*
*
{@code
- * // This snippet has been automatically generated for illustrative purposes only.
- * // It may require modifications to work in your environment.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* 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/HubServiceStubSettings.java b/google-cloud-networkconnectivity/src/main/java/com/google/cloud/networkconnectivity/v1alpha1/stub/HubServiceStubSettings.java
index fc1ffa23..7701122e 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
@@ -90,16 +90,16 @@
* 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.
+ * // This snippet has been automatically generated and should be regarded as a code template only.
+ * // It will require modifications to work:
+ * // - It may require correct/in-range values for request initialization.
+ * // - It may require specifying regional endpoints when creating the service client as shown in
+ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
* HubServiceStubSettings.Builder hubServiceSettingsBuilder = HubServiceStubSettings.newBuilder();
* hubServiceSettingsBuilder
* .getHubSettings()
* .setRetrySettings(
- * hubServiceSettingsBuilder
- * .getHubSettings()
- * .getRetrySettings()
- * .toBuilder()
+ * hubServiceSettingsBuilder.getHubSettings().getRetrySettings().toBuilder()
* .setTotalTimeout(Duration.ofSeconds(30))
* .build());
* HubServiceStubSettings hubServiceSettings = hubServiceSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/create/SyncCreateSetCredentialsProvider.java
index 4bdfb33d..f8b5135c 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/create/SyncCreateSetCredentialsProvider.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/create/SyncCreateSetCredentialsProvider.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncCreateSetCredentialsProvider() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
HubServiceSettings hubServiceSettings =
HubServiceSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/create/SyncCreateSetEndpoint.java
index ee46a923..5317f939 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/create/SyncCreateSetEndpoint.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/create/SyncCreateSetEndpoint.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncCreateSetEndpoint() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
HubServiceSettings hubServiceSettings =
HubServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
HubServiceClient hubServiceClient = HubServiceClient.create(hubServiceSettings);
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createhub/AsyncCreateHub.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createhub/AsyncCreateHub.java
index 6c329fad..60bbf1a6 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createhub/AsyncCreateHub.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createhub/AsyncCreateHub.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncCreateHub() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
CreateHubRequest request =
CreateHubRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createhub/AsyncCreateHubLRO.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createhub/AsyncCreateHubLRO.java
index 45185c6e..aa86c991 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createhub/AsyncCreateHubLRO.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createhub/AsyncCreateHubLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncCreateHubLRO() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
CreateHubRequest request =
CreateHubRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createhub/SyncCreateHub.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createhub/SyncCreateHub.java
index c0ae57fb..9075e0f0 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createhub/SyncCreateHub.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createhub/SyncCreateHub.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncCreateHub() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
CreateHubRequest request =
CreateHubRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createhub/SyncCreateHubLocationnameHubString.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createhub/SyncCreateHubLocationnameHubString.java
index 6cd04d36..eaf469bd 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createhub/SyncCreateHubLocationnameHubString.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createhub/SyncCreateHubLocationnameHubString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncCreateHubLocationnameHubString() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
Hub hub = Hub.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createhub/SyncCreateHubStringHubString.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createhub/SyncCreateHubStringHubString.java
index 0e662bd0..810ceedb 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createhub/SyncCreateHubStringHubString.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createhub/SyncCreateHubStringHubString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncCreateHubStringHubString() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
Hub hub = Hub.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createspoke/AsyncCreateSpoke.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createspoke/AsyncCreateSpoke.java
index ab671a24..2ea92518 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createspoke/AsyncCreateSpoke.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createspoke/AsyncCreateSpoke.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncCreateSpoke() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
CreateSpokeRequest request =
CreateSpokeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createspoke/AsyncCreateSpokeLRO.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createspoke/AsyncCreateSpokeLRO.java
index 051c8b96..520b03f4 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createspoke/AsyncCreateSpokeLRO.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createspoke/AsyncCreateSpokeLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncCreateSpokeLRO() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
CreateSpokeRequest request =
CreateSpokeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createspoke/SyncCreateSpoke.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createspoke/SyncCreateSpoke.java
index 9262500d..c21f43d3 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createspoke/SyncCreateSpoke.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createspoke/SyncCreateSpoke.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncCreateSpoke() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
CreateSpokeRequest request =
CreateSpokeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createspoke/SyncCreateSpokeLocationnameSpokeString.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createspoke/SyncCreateSpokeLocationnameSpokeString.java
index 9572f31f..5f6b7795 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createspoke/SyncCreateSpokeLocationnameSpokeString.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createspoke/SyncCreateSpokeLocationnameSpokeString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncCreateSpokeLocationnameSpokeString() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
Spoke spoke = Spoke.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createspoke/SyncCreateSpokeStringSpokeString.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createspoke/SyncCreateSpokeStringSpokeString.java
index b7a9e696..a6bc33ff 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createspoke/SyncCreateSpokeStringSpokeString.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/createspoke/SyncCreateSpokeStringSpokeString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncCreateSpokeStringSpokeString() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
Spoke spoke = Spoke.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletehub/AsyncDeleteHub.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletehub/AsyncDeleteHub.java
index 77cf7fd3..d6ee581a 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletehub/AsyncDeleteHub.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletehub/AsyncDeleteHub.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncDeleteHub() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
DeleteHubRequest request =
DeleteHubRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletehub/AsyncDeleteHubLRO.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletehub/AsyncDeleteHubLRO.java
index 2d564c24..4fbe5876 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletehub/AsyncDeleteHubLRO.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletehub/AsyncDeleteHubLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncDeleteHubLRO() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
DeleteHubRequest request =
DeleteHubRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletehub/SyncDeleteHub.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletehub/SyncDeleteHub.java
index 05a90b6d..45faffe5 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletehub/SyncDeleteHub.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletehub/SyncDeleteHub.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncDeleteHub() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
DeleteHubRequest request =
DeleteHubRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletehub/SyncDeleteHubHubname.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletehub/SyncDeleteHubHubname.java
index 6ebacdd1..1ed03bec 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletehub/SyncDeleteHubHubname.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletehub/SyncDeleteHubHubname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncDeleteHubHubname() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
HubName name = HubName.of("[PROJECT]", "[HUB]");
hubServiceClient.deleteHubAsync(name).get();
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletehub/SyncDeleteHubString.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletehub/SyncDeleteHubString.java
index d9cb608d..2a9551ee 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletehub/SyncDeleteHubString.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletehub/SyncDeleteHubString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncDeleteHubString() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
String name = HubName.of("[PROJECT]", "[HUB]").toString();
hubServiceClient.deleteHubAsync(name).get();
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletespoke/AsyncDeleteSpoke.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletespoke/AsyncDeleteSpoke.java
index db59f9cc..20212b8b 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletespoke/AsyncDeleteSpoke.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletespoke/AsyncDeleteSpoke.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncDeleteSpoke() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
DeleteSpokeRequest request =
DeleteSpokeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletespoke/AsyncDeleteSpokeLRO.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletespoke/AsyncDeleteSpokeLRO.java
index d99e0da1..73c31191 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletespoke/AsyncDeleteSpokeLRO.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletespoke/AsyncDeleteSpokeLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncDeleteSpokeLRO() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
DeleteSpokeRequest request =
DeleteSpokeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletespoke/SyncDeleteSpoke.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletespoke/SyncDeleteSpoke.java
index aec30d43..45186074 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletespoke/SyncDeleteSpoke.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletespoke/SyncDeleteSpoke.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncDeleteSpoke() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
DeleteSpokeRequest request =
DeleteSpokeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletespoke/SyncDeleteSpokeSpokename.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletespoke/SyncDeleteSpokeSpokename.java
index 9fa1415f..370d3d55 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletespoke/SyncDeleteSpokeSpokename.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletespoke/SyncDeleteSpokeSpokename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncDeleteSpokeSpokename() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
SpokeName name = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]");
hubServiceClient.deleteSpokeAsync(name).get();
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletespoke/SyncDeleteSpokeString.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletespoke/SyncDeleteSpokeString.java
index 5d181d95..219a79b9 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletespoke/SyncDeleteSpokeString.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/deletespoke/SyncDeleteSpokeString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncDeleteSpokeString() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
String name = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString();
hubServiceClient.deleteSpokeAsync(name).get();
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/gethub/AsyncGetHub.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/gethub/AsyncGetHub.java
index 60e2932c..ee682735 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/gethub/AsyncGetHub.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/gethub/AsyncGetHub.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncGetHub() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
GetHubRequest request =
GetHubRequest.newBuilder().setName(HubName.of("[PROJECT]", "[HUB]").toString()).build();
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/gethub/SyncGetHub.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/gethub/SyncGetHub.java
index ad933292..9de6ac14 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/gethub/SyncGetHub.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/gethub/SyncGetHub.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncGetHub() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
GetHubRequest request =
GetHubRequest.newBuilder().setName(HubName.of("[PROJECT]", "[HUB]").toString()).build();
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/gethub/SyncGetHubHubname.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/gethub/SyncGetHubHubname.java
index 9cf29887..feed66e0 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/gethub/SyncGetHubHubname.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/gethub/SyncGetHubHubname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncGetHubHubname() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
HubName name = HubName.of("[PROJECT]", "[HUB]");
Hub response = hubServiceClient.getHub(name);
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/gethub/SyncGetHubString.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/gethub/SyncGetHubString.java
index 5d9aae8c..d97b0da0 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/gethub/SyncGetHubString.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/gethub/SyncGetHubString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncGetHubString() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
String name = HubName.of("[PROJECT]", "[HUB]").toString();
Hub response = hubServiceClient.getHub(name);
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/getspoke/AsyncGetSpoke.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/getspoke/AsyncGetSpoke.java
index 620e4463..c5425a9b 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/getspoke/AsyncGetSpoke.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/getspoke/AsyncGetSpoke.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncGetSpoke() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
GetSpokeRequest request =
GetSpokeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/getspoke/SyncGetSpoke.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/getspoke/SyncGetSpoke.java
index 03832e7e..bf6c6898 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/getspoke/SyncGetSpoke.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/getspoke/SyncGetSpoke.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncGetSpoke() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
GetSpokeRequest request =
GetSpokeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/getspoke/SyncGetSpokeSpokename.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/getspoke/SyncGetSpokeSpokename.java
index d05dca84..a849e75d 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/getspoke/SyncGetSpokeSpokename.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/getspoke/SyncGetSpokeSpokename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncGetSpokeSpokename() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
SpokeName name = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]");
Spoke response = hubServiceClient.getSpoke(name);
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/getspoke/SyncGetSpokeString.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/getspoke/SyncGetSpokeString.java
index 8d331c68..6f4a3202 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/getspoke/SyncGetSpokeString.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/getspoke/SyncGetSpokeString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncGetSpokeString() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
String name = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString();
Spoke response = hubServiceClient.getSpoke(name);
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listhubs/AsyncListHubs.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listhubs/AsyncListHubs.java
index 0211d1b8..b15e467d 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listhubs/AsyncListHubs.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listhubs/AsyncListHubs.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncListHubs() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
ListHubsRequest request =
ListHubsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listhubs/AsyncListHubsPaged.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listhubs/AsyncListHubsPaged.java
index a3577d4b..bb9969f6 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listhubs/AsyncListHubsPaged.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listhubs/AsyncListHubsPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncListHubsPaged() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
ListHubsRequest request =
ListHubsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listhubs/SyncListHubs.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listhubs/SyncListHubs.java
index 68c02c8b..306ed83f 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listhubs/SyncListHubs.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listhubs/SyncListHubs.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncListHubs() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
ListHubsRequest request =
ListHubsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listhubs/SyncListHubsLocationname.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listhubs/SyncListHubsLocationname.java
index dbccad6d..b8a017e9 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listhubs/SyncListHubsLocationname.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listhubs/SyncListHubsLocationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncListHubsLocationname() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (Hub element : hubServiceClient.listHubs(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listhubs/SyncListHubsString.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listhubs/SyncListHubsString.java
index d97c331a..97056f65 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listhubs/SyncListHubsString.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listhubs/SyncListHubsString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncListHubsString() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (Hub element : hubServiceClient.listHubs(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listspokes/AsyncListSpokes.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listspokes/AsyncListSpokes.java
index 0c3a20c5..6e169543 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listspokes/AsyncListSpokes.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listspokes/AsyncListSpokes.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncListSpokes() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
ListSpokesRequest request =
ListSpokesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listspokes/AsyncListSpokesPaged.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listspokes/AsyncListSpokesPaged.java
index 969de725..be51683a 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listspokes/AsyncListSpokesPaged.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listspokes/AsyncListSpokesPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncListSpokesPaged() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
ListSpokesRequest request =
ListSpokesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listspokes/SyncListSpokes.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listspokes/SyncListSpokes.java
index 2f923d08..40d92b58 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listspokes/SyncListSpokes.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listspokes/SyncListSpokes.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncListSpokes() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
ListSpokesRequest request =
ListSpokesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listspokes/SyncListSpokesLocationname.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listspokes/SyncListSpokesLocationname.java
index 1fd0f919..313d989f 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listspokes/SyncListSpokesLocationname.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listspokes/SyncListSpokesLocationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncListSpokesLocationname() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (Spoke element : hubServiceClient.listSpokes(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listspokes/SyncListSpokesString.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listspokes/SyncListSpokesString.java
index 0edfee90..1a5f3bb6 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listspokes/SyncListSpokesString.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/listspokes/SyncListSpokesString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncListSpokesString() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (Spoke element : hubServiceClient.listSpokes(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatehub/AsyncUpdateHub.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatehub/AsyncUpdateHub.java
index 990cd67f..c5b4b094 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatehub/AsyncUpdateHub.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatehub/AsyncUpdateHub.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncUpdateHub() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
UpdateHubRequest request =
UpdateHubRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatehub/AsyncUpdateHubLRO.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatehub/AsyncUpdateHubLRO.java
index 795f3454..4987c0f5 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatehub/AsyncUpdateHubLRO.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatehub/AsyncUpdateHubLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncUpdateHubLRO() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
UpdateHubRequest request =
UpdateHubRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatehub/SyncUpdateHub.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatehub/SyncUpdateHub.java
index 7f788f47..304328be 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatehub/SyncUpdateHub.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatehub/SyncUpdateHub.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncUpdateHub() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
UpdateHubRequest request =
UpdateHubRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatehub/SyncUpdateHubHubFieldmask.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatehub/SyncUpdateHubHubFieldmask.java
index 01dd40fc..5b2fa0cb 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatehub/SyncUpdateHubHubFieldmask.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatehub/SyncUpdateHubHubFieldmask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncUpdateHubHubFieldmask() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
Hub hub = Hub.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatespoke/AsyncUpdateSpoke.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatespoke/AsyncUpdateSpoke.java
index 7acdbb41..7977f8dc 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatespoke/AsyncUpdateSpoke.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatespoke/AsyncUpdateSpoke.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncUpdateSpoke() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
UpdateSpokeRequest request =
UpdateSpokeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatespoke/AsyncUpdateSpokeLRO.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatespoke/AsyncUpdateSpokeLRO.java
index a6c86b7b..deb3367a 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatespoke/AsyncUpdateSpokeLRO.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatespoke/AsyncUpdateSpokeLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncUpdateSpokeLRO() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
UpdateSpokeRequest request =
UpdateSpokeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatespoke/SyncUpdateSpoke.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatespoke/SyncUpdateSpoke.java
index f928773e..e42c0f1a 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatespoke/SyncUpdateSpoke.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatespoke/SyncUpdateSpoke.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncUpdateSpoke() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
UpdateSpokeRequest request =
UpdateSpokeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatespoke/SyncUpdateSpokeSpokeFieldmask.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatespoke/SyncUpdateSpokeSpokeFieldmask.java
index f58902ae..e319c2e7 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatespoke/SyncUpdateSpokeSpokeFieldmask.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubserviceclient/updatespoke/SyncUpdateSpokeSpokeFieldmask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncUpdateSpokeSpokeFieldmask() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
Spoke spoke = Spoke.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java
index 3f3e1b58..bf744459 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/hubservicesettings/gethub/SyncGetHub.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
}
public static void syncGetHub() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
HubServiceSettings.Builder hubServiceSettingsBuilder = HubServiceSettings.newBuilder();
hubServiceSettingsBuilder
.getHubSettings()
.setRetrySettings(
- hubServiceSettingsBuilder
- .getHubSettings()
- .getRetrySettings()
- .toBuilder()
+ hubServiceSettingsBuilder.getHubSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
HubServiceSettings hubServiceSettings = hubServiceSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java
index 44b97354..81120152 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1/stub/hubservicestubsettings/gethub/SyncGetHub.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
}
public static void syncGetHub() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
HubServiceStubSettings.Builder hubServiceSettingsBuilder = HubServiceStubSettings.newBuilder();
hubServiceSettingsBuilder
.getHubSettings()
.setRetrySettings(
- hubServiceSettingsBuilder
- .getHubSettings()
- .getRetrySettings()
- .toBuilder()
+ hubServiceSettingsBuilder.getHubSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
HubServiceStubSettings hubServiceSettings = hubServiceSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/create/SyncCreateSetCredentialsProvider.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/create/SyncCreateSetCredentialsProvider.java
index 02788a62..0e1b5fe4 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/create/SyncCreateSetCredentialsProvider.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/create/SyncCreateSetCredentialsProvider.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncCreateSetCredentialsProvider() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
HubServiceSettings hubServiceSettings =
HubServiceSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/create/SyncCreateSetEndpoint.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/create/SyncCreateSetEndpoint.java
index 71396ab4..d3225134 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/create/SyncCreateSetEndpoint.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/create/SyncCreateSetEndpoint.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncCreateSetEndpoint() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
HubServiceSettings hubServiceSettings =
HubServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
HubServiceClient hubServiceClient = HubServiceClient.create(hubServiceSettings);
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createhub/AsyncCreateHub.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createhub/AsyncCreateHub.java
index 6e2b7d34..1cc79b9e 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createhub/AsyncCreateHub.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createhub/AsyncCreateHub.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncCreateHub() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
CreateHubRequest request =
CreateHubRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createhub/AsyncCreateHubLRO.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createhub/AsyncCreateHubLRO.java
index 4f015352..8f582759 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createhub/AsyncCreateHubLRO.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createhub/AsyncCreateHubLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncCreateHubLRO() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
CreateHubRequest request =
CreateHubRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createhub/SyncCreateHub.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createhub/SyncCreateHub.java
index 0f0cfdb1..21b618b9 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createhub/SyncCreateHub.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createhub/SyncCreateHub.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncCreateHub() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
CreateHubRequest request =
CreateHubRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createhub/SyncCreateHubLocationnameHubString.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createhub/SyncCreateHubLocationnameHubString.java
index b85a2e83..2a150571 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createhub/SyncCreateHubLocationnameHubString.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createhub/SyncCreateHubLocationnameHubString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncCreateHubLocationnameHubString() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
Hub hub = Hub.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createhub/SyncCreateHubStringHubString.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createhub/SyncCreateHubStringHubString.java
index f8a9b04b..b1aa014b 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createhub/SyncCreateHubStringHubString.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createhub/SyncCreateHubStringHubString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncCreateHubStringHubString() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
Hub hub = Hub.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createspoke/AsyncCreateSpoke.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createspoke/AsyncCreateSpoke.java
index 3105c5e5..c91af166 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createspoke/AsyncCreateSpoke.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createspoke/AsyncCreateSpoke.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncCreateSpoke() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
CreateSpokeRequest request =
CreateSpokeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createspoke/AsyncCreateSpokeLRO.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createspoke/AsyncCreateSpokeLRO.java
index f67f956b..dd461261 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createspoke/AsyncCreateSpokeLRO.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createspoke/AsyncCreateSpokeLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncCreateSpokeLRO() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
CreateSpokeRequest request =
CreateSpokeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createspoke/SyncCreateSpoke.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createspoke/SyncCreateSpoke.java
index e9892e98..07936cb2 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createspoke/SyncCreateSpoke.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createspoke/SyncCreateSpoke.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncCreateSpoke() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
CreateSpokeRequest request =
CreateSpokeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createspoke/SyncCreateSpokeLocationnameSpokeString.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createspoke/SyncCreateSpokeLocationnameSpokeString.java
index 0b7b40da..f18a5fae 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createspoke/SyncCreateSpokeLocationnameSpokeString.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createspoke/SyncCreateSpokeLocationnameSpokeString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncCreateSpokeLocationnameSpokeString() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
Spoke spoke = Spoke.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createspoke/SyncCreateSpokeStringSpokeString.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createspoke/SyncCreateSpokeStringSpokeString.java
index c1e2c156..5984477d 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createspoke/SyncCreateSpokeStringSpokeString.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/createspoke/SyncCreateSpokeStringSpokeString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncCreateSpokeStringSpokeString() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
Spoke spoke = Spoke.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletehub/AsyncDeleteHub.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletehub/AsyncDeleteHub.java
index 3e8d5055..3828b5e3 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletehub/AsyncDeleteHub.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletehub/AsyncDeleteHub.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncDeleteHub() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
DeleteHubRequest request =
DeleteHubRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletehub/AsyncDeleteHubLRO.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletehub/AsyncDeleteHubLRO.java
index 3bdef483..f34e36ef 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletehub/AsyncDeleteHubLRO.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletehub/AsyncDeleteHubLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncDeleteHubLRO() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
DeleteHubRequest request =
DeleteHubRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletehub/SyncDeleteHub.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletehub/SyncDeleteHub.java
index 72c4bba0..e8633a57 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletehub/SyncDeleteHub.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletehub/SyncDeleteHub.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncDeleteHub() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
DeleteHubRequest request =
DeleteHubRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletehub/SyncDeleteHubHubname.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletehub/SyncDeleteHubHubname.java
index 263da65c..2cfedfaf 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletehub/SyncDeleteHubHubname.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletehub/SyncDeleteHubHubname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncDeleteHubHubname() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
HubName name = HubName.of("[PROJECT]", "[HUB]");
hubServiceClient.deleteHubAsync(name).get();
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletehub/SyncDeleteHubString.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletehub/SyncDeleteHubString.java
index c67e0613..e30bae82 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletehub/SyncDeleteHubString.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletehub/SyncDeleteHubString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncDeleteHubString() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
String name = HubName.of("[PROJECT]", "[HUB]").toString();
hubServiceClient.deleteHubAsync(name).get();
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletespoke/AsyncDeleteSpoke.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletespoke/AsyncDeleteSpoke.java
index 0a2b31d5..dbea0826 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletespoke/AsyncDeleteSpoke.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletespoke/AsyncDeleteSpoke.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncDeleteSpoke() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
DeleteSpokeRequest request =
DeleteSpokeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletespoke/AsyncDeleteSpokeLRO.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletespoke/AsyncDeleteSpokeLRO.java
index e68fe3aa..9c991be6 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletespoke/AsyncDeleteSpokeLRO.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletespoke/AsyncDeleteSpokeLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncDeleteSpokeLRO() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
DeleteSpokeRequest request =
DeleteSpokeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletespoke/SyncDeleteSpoke.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletespoke/SyncDeleteSpoke.java
index 60ef478a..0ab8a379 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletespoke/SyncDeleteSpoke.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletespoke/SyncDeleteSpoke.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncDeleteSpoke() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
DeleteSpokeRequest request =
DeleteSpokeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletespoke/SyncDeleteSpokeSpokename.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletespoke/SyncDeleteSpokeSpokename.java
index 90319586..1e08c0ef 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletespoke/SyncDeleteSpokeSpokename.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletespoke/SyncDeleteSpokeSpokename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncDeleteSpokeSpokename() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
SpokeName name = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]");
hubServiceClient.deleteSpokeAsync(name).get();
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletespoke/SyncDeleteSpokeString.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletespoke/SyncDeleteSpokeString.java
index 3ca21840..62240b81 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletespoke/SyncDeleteSpokeString.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/deletespoke/SyncDeleteSpokeString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncDeleteSpokeString() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
String name = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString();
hubServiceClient.deleteSpokeAsync(name).get();
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/gethub/AsyncGetHub.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/gethub/AsyncGetHub.java
index 623ae49d..942c6fc2 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/gethub/AsyncGetHub.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/gethub/AsyncGetHub.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncGetHub() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
GetHubRequest request =
GetHubRequest.newBuilder().setName(HubName.of("[PROJECT]", "[HUB]").toString()).build();
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/gethub/SyncGetHub.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/gethub/SyncGetHub.java
index e32c1239..083ef9ae 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/gethub/SyncGetHub.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/gethub/SyncGetHub.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncGetHub() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
GetHubRequest request =
GetHubRequest.newBuilder().setName(HubName.of("[PROJECT]", "[HUB]").toString()).build();
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/gethub/SyncGetHubHubname.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/gethub/SyncGetHubHubname.java
index 28e89f6f..e2ed1102 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/gethub/SyncGetHubHubname.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/gethub/SyncGetHubHubname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncGetHubHubname() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
HubName name = HubName.of("[PROJECT]", "[HUB]");
Hub response = hubServiceClient.getHub(name);
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/gethub/SyncGetHubString.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/gethub/SyncGetHubString.java
index f0016ed6..b25dcc37 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/gethub/SyncGetHubString.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/gethub/SyncGetHubString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncGetHubString() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
String name = HubName.of("[PROJECT]", "[HUB]").toString();
Hub response = hubServiceClient.getHub(name);
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/getspoke/AsyncGetSpoke.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/getspoke/AsyncGetSpoke.java
index 095e30d9..554c0e0f 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/getspoke/AsyncGetSpoke.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/getspoke/AsyncGetSpoke.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncGetSpoke() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
GetSpokeRequest request =
GetSpokeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/getspoke/SyncGetSpoke.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/getspoke/SyncGetSpoke.java
index 39098970..64070ffa 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/getspoke/SyncGetSpoke.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/getspoke/SyncGetSpoke.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncGetSpoke() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
GetSpokeRequest request =
GetSpokeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/getspoke/SyncGetSpokeSpokename.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/getspoke/SyncGetSpokeSpokename.java
index 24c20d58..d2eca005 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/getspoke/SyncGetSpokeSpokename.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/getspoke/SyncGetSpokeSpokename.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncGetSpokeSpokename() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
SpokeName name = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]");
Spoke response = hubServiceClient.getSpoke(name);
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/getspoke/SyncGetSpokeString.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/getspoke/SyncGetSpokeString.java
index e396a135..54138f77 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/getspoke/SyncGetSpokeString.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/getspoke/SyncGetSpokeString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncGetSpokeString() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
String name = SpokeName.of("[PROJECT]", "[LOCATION]", "[SPOKE]").toString();
Spoke response = hubServiceClient.getSpoke(name);
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listhubs/AsyncListHubs.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listhubs/AsyncListHubs.java
index 64e88473..07478f56 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listhubs/AsyncListHubs.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listhubs/AsyncListHubs.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncListHubs() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
ListHubsRequest request =
ListHubsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listhubs/AsyncListHubsPaged.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listhubs/AsyncListHubsPaged.java
index a2b6a184..655e499e 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listhubs/AsyncListHubsPaged.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listhubs/AsyncListHubsPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncListHubsPaged() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
ListHubsRequest request =
ListHubsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listhubs/SyncListHubs.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listhubs/SyncListHubs.java
index a74c8ed0..c8755a0f 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listhubs/SyncListHubs.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listhubs/SyncListHubs.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncListHubs() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
ListHubsRequest request =
ListHubsRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listhubs/SyncListHubsLocationname.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listhubs/SyncListHubsLocationname.java
index 6f11aa8c..3a3bd6ec 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listhubs/SyncListHubsLocationname.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listhubs/SyncListHubsLocationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncListHubsLocationname() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (Hub element : hubServiceClient.listHubs(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listhubs/SyncListHubsString.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listhubs/SyncListHubsString.java
index fddea0d6..c0e5b366 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listhubs/SyncListHubsString.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listhubs/SyncListHubsString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncListHubsString() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (Hub element : hubServiceClient.listHubs(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listspokes/AsyncListSpokes.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listspokes/AsyncListSpokes.java
index e9bab3fd..b851c97b 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listspokes/AsyncListSpokes.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listspokes/AsyncListSpokes.java
@@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncListSpokes() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
ListSpokesRequest request =
ListSpokesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listspokes/AsyncListSpokesPaged.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listspokes/AsyncListSpokesPaged.java
index cf62491f..384ea632 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listspokes/AsyncListSpokesPaged.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listspokes/AsyncListSpokesPaged.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncListSpokesPaged() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
ListSpokesRequest request =
ListSpokesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listspokes/SyncListSpokes.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listspokes/SyncListSpokes.java
index f1a48606..ad83204f 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listspokes/SyncListSpokes.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listspokes/SyncListSpokes.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncListSpokes() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
ListSpokesRequest request =
ListSpokesRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listspokes/SyncListSpokesLocationname.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listspokes/SyncListSpokesLocationname.java
index c248998b..94c61efd 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listspokes/SyncListSpokesLocationname.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listspokes/SyncListSpokesLocationname.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncListSpokesLocationname() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
for (Spoke element : hubServiceClient.listSpokes(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listspokes/SyncListSpokesString.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listspokes/SyncListSpokesString.java
index a0b5f2f3..59cce52a 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listspokes/SyncListSpokesString.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/listspokes/SyncListSpokesString.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncListSpokesString() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
for (Spoke element : hubServiceClient.listSpokes(parent).iterateAll()) {
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatehub/AsyncUpdateHub.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatehub/AsyncUpdateHub.java
index 6376e418..f167a3a2 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatehub/AsyncUpdateHub.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatehub/AsyncUpdateHub.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncUpdateHub() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
UpdateHubRequest request =
UpdateHubRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatehub/AsyncUpdateHubLRO.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatehub/AsyncUpdateHubLRO.java
index 860fa82f..b2fe33e4 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatehub/AsyncUpdateHubLRO.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatehub/AsyncUpdateHubLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncUpdateHubLRO() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
UpdateHubRequest request =
UpdateHubRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatehub/SyncUpdateHub.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatehub/SyncUpdateHub.java
index 89bb0164..bb990e25 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatehub/SyncUpdateHub.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatehub/SyncUpdateHub.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncUpdateHub() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
UpdateHubRequest request =
UpdateHubRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatehub/SyncUpdateHubHubFieldmask.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatehub/SyncUpdateHubHubFieldmask.java
index 5e8021d3..ec278674 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatehub/SyncUpdateHubHubFieldmask.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatehub/SyncUpdateHubHubFieldmask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncUpdateHubHubFieldmask() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
Hub hub = Hub.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatespoke/AsyncUpdateSpoke.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatespoke/AsyncUpdateSpoke.java
index c87a1dfb..a660a891 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatespoke/AsyncUpdateSpoke.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatespoke/AsyncUpdateSpoke.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncUpdateSpoke() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
UpdateSpokeRequest request =
UpdateSpokeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatespoke/AsyncUpdateSpokeLRO.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatespoke/AsyncUpdateSpokeLRO.java
index fb779239..e21ffbae 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatespoke/AsyncUpdateSpokeLRO.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatespoke/AsyncUpdateSpokeLRO.java
@@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception {
}
public static void asyncUpdateSpokeLRO() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
UpdateSpokeRequest request =
UpdateSpokeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatespoke/SyncUpdateSpoke.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatespoke/SyncUpdateSpoke.java
index 6f73e417..f0307a99 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatespoke/SyncUpdateSpoke.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatespoke/SyncUpdateSpoke.java
@@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncUpdateSpoke() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
UpdateSpokeRequest request =
UpdateSpokeRequest.newBuilder()
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatespoke/SyncUpdateSpokeSpokeFieldmask.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatespoke/SyncUpdateSpokeSpokeFieldmask.java
index e8d03127..d931f1df 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatespoke/SyncUpdateSpokeSpokeFieldmask.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubserviceclient/updatespoke/SyncUpdateSpokeSpokeFieldmask.java
@@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception {
}
public static void syncUpdateSpokeSpokeFieldmask() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (HubServiceClient hubServiceClient = HubServiceClient.create()) {
Spoke spoke = Spoke.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java
index 1a609680..7d8e06a0 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/hubservicesettings/gethub/SyncGetHub.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
}
public static void syncGetHub() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
HubServiceSettings.Builder hubServiceSettingsBuilder = HubServiceSettings.newBuilder();
hubServiceSettingsBuilder
.getHubSettings()
.setRetrySettings(
- hubServiceSettingsBuilder
- .getHubSettings()
- .getRetrySettings()
- .toBuilder()
+ hubServiceSettingsBuilder.getHubSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
HubServiceSettings hubServiceSettings = hubServiceSettingsBuilder.build();
diff --git a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java
index 09d608b4..7e054f5d 100644
--- a/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java
+++ b/samples/snippets/generated/com/google/cloud/networkconnectivity/v1alpha1/stub/hubservicestubsettings/gethub/SyncGetHub.java
@@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception {
}
public static void syncGetHub() throws Exception {
- // This snippet has been automatically generated for illustrative purposes only.
- // It may require modifications to work in your environment.
+ // This snippet has been automatically generated and should be regarded as a code template only.
+ // It will require modifications to work:
+ // - It may require correct/in-range values for request initialization.
+ // - It may require specifying regional endpoints when creating the service client as shown in
+ // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
HubServiceStubSettings.Builder hubServiceSettingsBuilder = HubServiceStubSettings.newBuilder();
hubServiceSettingsBuilder
.getHubSettings()
.setRetrySettings(
- hubServiceSettingsBuilder
- .getHubSettings()
- .getRetrySettings()
- .toBuilder()
+ hubServiceSettingsBuilder.getHubSettings().getRetrySettings().toBuilder()
.setTotalTimeout(Duration.ofSeconds(30))
.build());
HubServiceStubSettings hubServiceSettings = hubServiceSettingsBuilder.build();
From 90faa73359027547537aef8f58d4c3be31c9fa54 Mon Sep 17 00:00:00 2001
From: WhiteSource Renovate
Date: Thu, 8 Sep 2022 22:56:14 +0200
Subject: [PATCH 7/8] deps: update dependency
com.google.cloud:google-cloud-shared-dependencies to v3.0.2 (#286)
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
[](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.google.cloud:google-cloud-shared-dependencies](https://togithub.com/googleapis/java-shared-dependencies) | `3.0.1` -> `3.0.2` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) |
---
### Release Notes
googleapis/java-shared-dependencies
### [`v3.0.2`](https://togithub.com/googleapis/java-shared-dependencies/blob/HEAD/CHANGELOG.md#302-httpsgithubcomgoogleapisjava-shared-dependenciescomparev301v302-2022-09-08)
[Compare Source](https://togithub.com/googleapis/java-shared-dependencies/compare/v3.0.1...v3.0.2)
##### Dependencies
- Update dependency com.fasterxml.jackson:jackson-bom to v2.13.4 ([#789](https://togithub.com/googleapis/java-shared-dependencies/issues/789)) ([6cf91a9](https://togithub.com/googleapis/java-shared-dependencies/commit/6cf91a96b9ea6af0fb845b50582dac7aa2892cab))
- Update dependency com.google.auth:google-auth-library-bom to v1.10.0 ([#781](https://togithub.com/googleapis/java-shared-dependencies/issues/781)) ([8859e61](https://togithub.com/googleapis/java-shared-dependencies/commit/8859e61808bfc5cd9546e27e945fc855b36d2554))
- Update dependency com.google.auth:google-auth-library-bom to v1.11.0 ([#790](https://togithub.com/googleapis/java-shared-dependencies/issues/790)) ([3431a47](https://togithub.com/googleapis/java-shared-dependencies/commit/3431a471cbf874a67a4f1a42e31f0ed891dedc92))
- Update dependency com.google.auth:google-auth-library-bom to v1.9.0 ([#773](https://togithub.com/googleapis/java-shared-dependencies/issues/773)) ([27fc79f](https://togithub.com/googleapis/java-shared-dependencies/commit/27fc79f00ee70011df6a368bb8fcfad7f0ce41f0))
- Update dependency com.google.errorprone:error_prone_annotations to v2.15.0 ([#776](https://togithub.com/googleapis/java-shared-dependencies/issues/776)) ([bf333b8](https://togithub.com/googleapis/java-shared-dependencies/commit/bf333b8c88072d21cb959db4d3328bbb55d9ef5c))
- Update dependency com.google.protobuf:protobuf-bom to v3.21.5 ([#780](https://togithub.com/googleapis/java-shared-dependencies/issues/780)) ([da7f44d](https://togithub.com/googleapis/java-shared-dependencies/commit/da7f44d71d6d7f372b5313dab68ce220308614d4))
- Update dependency io.grpc:grpc-bom to v1.48.1 ([#768](https://togithub.com/googleapis/java-shared-dependencies/issues/768)) ([5c7768d](https://togithub.com/googleapis/java-shared-dependencies/commit/5c7768d3c9665dd356de6c39c0a6a5fa6e992f2e))
- Update dependency io.grpc:grpc-bom to v1.49.0 ([#786](https://togithub.com/googleapis/java-shared-dependencies/issues/786)) ([8734812](https://togithub.com/googleapis/java-shared-dependencies/commit/8734812f1b4e2faaa48caf41eff59a85892ae344))
- Update dependency org.checkerframework:checker-qual to v3.24.0 ([#775](https://togithub.com/googleapis/java-shared-dependencies/issues/775)) ([df74b7b](https://togithub.com/googleapis/java-shared-dependencies/commit/df74b7b0dd5dd592523f302d9fb36adb5991cb0b))
- Update dependency org.checkerframework:checker-qual to v3.25.0 ([#788](https://togithub.com/googleapis/java-shared-dependencies/issues/788)) ([207035b](https://togithub.com/googleapis/java-shared-dependencies/commit/207035bd04c9305899eea540acbefaf06a7b1ec9))
- Update dependency org.threeten:threetenbp to v1.6.1 ([#782](https://togithub.com/googleapis/java-shared-dependencies/issues/782)) ([0f218ae](https://togithub.com/googleapis/java-shared-dependencies/commit/0f218aeb6aa33cf1da4a8b1d6c82bbf87946dab9))
- Update gax.version to v2.19.0 ([#785](https://togithub.com/googleapis/java-shared-dependencies/issues/785)) ([4448331](https://togithub.com/googleapis/java-shared-dependencies/commit/4448331c4c6d88ea8076260776d1d47d24aa19fa))
- Update google.core.version to v2.8.10 ([#787](https://togithub.com/googleapis/java-shared-dependencies/issues/787)) ([3c344d5](https://togithub.com/googleapis/java-shared-dependencies/commit/3c344d515e3b9215db5a1f8ef550d800d974e558))
- Update google.core.version to v2.8.7 ([#774](https://togithub.com/googleapis/java-shared-dependencies/issues/774)) ([d0cd5e8](https://togithub.com/googleapis/java-shared-dependencies/commit/d0cd5e8f6ca88787fe0dbf7f30c849cb4c4fae5e))
- Update google.core.version to v2.8.8 ([#777](https://togithub.com/googleapis/java-shared-dependencies/issues/777)) ([f00571c](https://togithub.com/googleapis/java-shared-dependencies/commit/f00571cd1e9f1c4e011fba4a1e1674c1d8d60200))
- Update google.core.version to v2.8.9 ([#784](https://togithub.com/googleapis/java-shared-dependencies/issues/784)) ([aa8e505](https://togithub.com/googleapis/java-shared-dependencies/commit/aa8e505dbb1214b2239e55d5ac83b00c167d77e4))
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.
â™» **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update again.
---
- [ ] If you want to rebase/retry this PR, click this checkbox.
---
This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-networkconnectivity).
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 0be4ced8..c0c4f021 100644
--- a/pom.xml
+++ b/pom.xml
@@ -87,7 +87,7 @@
com.google.cloud
google-cloud-shared-dependencies
- 3.0.1
+ 3.0.2
pom
import
From 673b87669edd1cb1c80de13e66a1c9eeb47d32c7 Mon Sep 17 00:00:00 2001
From: "release-please[bot]"
<55107282+release-please[bot]@users.noreply.github.com>
Date: Thu, 8 Sep 2022 21:26:15 +0000
Subject: [PATCH 8/8] chore(main): release 1.2.4 (#287)
:robot: I have created a release *beep* *boop*
---
## [1.2.4](https://github.com/googleapis/java-networkconnectivity/compare/v1.2.3...v1.2.4) (2022-09-08)
### Dependencies
* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#286](https://github.com/googleapis/java-networkconnectivity/issues/286)) ([90faa73](https://github.com/googleapis/java-networkconnectivity/commit/90faa73359027547537aef8f58d4c3be31c9fa54))
---
This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please).
---
CHANGELOG.md | 7 +++++++
google-cloud-networkconnectivity-bom/pom.xml | 12 ++++++------
google-cloud-networkconnectivity/pom.xml | 4 ++--
grpc-google-cloud-networkconnectivity-v1/pom.xml | 4 ++--
.../pom.xml | 4 ++--
pom.xml | 12 ++++++------
proto-google-cloud-networkconnectivity-v1/pom.xml | 4 ++--
.../pom.xml | 4 ++--
versions.txt | 10 +++++-----
9 files changed, 34 insertions(+), 27 deletions(-)
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 5ec662af..e3a1df2f 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,5 +1,12 @@
# Changelog
+## [1.2.4](https://github.com/googleapis/java-networkconnectivity/compare/v1.2.3...v1.2.4) (2022-09-08)
+
+
+### Dependencies
+
+* Update dependency com.google.cloud:google-cloud-shared-dependencies to v3.0.2 ([#286](https://github.com/googleapis/java-networkconnectivity/issues/286)) ([90faa73](https://github.com/googleapis/java-networkconnectivity/commit/90faa73359027547537aef8f58d4c3be31c9fa54))
+
## [1.2.3](https://github.com/googleapis/java-networkconnectivity/compare/v1.2.2...v1.2.3) (2022-08-09)
diff --git a/google-cloud-networkconnectivity-bom/pom.xml b/google-cloud-networkconnectivity-bom/pom.xml
index 80c1a432..5c77a0a8 100644
--- a/google-cloud-networkconnectivity-bom/pom.xml
+++ b/google-cloud-networkconnectivity-bom/pom.xml
@@ -3,7 +3,7 @@
4.0.0
com.google.cloud
google-cloud-networkconnectivity-bom
- 1.2.4-SNAPSHOT
+ 1.2.4
pom
com.google.cloud
@@ -56,27 +56,27 @@
com.google.cloud
google-cloud-networkconnectivity
- 1.2.4-SNAPSHOT
+ 1.2.4
com.google.api.grpc
grpc-google-cloud-networkconnectivity-v1alpha1
- 0.8.4-SNAPSHOT
+ 0.8.4
com.google.api.grpc
grpc-google-cloud-networkconnectivity-v1
- 1.2.4-SNAPSHOT
+ 1.2.4
com.google.api.grpc
proto-google-cloud-networkconnectivity-v1alpha1
- 0.8.4-SNAPSHOT
+ 0.8.4
com.google.api.grpc
proto-google-cloud-networkconnectivity-v1
- 1.2.4-SNAPSHOT
+ 1.2.4