diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/create/SyncCreateSetCredentialsProvider.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/create/SyncCreateSetCredentialsProvider.java index 4380e28b609..3fd5e2bc3a4 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/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 LookupServiceSettings lookupServiceSettings = LookupServiceSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/create/SyncCreateSetCredentialsProvider1.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/create/SyncCreateSetCredentialsProvider1.java index 7a9cd536b15..bccdf9d7578 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() 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 LookupServiceSettings lookupServiceSettings = LookupServiceSettings.newBuilder() .setTransportChannelProvider( diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/create/SyncCreateSetEndpoint.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/create/SyncCreateSetEndpoint.java index 428883ce74a..68d7de4cc81 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/create/SyncCreateSetEndpoint.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/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 LookupServiceSettings lookupServiceSettings = LookupServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); LookupServiceClient lookupServiceClient = LookupServiceClient.create(lookupServiceSettings); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/resolveservice/AsyncResolveService.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/resolveservice/AsyncResolveService.java index f9c0857f383..d836636110c 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/resolveservice/AsyncResolveService.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/resolveservice/AsyncResolveService.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncResolveService() 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 (LookupServiceClient lookupServiceClient = LookupServiceClient.create()) { ResolveServiceRequest request = ResolveServiceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/resolveservice/SyncResolveService.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/resolveservice/SyncResolveService.java index a3d7a946577..1cc0a1e59f2 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/resolveservice/SyncResolveService.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/resolveservice/SyncResolveService.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncResolveService() 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 (LookupServiceClient lookupServiceClient = LookupServiceClient.create()) { ResolveServiceRequest request = ResolveServiceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/lookupservicesettings/resolveservice/SyncResolveService.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/lookupservicesettings/resolveservice/SyncResolveService.java index 14647002837..55940277d03 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/lookupservicesettings/resolveservice/SyncResolveService.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/lookupservicesettings/resolveservice/SyncResolveService.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncResolveService() 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 LookupServiceSettings.Builder lookupServiceSettingsBuilder = LookupServiceSettings.newBuilder(); lookupServiceSettingsBuilder .resolveServiceSettings() .setRetrySettings( - lookupServiceSettingsBuilder - .resolveServiceSettings() - .getRetrySettings() - .toBuilder() + lookupServiceSettingsBuilder.resolveServiceSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); LookupServiceSettings lookupServiceSettings = lookupServiceSettingsBuilder.build(); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/create/SyncCreateSetCredentialsProvider.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/create/SyncCreateSetCredentialsProvider.java index caaa66fc441..a599021f764 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/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 RegistrationServiceSettings registrationServiceSettings = RegistrationServiceSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/create/SyncCreateSetCredentialsProvider1.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/create/SyncCreateSetCredentialsProvider1.java index 05f76c0d43d..56f841ec09e 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() 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 RegistrationServiceSettings registrationServiceSettings = RegistrationServiceSettings.newBuilder() .setTransportChannelProvider( diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/create/SyncCreateSetEndpoint.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/create/SyncCreateSetEndpoint.java index ed7d0641bfc..1f85fd47ef2 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/create/SyncCreateSetEndpoint.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/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 RegistrationServiceSettings registrationServiceSettings = RegistrationServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); RegistrationServiceClient registrationServiceClient = diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createendpoint/AsyncCreateEndpoint.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createendpoint/AsyncCreateEndpoint.java index 6cdf7958339..596a1a848d8 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createendpoint/AsyncCreateEndpoint.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createendpoint/AsyncCreateEndpoint.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateEndpoint() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { CreateEndpointRequest request = CreateEndpointRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createendpoint/SyncCreateEndpoint.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createendpoint/SyncCreateEndpoint.java index 6ff94bc34a2..79d05f819d5 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createendpoint/SyncCreateEndpoint.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createendpoint/SyncCreateEndpoint.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateEndpoint() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { CreateEndpointRequest request = CreateEndpointRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createendpoint/SyncCreateEndpointServicenameEndpointString.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createendpoint/SyncCreateEndpointServicenameEndpointString.java index 97f5c374381..f644902c590 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createendpoint/SyncCreateEndpointServicenameEndpointString.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createendpoint/SyncCreateEndpointServicenameEndpointString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateEndpointServicenameEndpointString() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { ServiceName parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"); Endpoint endpoint = Endpoint.newBuilder().build(); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createendpoint/SyncCreateEndpointStringEndpointString.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createendpoint/SyncCreateEndpointStringEndpointString.java index 825271418c9..5521609e279 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createendpoint/SyncCreateEndpointStringEndpointString.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createendpoint/SyncCreateEndpointStringEndpointString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateEndpointStringEndpointString() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { String parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString(); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createnamespace/AsyncCreateNamespace.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createnamespace/AsyncCreateNamespace.java index d3aedbcab5b..dda48e3c3e8 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createnamespace/AsyncCreateNamespace.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createnamespace/AsyncCreateNamespace.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateNamespace() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { CreateNamespaceRequest request = CreateNamespaceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createnamespace/SyncCreateNamespace.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createnamespace/SyncCreateNamespace.java index 97eeec7e22b..f5e9edb2a40 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createnamespace/SyncCreateNamespace.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createnamespace/SyncCreateNamespace.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateNamespace() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { CreateNamespaceRequest request = CreateNamespaceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createnamespace/SyncCreateNamespaceLocationnameNamespaceString.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createnamespace/SyncCreateNamespaceLocationnameNamespaceString.java index bd73527d5d5..22abb9a1d2e 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createnamespace/SyncCreateNamespaceLocationnameNamespaceString.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createnamespace/SyncCreateNamespaceLocationnameNamespaceString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateNamespaceLocationnameNamespaceString() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); Namespace namespace = Namespace.newBuilder().build(); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createnamespace/SyncCreateNamespaceStringNamespaceString.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createnamespace/SyncCreateNamespaceStringNamespaceString.java index fce319d0947..dd522b18280 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createnamespace/SyncCreateNamespaceStringNamespaceString.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createnamespace/SyncCreateNamespaceStringNamespaceString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateNamespaceStringNamespaceString() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); Namespace namespace = Namespace.newBuilder().build(); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createservice/AsyncCreateService.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createservice/AsyncCreateService.java index b62039f12e2..5e4a0a8fc1f 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createservice/AsyncCreateService.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createservice/AsyncCreateService.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateService() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { CreateServiceRequest request = CreateServiceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createservice/SyncCreateService.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createservice/SyncCreateService.java index 94fcde93970..1fb80caa830 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createservice/SyncCreateService.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createservice/SyncCreateService.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateService() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { CreateServiceRequest request = CreateServiceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createservice/SyncCreateServiceNamespacenameServiceString.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createservice/SyncCreateServiceNamespacenameServiceString.java index 8fc14dc74f9..3024f6f404f 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createservice/SyncCreateServiceNamespacenameServiceString.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createservice/SyncCreateServiceNamespacenameServiceString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateServiceNamespacenameServiceString() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { NamespaceName parent = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]"); Service service = Service.newBuilder().build(); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createservice/SyncCreateServiceStringServiceString.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createservice/SyncCreateServiceStringServiceString.java index cd23e02b24c..bd54b21521f 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createservice/SyncCreateServiceStringServiceString.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createservice/SyncCreateServiceStringServiceString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateServiceStringServiceString() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { String parent = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString(); Service service = Service.newBuilder().build(); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteendpoint/AsyncDeleteEndpoint.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteendpoint/AsyncDeleteEndpoint.java index c78a7796a76..83bc1b79de0 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteendpoint/AsyncDeleteEndpoint.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteendpoint/AsyncDeleteEndpoint.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteEndpoint() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { DeleteEndpointRequest request = DeleteEndpointRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteendpoint/SyncDeleteEndpoint.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteendpoint/SyncDeleteEndpoint.java index 94f8e8ad85d..75a5ec69f16 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteendpoint/SyncDeleteEndpoint.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteendpoint/SyncDeleteEndpoint.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteEndpoint() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { DeleteEndpointRequest request = DeleteEndpointRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteendpoint/SyncDeleteEndpointEndpointname.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteendpoint/SyncDeleteEndpointEndpointname.java index afe84fc331b..1951cb665cd 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteendpoint/SyncDeleteEndpointEndpointname.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteendpoint/SyncDeleteEndpointEndpointname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteEndpointEndpointname() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { EndpointName name = EndpointName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]", "[ENDPOINT]"); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteendpoint/SyncDeleteEndpointString.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteendpoint/SyncDeleteEndpointString.java index e19fa6db4f6..cbecd93879a 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteendpoint/SyncDeleteEndpointString.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteendpoint/SyncDeleteEndpointString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteEndpointString() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { String name = EndpointName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]", "[ENDPOINT]") diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deletenamespace/AsyncDeleteNamespace.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deletenamespace/AsyncDeleteNamespace.java index b26bac039ee..663dde66f24 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deletenamespace/AsyncDeleteNamespace.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deletenamespace/AsyncDeleteNamespace.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteNamespace() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { DeleteNamespaceRequest request = DeleteNamespaceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deletenamespace/SyncDeleteNamespace.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deletenamespace/SyncDeleteNamespace.java index f555fd13c71..8fb96a5e152 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deletenamespace/SyncDeleteNamespace.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deletenamespace/SyncDeleteNamespace.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteNamespace() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { DeleteNamespaceRequest request = DeleteNamespaceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deletenamespace/SyncDeleteNamespaceNamespacename.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deletenamespace/SyncDeleteNamespaceNamespacename.java index 9a6e1c8ff11..63636f1da05 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deletenamespace/SyncDeleteNamespaceNamespacename.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deletenamespace/SyncDeleteNamespaceNamespacename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteNamespaceNamespacename() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]"); registrationServiceClient.deleteNamespace(name); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deletenamespace/SyncDeleteNamespaceString.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deletenamespace/SyncDeleteNamespaceString.java index c61c661b329..4a4ce42754d 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deletenamespace/SyncDeleteNamespaceString.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deletenamespace/SyncDeleteNamespaceString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteNamespaceString() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { String name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString(); registrationServiceClient.deleteNamespace(name); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteservice/AsyncDeleteService.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteservice/AsyncDeleteService.java index 0730e6bea8f..62ec1ffb06a 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteservice/AsyncDeleteService.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteservice/AsyncDeleteService.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteService() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { DeleteServiceRequest request = DeleteServiceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteservice/SyncDeleteService.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteservice/SyncDeleteService.java index 2510f6d312c..ed4409df1e6 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteservice/SyncDeleteService.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteservice/SyncDeleteService.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteService() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { DeleteServiceRequest request = DeleteServiceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteservice/SyncDeleteServiceServicename.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteservice/SyncDeleteServiceServicename.java index 87e203907e9..7a72912ffea 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteservice/SyncDeleteServiceServicename.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteservice/SyncDeleteServiceServicename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteServiceServicename() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"); registrationServiceClient.deleteService(name); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteservice/SyncDeleteServiceString.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteservice/SyncDeleteServiceString.java index 271b59f143a..7954af52f7e 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteservice/SyncDeleteServiceString.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteservice/SyncDeleteServiceString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteServiceString() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { String name = ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString(); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getendpoint/AsyncGetEndpoint.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getendpoint/AsyncGetEndpoint.java index a42070f0846..040f89aac32 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getendpoint/AsyncGetEndpoint.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getendpoint/AsyncGetEndpoint.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetEndpoint() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { GetEndpointRequest request = GetEndpointRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getendpoint/SyncGetEndpoint.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getendpoint/SyncGetEndpoint.java index a79d4a21316..0c420e28307 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getendpoint/SyncGetEndpoint.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getendpoint/SyncGetEndpoint.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetEndpoint() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { GetEndpointRequest request = GetEndpointRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getendpoint/SyncGetEndpointEndpointname.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getendpoint/SyncGetEndpointEndpointname.java index e73c119eada..00dcf0fef7b 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getendpoint/SyncGetEndpointEndpointname.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getendpoint/SyncGetEndpointEndpointname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetEndpointEndpointname() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { EndpointName name = EndpointName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]", "[ENDPOINT]"); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getendpoint/SyncGetEndpointString.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getendpoint/SyncGetEndpointString.java index fd00033abeb..155ffc14da8 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getendpoint/SyncGetEndpointString.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getendpoint/SyncGetEndpointString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetEndpointString() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { String name = EndpointName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]", "[ENDPOINT]") diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getiampolicy/AsyncGetIamPolicy.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getiampolicy/AsyncGetIamPolicy.java index 95fd3ce1288..645983262b1 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getiampolicy/AsyncGetIamPolicy.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getiampolicy/AsyncGetIamPolicy.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetIamPolicy() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getiampolicy/SyncGetIamPolicy.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getiampolicy/SyncGetIamPolicy.java index 83709ee1cbd..9b3b8e62509 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getiampolicy/SyncGetIamPolicy.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getiampolicy/SyncGetIamPolicy.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetIamPolicy() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getnamespace/AsyncGetNamespace.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getnamespace/AsyncGetNamespace.java index 4992874f4eb..f5f7e2d488c 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getnamespace/AsyncGetNamespace.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getnamespace/AsyncGetNamespace.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetNamespace() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { GetNamespaceRequest request = GetNamespaceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getnamespace/SyncGetNamespace.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getnamespace/SyncGetNamespace.java index 90176243d52..a3a62e14e80 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getnamespace/SyncGetNamespace.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getnamespace/SyncGetNamespace.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetNamespace() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { GetNamespaceRequest request = GetNamespaceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getnamespace/SyncGetNamespaceNamespacename.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getnamespace/SyncGetNamespaceNamespacename.java index 2dbc802b752..dfee5c05fd7 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getnamespace/SyncGetNamespaceNamespacename.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getnamespace/SyncGetNamespaceNamespacename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetNamespaceNamespacename() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]"); Namespace response = registrationServiceClient.getNamespace(name); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getnamespace/SyncGetNamespaceString.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getnamespace/SyncGetNamespaceString.java index 8f8e5113cba..c3db6fb5b78 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getnamespace/SyncGetNamespaceString.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getnamespace/SyncGetNamespaceString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetNamespaceString() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { String name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString(); Namespace response = registrationServiceClient.getNamespace(name); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getservice/AsyncGetService.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getservice/AsyncGetService.java index 30adf262ba5..d2b594be506 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getservice/AsyncGetService.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getservice/AsyncGetService.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetService() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { GetServiceRequest request = GetServiceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getservice/SyncGetService.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getservice/SyncGetService.java index a9bd14c68e8..ed2aadd2cfc 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getservice/SyncGetService.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getservice/SyncGetService.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetService() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { GetServiceRequest request = GetServiceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getservice/SyncGetServiceServicename.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getservice/SyncGetServiceServicename.java index 97c1cc99b96..7c88bbf621b 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getservice/SyncGetServiceServicename.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getservice/SyncGetServiceServicename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetServiceServicename() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"); Service response = registrationServiceClient.getService(name); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getservice/SyncGetServiceString.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getservice/SyncGetServiceString.java index 03bdcd5a947..050f002b183 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getservice/SyncGetServiceString.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getservice/SyncGetServiceString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetServiceString() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { String name = ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString(); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/AsyncListEndpoints.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/AsyncListEndpoints.java index e47208b4a5d..ec6f275ad43 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/AsyncListEndpoints.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/AsyncListEndpoints.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListEndpoints() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { ListEndpointsRequest request = ListEndpointsRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/AsyncListEndpointsPaged.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/AsyncListEndpointsPaged.java index 44e394e1a0d..e52c5c0262e 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/AsyncListEndpointsPaged.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/AsyncListEndpointsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListEndpointsPaged() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { ListEndpointsRequest request = ListEndpointsRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/SyncListEndpoints.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/SyncListEndpoints.java index 116d8ea3fa5..71f9728c005 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/SyncListEndpoints.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/SyncListEndpoints.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListEndpoints() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { ListEndpointsRequest request = ListEndpointsRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/SyncListEndpointsServicename.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/SyncListEndpointsServicename.java index 848d925e431..cb9366cec40 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/SyncListEndpointsServicename.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/SyncListEndpointsServicename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListEndpointsServicename() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { ServiceName parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"); for (Endpoint element : registrationServiceClient.listEndpoints(parent).iterateAll()) { diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/SyncListEndpointsString.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/SyncListEndpointsString.java index da5cc35dada..ed297798d9e 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/SyncListEndpointsString.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/SyncListEndpointsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListEndpointsString() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { String parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString(); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/AsyncListNamespaces.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/AsyncListNamespaces.java index 46a466f0ab0..11114f1358e 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/AsyncListNamespaces.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/AsyncListNamespaces.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListNamespaces() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { ListNamespacesRequest request = ListNamespacesRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/AsyncListNamespacesPaged.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/AsyncListNamespacesPaged.java index 636a1b9280d..8b6d576a6a8 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/AsyncListNamespacesPaged.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/AsyncListNamespacesPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListNamespacesPaged() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { ListNamespacesRequest request = ListNamespacesRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/SyncListNamespaces.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/SyncListNamespaces.java index ae9fe4accff..bd13b6d8389 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/SyncListNamespaces.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/SyncListNamespaces.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListNamespaces() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { ListNamespacesRequest request = ListNamespacesRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/SyncListNamespacesLocationname.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/SyncListNamespacesLocationname.java index 79f2a211b8d..f7678e91f20 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/SyncListNamespacesLocationname.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/SyncListNamespacesLocationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListNamespacesLocationname() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (Namespace element : registrationServiceClient.listNamespaces(parent).iterateAll()) { diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/SyncListNamespacesString.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/SyncListNamespacesString.java index 5ade192b389..30a11d92fba 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/SyncListNamespacesString.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/SyncListNamespacesString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListNamespacesString() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (Namespace element : registrationServiceClient.listNamespaces(parent).iterateAll()) { diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/AsyncListServices.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/AsyncListServices.java index 87e71a33a93..283cd34c49b 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/AsyncListServices.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/AsyncListServices.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListServices() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { ListServicesRequest request = ListServicesRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/AsyncListServicesPaged.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/AsyncListServicesPaged.java index 0ca6dcccc48..74be47fba3d 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/AsyncListServicesPaged.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/AsyncListServicesPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListServicesPaged() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { ListServicesRequest request = ListServicesRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/SyncListServices.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/SyncListServices.java index f05a6d9fe64..1d46dd41fa2 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/SyncListServices.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/SyncListServices.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListServices() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { ListServicesRequest request = ListServicesRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/SyncListServicesNamespacename.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/SyncListServicesNamespacename.java index eeebfb77c36..89ad0a3bcbc 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/SyncListServicesNamespacename.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/SyncListServicesNamespacename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListServicesNamespacename() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { NamespaceName parent = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]"); for (Service element : registrationServiceClient.listServices(parent).iterateAll()) { diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/SyncListServicesString.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/SyncListServicesString.java index 10241c5e191..6d4f29038a0 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/SyncListServicesString.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/SyncListServicesString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListServicesString() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { String parent = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString(); for (Service element : registrationServiceClient.listServices(parent).iterateAll()) { diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/setiampolicy/AsyncSetIamPolicy.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/setiampolicy/AsyncSetIamPolicy.java index 5b3d51381c6..f6022eb8a86 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/setiampolicy/AsyncSetIamPolicy.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/setiampolicy/AsyncSetIamPolicy.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSetIamPolicy() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/setiampolicy/SyncSetIamPolicy.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/setiampolicy/SyncSetIamPolicy.java index cfa52333084..49c01d5eec4 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/setiampolicy/SyncSetIamPolicy.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/setiampolicy/SyncSetIamPolicy.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncSetIamPolicy() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/testiampermissions/AsyncTestIamPermissions.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/testiampermissions/AsyncTestIamPermissions.java index 5978a7f0d01..a50b6797818 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/testiampermissions/AsyncTestIamPermissions.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/testiampermissions/AsyncTestIamPermissions.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncTestIamPermissions() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/testiampermissions/SyncTestIamPermissions.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/testiampermissions/SyncTestIamPermissions.java index 286e3a0277c..e5ab645dd16 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/testiampermissions/SyncTestIamPermissions.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/testiampermissions/SyncTestIamPermissions.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncTestIamPermissions() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateendpoint/AsyncUpdateEndpoint.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateendpoint/AsyncUpdateEndpoint.java index 5a03713b15c..6a6f47cf077 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateendpoint/AsyncUpdateEndpoint.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateendpoint/AsyncUpdateEndpoint.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateEndpoint() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { UpdateEndpointRequest request = UpdateEndpointRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateendpoint/SyncUpdateEndpoint.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateendpoint/SyncUpdateEndpoint.java index 91e38e4c3d9..6aab568ebe1 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateendpoint/SyncUpdateEndpoint.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateendpoint/SyncUpdateEndpoint.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateEndpoint() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { UpdateEndpointRequest request = UpdateEndpointRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateendpoint/SyncUpdateEndpointEndpointFieldmask.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateendpoint/SyncUpdateEndpointEndpointFieldmask.java index bd35030d6d6..dce28767e5a 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateendpoint/SyncUpdateEndpointEndpointFieldmask.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateendpoint/SyncUpdateEndpointEndpointFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateEndpointEndpointFieldmask() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { Endpoint endpoint = Endpoint.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updatenamespace/AsyncUpdateNamespace.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updatenamespace/AsyncUpdateNamespace.java index 948c05f43ad..a015b78ec35 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updatenamespace/AsyncUpdateNamespace.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updatenamespace/AsyncUpdateNamespace.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateNamespace() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { UpdateNamespaceRequest request = UpdateNamespaceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updatenamespace/SyncUpdateNamespace.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updatenamespace/SyncUpdateNamespace.java index 9be1ed02599..cdf1ca66085 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updatenamespace/SyncUpdateNamespace.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updatenamespace/SyncUpdateNamespace.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateNamespace() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { UpdateNamespaceRequest request = UpdateNamespaceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updatenamespace/SyncUpdateNamespaceNamespaceFieldmask.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updatenamespace/SyncUpdateNamespaceNamespaceFieldmask.java index 45fc0b4e742..8af415105d7 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updatenamespace/SyncUpdateNamespaceNamespaceFieldmask.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updatenamespace/SyncUpdateNamespaceNamespaceFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateNamespaceNamespaceFieldmask() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { Namespace namespace = Namespace.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateservice/AsyncUpdateService.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateservice/AsyncUpdateService.java index f25fcb6d8b8..39ec64cd9bc 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateservice/AsyncUpdateService.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateservice/AsyncUpdateService.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateService() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { UpdateServiceRequest request = UpdateServiceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateservice/SyncUpdateService.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateservice/SyncUpdateService.java index 9f60281aee0..e810e09a2f9 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateservice/SyncUpdateService.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateservice/SyncUpdateService.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateService() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { UpdateServiceRequest request = UpdateServiceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateservice/SyncUpdateServiceServiceFieldmask.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateservice/SyncUpdateServiceServiceFieldmask.java index a9c32027505..1f8514e2bcb 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateservice/SyncUpdateServiceServiceFieldmask.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateservice/SyncUpdateServiceServiceFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateServiceServiceFieldmask() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { Service service = Service.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationservicesettings/createnamespace/SyncCreateNamespace.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationservicesettings/createnamespace/SyncCreateNamespace.java index f0fd5e4508e..0583814c827 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationservicesettings/createnamespace/SyncCreateNamespace.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/registrationservicesettings/createnamespace/SyncCreateNamespace.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateNamespace() 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 RegistrationServiceSettings.Builder registrationServiceSettingsBuilder = RegistrationServiceSettings.newBuilder(); registrationServiceSettingsBuilder diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/stub/lookupservicestubsettings/resolveservice/SyncResolveService.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/stub/lookupservicestubsettings/resolveservice/SyncResolveService.java index 196e4d9cdd0..2a17a011fce 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/stub/lookupservicestubsettings/resolveservice/SyncResolveService.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/stub/lookupservicestubsettings/resolveservice/SyncResolveService.java @@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception { } public static void syncResolveService() 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 LookupServiceStubSettings.Builder lookupServiceSettingsBuilder = LookupServiceStubSettings.newBuilder(); lookupServiceSettingsBuilder .resolveServiceSettings() .setRetrySettings( - lookupServiceSettingsBuilder - .resolveServiceSettings() - .getRetrySettings() - .toBuilder() + lookupServiceSettingsBuilder.resolveServiceSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); LookupServiceStubSettings lookupServiceSettings = lookupServiceSettingsBuilder.build(); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/stub/registrationservicestubsettings/createnamespace/SyncCreateNamespace.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/stub/registrationservicestubsettings/createnamespace/SyncCreateNamespace.java index 49d7cb9a6f5..e68d108ca63 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/stub/registrationservicestubsettings/createnamespace/SyncCreateNamespace.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1/stub/registrationservicestubsettings/createnamespace/SyncCreateNamespace.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateNamespace() 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 RegistrationServiceStubSettings.Builder registrationServiceSettingsBuilder = RegistrationServiceStubSettings.newBuilder(); registrationServiceSettingsBuilder diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/create/SyncCreateSetCredentialsProvider.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/create/SyncCreateSetCredentialsProvider.java index 84ca6e9d67d..d4fdf025c9f 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/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 LookupServiceSettings lookupServiceSettings = LookupServiceSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/create/SyncCreateSetCredentialsProvider1.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/create/SyncCreateSetCredentialsProvider1.java index d54d841cca3..ce7f92d311c 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() 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 LookupServiceSettings lookupServiceSettings = LookupServiceSettings.newBuilder() .setTransportChannelProvider( diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/create/SyncCreateSetEndpoint.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/create/SyncCreateSetEndpoint.java index a7fa2ea5410..e8acc6da594 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/create/SyncCreateSetEndpoint.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/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 LookupServiceSettings lookupServiceSettings = LookupServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); LookupServiceClient lookupServiceClient = LookupServiceClient.create(lookupServiceSettings); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/resolveservice/AsyncResolveService.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/resolveservice/AsyncResolveService.java index 86ceb33cd56..81ca980ea0c 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/resolveservice/AsyncResolveService.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/resolveservice/AsyncResolveService.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncResolveService() 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 (LookupServiceClient lookupServiceClient = LookupServiceClient.create()) { ResolveServiceRequest request = ResolveServiceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/resolveservice/SyncResolveService.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/resolveservice/SyncResolveService.java index a2843c0d94b..b8bba8f136b 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/resolveservice/SyncResolveService.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/resolveservice/SyncResolveService.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncResolveService() 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 (LookupServiceClient lookupServiceClient = LookupServiceClient.create()) { ResolveServiceRequest request = ResolveServiceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupservicesettings/resolveservice/SyncResolveService.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupservicesettings/resolveservice/SyncResolveService.java index dfaef560ebb..e98c844be74 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupservicesettings/resolveservice/SyncResolveService.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupservicesettings/resolveservice/SyncResolveService.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncResolveService() 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 LookupServiceSettings.Builder lookupServiceSettingsBuilder = LookupServiceSettings.newBuilder(); lookupServiceSettingsBuilder .resolveServiceSettings() .setRetrySettings( - lookupServiceSettingsBuilder - .resolveServiceSettings() - .getRetrySettings() - .toBuilder() + lookupServiceSettingsBuilder.resolveServiceSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); LookupServiceSettings lookupServiceSettings = lookupServiceSettingsBuilder.build(); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/create/SyncCreateSetCredentialsProvider.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/create/SyncCreateSetCredentialsProvider.java index dbd68985f8e..d956d2425f3 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/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 RegistrationServiceSettings registrationServiceSettings = RegistrationServiceSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/create/SyncCreateSetCredentialsProvider1.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/create/SyncCreateSetCredentialsProvider1.java index 77d45527fee..cfe199a6b0b 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() 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 RegistrationServiceSettings registrationServiceSettings = RegistrationServiceSettings.newBuilder() .setTransportChannelProvider( diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/create/SyncCreateSetEndpoint.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/create/SyncCreateSetEndpoint.java index 486059a53b0..abfa06e5fea 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/create/SyncCreateSetEndpoint.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/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 RegistrationServiceSettings registrationServiceSettings = RegistrationServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); RegistrationServiceClient registrationServiceClient = diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createendpoint/AsyncCreateEndpoint.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createendpoint/AsyncCreateEndpoint.java index 0746d2bfcbb..735cb236940 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createendpoint/AsyncCreateEndpoint.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createendpoint/AsyncCreateEndpoint.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateEndpoint() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { CreateEndpointRequest request = CreateEndpointRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createendpoint/SyncCreateEndpoint.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createendpoint/SyncCreateEndpoint.java index a230f1698db..3342e04282b 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createendpoint/SyncCreateEndpoint.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createendpoint/SyncCreateEndpoint.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateEndpoint() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { CreateEndpointRequest request = CreateEndpointRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createendpoint/SyncCreateEndpointServicenameEndpointString.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createendpoint/SyncCreateEndpointServicenameEndpointString.java index 8cb08dfed9e..54141e743c6 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createendpoint/SyncCreateEndpointServicenameEndpointString.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createendpoint/SyncCreateEndpointServicenameEndpointString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateEndpointServicenameEndpointString() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { ServiceName parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"); Endpoint endpoint = Endpoint.newBuilder().build(); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createendpoint/SyncCreateEndpointStringEndpointString.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createendpoint/SyncCreateEndpointStringEndpointString.java index b8b91c33a7c..5bb61cc76de 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createendpoint/SyncCreateEndpointStringEndpointString.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createendpoint/SyncCreateEndpointStringEndpointString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateEndpointStringEndpointString() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { String parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString(); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createnamespace/AsyncCreateNamespace.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createnamespace/AsyncCreateNamespace.java index 1d556f808a2..ad1388585e8 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createnamespace/AsyncCreateNamespace.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createnamespace/AsyncCreateNamespace.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateNamespace() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { CreateNamespaceRequest request = CreateNamespaceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createnamespace/SyncCreateNamespace.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createnamespace/SyncCreateNamespace.java index a71ea715984..b907f3bec08 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createnamespace/SyncCreateNamespace.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createnamespace/SyncCreateNamespace.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateNamespace() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { CreateNamespaceRequest request = CreateNamespaceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createnamespace/SyncCreateNamespaceLocationnameNamespaceString.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createnamespace/SyncCreateNamespaceLocationnameNamespaceString.java index 539e3e47630..635c8b75b51 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createnamespace/SyncCreateNamespaceLocationnameNamespaceString.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createnamespace/SyncCreateNamespaceLocationnameNamespaceString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateNamespaceLocationnameNamespaceString() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); Namespace namespace = Namespace.newBuilder().build(); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createnamespace/SyncCreateNamespaceStringNamespaceString.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createnamespace/SyncCreateNamespaceStringNamespaceString.java index 8ba9ff392ff..38b8695b41e 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createnamespace/SyncCreateNamespaceStringNamespaceString.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createnamespace/SyncCreateNamespaceStringNamespaceString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateNamespaceStringNamespaceString() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); Namespace namespace = Namespace.newBuilder().build(); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createservice/AsyncCreateService.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createservice/AsyncCreateService.java index 3aaa2d53561..c9a7db31225 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createservice/AsyncCreateService.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createservice/AsyncCreateService.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateService() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { CreateServiceRequest request = CreateServiceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createservice/SyncCreateService.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createservice/SyncCreateService.java index f2ac59a86d9..0efcf7ccd19 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createservice/SyncCreateService.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createservice/SyncCreateService.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateService() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { CreateServiceRequest request = CreateServiceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createservice/SyncCreateServiceNamespacenameServiceString.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createservice/SyncCreateServiceNamespacenameServiceString.java index 160299284b7..ea1bbb6e74c 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createservice/SyncCreateServiceNamespacenameServiceString.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createservice/SyncCreateServiceNamespacenameServiceString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateServiceNamespacenameServiceString() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { NamespaceName parent = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]"); Service service = Service.newBuilder().build(); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createservice/SyncCreateServiceStringServiceString.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createservice/SyncCreateServiceStringServiceString.java index 0cac32b0df7..9e5a376fa05 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createservice/SyncCreateServiceStringServiceString.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createservice/SyncCreateServiceStringServiceString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateServiceStringServiceString() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { String parent = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString(); Service service = Service.newBuilder().build(); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteendpoint/AsyncDeleteEndpoint.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteendpoint/AsyncDeleteEndpoint.java index 06f0ceaae4c..a379c46c379 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteendpoint/AsyncDeleteEndpoint.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteendpoint/AsyncDeleteEndpoint.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteEndpoint() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { DeleteEndpointRequest request = DeleteEndpointRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteendpoint/SyncDeleteEndpoint.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteendpoint/SyncDeleteEndpoint.java index 5047d8f1ffb..ddb832c9849 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteendpoint/SyncDeleteEndpoint.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteendpoint/SyncDeleteEndpoint.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteEndpoint() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { DeleteEndpointRequest request = DeleteEndpointRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteendpoint/SyncDeleteEndpointEndpointname.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteendpoint/SyncDeleteEndpointEndpointname.java index aa1157cc011..60f95ed86b7 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteendpoint/SyncDeleteEndpointEndpointname.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteendpoint/SyncDeleteEndpointEndpointname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteEndpointEndpointname() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { EndpointName name = EndpointName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]", "[ENDPOINT]"); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteendpoint/SyncDeleteEndpointString.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteendpoint/SyncDeleteEndpointString.java index 57e69672913..5d24c90b0ee 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteendpoint/SyncDeleteEndpointString.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteendpoint/SyncDeleteEndpointString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteEndpointString() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { String name = EndpointName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]", "[ENDPOINT]") diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deletenamespace/AsyncDeleteNamespace.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deletenamespace/AsyncDeleteNamespace.java index 89d486f0176..d44f0f15190 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deletenamespace/AsyncDeleteNamespace.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deletenamespace/AsyncDeleteNamespace.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteNamespace() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { DeleteNamespaceRequest request = DeleteNamespaceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deletenamespace/SyncDeleteNamespace.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deletenamespace/SyncDeleteNamespace.java index 2ede48e335f..d57b260cad0 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deletenamespace/SyncDeleteNamespace.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deletenamespace/SyncDeleteNamespace.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteNamespace() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { DeleteNamespaceRequest request = DeleteNamespaceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deletenamespace/SyncDeleteNamespaceNamespacename.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deletenamespace/SyncDeleteNamespaceNamespacename.java index 3ffd512e3c7..c5635659e85 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deletenamespace/SyncDeleteNamespaceNamespacename.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deletenamespace/SyncDeleteNamespaceNamespacename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteNamespaceNamespacename() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]"); registrationServiceClient.deleteNamespace(name); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deletenamespace/SyncDeleteNamespaceString.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deletenamespace/SyncDeleteNamespaceString.java index 48769cdbd7c..c9f02390e25 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deletenamespace/SyncDeleteNamespaceString.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deletenamespace/SyncDeleteNamespaceString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteNamespaceString() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { String name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString(); registrationServiceClient.deleteNamespace(name); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteservice/AsyncDeleteService.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteservice/AsyncDeleteService.java index c846026593b..6bbf74ee51c 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteservice/AsyncDeleteService.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteservice/AsyncDeleteService.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteService() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { DeleteServiceRequest request = DeleteServiceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteservice/SyncDeleteService.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteservice/SyncDeleteService.java index 4fdc8b66384..ce0d98edd40 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteservice/SyncDeleteService.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteservice/SyncDeleteService.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteService() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { DeleteServiceRequest request = DeleteServiceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteservice/SyncDeleteServiceServicename.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteservice/SyncDeleteServiceServicename.java index f5b2093cfb3..6275f0ce017 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteservice/SyncDeleteServiceServicename.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteservice/SyncDeleteServiceServicename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteServiceServicename() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"); registrationServiceClient.deleteService(name); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteservice/SyncDeleteServiceString.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteservice/SyncDeleteServiceString.java index d218e221efd..fe28f06de27 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteservice/SyncDeleteServiceString.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteservice/SyncDeleteServiceString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteServiceString() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { String name = ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString(); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getendpoint/AsyncGetEndpoint.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getendpoint/AsyncGetEndpoint.java index 2f8a439d07e..15b53e2d154 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getendpoint/AsyncGetEndpoint.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getendpoint/AsyncGetEndpoint.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetEndpoint() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { GetEndpointRequest request = GetEndpointRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getendpoint/SyncGetEndpoint.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getendpoint/SyncGetEndpoint.java index fe61944a697..4393e2fa651 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getendpoint/SyncGetEndpoint.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getendpoint/SyncGetEndpoint.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetEndpoint() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { GetEndpointRequest request = GetEndpointRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getendpoint/SyncGetEndpointEndpointname.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getendpoint/SyncGetEndpointEndpointname.java index 8731306206d..7df55ea6cd3 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getendpoint/SyncGetEndpointEndpointname.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getendpoint/SyncGetEndpointEndpointname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetEndpointEndpointname() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { EndpointName name = EndpointName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]", "[ENDPOINT]"); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getendpoint/SyncGetEndpointString.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getendpoint/SyncGetEndpointString.java index 4c2fba4dedc..673c7e14477 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getendpoint/SyncGetEndpointString.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getendpoint/SyncGetEndpointString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetEndpointString() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { String name = EndpointName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]", "[ENDPOINT]") diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getiampolicy/AsyncGetIamPolicy.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getiampolicy/AsyncGetIamPolicy.java index 0edef8b1913..d38847265bd 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getiampolicy/AsyncGetIamPolicy.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getiampolicy/AsyncGetIamPolicy.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetIamPolicy() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getiampolicy/SyncGetIamPolicy.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getiampolicy/SyncGetIamPolicy.java index 27e7590dcee..ce627cbe27e 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getiampolicy/SyncGetIamPolicy.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getiampolicy/SyncGetIamPolicy.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetIamPolicy() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getnamespace/AsyncGetNamespace.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getnamespace/AsyncGetNamespace.java index a1e1abb08f5..6a2c0b730a8 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getnamespace/AsyncGetNamespace.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getnamespace/AsyncGetNamespace.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetNamespace() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { GetNamespaceRequest request = GetNamespaceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getnamespace/SyncGetNamespace.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getnamespace/SyncGetNamespace.java index 0e5d6281d60..6a06a6e7fa0 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getnamespace/SyncGetNamespace.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getnamespace/SyncGetNamespace.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetNamespace() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { GetNamespaceRequest request = GetNamespaceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getnamespace/SyncGetNamespaceNamespacename.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getnamespace/SyncGetNamespaceNamespacename.java index d62a10faebf..4149464be41 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getnamespace/SyncGetNamespaceNamespacename.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getnamespace/SyncGetNamespaceNamespacename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetNamespaceNamespacename() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]"); Namespace response = registrationServiceClient.getNamespace(name); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getnamespace/SyncGetNamespaceString.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getnamespace/SyncGetNamespaceString.java index 160f195f7d9..1058ab145bf 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getnamespace/SyncGetNamespaceString.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getnamespace/SyncGetNamespaceString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetNamespaceString() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { String name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString(); Namespace response = registrationServiceClient.getNamespace(name); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getservice/AsyncGetService.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getservice/AsyncGetService.java index 211fc5dc407..0e2f545bbec 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getservice/AsyncGetService.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getservice/AsyncGetService.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetService() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { GetServiceRequest request = GetServiceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getservice/SyncGetService.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getservice/SyncGetService.java index d44a19def19..cee13f4f89f 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getservice/SyncGetService.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getservice/SyncGetService.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetService() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { GetServiceRequest request = GetServiceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getservice/SyncGetServiceServicename.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getservice/SyncGetServiceServicename.java index 4080b50d260..ede8939fe66 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getservice/SyncGetServiceServicename.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getservice/SyncGetServiceServicename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetServiceServicename() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"); Service response = registrationServiceClient.getService(name); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getservice/SyncGetServiceString.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getservice/SyncGetServiceString.java index d890c4874d4..0905eb17261 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getservice/SyncGetServiceString.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getservice/SyncGetServiceString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetServiceString() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { String name = ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString(); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/AsyncListEndpoints.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/AsyncListEndpoints.java index 5bd9b0c0bf7..ac405d1ff11 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/AsyncListEndpoints.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/AsyncListEndpoints.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListEndpoints() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { ListEndpointsRequest request = ListEndpointsRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/AsyncListEndpointsPaged.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/AsyncListEndpointsPaged.java index 013a67b31f3..a3dceb02896 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/AsyncListEndpointsPaged.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/AsyncListEndpointsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListEndpointsPaged() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { ListEndpointsRequest request = ListEndpointsRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/SyncListEndpoints.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/SyncListEndpoints.java index 976dd80ece4..3eeb0f9d2ad 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/SyncListEndpoints.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/SyncListEndpoints.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListEndpoints() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { ListEndpointsRequest request = ListEndpointsRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/SyncListEndpointsServicename.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/SyncListEndpointsServicename.java index 8007111c501..c0b6c1cc3da 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/SyncListEndpointsServicename.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/SyncListEndpointsServicename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListEndpointsServicename() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { ServiceName parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"); for (Endpoint element : registrationServiceClient.listEndpoints(parent).iterateAll()) { diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/SyncListEndpointsString.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/SyncListEndpointsString.java index 4456b1f0d0c..183861ad1f3 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/SyncListEndpointsString.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/SyncListEndpointsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListEndpointsString() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { String parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString(); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/AsyncListNamespaces.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/AsyncListNamespaces.java index a49dcd00198..fa8909e99f9 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/AsyncListNamespaces.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/AsyncListNamespaces.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListNamespaces() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { ListNamespacesRequest request = ListNamespacesRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/AsyncListNamespacesPaged.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/AsyncListNamespacesPaged.java index b3b5d47de53..c355c42c589 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/AsyncListNamespacesPaged.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/AsyncListNamespacesPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListNamespacesPaged() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { ListNamespacesRequest request = ListNamespacesRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/SyncListNamespaces.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/SyncListNamespaces.java index e36d22230e8..2ef6238d8ec 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/SyncListNamespaces.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/SyncListNamespaces.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListNamespaces() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { ListNamespacesRequest request = ListNamespacesRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/SyncListNamespacesLocationname.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/SyncListNamespacesLocationname.java index 1cedeb21b23..b7dce7e0bab 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/SyncListNamespacesLocationname.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/SyncListNamespacesLocationname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListNamespacesLocationname() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); for (Namespace element : registrationServiceClient.listNamespaces(parent).iterateAll()) { diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/SyncListNamespacesString.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/SyncListNamespacesString.java index 53363cbeeda..190bb492947 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/SyncListNamespacesString.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/SyncListNamespacesString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListNamespacesString() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); for (Namespace element : registrationServiceClient.listNamespaces(parent).iterateAll()) { diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/AsyncListServices.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/AsyncListServices.java index 79d86c8193f..2eb2bd31696 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/AsyncListServices.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/AsyncListServices.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListServices() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { ListServicesRequest request = ListServicesRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/AsyncListServicesPaged.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/AsyncListServicesPaged.java index f28bbc299b5..7df07520719 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/AsyncListServicesPaged.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/AsyncListServicesPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListServicesPaged() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { ListServicesRequest request = ListServicesRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/SyncListServices.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/SyncListServices.java index 553e2067137..e0140791a22 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/SyncListServices.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/SyncListServices.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListServices() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { ListServicesRequest request = ListServicesRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/SyncListServicesNamespacename.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/SyncListServicesNamespacename.java index e38a4b3c3a4..9dddadec338 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/SyncListServicesNamespacename.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/SyncListServicesNamespacename.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListServicesNamespacename() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { NamespaceName parent = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]"); for (Service element : registrationServiceClient.listServices(parent).iterateAll()) { diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/SyncListServicesString.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/SyncListServicesString.java index 5fa17514f54..10f310aa91f 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/SyncListServicesString.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/SyncListServicesString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListServicesString() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { String parent = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString(); for (Service element : registrationServiceClient.listServices(parent).iterateAll()) { diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/setiampolicy/AsyncSetIamPolicy.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/setiampolicy/AsyncSetIamPolicy.java index 1a6ac721f55..7fa0d315f2e 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/setiampolicy/AsyncSetIamPolicy.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/setiampolicy/AsyncSetIamPolicy.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSetIamPolicy() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/setiampolicy/SyncSetIamPolicy.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/setiampolicy/SyncSetIamPolicy.java index 38ae21415be..94dfe7f7ce1 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/setiampolicy/SyncSetIamPolicy.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/setiampolicy/SyncSetIamPolicy.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncSetIamPolicy() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/testiampermissions/AsyncTestIamPermissions.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/testiampermissions/AsyncTestIamPermissions.java index 2b9368f4f29..51c18c9afef 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/testiampermissions/AsyncTestIamPermissions.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/testiampermissions/AsyncTestIamPermissions.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncTestIamPermissions() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/testiampermissions/SyncTestIamPermissions.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/testiampermissions/SyncTestIamPermissions.java index b0b358f0297..903d359ef45 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/testiampermissions/SyncTestIamPermissions.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/testiampermissions/SyncTestIamPermissions.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncTestIamPermissions() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateendpoint/AsyncUpdateEndpoint.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateendpoint/AsyncUpdateEndpoint.java index 5fcd0d73376..d24be811b43 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateendpoint/AsyncUpdateEndpoint.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateendpoint/AsyncUpdateEndpoint.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateEndpoint() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { UpdateEndpointRequest request = UpdateEndpointRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateendpoint/SyncUpdateEndpoint.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateendpoint/SyncUpdateEndpoint.java index 987ee05d284..3f798517f4d 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateendpoint/SyncUpdateEndpoint.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateendpoint/SyncUpdateEndpoint.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateEndpoint() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { UpdateEndpointRequest request = UpdateEndpointRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateendpoint/SyncUpdateEndpointEndpointFieldmask.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateendpoint/SyncUpdateEndpointEndpointFieldmask.java index 77b1d32cb81..d7acfdb7c79 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateendpoint/SyncUpdateEndpointEndpointFieldmask.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateendpoint/SyncUpdateEndpointEndpointFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateEndpointEndpointFieldmask() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { Endpoint endpoint = Endpoint.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updatenamespace/AsyncUpdateNamespace.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updatenamespace/AsyncUpdateNamespace.java index e9230e51684..320ab089c05 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updatenamespace/AsyncUpdateNamespace.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updatenamespace/AsyncUpdateNamespace.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateNamespace() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { UpdateNamespaceRequest request = UpdateNamespaceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updatenamespace/SyncUpdateNamespace.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updatenamespace/SyncUpdateNamespace.java index 7814208ec1a..d820723ad75 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updatenamespace/SyncUpdateNamespace.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updatenamespace/SyncUpdateNamespace.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateNamespace() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { UpdateNamespaceRequest request = UpdateNamespaceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updatenamespace/SyncUpdateNamespaceNamespaceFieldmask.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updatenamespace/SyncUpdateNamespaceNamespaceFieldmask.java index 5339c130d6d..6e1dde71ab4 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updatenamespace/SyncUpdateNamespaceNamespaceFieldmask.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updatenamespace/SyncUpdateNamespaceNamespaceFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateNamespaceNamespaceFieldmask() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { Namespace namespace = Namespace.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateservice/AsyncUpdateService.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateservice/AsyncUpdateService.java index f32493d8e62..2dc75925be5 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateservice/AsyncUpdateService.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateservice/AsyncUpdateService.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateService() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { UpdateServiceRequest request = UpdateServiceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateservice/SyncUpdateService.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateservice/SyncUpdateService.java index 9c991066f8c..6fdba8ac3da 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateservice/SyncUpdateService.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateservice/SyncUpdateService.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateService() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { UpdateServiceRequest request = UpdateServiceRequest.newBuilder() diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateservice/SyncUpdateServiceServiceFieldmask.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateservice/SyncUpdateServiceServiceFieldmask.java index 0cef2c0012a..2ae5d676fe5 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateservice/SyncUpdateServiceServiceFieldmask.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateservice/SyncUpdateServiceServiceFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateServiceServiceFieldmask() 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 (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { Service service = Service.newBuilder().build(); FieldMask updateMask = FieldMask.newBuilder().build(); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationservicesettings/createnamespace/SyncCreateNamespace.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationservicesettings/createnamespace/SyncCreateNamespace.java index ef70b13614f..aabedc1a113 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationservicesettings/createnamespace/SyncCreateNamespace.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationservicesettings/createnamespace/SyncCreateNamespace.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateNamespace() 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 RegistrationServiceSettings.Builder registrationServiceSettingsBuilder = RegistrationServiceSettings.newBuilder(); registrationServiceSettingsBuilder diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/stub/lookupservicestubsettings/resolveservice/SyncResolveService.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/stub/lookupservicestubsettings/resolveservice/SyncResolveService.java index 20f4a1397fb..7198a82ecde 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/stub/lookupservicestubsettings/resolveservice/SyncResolveService.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/stub/lookupservicestubsettings/resolveservice/SyncResolveService.java @@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception { } public static void syncResolveService() 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 LookupServiceStubSettings.Builder lookupServiceSettingsBuilder = LookupServiceStubSettings.newBuilder(); lookupServiceSettingsBuilder .resolveServiceSettings() .setRetrySettings( - lookupServiceSettingsBuilder - .resolveServiceSettings() - .getRetrySettings() - .toBuilder() + lookupServiceSettingsBuilder.resolveServiceSettings().getRetrySettings().toBuilder() .setTotalTimeout(Duration.ofSeconds(30)) .build()); LookupServiceStubSettings lookupServiceSettings = lookupServiceSettingsBuilder.build(); diff --git a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/stub/registrationservicestubsettings/createnamespace/SyncCreateNamespace.java b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/stub/registrationservicestubsettings/createnamespace/SyncCreateNamespace.java index 5be54195d6e..92be8b37dfb 100644 --- a/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/stub/registrationservicestubsettings/createnamespace/SyncCreateNamespace.java +++ b/servicedirectory/snippets/snippets/generated/com/google/cloud/servicedirectory/v1beta1/stub/registrationservicestubsettings/createnamespace/SyncCreateNamespace.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateNamespace() 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 RegistrationServiceStubSettings.Builder registrationServiceSettingsBuilder = RegistrationServiceStubSettings.newBuilder(); registrationServiceSettingsBuilder