diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceClient.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceClient.java index de39a0c53b08..5bf89066dfbe 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceClient.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceClient.java @@ -32,8 +32,11 @@ * calls that map to API methods. Sample code to get started: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (LookupServiceClient lookupServiceClient = LookupServiceClient.create()) { * ResolveServiceRequest request = * ResolveServiceRequest.newBuilder() @@ -75,8 +78,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * LookupServiceSettings lookupServiceSettings = * LookupServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -87,8 +93,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * LookupServiceSettings lookupServiceSettings = * LookupServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * LookupServiceClient lookupServiceClient = LookupServiceClient.create(lookupServiceSettings); @@ -98,8 +107,11 @@ * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * LookupServiceSettings lookupServiceSettings = * LookupServiceSettings.newBuilder() * .setTransportChannelProvider( @@ -168,8 +180,11 @@ public LookupServiceStub getStub() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (LookupServiceClient lookupServiceClient = LookupServiceClient.create()) { * ResolveServiceRequest request = * ResolveServiceRequest.newBuilder() @@ -197,8 +212,11 @@ public final ResolveServiceResponse resolveService(ResolveServiceRequest request *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (LookupServiceClient lookupServiceClient = LookupServiceClient.create()) { * ResolveServiceRequest request = * ResolveServiceRequest.newBuilder() diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceSettings.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceSettings.java index bdcfb404b59e..581c2e5e0a93 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceSettings.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/LookupServiceSettings.java @@ -51,16 +51,16 @@ *For example, to set the total timeout of resolveService to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * 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/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClient.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClient.java index d0aa5d6e087d..509a82cf48e1 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClient.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceClient.java @@ -58,8 +58,11 @@ * calls that map to API methods. Sample code to get started: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Namespace namespace = Namespace.newBuilder().build(); @@ -99,8 +102,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * RegistrationServiceSettings registrationServiceSettings = * RegistrationServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -112,8 +118,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * RegistrationServiceSettings registrationServiceSettings = * RegistrationServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * RegistrationServiceClient registrationServiceClient = @@ -124,8 +133,11 @@ * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * RegistrationServiceSettings registrationServiceSettings = * RegistrationServiceSettings.newBuilder() * .setTransportChannelProvider( @@ -194,8 +206,11 @@ public RegistrationServiceStub getStub() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Namespace namespace = Namespace.newBuilder().build(); @@ -234,8 +249,11 @@ public final Namespace createNamespace( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * Namespace namespace = Namespace.newBuilder().build(); @@ -273,8 +291,11 @@ public final Namespace createNamespace(String parent, Namespace namespace, Strin *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * CreateNamespaceRequest request = * CreateNamespaceRequest.newBuilder() @@ -300,8 +321,11 @@ public final Namespace createNamespace(CreateNamespaceRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * CreateNamespaceRequest request = * CreateNamespaceRequest.newBuilder() @@ -327,8 +351,11 @@ public final UnaryCallablecreateNamespaceCal * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (Namespace element : registrationServiceClient.listNamespaces(parent).iterateAll()) { @@ -356,8 +383,11 @@ public final ListNamespacesPagedResponse listNamespaces(LocationName parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (Namespace element : registrationServiceClient.listNamespaces(parent).iterateAll()) { @@ -382,8 +412,11 @@ public final ListNamespacesPagedResponse listNamespaces(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * ListNamespacesRequest request = * ListNamespacesRequest.newBuilder() @@ -413,8 +446,11 @@ public final ListNamespacesPagedResponse listNamespaces(ListNamespacesRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * ListNamespacesRequest request = * ListNamespacesRequest.newBuilder() @@ -445,8 +481,11 @@ public final ListNamespacesPagedResponse listNamespaces(ListNamespacesRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * ListNamespacesRequest request = * ListNamespacesRequest.newBuilder() @@ -484,8 +523,11 @@ public final ListNamespacesPagedResponse listNamespaces(ListNamespacesRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]"); * Namespace response = registrationServiceClient.getNamespace(name); @@ -508,8 +550,11 @@ public final Namespace getNamespace(NamespaceName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * String name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString(); * Namespace response = registrationServiceClient.getNamespace(name); @@ -531,8 +576,11 @@ public final Namespace getNamespace(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * GetNamespaceRequest request = * GetNamespaceRequest.newBuilder() @@ -556,8 +604,11 @@ public final Namespace getNamespace(GetNamespaceRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * GetNamespaceRequest request = * GetNamespaceRequest.newBuilder() @@ -581,8 +632,11 @@ public final UnaryCallablegetNamespaceCallable( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * Namespace namespace = Namespace.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -610,8 +664,11 @@ public final Namespace updateNamespace(Namespace namespace, FieldMask updateMask *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * UpdateNamespaceRequest request = * UpdateNamespaceRequest.newBuilder() @@ -636,8 +693,11 @@ public final Namespace updateNamespace(UpdateNamespaceRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * UpdateNamespaceRequest request = * UpdateNamespaceRequest.newBuilder() @@ -662,8 +722,11 @@ public final UnaryCallableupdateNamespaceCal * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]"); * registrationServiceClient.deleteNamespace(name); @@ -686,8 +749,11 @@ public final void deleteNamespace(NamespaceName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * String name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString(); * registrationServiceClient.deleteNamespace(name); @@ -709,8 +775,11 @@ public final void deleteNamespace(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * DeleteNamespaceRequest request = * DeleteNamespaceRequest.newBuilder() @@ -734,8 +803,11 @@ public final void deleteNamespace(DeleteNamespaceRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * DeleteNamespaceRequest request = * DeleteNamespaceRequest.newBuilder() @@ -759,8 +831,11 @@ public final UnaryCallabledeleteNamespaceCallabl * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * NamespaceName parent = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]"); * Service service = Service.newBuilder().build(); @@ -796,8 +871,11 @@ public final Service createService(NamespaceName parent, Service service, String *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * String parent = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString(); * Service service = Service.newBuilder().build(); @@ -833,8 +911,11 @@ public final Service createService(String parent, Service service, String servic *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * CreateServiceRequest request = * CreateServiceRequest.newBuilder() @@ -860,8 +941,11 @@ public final Service createService(CreateServiceRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * CreateServiceRequest request = * CreateServiceRequest.newBuilder() @@ -887,8 +971,11 @@ public final UnaryCallablecreateServiceCallable( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * NamespaceName parent = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]"); * for (Service element : registrationServiceClient.listServices(parent).iterateAll()) { @@ -915,8 +1002,11 @@ public final ListServicesPagedResponse listServices(NamespaceName parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * String parent = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString(); * for (Service element : registrationServiceClient.listServices(parent).iterateAll()) { @@ -940,8 +1030,11 @@ public final ListServicesPagedResponse listServices(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * ListServicesRequest request = * ListServicesRequest.newBuilder() @@ -971,8 +1064,11 @@ public final ListServicesPagedResponse listServices(ListServicesRequest request) *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * ListServicesRequest request = * ListServicesRequest.newBuilder() @@ -1003,8 +1099,11 @@ public final ListServicesPagedResponse listServices(ListServicesRequest request) *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * ListServicesRequest request = * ListServicesRequest.newBuilder() @@ -1041,8 +1140,11 @@ public final UnaryCallablelistServic * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"); * Service response = registrationServiceClient.getService(name); @@ -1065,8 +1167,11 @@ public final Service getService(ServiceName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * String name = * ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString(); @@ -1089,8 +1194,11 @@ public final Service getService(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * GetServiceRequest request = * GetServiceRequest.newBuilder() @@ -1115,8 +1223,11 @@ public final Service getService(GetServiceRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * GetServiceRequest request = * GetServiceRequest.newBuilder() @@ -1141,8 +1252,11 @@ public final UnaryCallablegetServiceCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * Service service = Service.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1167,8 +1281,11 @@ public final Service updateService(Service service, FieldMask updateMask) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * UpdateServiceRequest request = * UpdateServiceRequest.newBuilder() @@ -1193,8 +1310,11 @@ public final Service updateService(UpdateServiceRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * UpdateServiceRequest request = * UpdateServiceRequest.newBuilder() @@ -1219,8 +1339,11 @@ public final UnaryCallableupdateServiceCallable( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"); * registrationServiceClient.deleteService(name); @@ -1243,8 +1366,11 @@ public final void deleteService(ServiceName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * String name = * ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString(); @@ -1267,8 +1393,11 @@ public final void deleteService(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * DeleteServiceRequest request = * DeleteServiceRequest.newBuilder() @@ -1293,8 +1422,11 @@ public final void deleteService(DeleteServiceRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * DeleteServiceRequest request = * DeleteServiceRequest.newBuilder() @@ -1319,8 +1451,11 @@ public final UnaryCallabledeleteServiceCallable() * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * ServiceName parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"); * Endpoint endpoint = Endpoint.newBuilder().build(); @@ -1356,8 +1491,11 @@ public final Endpoint createEndpoint(ServiceName parent, Endpoint endpoint, Stri *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * String parent = * ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString(); @@ -1394,8 +1532,11 @@ public final Endpoint createEndpoint(String parent, Endpoint endpoint, String en *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * CreateEndpointRequest request = * CreateEndpointRequest.newBuilder() @@ -1422,8 +1563,11 @@ public final Endpoint createEndpoint(CreateEndpointRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * CreateEndpointRequest request = * CreateEndpointRequest.newBuilder() @@ -1450,8 +1594,11 @@ public final UnaryCallablecreateEndpointCallab * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * ServiceName parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"); * for (Endpoint element : registrationServiceClient.listEndpoints(parent).iterateAll()) { @@ -1478,8 +1625,11 @@ public final ListEndpointsPagedResponse listEndpoints(ServiceName parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * String parent = * ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString(); @@ -1504,8 +1654,11 @@ public final ListEndpointsPagedResponse listEndpoints(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * ListEndpointsRequest request = * ListEndpointsRequest.newBuilder() @@ -1536,8 +1689,11 @@ public final ListEndpointsPagedResponse listEndpoints(ListEndpointsRequest reque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * ListEndpointsRequest request = * ListEndpointsRequest.newBuilder() @@ -1569,8 +1725,11 @@ public final ListEndpointsPagedResponse listEndpoints(ListEndpointsRequest reque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * ListEndpointsRequest request = * ListEndpointsRequest.newBuilder() @@ -1608,8 +1767,11 @@ public final UnaryCallablelistEndp * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * EndpointName name = * EndpointName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]", "[ENDPOINT]"); @@ -1633,8 +1795,11 @@ public final Endpoint getEndpoint(EndpointName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * String name = * EndpointName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]", "[ENDPOINT]") @@ -1658,8 +1823,11 @@ public final Endpoint getEndpoint(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * GetEndpointRequest request = * GetEndpointRequest.newBuilder() @@ -1686,8 +1854,11 @@ public final Endpoint getEndpoint(GetEndpointRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * GetEndpointRequest request = * GetEndpointRequest.newBuilder() @@ -1714,8 +1885,11 @@ public final UnaryCallablegetEndpointCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * Endpoint endpoint = Endpoint.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1740,8 +1914,11 @@ public final Endpoint updateEndpoint(Endpoint endpoint, FieldMask updateMask) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * UpdateEndpointRequest request = * UpdateEndpointRequest.newBuilder() @@ -1766,8 +1943,11 @@ public final Endpoint updateEndpoint(UpdateEndpointRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * UpdateEndpointRequest request = * UpdateEndpointRequest.newBuilder() @@ -1792,8 +1972,11 @@ public final UnaryCallableupdateEndpointCallab * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * EndpointName name = * EndpointName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]", "[ENDPOINT]"); @@ -1817,8 +2000,11 @@ public final void deleteEndpoint(EndpointName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * String name = * EndpointName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]", "[ENDPOINT]") @@ -1842,8 +2028,11 @@ public final void deleteEndpoint(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * DeleteEndpointRequest request = * DeleteEndpointRequest.newBuilder() @@ -1870,8 +2059,11 @@ public final void deleteEndpoint(DeleteEndpointRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * DeleteEndpointRequest request = * DeleteEndpointRequest.newBuilder() @@ -1898,8 +2090,11 @@ public final UnaryCallabledeleteEndpointCallable( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() @@ -1924,8 +2119,11 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() @@ -1950,8 +2148,11 @@ public final UnaryCallablegetIamPolicyCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() @@ -1977,8 +2178,11 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() @@ -2004,8 +2208,11 @@ public final UnaryCallablesetIamPolicyCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() @@ -2030,8 +2237,11 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceSettings.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceSettings.java index 34b68591bb6f..80dd37066491 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceSettings.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/RegistrationServiceSettings.java @@ -62,8 +62,11 @@ *For example, to set the total timeout of createNamespace to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * RegistrationServiceSettings.Builder registrationServiceSettingsBuilder = * RegistrationServiceSettings.newBuilder(); * registrationServiceSettingsBuilder diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/package-info.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/package-info.java index f3c610918702..ac98b5899022 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/package-info.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/package-info.java @@ -24,8 +24,11 @@ *Sample for LookupServiceClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (LookupServiceClient lookupServiceClient = LookupServiceClient.create()) { * ResolveServiceRequest request = * ResolveServiceRequest.newBuilder() @@ -56,8 +59,11 @@ *Sample for RegistrationServiceClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Namespace namespace = Namespace.newBuilder().build(); diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/HttpJsonLookupServiceStub.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/HttpJsonLookupServiceStub.java index a9ae1b60cb4f..cfc387e4b9f8 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/HttpJsonLookupServiceStub.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/HttpJsonLookupServiceStub.java @@ -77,7 +77,7 @@ public class HttpJsonLookupServiceStub extends LookupServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/HttpJsonRegistrationServiceStub.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/HttpJsonRegistrationServiceStub.java index 439691af563f..d4812d3fe799 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/HttpJsonRegistrationServiceStub.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/HttpJsonRegistrationServiceStub.java @@ -109,7 +109,7 @@ public class HttpJsonRegistrationServiceStub extends RegistrationServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("namespace", request.getNamespace())) + .toBody("namespace", request.getNamespace(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -220,7 +220,7 @@ public class HttpJsonRegistrationServiceStub extends RegistrationServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("namespace", request.getNamespace())) + .toBody("namespace", request.getNamespace(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -291,7 +291,8 @@ public class HttpJsonRegistrationServiceStub extends RegistrationServiceStub { }) .setRequestBodyExtractor( request -> - ProtoRestSerializer.create().toBody("service", request.getService())) + ProtoRestSerializer.create() + .toBody("service", request.getService(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -399,7 +400,8 @@ public class HttpJsonRegistrationServiceStub extends RegistrationServiceStub { }) .setRequestBodyExtractor( request -> - ProtoRestSerializer.create().toBody("service", request.getService())) + ProtoRestSerializer.create() + .toBody("service", request.getService(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -471,7 +473,7 @@ public class HttpJsonRegistrationServiceStub extends RegistrationServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("endpoint", request.getEndpoint())) + .toBody("endpoint", request.getEndpoint(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -581,7 +583,7 @@ public class HttpJsonRegistrationServiceStub extends RegistrationServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("endpoint", request.getEndpoint())) + .toBody("endpoint", request.getEndpoint(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -654,7 +656,7 @@ public class HttpJsonRegistrationServiceStub extends RegistrationServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build())) + .toBody("*", request.toBuilder().clearResource().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -693,7 +695,7 @@ public class HttpJsonRegistrationServiceStub extends RegistrationServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build())) + .toBody("*", request.toBuilder().clearResource().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -732,7 +734,7 @@ public class HttpJsonRegistrationServiceStub extends RegistrationServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build())) + .toBody("*", request.toBuilder().clearResource().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/LookupServiceStubSettings.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/LookupServiceStubSettings.java index f69b02f25289..1f368e99393b 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/LookupServiceStubSettings.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/LookupServiceStubSettings.java @@ -64,17 +64,17 @@ * For example, to set the total timeout of resolveService to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * 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/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/RegistrationServiceStubSettings.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/RegistrationServiceStubSettings.java index 4c759d53d0e0..f052c8666b5f 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/RegistrationServiceStubSettings.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1/stub/RegistrationServiceStubSettings.java @@ -100,8 +100,11 @@ *For example, to set the total timeout of createNamespace to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * RegistrationServiceStubSettings.Builder registrationServiceSettingsBuilder = * RegistrationServiceStubSettings.newBuilder(); * registrationServiceSettingsBuilder diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceClient.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceClient.java index 284a66080dc3..e8785f909285 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceClient.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceClient.java @@ -33,8 +33,11 @@ * calls that map to API methods. Sample code to get started: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (LookupServiceClient lookupServiceClient = LookupServiceClient.create()) { * ResolveServiceRequest request = * ResolveServiceRequest.newBuilder() @@ -76,8 +79,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * LookupServiceSettings lookupServiceSettings = * LookupServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -88,8 +94,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * LookupServiceSettings lookupServiceSettings = * LookupServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * LookupServiceClient lookupServiceClient = LookupServiceClient.create(lookupServiceSettings); @@ -99,8 +108,11 @@ * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * LookupServiceSettings lookupServiceSettings = * LookupServiceSettings.newBuilder() * .setTransportChannelProvider( @@ -170,8 +182,11 @@ public LookupServiceStub getStub() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (LookupServiceClient lookupServiceClient = LookupServiceClient.create()) { * ResolveServiceRequest request = * ResolveServiceRequest.newBuilder() @@ -199,8 +214,11 @@ public final ResolveServiceResponse resolveService(ResolveServiceRequest request *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (LookupServiceClient lookupServiceClient = LookupServiceClient.create()) { * ResolveServiceRequest request = * ResolveServiceRequest.newBuilder() diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceSettings.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceSettings.java index 6904ff1065ea..8d9da35e23d4 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceSettings.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/LookupServiceSettings.java @@ -51,16 +51,16 @@ *For example, to set the total timeout of resolveService to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * 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/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceClient.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceClient.java index 2f6ad606bb50..97dfef8b0128 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceClient.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceClient.java @@ -59,8 +59,11 @@ * calls that map to API methods. Sample code to get started: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Namespace namespace = Namespace.newBuilder().build(); @@ -100,8 +103,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * RegistrationServiceSettings registrationServiceSettings = * RegistrationServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -113,8 +119,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * RegistrationServiceSettings registrationServiceSettings = * RegistrationServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * RegistrationServiceClient registrationServiceClient = @@ -125,8 +134,11 @@ * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * RegistrationServiceSettings registrationServiceSettings = * RegistrationServiceSettings.newBuilder() * .setTransportChannelProvider( @@ -196,8 +208,11 @@ public RegistrationServiceStub getStub() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Namespace namespace = Namespace.newBuilder().build(); @@ -236,8 +251,11 @@ public final Namespace createNamespace( *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * Namespace namespace = Namespace.newBuilder().build(); @@ -275,8 +293,11 @@ public final Namespace createNamespace(String parent, Namespace namespace, Strin *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * CreateNamespaceRequest request = * CreateNamespaceRequest.newBuilder() @@ -302,8 +323,11 @@ public final Namespace createNamespace(CreateNamespaceRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * CreateNamespaceRequest request = * CreateNamespaceRequest.newBuilder() @@ -329,8 +353,11 @@ public final UnaryCallablecreateNamespaceCal * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (Namespace element : registrationServiceClient.listNamespaces(parent).iterateAll()) { @@ -358,8 +385,11 @@ public final ListNamespacesPagedResponse listNamespaces(LocationName parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (Namespace element : registrationServiceClient.listNamespaces(parent).iterateAll()) { @@ -384,8 +414,11 @@ public final ListNamespacesPagedResponse listNamespaces(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * ListNamespacesRequest request = * ListNamespacesRequest.newBuilder() @@ -415,8 +448,11 @@ public final ListNamespacesPagedResponse listNamespaces(ListNamespacesRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * ListNamespacesRequest request = * ListNamespacesRequest.newBuilder() @@ -447,8 +483,11 @@ public final ListNamespacesPagedResponse listNamespaces(ListNamespacesRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * ListNamespacesRequest request = * ListNamespacesRequest.newBuilder() @@ -486,8 +525,11 @@ public final ListNamespacesPagedResponse listNamespaces(ListNamespacesRequest re *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]"); * Namespace response = registrationServiceClient.getNamespace(name); @@ -510,8 +552,11 @@ public final Namespace getNamespace(NamespaceName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * String name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString(); * Namespace response = registrationServiceClient.getNamespace(name); @@ -533,8 +578,11 @@ public final Namespace getNamespace(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * GetNamespaceRequest request = * GetNamespaceRequest.newBuilder() @@ -558,8 +606,11 @@ public final Namespace getNamespace(GetNamespaceRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * GetNamespaceRequest request = * GetNamespaceRequest.newBuilder() @@ -583,8 +634,11 @@ public final UnaryCallablegetNamespaceCallable( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * Namespace namespace = Namespace.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -612,8 +666,11 @@ public final Namespace updateNamespace(Namespace namespace, FieldMask updateMask *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * UpdateNamespaceRequest request = * UpdateNamespaceRequest.newBuilder() @@ -638,8 +695,11 @@ public final Namespace updateNamespace(UpdateNamespaceRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * UpdateNamespaceRequest request = * UpdateNamespaceRequest.newBuilder() @@ -664,8 +724,11 @@ public final UnaryCallableupdateNamespaceCal * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * NamespaceName name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]"); * registrationServiceClient.deleteNamespace(name); @@ -688,8 +751,11 @@ public final void deleteNamespace(NamespaceName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * String name = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString(); * registrationServiceClient.deleteNamespace(name); @@ -711,8 +777,11 @@ public final void deleteNamespace(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * DeleteNamespaceRequest request = * DeleteNamespaceRequest.newBuilder() @@ -736,8 +805,11 @@ public final void deleteNamespace(DeleteNamespaceRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * DeleteNamespaceRequest request = * DeleteNamespaceRequest.newBuilder() @@ -761,8 +833,11 @@ public final UnaryCallabledeleteNamespaceCallabl * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * NamespaceName parent = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]"); * Service service = Service.newBuilder().build(); @@ -798,8 +873,11 @@ public final Service createService(NamespaceName parent, Service service, String *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * String parent = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString(); * Service service = Service.newBuilder().build(); @@ -835,8 +913,11 @@ public final Service createService(String parent, Service service, String servic *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * CreateServiceRequest request = * CreateServiceRequest.newBuilder() @@ -862,8 +943,11 @@ public final Service createService(CreateServiceRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * CreateServiceRequest request = * CreateServiceRequest.newBuilder() @@ -889,8 +973,11 @@ public final UnaryCallablecreateServiceCallable( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * NamespaceName parent = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]"); * for (Service element : registrationServiceClient.listServices(parent).iterateAll()) { @@ -917,8 +1004,11 @@ public final ListServicesPagedResponse listServices(NamespaceName parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * String parent = NamespaceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]").toString(); * for (Service element : registrationServiceClient.listServices(parent).iterateAll()) { @@ -942,8 +1032,11 @@ public final ListServicesPagedResponse listServices(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * ListServicesRequest request = * ListServicesRequest.newBuilder() @@ -973,8 +1066,11 @@ public final ListServicesPagedResponse listServices(ListServicesRequest request) *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * ListServicesRequest request = * ListServicesRequest.newBuilder() @@ -1005,8 +1101,11 @@ public final ListServicesPagedResponse listServices(ListServicesRequest request) *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * ListServicesRequest request = * ListServicesRequest.newBuilder() @@ -1043,8 +1142,11 @@ public final UnaryCallablelistServic * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"); * Service response = registrationServiceClient.getService(name); @@ -1067,8 +1169,11 @@ public final Service getService(ServiceName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * String name = * ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString(); @@ -1091,8 +1196,11 @@ public final Service getService(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * GetServiceRequest request = * GetServiceRequest.newBuilder() @@ -1117,8 +1225,11 @@ public final Service getService(GetServiceRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * GetServiceRequest request = * GetServiceRequest.newBuilder() @@ -1143,8 +1254,11 @@ public final UnaryCallablegetServiceCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * Service service = Service.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1169,8 +1283,11 @@ public final Service updateService(Service service, FieldMask updateMask) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * UpdateServiceRequest request = * UpdateServiceRequest.newBuilder() @@ -1195,8 +1312,11 @@ public final Service updateService(UpdateServiceRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * UpdateServiceRequest request = * UpdateServiceRequest.newBuilder() @@ -1221,8 +1341,11 @@ public final UnaryCallableupdateServiceCallable( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * ServiceName name = ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"); * registrationServiceClient.deleteService(name); @@ -1245,8 +1368,11 @@ public final void deleteService(ServiceName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * String name = * ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString(); @@ -1269,8 +1395,11 @@ public final void deleteService(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * DeleteServiceRequest request = * DeleteServiceRequest.newBuilder() @@ -1295,8 +1424,11 @@ public final void deleteService(DeleteServiceRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * DeleteServiceRequest request = * DeleteServiceRequest.newBuilder() @@ -1321,8 +1453,11 @@ public final UnaryCallabledeleteServiceCallable() * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * ServiceName parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"); * Endpoint endpoint = Endpoint.newBuilder().build(); @@ -1358,8 +1493,11 @@ public final Endpoint createEndpoint(ServiceName parent, Endpoint endpoint, Stri *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * String parent = * ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString(); @@ -1396,8 +1534,11 @@ public final Endpoint createEndpoint(String parent, Endpoint endpoint, String en *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * CreateEndpointRequest request = * CreateEndpointRequest.newBuilder() @@ -1424,8 +1565,11 @@ public final Endpoint createEndpoint(CreateEndpointRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * CreateEndpointRequest request = * CreateEndpointRequest.newBuilder() @@ -1452,8 +1596,11 @@ public final UnaryCallablecreateEndpointCallab * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * ServiceName parent = ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]"); * for (Endpoint element : registrationServiceClient.listEndpoints(parent).iterateAll()) { @@ -1480,8 +1627,11 @@ public final ListEndpointsPagedResponse listEndpoints(ServiceName parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * String parent = * ServiceName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]").toString(); @@ -1506,8 +1656,11 @@ public final ListEndpointsPagedResponse listEndpoints(String parent) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * ListEndpointsRequest request = * ListEndpointsRequest.newBuilder() @@ -1538,8 +1691,11 @@ public final ListEndpointsPagedResponse listEndpoints(ListEndpointsRequest reque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * ListEndpointsRequest request = * ListEndpointsRequest.newBuilder() @@ -1571,8 +1727,11 @@ public final ListEndpointsPagedResponse listEndpoints(ListEndpointsRequest reque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * ListEndpointsRequest request = * ListEndpointsRequest.newBuilder() @@ -1610,8 +1769,11 @@ public final UnaryCallablelistEndp * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * EndpointName name = * EndpointName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]", "[ENDPOINT]"); @@ -1635,8 +1797,11 @@ public final Endpoint getEndpoint(EndpointName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * String name = * EndpointName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]", "[ENDPOINT]") @@ -1660,8 +1825,11 @@ public final Endpoint getEndpoint(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * GetEndpointRequest request = * GetEndpointRequest.newBuilder() @@ -1688,8 +1856,11 @@ public final Endpoint getEndpoint(GetEndpointRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * GetEndpointRequest request = * GetEndpointRequest.newBuilder() @@ -1716,8 +1887,11 @@ public final UnaryCallablegetEndpointCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * Endpoint endpoint = Endpoint.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1742,8 +1916,11 @@ public final Endpoint updateEndpoint(Endpoint endpoint, FieldMask updateMask) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * UpdateEndpointRequest request = * UpdateEndpointRequest.newBuilder() @@ -1768,8 +1945,11 @@ public final Endpoint updateEndpoint(UpdateEndpointRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * UpdateEndpointRequest request = * UpdateEndpointRequest.newBuilder() @@ -1794,8 +1974,11 @@ public final UnaryCallableupdateEndpointCallab * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * EndpointName name = * EndpointName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]", "[ENDPOINT]"); @@ -1819,8 +2002,11 @@ public final void deleteEndpoint(EndpointName name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * String name = * EndpointName.of("[PROJECT]", "[LOCATION]", "[NAMESPACE]", "[SERVICE]", "[ENDPOINT]") @@ -1844,8 +2030,11 @@ public final void deleteEndpoint(String name) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * DeleteEndpointRequest request = * DeleteEndpointRequest.newBuilder() @@ -1872,8 +2061,11 @@ public final void deleteEndpoint(DeleteEndpointRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * DeleteEndpointRequest request = * DeleteEndpointRequest.newBuilder() @@ -1900,8 +2092,11 @@ public final UnaryCallabledeleteEndpointCallable( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() @@ -1926,8 +2121,11 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * GetIamPolicyRequest request = * GetIamPolicyRequest.newBuilder() @@ -1952,8 +2150,11 @@ public final UnaryCallablegetIamPolicyCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() @@ -1979,8 +2180,11 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * SetIamPolicyRequest request = * SetIamPolicyRequest.newBuilder() @@ -2006,8 +2210,11 @@ public final UnaryCallablesetIamPolicyCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() @@ -2032,8 +2239,11 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * TestIamPermissionsRequest request = * TestIamPermissionsRequest.newBuilder() diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceSettings.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceSettings.java index b488f55b2251..748d50144540 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceSettings.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/RegistrationServiceSettings.java @@ -62,8 +62,11 @@ *For example, to set the total timeout of createNamespace to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * RegistrationServiceSettings.Builder registrationServiceSettingsBuilder = * RegistrationServiceSettings.newBuilder(); * registrationServiceSettingsBuilder diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/package-info.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/package-info.java index e6e4966c4d7c..df36fc2c8f96 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/package-info.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/package-info.java @@ -24,8 +24,11 @@ *Sample for LookupServiceClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (LookupServiceClient lookupServiceClient = LookupServiceClient.create()) { * ResolveServiceRequest request = * ResolveServiceRequest.newBuilder() @@ -56,8 +59,11 @@ *Sample for RegistrationServiceClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (RegistrationServiceClient registrationServiceClient = RegistrationServiceClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Namespace namespace = Namespace.newBuilder().build(); diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/HttpJsonLookupServiceStub.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/HttpJsonLookupServiceStub.java index 56ed76f3a999..c55f2247d77f 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/HttpJsonLookupServiceStub.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/HttpJsonLookupServiceStub.java @@ -78,7 +78,7 @@ public class HttpJsonLookupServiceStub extends LookupServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/HttpJsonRegistrationServiceStub.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/HttpJsonRegistrationServiceStub.java index 27a4d15ecbc1..1258f5009835 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/HttpJsonRegistrationServiceStub.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/HttpJsonRegistrationServiceStub.java @@ -109,7 +109,7 @@ public class HttpJsonRegistrationServiceStub extends RegistrationServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("namespace", request.getNamespace())) + .toBody("namespace", request.getNamespace(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -220,7 +220,7 @@ public class HttpJsonRegistrationServiceStub extends RegistrationServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("namespace", request.getNamespace())) + .toBody("namespace", request.getNamespace(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -291,7 +291,8 @@ public class HttpJsonRegistrationServiceStub extends RegistrationServiceStub { }) .setRequestBodyExtractor( request -> - ProtoRestSerializer.create().toBody("service", request.getService())) + ProtoRestSerializer.create() + .toBody("service", request.getService(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -399,7 +400,8 @@ public class HttpJsonRegistrationServiceStub extends RegistrationServiceStub { }) .setRequestBodyExtractor( request -> - ProtoRestSerializer.create().toBody("service", request.getService())) + ProtoRestSerializer.create() + .toBody("service", request.getService(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -471,7 +473,7 @@ public class HttpJsonRegistrationServiceStub extends RegistrationServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("endpoint", request.getEndpoint())) + .toBody("endpoint", request.getEndpoint(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -582,7 +584,7 @@ public class HttpJsonRegistrationServiceStub extends RegistrationServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("endpoint", request.getEndpoint())) + .toBody("endpoint", request.getEndpoint(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -655,7 +657,7 @@ public class HttpJsonRegistrationServiceStub extends RegistrationServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build())) + .toBody("*", request.toBuilder().clearResource().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -694,7 +696,7 @@ public class HttpJsonRegistrationServiceStub extends RegistrationServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build())) + .toBody("*", request.toBuilder().clearResource().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -733,7 +735,7 @@ public class HttpJsonRegistrationServiceStub extends RegistrationServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearResource().build())) + .toBody("*", request.toBuilder().clearResource().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/LookupServiceStubSettings.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/LookupServiceStubSettings.java index cfb62470914b..591e22e61abc 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/LookupServiceStubSettings.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/LookupServiceStubSettings.java @@ -64,17 +64,17 @@ * For example, to set the total timeout of resolveService to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * 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/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/RegistrationServiceStubSettings.java b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/RegistrationServiceStubSettings.java index df103ef1b494..c597b4dbf21c 100644 --- a/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/RegistrationServiceStubSettings.java +++ b/java-servicedirectory/google-cloud-servicedirectory/src/main/java/com/google/cloud/servicedirectory/v1beta1/stub/RegistrationServiceStubSettings.java @@ -100,8 +100,11 @@ *For example, to set the total timeout of createNamespace to 30 seconds: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * RegistrationServiceStubSettings.Builder registrationServiceSettingsBuilder = * RegistrationServiceStubSettings.newBuilder(); * registrationServiceSettingsBuilder diff --git a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/create/SyncCreateSetCredentialsProvider.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/create/SyncCreateSetCredentialsProvider.java index 4380e28b6096..3fd5e2bc3a42 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/create/SyncCreateSetCredentialsProvider1.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/create/SyncCreateSetCredentialsProvider1.java index 7a9cd536b159..bccdf9d75782 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/create/SyncCreateSetEndpoint.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/create/SyncCreateSetEndpoint.java index 428883ce74ae..68d7de4cc813 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/create/SyncCreateSetEndpoint.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/resolveservice/AsyncResolveService.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/resolveservice/AsyncResolveService.java index f9c0857f3836..d836636110c7 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/resolveservice/AsyncResolveService.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/resolveservice/SyncResolveService.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/resolveservice/SyncResolveService.java index a3d7a9465771..1cc0a1e59f2f 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/lookupserviceclient/resolveservice/SyncResolveService.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/lookupservicesettings/resolveservice/SyncResolveService.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/lookupservicesettings/resolveservice/SyncResolveService.java index 14647002837c..55940277d03d 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/lookupservicesettings/resolveservice/SyncResolveService.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/create/SyncCreateSetCredentialsProvider.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/create/SyncCreateSetCredentialsProvider.java index caaa66fc441a..a599021f7645 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/create/SyncCreateSetCredentialsProvider1.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/create/SyncCreateSetCredentialsProvider1.java index 05f76c0d43d2..56f841ec09ee 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/create/SyncCreateSetEndpoint.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/create/SyncCreateSetEndpoint.java index ed7d0641bfc6..1f85fd47ef2f 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/create/SyncCreateSetEndpoint.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createendpoint/AsyncCreateEndpoint.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createendpoint/AsyncCreateEndpoint.java index 6cdf7958339d..596a1a848d87 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createendpoint/AsyncCreateEndpoint.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createendpoint/SyncCreateEndpoint.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createendpoint/SyncCreateEndpoint.java index 6ff94bc34a20..79d05f819d51 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createendpoint/SyncCreateEndpoint.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createendpoint/SyncCreateEndpointServicenameEndpointString.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createendpoint/SyncCreateEndpointServicenameEndpointString.java index 97f5c3743812..f644902c5906 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createendpoint/SyncCreateEndpointServicenameEndpointString.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createendpoint/SyncCreateEndpointStringEndpointString.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createendpoint/SyncCreateEndpointStringEndpointString.java index 825271418c92..5521609e279a 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createendpoint/SyncCreateEndpointStringEndpointString.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createnamespace/AsyncCreateNamespace.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createnamespace/AsyncCreateNamespace.java index d3aedbcab5b1..dda48e3c3e8d 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createnamespace/AsyncCreateNamespace.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createnamespace/SyncCreateNamespace.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createnamespace/SyncCreateNamespace.java index 97eeec7e22bb..f5e9edb2a403 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createnamespace/SyncCreateNamespace.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createnamespace/SyncCreateNamespaceLocationnameNamespaceString.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createnamespace/SyncCreateNamespaceLocationnameNamespaceString.java index bd73527d5d53..22abb9a1d2ed 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createnamespace/SyncCreateNamespaceLocationnameNamespaceString.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createnamespace/SyncCreateNamespaceStringNamespaceString.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createnamespace/SyncCreateNamespaceStringNamespaceString.java index fce319d0947d..dd522b182804 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createnamespace/SyncCreateNamespaceStringNamespaceString.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createservice/AsyncCreateService.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createservice/AsyncCreateService.java index b62039f12e24..5e4a0a8fc1f6 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createservice/AsyncCreateService.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createservice/SyncCreateService.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createservice/SyncCreateService.java index 94fcde939708..1fb80caa8301 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createservice/SyncCreateService.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createservice/SyncCreateServiceNamespacenameServiceString.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createservice/SyncCreateServiceNamespacenameServiceString.java index 8fc14dc74f9e..3024f6f404f2 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createservice/SyncCreateServiceNamespacenameServiceString.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createservice/SyncCreateServiceStringServiceString.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createservice/SyncCreateServiceStringServiceString.java index cd23e02b24c3..bd54b21521ff 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/createservice/SyncCreateServiceStringServiceString.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteendpoint/AsyncDeleteEndpoint.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteendpoint/AsyncDeleteEndpoint.java index c78a7796a768..83bc1b79de05 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteendpoint/AsyncDeleteEndpoint.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteendpoint/SyncDeleteEndpoint.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteendpoint/SyncDeleteEndpoint.java index 94f8e8ad85d7..75a5ec69f16e 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteendpoint/SyncDeleteEndpoint.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteendpoint/SyncDeleteEndpointEndpointname.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteendpoint/SyncDeleteEndpointEndpointname.java index afe84fc331b4..1951cb665cd6 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteendpoint/SyncDeleteEndpointEndpointname.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteendpoint/SyncDeleteEndpointString.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteendpoint/SyncDeleteEndpointString.java index e19fa6db4f67..cbecd93879a0 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteendpoint/SyncDeleteEndpointString.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deletenamespace/AsyncDeleteNamespace.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deletenamespace/AsyncDeleteNamespace.java index b26bac039ee2..663dde66f247 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deletenamespace/AsyncDeleteNamespace.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deletenamespace/SyncDeleteNamespace.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deletenamespace/SyncDeleteNamespace.java index f555fd13c71a..8fb96a5e1523 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deletenamespace/SyncDeleteNamespace.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deletenamespace/SyncDeleteNamespaceNamespacename.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deletenamespace/SyncDeleteNamespaceNamespacename.java index 9a6e1c8ff116..63636f1da05b 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deletenamespace/SyncDeleteNamespaceNamespacename.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deletenamespace/SyncDeleteNamespaceString.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deletenamespace/SyncDeleteNamespaceString.java index c61c661b3297..4a4ce42754da 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deletenamespace/SyncDeleteNamespaceString.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteservice/AsyncDeleteService.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteservice/AsyncDeleteService.java index 0730e6bea8fa..62ec1ffb06ae 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteservice/AsyncDeleteService.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteservice/SyncDeleteService.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteservice/SyncDeleteService.java index 2510f6d312c6..ed4409df1e6f 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteservice/SyncDeleteService.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteservice/SyncDeleteServiceServicename.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteservice/SyncDeleteServiceServicename.java index 87e203907e9b..7a72912ffea4 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteservice/SyncDeleteServiceServicename.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteservice/SyncDeleteServiceString.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteservice/SyncDeleteServiceString.java index 271b59f143ac..7954af52f7ea 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/deleteservice/SyncDeleteServiceString.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getendpoint/AsyncGetEndpoint.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getendpoint/AsyncGetEndpoint.java index a42070f08468..040f89aac321 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getendpoint/AsyncGetEndpoint.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getendpoint/SyncGetEndpoint.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getendpoint/SyncGetEndpoint.java index a79d4a213163..0c420e283079 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getendpoint/SyncGetEndpoint.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getendpoint/SyncGetEndpointEndpointname.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getendpoint/SyncGetEndpointEndpointname.java index e73c119eada6..00dcf0fef7be 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getendpoint/SyncGetEndpointEndpointname.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getendpoint/SyncGetEndpointString.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getendpoint/SyncGetEndpointString.java index fd00033abebd..155ffc14da8c 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getendpoint/SyncGetEndpointString.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getiampolicy/AsyncGetIamPolicy.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getiampolicy/AsyncGetIamPolicy.java index 95fd3ce12886..645983262b13 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getiampolicy/AsyncGetIamPolicy.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getiampolicy/SyncGetIamPolicy.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getiampolicy/SyncGetIamPolicy.java index 83709ee1cbd1..9b3b8e62509a 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getiampolicy/SyncGetIamPolicy.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getnamespace/AsyncGetNamespace.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getnamespace/AsyncGetNamespace.java index 4992874f4eb0..f5f7e2d488cf 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getnamespace/AsyncGetNamespace.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getnamespace/SyncGetNamespace.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getnamespace/SyncGetNamespace.java index 90176243d527..a3a62e14e80e 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getnamespace/SyncGetNamespace.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getnamespace/SyncGetNamespaceNamespacename.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getnamespace/SyncGetNamespaceNamespacename.java index 2dbc802b7520..dfee5c05fd72 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getnamespace/SyncGetNamespaceNamespacename.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getnamespace/SyncGetNamespaceString.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getnamespace/SyncGetNamespaceString.java index 8f8e5113cba5..c3db6fb5b780 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getnamespace/SyncGetNamespaceString.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getservice/AsyncGetService.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getservice/AsyncGetService.java index 30adf262ba5e..d2b594be5068 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getservice/AsyncGetService.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getservice/SyncGetService.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getservice/SyncGetService.java index a9bd14c68e8d..ed2aadd2cfca 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getservice/SyncGetService.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getservice/SyncGetServiceServicename.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getservice/SyncGetServiceServicename.java index 97c1cc99b96a..7c88bbf621bb 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getservice/SyncGetServiceServicename.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getservice/SyncGetServiceString.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getservice/SyncGetServiceString.java index 03bdcd5a947f..050f002b1837 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/getservice/SyncGetServiceString.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/AsyncListEndpoints.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/AsyncListEndpoints.java index e47208b4a5db..ec6f275ad43c 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/AsyncListEndpoints.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/AsyncListEndpointsPaged.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/AsyncListEndpointsPaged.java index 44e394e1a0d4..e52c5c0262e6 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/AsyncListEndpointsPaged.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/SyncListEndpoints.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/SyncListEndpoints.java index 116d8ea3fa58..71f9728c0059 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/SyncListEndpoints.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/SyncListEndpointsServicename.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/SyncListEndpointsServicename.java index 848d925e4317..cb9366cec402 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/SyncListEndpointsServicename.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/SyncListEndpointsString.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/SyncListEndpointsString.java index da5cc35dada6..ed297798d9e7 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listendpoints/SyncListEndpointsString.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/AsyncListNamespaces.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/AsyncListNamespaces.java index 46a466f0ab07..11114f1358e7 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/AsyncListNamespaces.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/AsyncListNamespacesPaged.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/AsyncListNamespacesPaged.java index 636a1b9280d9..8b6d576a6a82 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/AsyncListNamespacesPaged.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/SyncListNamespaces.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/SyncListNamespaces.java index ae9fe4accffc..bd13b6d83894 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/SyncListNamespaces.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/SyncListNamespacesLocationname.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/SyncListNamespacesLocationname.java index 79f2a211b8df..f7678e91f20a 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/SyncListNamespacesLocationname.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/SyncListNamespacesString.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/SyncListNamespacesString.java index 5ade192b3891..30a11d92fbaf 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listnamespaces/SyncListNamespacesString.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/AsyncListServices.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/AsyncListServices.java index 87e71a33a938..283cd34c49b6 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/AsyncListServices.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/AsyncListServicesPaged.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/AsyncListServicesPaged.java index 0ca6dcccc48e..74be47fba3d6 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/AsyncListServicesPaged.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/SyncListServices.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/SyncListServices.java index f05a6d9fe641..1d46dd41fa23 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/SyncListServices.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/SyncListServicesNamespacename.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/SyncListServicesNamespacename.java index eeebfb77c369..89ad0a3bcbc5 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/SyncListServicesNamespacename.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/SyncListServicesString.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/SyncListServicesString.java index 10241c5e191d..6d4f29038a00 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/listservices/SyncListServicesString.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/setiampolicy/AsyncSetIamPolicy.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/setiampolicy/AsyncSetIamPolicy.java index 5b3d51381c6d..f6022eb8a86a 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/setiampolicy/AsyncSetIamPolicy.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/setiampolicy/SyncSetIamPolicy.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/setiampolicy/SyncSetIamPolicy.java index cfa523330848..49c01d5eec4b 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/setiampolicy/SyncSetIamPolicy.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/testiampermissions/AsyncTestIamPermissions.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/testiampermissions/AsyncTestIamPermissions.java index 5978a7f0d01f..a50b67978180 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/testiampermissions/AsyncTestIamPermissions.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/testiampermissions/SyncTestIamPermissions.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/testiampermissions/SyncTestIamPermissions.java index 286e3a0277ce..e5ab645dd166 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/testiampermissions/SyncTestIamPermissions.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateendpoint/AsyncUpdateEndpoint.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateendpoint/AsyncUpdateEndpoint.java index 5a03713b15cc..6a6f47cf0775 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateendpoint/AsyncUpdateEndpoint.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateendpoint/SyncUpdateEndpoint.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateendpoint/SyncUpdateEndpoint.java index 91e38e4c3d9e..6aab568ebe11 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateendpoint/SyncUpdateEndpoint.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateendpoint/SyncUpdateEndpointEndpointFieldmask.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateendpoint/SyncUpdateEndpointEndpointFieldmask.java index bd35030d6d61..dce28767e5a8 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateendpoint/SyncUpdateEndpointEndpointFieldmask.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updatenamespace/AsyncUpdateNamespace.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updatenamespace/AsyncUpdateNamespace.java index 948c05f43ad0..a015b78ec354 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updatenamespace/AsyncUpdateNamespace.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updatenamespace/SyncUpdateNamespace.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updatenamespace/SyncUpdateNamespace.java index 9be1ed025997..cdf1ca660854 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updatenamespace/SyncUpdateNamespace.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updatenamespace/SyncUpdateNamespaceNamespaceFieldmask.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updatenamespace/SyncUpdateNamespaceNamespaceFieldmask.java index 45fc0b4e7423..8af415105d76 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updatenamespace/SyncUpdateNamespaceNamespaceFieldmask.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateservice/AsyncUpdateService.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateservice/AsyncUpdateService.java index f25fcb6d8b84..39ec64cd9bcb 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateservice/AsyncUpdateService.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateservice/SyncUpdateService.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateservice/SyncUpdateService.java index 9f60281aee0e..e810e09a2f9a 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateservice/SyncUpdateService.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateservice/SyncUpdateServiceServiceFieldmask.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateservice/SyncUpdateServiceServiceFieldmask.java index a9c32027505d..1f8514e2bcbd 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationserviceclient/updateservice/SyncUpdateServiceServiceFieldmask.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationservicesettings/createnamespace/SyncCreateNamespace.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationservicesettings/createnamespace/SyncCreateNamespace.java index f0fd5e4508ea..0583814c8272 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/registrationservicesettings/createnamespace/SyncCreateNamespace.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/stub/lookupservicestubsettings/resolveservice/SyncResolveService.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/stub/lookupservicestubsettings/resolveservice/SyncResolveService.java index 196e4d9cdd05..2a17a011fce7 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/stub/lookupservicestubsettings/resolveservice/SyncResolveService.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/stub/registrationservicestubsettings/createnamespace/SyncCreateNamespace.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/stub/registrationservicestubsettings/createnamespace/SyncCreateNamespace.java index 49d7cb9a6f52..e68d108ca638 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1/stub/registrationservicestubsettings/createnamespace/SyncCreateNamespace.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/create/SyncCreateSetCredentialsProvider.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/create/SyncCreateSetCredentialsProvider.java index 84ca6e9d67d9..d4fdf025c9f6 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/create/SyncCreateSetCredentialsProvider1.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/create/SyncCreateSetCredentialsProvider1.java index d54d841cca3f..ce7f92d311c6 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/create/SyncCreateSetEndpoint.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/create/SyncCreateSetEndpoint.java index a7fa2ea54101..e8acc6da5946 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/create/SyncCreateSetEndpoint.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/resolveservice/AsyncResolveService.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/resolveservice/AsyncResolveService.java index 86ceb33cd56f..81ca980ea0c9 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/resolveservice/AsyncResolveService.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/resolveservice/SyncResolveService.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/resolveservice/SyncResolveService.java index a2843c0d94b1..b8bba8f136b6 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupserviceclient/resolveservice/SyncResolveService.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupservicesettings/resolveservice/SyncResolveService.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupservicesettings/resolveservice/SyncResolveService.java index dfaef560ebb7..e98c844be741 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/lookupservicesettings/resolveservice/SyncResolveService.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/create/SyncCreateSetCredentialsProvider.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/create/SyncCreateSetCredentialsProvider.java index dbd68985f8ea..d956d2425f37 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/create/SyncCreateSetCredentialsProvider1.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/create/SyncCreateSetCredentialsProvider1.java index 77d45527fee4..cfe199a6b0b2 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/create/SyncCreateSetEndpoint.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/create/SyncCreateSetEndpoint.java index 486059a53b09..abfa06e5fea0 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/create/SyncCreateSetEndpoint.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createendpoint/AsyncCreateEndpoint.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createendpoint/AsyncCreateEndpoint.java index 0746d2bfcbbf..735cb2369402 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createendpoint/AsyncCreateEndpoint.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createendpoint/SyncCreateEndpoint.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createendpoint/SyncCreateEndpoint.java index a230f1698dba..3342e04282bc 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createendpoint/SyncCreateEndpoint.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createendpoint/SyncCreateEndpointServicenameEndpointString.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createendpoint/SyncCreateEndpointServicenameEndpointString.java index 8cb08dfed9eb..54141e743c60 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createendpoint/SyncCreateEndpointServicenameEndpointString.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createendpoint/SyncCreateEndpointStringEndpointString.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createendpoint/SyncCreateEndpointStringEndpointString.java index b8b91c33a7c2..5bb61cc76de2 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createendpoint/SyncCreateEndpointStringEndpointString.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createnamespace/AsyncCreateNamespace.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createnamespace/AsyncCreateNamespace.java index 1d556f808a21..ad1388585e80 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createnamespace/AsyncCreateNamespace.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createnamespace/SyncCreateNamespace.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createnamespace/SyncCreateNamespace.java index a71ea7159841..b907f3bec089 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createnamespace/SyncCreateNamespace.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createnamespace/SyncCreateNamespaceLocationnameNamespaceString.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createnamespace/SyncCreateNamespaceLocationnameNamespaceString.java index 539e3e47630a..635c8b75b51d 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createnamespace/SyncCreateNamespaceLocationnameNamespaceString.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createnamespace/SyncCreateNamespaceStringNamespaceString.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createnamespace/SyncCreateNamespaceStringNamespaceString.java index 8ba9ff392ff1..38b8695b41e3 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createnamespace/SyncCreateNamespaceStringNamespaceString.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createservice/AsyncCreateService.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createservice/AsyncCreateService.java index 3aaa2d53561f..c9a7db312253 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createservice/AsyncCreateService.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createservice/SyncCreateService.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createservice/SyncCreateService.java index f2ac59a86d92..0efcf7ccd198 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createservice/SyncCreateService.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createservice/SyncCreateServiceNamespacenameServiceString.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createservice/SyncCreateServiceNamespacenameServiceString.java index 160299284b71..ea1bbb6e74c8 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createservice/SyncCreateServiceNamespacenameServiceString.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createservice/SyncCreateServiceStringServiceString.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createservice/SyncCreateServiceStringServiceString.java index 0cac32b0df78..9e5a376fa05d 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/createservice/SyncCreateServiceStringServiceString.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteendpoint/AsyncDeleteEndpoint.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteendpoint/AsyncDeleteEndpoint.java index 06f0ceaae4ce..a379c46c3797 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteendpoint/AsyncDeleteEndpoint.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteendpoint/SyncDeleteEndpoint.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteendpoint/SyncDeleteEndpoint.java index 5047d8f1ffbf..ddb832c98496 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteendpoint/SyncDeleteEndpoint.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteendpoint/SyncDeleteEndpointEndpointname.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteendpoint/SyncDeleteEndpointEndpointname.java index aa1157cc011b..60f95ed86b70 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteendpoint/SyncDeleteEndpointEndpointname.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteendpoint/SyncDeleteEndpointString.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteendpoint/SyncDeleteEndpointString.java index 57e69672913a..5d24c90b0eef 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteendpoint/SyncDeleteEndpointString.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deletenamespace/AsyncDeleteNamespace.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deletenamespace/AsyncDeleteNamespace.java index 89d486f01769..d44f0f151907 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deletenamespace/AsyncDeleteNamespace.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deletenamespace/SyncDeleteNamespace.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deletenamespace/SyncDeleteNamespace.java index 2ede48e335f5..d57b260cad06 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deletenamespace/SyncDeleteNamespace.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deletenamespace/SyncDeleteNamespaceNamespacename.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deletenamespace/SyncDeleteNamespaceNamespacename.java index 3ffd512e3c72..c5635659e85f 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deletenamespace/SyncDeleteNamespaceNamespacename.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deletenamespace/SyncDeleteNamespaceString.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deletenamespace/SyncDeleteNamespaceString.java index 48769cdbd7cc..c9f02390e25c 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deletenamespace/SyncDeleteNamespaceString.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteservice/AsyncDeleteService.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteservice/AsyncDeleteService.java index c846026593b3..6bbf74ee51c9 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteservice/AsyncDeleteService.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteservice/SyncDeleteService.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteservice/SyncDeleteService.java index 4fdc8b66384a..ce0d98edd404 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteservice/SyncDeleteService.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteservice/SyncDeleteServiceServicename.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteservice/SyncDeleteServiceServicename.java index f5b2093cfb35..6275f0ce0174 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteservice/SyncDeleteServiceServicename.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteservice/SyncDeleteServiceString.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteservice/SyncDeleteServiceString.java index d218e221efdb..fe28f06de279 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/deleteservice/SyncDeleteServiceString.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getendpoint/AsyncGetEndpoint.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getendpoint/AsyncGetEndpoint.java index 2f8a439d07ed..15b53e2d1547 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getendpoint/AsyncGetEndpoint.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getendpoint/SyncGetEndpoint.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getendpoint/SyncGetEndpoint.java index fe61944a6976..4393e2fa6517 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getendpoint/SyncGetEndpoint.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getendpoint/SyncGetEndpointEndpointname.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getendpoint/SyncGetEndpointEndpointname.java index 8731306206db..7df55ea6cd34 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getendpoint/SyncGetEndpointEndpointname.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getendpoint/SyncGetEndpointString.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getendpoint/SyncGetEndpointString.java index 4c2fba4dedca..673c7e144779 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getendpoint/SyncGetEndpointString.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getiampolicy/AsyncGetIamPolicy.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getiampolicy/AsyncGetIamPolicy.java index 0edef8b19135..d38847265bd4 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getiampolicy/AsyncGetIamPolicy.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getiampolicy/SyncGetIamPolicy.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getiampolicy/SyncGetIamPolicy.java index 27e7590dceef..ce627cbe27e7 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getiampolicy/SyncGetIamPolicy.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getnamespace/AsyncGetNamespace.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getnamespace/AsyncGetNamespace.java index a1e1abb08f54..6a2c0b730a80 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getnamespace/AsyncGetNamespace.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getnamespace/SyncGetNamespace.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getnamespace/SyncGetNamespace.java index 0e5d6281d60b..6a06a6e7fa0d 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getnamespace/SyncGetNamespace.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getnamespace/SyncGetNamespaceNamespacename.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getnamespace/SyncGetNamespaceNamespacename.java index d62a10faebfe..4149464be41a 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getnamespace/SyncGetNamespaceNamespacename.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getnamespace/SyncGetNamespaceString.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getnamespace/SyncGetNamespaceString.java index 160f195f7d95..1058ab145bf3 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getnamespace/SyncGetNamespaceString.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getservice/AsyncGetService.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getservice/AsyncGetService.java index 211fc5dc407f..0e2f545bbecb 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getservice/AsyncGetService.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getservice/SyncGetService.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getservice/SyncGetService.java index d44a19def198..cee13f4f89f1 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getservice/SyncGetService.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getservice/SyncGetServiceServicename.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getservice/SyncGetServiceServicename.java index 4080b50d2604..ede8939fe664 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getservice/SyncGetServiceServicename.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getservice/SyncGetServiceString.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getservice/SyncGetServiceString.java index d890c4874d4b..0905eb172617 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/getservice/SyncGetServiceString.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/AsyncListEndpoints.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/AsyncListEndpoints.java index 5bd9b0c0bf7c..ac405d1ff119 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/AsyncListEndpoints.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/AsyncListEndpointsPaged.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/AsyncListEndpointsPaged.java index 013a67b31f36..a3dceb02896a 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/AsyncListEndpointsPaged.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/SyncListEndpoints.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/SyncListEndpoints.java index 976dd80ece4e..3eeb0f9d2ad0 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/SyncListEndpoints.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/SyncListEndpointsServicename.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/SyncListEndpointsServicename.java index 8007111c5015..c0b6c1cc3da0 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/SyncListEndpointsServicename.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/SyncListEndpointsString.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/SyncListEndpointsString.java index 4456b1f0d0c2..183861ad1f3a 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listendpoints/SyncListEndpointsString.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/AsyncListNamespaces.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/AsyncListNamespaces.java index a49dcd001988..fa8909e99f95 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/AsyncListNamespaces.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/AsyncListNamespacesPaged.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/AsyncListNamespacesPaged.java index b3b5d47de53f..c355c42c5891 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/AsyncListNamespacesPaged.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/SyncListNamespaces.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/SyncListNamespaces.java index e36d22230e84..2ef6238d8ecc 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/SyncListNamespaces.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/SyncListNamespacesLocationname.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/SyncListNamespacesLocationname.java index 1cedeb21b236..b7dce7e0babf 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/SyncListNamespacesLocationname.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/SyncListNamespacesString.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/SyncListNamespacesString.java index 53363cbeeda2..190bb492947e 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listnamespaces/SyncListNamespacesString.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/AsyncListServices.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/AsyncListServices.java index 79d86c8193f6..2eb2bd316964 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/AsyncListServices.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/AsyncListServicesPaged.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/AsyncListServicesPaged.java index f28bbc299b5f..7df075207196 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/AsyncListServicesPaged.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/SyncListServices.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/SyncListServices.java index 553e20671375..e0140791a229 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/SyncListServices.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/SyncListServicesNamespacename.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/SyncListServicesNamespacename.java index e38a4b3c3a4d..9dddadec3380 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/SyncListServicesNamespacename.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/SyncListServicesString.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/SyncListServicesString.java index 5fa17514f547..10f310aa91fd 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/listservices/SyncListServicesString.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/setiampolicy/AsyncSetIamPolicy.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/setiampolicy/AsyncSetIamPolicy.java index 1a6ac721f55d..7fa0d315f2e4 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/setiampolicy/AsyncSetIamPolicy.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/setiampolicy/SyncSetIamPolicy.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/setiampolicy/SyncSetIamPolicy.java index 38ae21415be6..94dfe7f7ce10 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/setiampolicy/SyncSetIamPolicy.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/testiampermissions/AsyncTestIamPermissions.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/testiampermissions/AsyncTestIamPermissions.java index 2b9368f4f29a..51c18c9afefc 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/testiampermissions/AsyncTestIamPermissions.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/testiampermissions/SyncTestIamPermissions.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/testiampermissions/SyncTestIamPermissions.java index b0b358f02979..903d359ef457 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/testiampermissions/SyncTestIamPermissions.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateendpoint/AsyncUpdateEndpoint.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateendpoint/AsyncUpdateEndpoint.java index 5fcd0d73376c..d24be811b436 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateendpoint/AsyncUpdateEndpoint.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateendpoint/SyncUpdateEndpoint.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateendpoint/SyncUpdateEndpoint.java index 987ee05d284c..3f798517f4d9 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateendpoint/SyncUpdateEndpoint.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateendpoint/SyncUpdateEndpointEndpointFieldmask.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateendpoint/SyncUpdateEndpointEndpointFieldmask.java index 77b1d32cb816..d7acfdb7c79e 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateendpoint/SyncUpdateEndpointEndpointFieldmask.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updatenamespace/AsyncUpdateNamespace.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updatenamespace/AsyncUpdateNamespace.java index e9230e51684d..320ab089c050 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updatenamespace/AsyncUpdateNamespace.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updatenamespace/SyncUpdateNamespace.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updatenamespace/SyncUpdateNamespace.java index 7814208ec1ab..d820723ad752 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updatenamespace/SyncUpdateNamespace.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updatenamespace/SyncUpdateNamespaceNamespaceFieldmask.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updatenamespace/SyncUpdateNamespaceNamespaceFieldmask.java index 5339c130d6d6..6e1dde71ab4b 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updatenamespace/SyncUpdateNamespaceNamespaceFieldmask.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateservice/AsyncUpdateService.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateservice/AsyncUpdateService.java index f32493d8e628..2dc75925be5a 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateservice/AsyncUpdateService.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateservice/SyncUpdateService.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateservice/SyncUpdateService.java index 9c991066f8cf..6fdba8ac3da9 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateservice/SyncUpdateService.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateservice/SyncUpdateServiceServiceFieldmask.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateservice/SyncUpdateServiceServiceFieldmask.java index 0cef2c0012a3..2ae5d676fe5e 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationserviceclient/updateservice/SyncUpdateServiceServiceFieldmask.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationservicesettings/createnamespace/SyncCreateNamespace.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationservicesettings/createnamespace/SyncCreateNamespace.java index ef70b13614f6..aabedc1a1136 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/registrationservicesettings/createnamespace/SyncCreateNamespace.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/stub/lookupservicestubsettings/resolveservice/SyncResolveService.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/stub/lookupservicestubsettings/resolveservice/SyncResolveService.java index 20f4a1397fb2..7198a82ecded 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/stub/lookupservicestubsettings/resolveservice/SyncResolveService.java +++ b/java-servicedirectory/samples/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/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/stub/registrationservicestubsettings/createnamespace/SyncCreateNamespace.java b/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/stub/registrationservicestubsettings/createnamespace/SyncCreateNamespace.java index 5be54195d6ed..92be8b37dfb4 100644 --- a/java-servicedirectory/samples/snippets/generated/com/google/cloud/servicedirectory/v1beta1/stub/registrationservicestubsettings/createnamespace/SyncCreateNamespace.java +++ b/java-servicedirectory/samples/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