From 7dad81f04e554fe1aa31938d212af888a7d3125c Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 9 Sep 2022 14:48:28 +0000 Subject: [PATCH] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#266) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 472750037 Source-Link: https://github.com/googleapis/googleapis/commit/88f2ea3f53b9712f2e04f28f06210f6f77fa7e24 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9 --- java-domains/README.md | 4 +- .../cloud/domains/v1/DomainsClient.java | 504 +++++++++++++----- .../cloud/domains/v1/DomainsSettings.java | 12 +- .../google/cloud/domains/v1/package-info.java | 7 +- .../domains/v1/stub/DomainsStubSettings.java | 12 +- .../domains/v1/stub/HttpJsonDomainsStub.java | 20 +- .../cloud/domains/v1alpha2/DomainsClient.java | 504 +++++++++++++----- .../domains/v1alpha2/DomainsSettings.java | 12 +- .../cloud/domains/v1alpha2/package-info.java | 7 +- .../v1alpha2/stub/DomainsStubSettings.java | 12 +- .../v1alpha2/stub/HttpJsonDomainsStub.java | 20 +- .../cloud/domains/v1beta1/DomainsClient.java | 504 +++++++++++++----- .../domains/v1beta1/DomainsSettings.java | 12 +- .../cloud/domains/v1beta1/package-info.java | 7 +- .../v1beta1/stub/DomainsStubSettings.java | 12 +- .../v1beta1/stub/HttpJsonDomainsStub.java | 20 +- .../AsyncConfigureContactSettings.java | 7 +- .../AsyncConfigureContactSettingsLRO.java | 7 +- .../SyncConfigureContactSettings.java | 7 +- ...istrationnameContactsettingsFieldmask.java | 7 +- ...ettingsStringContactsettingsFieldmask.java | 7 +- .../AsyncConfigureDnsSettings.java | 7 +- .../AsyncConfigureDnsSettingsLRO.java | 7 +- .../SyncConfigureDnsSettings.java | 7 +- ...sRegistrationnameDnssettingsFieldmask.java | 7 +- ...DnsSettingsStringDnssettingsFieldmask.java | 7 +- .../AsyncConfigureManagementSettings.java | 7 +- .../AsyncConfigureManagementSettingsLRO.java | 7 +- .../SyncConfigureManagementSettings.java | 7 +- ...rationnameManagementsettingsFieldmask.java | 7 +- ...ingsStringManagementsettingsFieldmask.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../AsyncDeleteRegistration.java | 7 +- .../AsyncDeleteRegistrationLRO.java | 7 +- .../SyncDeleteRegistration.java | 7 +- ...yncDeleteRegistrationRegistrationname.java | 7 +- .../SyncDeleteRegistrationString.java | 7 +- .../AsyncExportRegistration.java | 7 +- .../AsyncExportRegistrationLRO.java | 7 +- .../SyncExportRegistration.java | 7 +- ...yncExportRegistrationRegistrationname.java | 7 +- .../SyncExportRegistrationString.java | 7 +- .../getregistration/AsyncGetRegistration.java | 7 +- .../getregistration/SyncGetRegistration.java | 7 +- .../SyncGetRegistrationRegistrationname.java | 7 +- .../SyncGetRegistrationString.java | 7 +- .../AsyncListRegistrations.java | 7 +- .../AsyncListRegistrationsPaged.java | 7 +- .../SyncListRegistrations.java | 7 +- .../SyncListRegistrationsLocationname.java | 7 +- .../SyncListRegistrationsString.java | 7 +- .../registerdomain/AsyncRegisterDomain.java | 7 +- .../AsyncRegisterDomainLRO.java | 7 +- .../registerdomain/SyncRegisterDomain.java | 7 +- ...erDomainLocationnameRegistrationMoney.java | 7 +- ...RegisterDomainStringRegistrationMoney.java | 7 +- .../AsyncResetAuthorizationCode.java | 7 +- .../SyncResetAuthorizationCode.java | 7 +- ...esetAuthorizationCodeRegistrationname.java | 7 +- .../SyncResetAuthorizationCodeString.java | 7 +- .../AsyncRetrieveAuthorizationCode.java | 7 +- .../SyncRetrieveAuthorizationCode.java | 7 +- ...ieveAuthorizationCodeRegistrationname.java | 7 +- .../SyncRetrieveAuthorizationCodeString.java | 7 +- .../AsyncRetrieveRegisterParameters.java | 7 +- .../SyncRetrieveRegisterParameters.java | 7 +- ...eRegisterParametersLocationnameString.java | 7 +- ...etrieveRegisterParametersStringString.java | 7 +- .../AsyncRetrieveTransferParameters.java | 7 +- .../SyncRetrieveTransferParameters.java | 7 +- ...eTransferParametersLocationnameString.java | 7 +- ...etrieveTransferParametersStringString.java | 7 +- .../searchdomains/AsyncSearchDomains.java | 7 +- .../searchdomains/SyncSearchDomains.java | 7 +- .../SyncSearchDomainsLocationnameString.java | 7 +- .../SyncSearchDomainsStringString.java | 7 +- .../transferdomain/AsyncTransferDomain.java | 7 +- .../AsyncTransferDomainLRO.java | 7 +- .../transferdomain/SyncTransferDomain.java | 7 +- ...ameRegistrationMoneyAuthorizationcode.java | 7 +- ...ingRegistrationMoneyAuthorizationcode.java | 7 +- .../AsyncUpdateRegistration.java | 7 +- .../AsyncUpdateRegistrationLRO.java | 7 +- .../SyncUpdateRegistration.java | 7 +- ...dateRegistrationRegistrationFieldmask.java | 7 +- .../searchdomains/SyncSearchDomains.java | 12 +- .../searchdomains/SyncSearchDomains.java | 12 +- .../AsyncConfigureContactSettings.java | 7 +- .../AsyncConfigureContactSettingsLRO.java | 7 +- .../SyncConfigureContactSettings.java | 7 +- ...istrationnameContactsettingsFieldmask.java | 7 +- ...ettingsStringContactsettingsFieldmask.java | 7 +- .../AsyncConfigureDnsSettings.java | 7 +- .../AsyncConfigureDnsSettingsLRO.java | 7 +- .../SyncConfigureDnsSettings.java | 7 +- ...sRegistrationnameDnssettingsFieldmask.java | 7 +- ...DnsSettingsStringDnssettingsFieldmask.java | 7 +- .../AsyncConfigureManagementSettings.java | 7 +- .../AsyncConfigureManagementSettingsLRO.java | 7 +- .../SyncConfigureManagementSettings.java | 7 +- ...rationnameManagementsettingsFieldmask.java | 7 +- ...ingsStringManagementsettingsFieldmask.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../AsyncDeleteRegistration.java | 7 +- .../AsyncDeleteRegistrationLRO.java | 7 +- .../SyncDeleteRegistration.java | 7 +- ...yncDeleteRegistrationRegistrationname.java | 7 +- .../SyncDeleteRegistrationString.java | 7 +- .../AsyncExportRegistration.java | 7 +- .../AsyncExportRegistrationLRO.java | 7 +- .../SyncExportRegistration.java | 7 +- ...yncExportRegistrationRegistrationname.java | 7 +- .../SyncExportRegistrationString.java | 7 +- .../getregistration/AsyncGetRegistration.java | 7 +- .../getregistration/SyncGetRegistration.java | 7 +- .../SyncGetRegistrationRegistrationname.java | 7 +- .../SyncGetRegistrationString.java | 7 +- .../AsyncListRegistrations.java | 7 +- .../AsyncListRegistrationsPaged.java | 7 +- .../SyncListRegistrations.java | 7 +- .../SyncListRegistrationsLocationname.java | 7 +- .../SyncListRegistrationsString.java | 7 +- .../registerdomain/AsyncRegisterDomain.java | 7 +- .../AsyncRegisterDomainLRO.java | 7 +- .../registerdomain/SyncRegisterDomain.java | 7 +- ...erDomainLocationnameRegistrationMoney.java | 7 +- ...RegisterDomainStringRegistrationMoney.java | 7 +- .../AsyncResetAuthorizationCode.java | 7 +- .../SyncResetAuthorizationCode.java | 7 +- ...esetAuthorizationCodeRegistrationname.java | 7 +- .../SyncResetAuthorizationCodeString.java | 7 +- .../AsyncRetrieveAuthorizationCode.java | 7 +- .../SyncRetrieveAuthorizationCode.java | 7 +- ...ieveAuthorizationCodeRegistrationname.java | 7 +- .../SyncRetrieveAuthorizationCodeString.java | 7 +- .../AsyncRetrieveRegisterParameters.java | 7 +- .../SyncRetrieveRegisterParameters.java | 7 +- ...eRegisterParametersLocationnameString.java | 7 +- ...etrieveRegisterParametersStringString.java | 7 +- .../AsyncRetrieveTransferParameters.java | 7 +- .../SyncRetrieveTransferParameters.java | 7 +- ...eTransferParametersLocationnameString.java | 7 +- ...etrieveTransferParametersStringString.java | 7 +- .../searchdomains/AsyncSearchDomains.java | 7 +- .../searchdomains/SyncSearchDomains.java | 7 +- .../SyncSearchDomainsLocationnameString.java | 7 +- .../SyncSearchDomainsStringString.java | 7 +- .../transferdomain/AsyncTransferDomain.java | 7 +- .../AsyncTransferDomainLRO.java | 7 +- .../transferdomain/SyncTransferDomain.java | 7 +- ...ameRegistrationMoneyAuthorizationcode.java | 7 +- ...ingRegistrationMoneyAuthorizationcode.java | 7 +- .../AsyncUpdateRegistration.java | 7 +- .../AsyncUpdateRegistrationLRO.java | 7 +- .../SyncUpdateRegistration.java | 7 +- ...dateRegistrationRegistrationFieldmask.java | 7 +- .../searchdomains/SyncSearchDomains.java | 12 +- .../searchdomains/SyncSearchDomains.java | 12 +- .../AsyncConfigureContactSettings.java | 7 +- .../AsyncConfigureContactSettingsLRO.java | 7 +- .../SyncConfigureContactSettings.java | 7 +- ...istrationnameContactsettingsFieldmask.java | 7 +- ...ettingsStringContactsettingsFieldmask.java | 7 +- .../AsyncConfigureDnsSettings.java | 7 +- .../AsyncConfigureDnsSettingsLRO.java | 7 +- .../SyncConfigureDnsSettings.java | 7 +- ...sRegistrationnameDnssettingsFieldmask.java | 7 +- ...DnsSettingsStringDnssettingsFieldmask.java | 7 +- .../AsyncConfigureManagementSettings.java | 7 +- .../AsyncConfigureManagementSettingsLRO.java | 7 +- .../SyncConfigureManagementSettings.java | 7 +- ...rationnameManagementsettingsFieldmask.java | 7 +- ...ingsStringManagementsettingsFieldmask.java | 7 +- .../SyncCreateSetCredentialsProvider.java | 7 +- .../SyncCreateSetCredentialsProvider1.java | 7 +- .../create/SyncCreateSetEndpoint.java | 7 +- .../AsyncDeleteRegistration.java | 7 +- .../AsyncDeleteRegistrationLRO.java | 7 +- .../SyncDeleteRegistration.java | 7 +- ...yncDeleteRegistrationRegistrationname.java | 7 +- .../SyncDeleteRegistrationString.java | 7 +- .../AsyncExportRegistration.java | 7 +- .../AsyncExportRegistrationLRO.java | 7 +- .../SyncExportRegistration.java | 7 +- ...yncExportRegistrationRegistrationname.java | 7 +- .../SyncExportRegistrationString.java | 7 +- .../getregistration/AsyncGetRegistration.java | 7 +- .../getregistration/SyncGetRegistration.java | 7 +- .../SyncGetRegistrationRegistrationname.java | 7 +- .../SyncGetRegistrationString.java | 7 +- .../AsyncListRegistrations.java | 7 +- .../AsyncListRegistrationsPaged.java | 7 +- .../SyncListRegistrations.java | 7 +- .../SyncListRegistrationsLocationname.java | 7 +- .../SyncListRegistrationsString.java | 7 +- .../registerdomain/AsyncRegisterDomain.java | 7 +- .../AsyncRegisterDomainLRO.java | 7 +- .../registerdomain/SyncRegisterDomain.java | 7 +- ...erDomainLocationnameRegistrationMoney.java | 7 +- ...RegisterDomainStringRegistrationMoney.java | 7 +- .../AsyncResetAuthorizationCode.java | 7 +- .../SyncResetAuthorizationCode.java | 7 +- ...esetAuthorizationCodeRegistrationname.java | 7 +- .../SyncResetAuthorizationCodeString.java | 7 +- .../AsyncRetrieveAuthorizationCode.java | 7 +- .../SyncRetrieveAuthorizationCode.java | 7 +- ...ieveAuthorizationCodeRegistrationname.java | 7 +- .../SyncRetrieveAuthorizationCodeString.java | 7 +- .../AsyncRetrieveRegisterParameters.java | 7 +- .../SyncRetrieveRegisterParameters.java | 7 +- ...eRegisterParametersLocationnameString.java | 7 +- ...etrieveRegisterParametersStringString.java | 7 +- .../AsyncRetrieveTransferParameters.java | 7 +- .../SyncRetrieveTransferParameters.java | 7 +- ...eTransferParametersLocationnameString.java | 7 +- ...etrieveTransferParametersStringString.java | 7 +- .../searchdomains/AsyncSearchDomains.java | 7 +- .../searchdomains/SyncSearchDomains.java | 7 +- .../SyncSearchDomainsLocationnameString.java | 7 +- .../SyncSearchDomainsStringString.java | 7 +- .../transferdomain/AsyncTransferDomain.java | 7 +- .../AsyncTransferDomainLRO.java | 7 +- .../transferdomain/SyncTransferDomain.java | 7 +- ...ameRegistrationMoneyAuthorizationcode.java | 7 +- ...ingRegistrationMoneyAuthorizationcode.java | 7 +- .../AsyncUpdateRegistration.java | 7 +- .../AsyncUpdateRegistrationLRO.java | 7 +- .../SyncUpdateRegistration.java | 7 +- ...dateRegistrationRegistrationFieldmask.java | 7 +- .../searchdomains/SyncSearchDomains.java | 12 +- .../searchdomains/SyncSearchDomains.java | 12 +- 235 files changed, 2270 insertions(+), 962 deletions(-) diff --git a/java-domains/README.md b/java-domains/README.md index 442159d15441..fe2f6e3bc783 100644 --- a/java-domains/README.md +++ b/java-domains/README.md @@ -27,13 +27,13 @@ If you are using Maven, add this to your pom.xml file: If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-domains:1.0.2' +implementation 'com.google.cloud:google-cloud-domains:1.0.3' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.0.2" +libraryDependencies += "com.google.cloud" % "google-cloud-domains" % "1.0.3" ``` ## Authentication diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/DomainsClient.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/DomainsClient.java index ee5c3d8a23e4..bc19c9a6acb2 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/DomainsClient.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/DomainsClient.java @@ -48,8 +48,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 (DomainsClient domainsClient = DomainsClient.create()) { * LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); * String query = "query107944136"; @@ -86,8 +89,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * DomainsSettings domainsSettings = * DomainsSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -98,8 +104,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * DomainsSettings domainsSettings = DomainsSettings.newBuilder().setEndpoint(myEndpoint).build(); * DomainsClient domainsClient = DomainsClient.create(domainsSettings); * }@@ -108,8 +117,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 * DomainsSettings domainsSettings = * DomainsSettings.newBuilder() * .setTransportChannelProvider( @@ -203,8 +215,11 @@ public final OperationsClient getHttpJsonOperationsClient() { *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 (DomainsClient domainsClient = DomainsClient.create()) { * LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); * String query = "query107944136"; @@ -235,8 +250,11 @@ public final SearchDomainsResponse searchDomains(LocationName location, String q *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 (DomainsClient domainsClient = DomainsClient.create()) { * String location = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * String query = "query107944136"; @@ -264,8 +282,11 @@ public final SearchDomainsResponse searchDomains(String location, String query) *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 (DomainsClient domainsClient = DomainsClient.create()) { * SearchDomainsRequest request = * SearchDomainsRequest.newBuilder() @@ -293,8 +314,11 @@ public final SearchDomainsResponse searchDomains(SearchDomainsRequest 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 (DomainsClient domainsClient = DomainsClient.create()) { * SearchDomainsRequest request = * SearchDomainsRequest.newBuilder() @@ -320,8 +344,11 @@ public final UnaryCallablesearchDo * 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 (DomainsClient domainsClient = DomainsClient.create()) { * LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); * String domainName = "domainName-1244085905"; @@ -353,8 +380,11 @@ public final RetrieveRegisterParametersResponse retrieveRegisterParameters( *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 (DomainsClient domainsClient = DomainsClient.create()) { * String location = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * String domainName = "domainName-1244085905"; @@ -386,8 +416,11 @@ public final RetrieveRegisterParametersResponse retrieveRegisterParameters( *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 (DomainsClient domainsClient = DomainsClient.create()) { * RetrieveRegisterParametersRequest request = * RetrieveRegisterParametersRequest.newBuilder() @@ -415,8 +448,11 @@ public final RetrieveRegisterParametersResponse retrieveRegisterParameters( *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 (DomainsClient domainsClient = DomainsClient.create()) { * RetrieveRegisterParametersRequest request = * RetrieveRegisterParametersRequest.newBuilder() @@ -451,8 +487,11 @@ public final RetrieveRegisterParametersResponse retrieveRegisterParameters( *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 (DomainsClient domainsClient = DomainsClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Registration registration = Registration.newBuilder().build(); @@ -496,8 +535,11 @@ public final OperationFutureregisterDomainAsyn * 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 (DomainsClient domainsClient = DomainsClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * Registration registration = Registration.newBuilder().build(); @@ -541,8 +583,11 @@ public final OperationFutureregisterDomainAsyn * 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 (DomainsClient domainsClient = DomainsClient.create()) { * RegisterDomainRequest request = * RegisterDomainRequest.newBuilder() @@ -581,8 +626,11 @@ public final OperationFutureregisterDomainAsyn * 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 (DomainsClient domainsClient = DomainsClient.create()) { * RegisterDomainRequest request = * RegisterDomainRequest.newBuilder() @@ -621,8 +669,11 @@ public final OperationFutureregisterDomainAsyn * 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 (DomainsClient domainsClient = DomainsClient.create()) { * RegisterDomainRequest request = * RegisterDomainRequest.newBuilder() @@ -653,8 +704,11 @@ public final UnaryCallableregisterDomainCalla * 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 (DomainsClient domainsClient = DomainsClient.create()) { * LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); * String domainName = "domainName-1244085905"; @@ -688,8 +742,11 @@ public final RetrieveTransferParametersResponse retrieveTransferParameters( *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 (DomainsClient domainsClient = DomainsClient.create()) { * String location = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * String domainName = "domainName-1244085905"; @@ -723,8 +780,11 @@ public final RetrieveTransferParametersResponse retrieveTransferParameters( *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 (DomainsClient domainsClient = DomainsClient.create()) { * RetrieveTransferParametersRequest request = * RetrieveTransferParametersRequest.newBuilder() @@ -754,8 +814,11 @@ public final RetrieveTransferParametersResponse retrieveTransferParameters( *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 (DomainsClient domainsClient = DomainsClient.create()) { * RetrieveTransferParametersRequest request = * RetrieveTransferParametersRequest.newBuilder() @@ -797,8 +860,11 @@ public final RetrieveTransferParametersResponse retrieveTransferParameters( *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 (DomainsClient domainsClient = DomainsClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Registration registration = Registration.newBuilder().build(); @@ -863,8 +929,11 @@ public final OperationFuturetransferDomainAsyn * 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 (DomainsClient domainsClient = DomainsClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * Registration registration = Registration.newBuilder().build(); @@ -929,8 +998,11 @@ public final OperationFuturetransferDomainAsyn * 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 (DomainsClient domainsClient = DomainsClient.create()) { * TransferDomainRequest request = * TransferDomainRequest.newBuilder() @@ -976,8 +1048,11 @@ public final OperationFuturetransferDomainAsyn * 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 (DomainsClient domainsClient = DomainsClient.create()) { * TransferDomainRequest request = * TransferDomainRequest.newBuilder() @@ -1023,8 +1098,11 @@ public final OperationFuturetransferDomainAsyn * 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 (DomainsClient domainsClient = DomainsClient.create()) { * TransferDomainRequest request = * TransferDomainRequest.newBuilder() @@ -1052,8 +1130,11 @@ public final UnaryCallabletransferDomainCalla * 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 (DomainsClient domainsClient = DomainsClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (Registration element : domainsClient.listRegistrations(parent).iterateAll()) { @@ -1081,8 +1162,11 @@ public final ListRegistrationsPagedResponse listRegistrations(LocationName paren *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 (DomainsClient domainsClient = DomainsClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (Registration element : domainsClient.listRegistrations(parent).iterateAll()) { @@ -1108,8 +1192,11 @@ public final ListRegistrationsPagedResponse listRegistrations(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 (DomainsClient domainsClient = DomainsClient.create()) { * ListRegistrationsRequest request = * ListRegistrationsRequest.newBuilder() @@ -1138,8 +1225,11 @@ public final ListRegistrationsPagedResponse listRegistrations(ListRegistrationsR *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 (DomainsClient domainsClient = DomainsClient.create()) { * ListRegistrationsRequest request = * ListRegistrationsRequest.newBuilder() @@ -1169,8 +1259,11 @@ public final ListRegistrationsPagedResponse listRegistrations(ListRegistrationsR *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 (DomainsClient domainsClient = DomainsClient.create()) { * ListRegistrationsRequest request = * ListRegistrationsRequest.newBuilder() @@ -1207,8 +1300,11 @@ public final ListRegistrationsPagedResponse listRegistrations(ListRegistrationsR *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 (DomainsClient domainsClient = DomainsClient.create()) { * RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); * Registration response = domainsClient.getRegistration(name); @@ -1232,8 +1328,11 @@ public final Registration getRegistration(RegistrationName 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 (DomainsClient domainsClient = DomainsClient.create()) { * String name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); * Registration response = domainsClient.getRegistration(name); @@ -1256,8 +1355,11 @@ public final Registration getRegistration(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 (DomainsClient domainsClient = DomainsClient.create()) { * GetRegistrationRequest request = * GetRegistrationRequest.newBuilder() @@ -1281,8 +1383,11 @@ public final Registration getRegistration(GetRegistrationRequest 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 (DomainsClient domainsClient = DomainsClient.create()) { * GetRegistrationRequest request = * GetRegistrationRequest.newBuilder() @@ -1312,8 +1417,11 @@ public final UnaryCallablegetRegistration * 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 (DomainsClient domainsClient = DomainsClient.create()) { * Registration registration = Registration.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1351,8 +1459,11 @@ public final OperationFutureupdateRegistration * 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 (DomainsClient domainsClient = DomainsClient.create()) { * UpdateRegistrationRequest request = * UpdateRegistrationRequest.newBuilder() @@ -1385,8 +1496,11 @@ public final OperationFutureupdateRegistration * 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 (DomainsClient domainsClient = DomainsClient.create()) { * UpdateRegistrationRequest request = * UpdateRegistrationRequest.newBuilder() @@ -1419,8 +1533,11 @@ public final OperationFutureupdateRegistration * 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 (DomainsClient domainsClient = DomainsClient.create()) { * UpdateRegistrationRequest request = * UpdateRegistrationRequest.newBuilder() @@ -1444,8 +1561,11 @@ public final UnaryCallableupdateRegistrat * 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 (DomainsClient domainsClient = DomainsClient.create()) { * RegistrationName registration = * RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); @@ -1484,8 +1604,11 @@ public final OperationFutureconfigureManagemen * 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 (DomainsClient domainsClient = DomainsClient.create()) { * String registration = * RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); @@ -1524,8 +1647,11 @@ public final OperationFutureconfigureManagemen * 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 (DomainsClient domainsClient = DomainsClient.create()) { * ConfigureManagementSettingsRequest request = * ConfigureManagementSettingsRequest.newBuilder() @@ -1553,8 +1679,11 @@ public final OperationFutureconfigureManagemen * 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 (DomainsClient domainsClient = DomainsClient.create()) { * ConfigureManagementSettingsRequest request = * ConfigureManagementSettingsRequest.newBuilder() @@ -1583,8 +1712,11 @@ public final OperationFutureconfigureManagemen * 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 (DomainsClient domainsClient = DomainsClient.create()) { * ConfigureManagementSettingsRequest request = * ConfigureManagementSettingsRequest.newBuilder() @@ -1612,8 +1744,11 @@ public final OperationFutureconfigureManagemen * 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 (DomainsClient domainsClient = DomainsClient.create()) { * RegistrationName registration = * RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); @@ -1653,8 +1788,11 @@ public final OperationFutureconfigureDnsSettin * 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 (DomainsClient domainsClient = DomainsClient.create()) { * String registration = * RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); @@ -1694,8 +1832,11 @@ public final OperationFutureconfigureDnsSettin * 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 (DomainsClient domainsClient = DomainsClient.create()) { * ConfigureDnsSettingsRequest request = * ConfigureDnsSettingsRequest.newBuilder() @@ -1724,8 +1865,11 @@ public final OperationFutureconfigureDnsSettin * 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 (DomainsClient domainsClient = DomainsClient.create()) { * ConfigureDnsSettingsRequest request = * ConfigureDnsSettingsRequest.newBuilder() @@ -1754,8 +1898,11 @@ public final OperationFutureconfigureDnsSettin * 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 (DomainsClient domainsClient = DomainsClient.create()) { * ConfigureDnsSettingsRequest request = * ConfigureDnsSettingsRequest.newBuilder() @@ -1785,8 +1932,11 @@ public final OperationFutureconfigureDnsSettin * 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 (DomainsClient domainsClient = DomainsClient.create()) { * RegistrationName registration = * RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); @@ -1826,8 +1976,11 @@ public final OperationFutureconfigureContactSe * 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 (DomainsClient domainsClient = DomainsClient.create()) { * String registration = * RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); @@ -1867,8 +2020,11 @@ public final OperationFutureconfigureContactSe * 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 (DomainsClient domainsClient = DomainsClient.create()) { * ConfigureContactSettingsRequest request = * ConfigureContactSettingsRequest.newBuilder() @@ -1899,8 +2055,11 @@ public final OperationFutureconfigureContactSe * 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 (DomainsClient domainsClient = DomainsClient.create()) { * ConfigureContactSettingsRequest request = * ConfigureContactSettingsRequest.newBuilder() @@ -1931,8 +2090,11 @@ public final OperationFutureconfigureContactSe * 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 (DomainsClient domainsClient = DomainsClient.create()) { * ConfigureContactSettingsRequest request = * ConfigureContactSettingsRequest.newBuilder() @@ -1968,8 +2130,11 @@ public final OperationFutureconfigureContactSe * 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 (DomainsClient domainsClient = DomainsClient.create()) { * RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); * Registration response = domainsClient.exportRegistrationAsync(name).get(); @@ -2002,8 +2167,11 @@ public final OperationFutureexportRegistration * 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 (DomainsClient domainsClient = DomainsClient.create()) { * String name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); * Registration response = domainsClient.exportRegistrationAsync(name).get(); @@ -2034,8 +2202,11 @@ public final OperationFutureexportRegistration * 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 (DomainsClient domainsClient = DomainsClient.create()) { * ExportRegistrationRequest request = * ExportRegistrationRequest.newBuilder() @@ -2066,8 +2237,11 @@ public final OperationFutureexportRegistration * 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 (DomainsClient domainsClient = DomainsClient.create()) { * ExportRegistrationRequest request = * ExportRegistrationRequest.newBuilder() @@ -2098,8 +2272,11 @@ public final OperationFutureexportRegistration * 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 (DomainsClient domainsClient = DomainsClient.create()) { * ExportRegistrationRequest request = * ExportRegistrationRequest.newBuilder() @@ -2141,8 +2318,11 @@ public final UnaryCallableexportRegistrat * 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 (DomainsClient domainsClient = DomainsClient.create()) { * RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); * domainsClient.deleteRegistrationAsync(name).get(); @@ -2188,8 +2368,11 @@ public final OperationFuturedeleteRegistrationAsync( * 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 (DomainsClient domainsClient = DomainsClient.create()) { * String name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); * domainsClient.deleteRegistrationAsync(name).get(); @@ -2232,8 +2415,11 @@ public final OperationFuturedeleteRegistrationAsync(S * 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 (DomainsClient domainsClient = DomainsClient.create()) { * DeleteRegistrationRequest request = * DeleteRegistrationRequest.newBuilder() @@ -2277,8 +2463,11 @@ public final OperationFuturedeleteRegistrationAsync( * 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 (DomainsClient domainsClient = DomainsClient.create()) { * DeleteRegistrationRequest request = * DeleteRegistrationRequest.newBuilder() @@ -2322,8 +2511,11 @@ public final OperationFuturedeleteRegistrationAsync( * 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 (DomainsClient domainsClient = DomainsClient.create()) { * DeleteRegistrationRequest request = * DeleteRegistrationRequest.newBuilder() @@ -2350,8 +2542,11 @@ public final UnaryCallabledeleteRegistrat * 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 (DomainsClient domainsClient = DomainsClient.create()) { * RegistrationName registration = * RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); @@ -2382,8 +2577,11 @@ public final AuthorizationCode retrieveAuthorizationCode(RegistrationName regist *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 (DomainsClient domainsClient = DomainsClient.create()) { * String registration = * RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); @@ -2412,8 +2610,11 @@ public final AuthorizationCode retrieveAuthorizationCode(String registration) { *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 (DomainsClient domainsClient = DomainsClient.create()) { * RetrieveAuthorizationCodeRequest request = * RetrieveAuthorizationCodeRequest.newBuilder() @@ -2443,8 +2644,11 @@ public final AuthorizationCode retrieveAuthorizationCode( *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 (DomainsClient domainsClient = DomainsClient.create()) { * RetrieveAuthorizationCodeRequest request = * RetrieveAuthorizationCodeRequest.newBuilder() @@ -2473,8 +2677,11 @@ public final AuthorizationCode retrieveAuthorizationCode( *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 (DomainsClient domainsClient = DomainsClient.create()) { * RegistrationName registration = * RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); @@ -2504,8 +2711,11 @@ public final AuthorizationCode resetAuthorizationCode(RegistrationName registrat *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 (DomainsClient domainsClient = DomainsClient.create()) { * String registration = * RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); @@ -2533,8 +2743,11 @@ public final AuthorizationCode resetAuthorizationCode(String registration) { *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 (DomainsClient domainsClient = DomainsClient.create()) { * ResetAuthorizationCodeRequest request = * ResetAuthorizationCodeRequest.newBuilder() @@ -2562,8 +2775,11 @@ public final AuthorizationCode resetAuthorizationCode(ResetAuthorizationCodeRequ *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 (DomainsClient domainsClient = DomainsClient.create()) { * ResetAuthorizationCodeRequest request = * ResetAuthorizationCodeRequest.newBuilder() diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/DomainsSettings.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/DomainsSettings.java index e1b7cc49f1eb..7c48da403216 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/DomainsSettings.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/DomainsSettings.java @@ -56,16 +56,16 @@ *For example, to set the total timeout of searchDomains 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 * DomainsSettings.Builder domainsSettingsBuilder = DomainsSettings.newBuilder(); * domainsSettingsBuilder * .searchDomainsSettings() * .setRetrySettings( - * domainsSettingsBuilder - * .searchDomainsSettings() - * .getRetrySettings() - * .toBuilder() + * domainsSettingsBuilder.searchDomainsSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * DomainsSettings domainsSettings = domainsSettingsBuilder.build(); diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/package-info.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/package-info.java index 764b92c22e8c..f55cb7c69be8 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/package-info.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/package-info.java @@ -27,8 +27,11 @@ *Sample for DomainsClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DomainsClient domainsClient = DomainsClient.create()) { * LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); * String query = "query107944136"; diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/DomainsStubSettings.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/DomainsStubSettings.java index 77bd965e51f0..a5cee80e0e4e 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/DomainsStubSettings.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/DomainsStubSettings.java @@ -98,16 +98,16 @@ *For example, to set the total timeout of searchDomains 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 * DomainsStubSettings.Builder domainsSettingsBuilder = DomainsStubSettings.newBuilder(); * domainsSettingsBuilder * .searchDomainsSettings() * .setRetrySettings( - * domainsSettingsBuilder - * .searchDomainsSettings() - * .getRetrySettings() - * .toBuilder() + * domainsSettingsBuilder.searchDomainsSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * DomainsStubSettings domainsSettings = domainsSettingsBuilder.build(); diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/HttpJsonDomainsStub.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/HttpJsonDomainsStub.java index ff46eff7a9ff..aac03e7e4a72 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/HttpJsonDomainsStub.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/HttpJsonDomainsStub.java @@ -179,7 +179,7 @@ public class HttpJsonDomainsStub extends DomainsStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build())) + .toBody("*", request.toBuilder().clearParent().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -254,7 +254,7 @@ public class HttpJsonDomainsStub extends DomainsStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build())) + .toBody("*", request.toBuilder().clearParent().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -364,7 +364,7 @@ public class HttpJsonDomainsStub extends DomainsStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("registration", request.getRegistration())) + .toBody("registration", request.getRegistration(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -404,7 +404,8 @@ public class HttpJsonDomainsStub extends DomainsStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearRegistration().build())) + .toBody( + "*", request.toBuilder().clearRegistration().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -444,7 +445,8 @@ public class HttpJsonDomainsStub extends DomainsStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearRegistration().build())) + .toBody( + "*", request.toBuilder().clearRegistration().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -484,7 +486,8 @@ public class HttpJsonDomainsStub extends DomainsStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearRegistration().build())) + .toBody( + "*", request.toBuilder().clearRegistration().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -523,7 +526,7 @@ public class HttpJsonDomainsStub extends DomainsStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -633,7 +636,8 @@ public class HttpJsonDomainsStub extends DomainsStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearRegistration().build())) + .toBody( + "*", request.toBuilder().clearRegistration().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsClient.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsClient.java index 44ea487de4e5..fbc2a7061685 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsClient.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsClient.java @@ -48,8 +48,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 (DomainsClient domainsClient = DomainsClient.create()) { * LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); * String query = "query107944136"; @@ -86,8 +89,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * DomainsSettings domainsSettings = * DomainsSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -98,8 +104,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * DomainsSettings domainsSettings = DomainsSettings.newBuilder().setEndpoint(myEndpoint).build(); * DomainsClient domainsClient = DomainsClient.create(domainsSettings); * }@@ -108,8 +117,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 * DomainsSettings domainsSettings = * DomainsSettings.newBuilder() * .setTransportChannelProvider( @@ -204,8 +216,11 @@ public final OperationsClient getHttpJsonOperationsClient() { *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 (DomainsClient domainsClient = DomainsClient.create()) { * LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); * String query = "query107944136"; @@ -236,8 +251,11 @@ public final SearchDomainsResponse searchDomains(LocationName location, String q *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 (DomainsClient domainsClient = DomainsClient.create()) { * String location = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * String query = "query107944136"; @@ -265,8 +283,11 @@ public final SearchDomainsResponse searchDomains(String location, String query) *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 (DomainsClient domainsClient = DomainsClient.create()) { * SearchDomainsRequest request = * SearchDomainsRequest.newBuilder() @@ -294,8 +315,11 @@ public final SearchDomainsResponse searchDomains(SearchDomainsRequest 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 (DomainsClient domainsClient = DomainsClient.create()) { * SearchDomainsRequest request = * SearchDomainsRequest.newBuilder() @@ -321,8 +345,11 @@ public final UnaryCallablesearchDo * 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 (DomainsClient domainsClient = DomainsClient.create()) { * LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); * String domainName = "domainName-1244085905"; @@ -354,8 +381,11 @@ public final RetrieveRegisterParametersResponse retrieveRegisterParameters( *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 (DomainsClient domainsClient = DomainsClient.create()) { * String location = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * String domainName = "domainName-1244085905"; @@ -387,8 +417,11 @@ public final RetrieveRegisterParametersResponse retrieveRegisterParameters( *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 (DomainsClient domainsClient = DomainsClient.create()) { * RetrieveRegisterParametersRequest request = * RetrieveRegisterParametersRequest.newBuilder() @@ -416,8 +449,11 @@ public final RetrieveRegisterParametersResponse retrieveRegisterParameters( *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 (DomainsClient domainsClient = DomainsClient.create()) { * RetrieveRegisterParametersRequest request = * RetrieveRegisterParametersRequest.newBuilder() @@ -452,8 +488,11 @@ public final RetrieveRegisterParametersResponse retrieveRegisterParameters( *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 (DomainsClient domainsClient = DomainsClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Registration registration = Registration.newBuilder().build(); @@ -497,8 +536,11 @@ public final OperationFutureregisterDomainAsyn * 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 (DomainsClient domainsClient = DomainsClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * Registration registration = Registration.newBuilder().build(); @@ -542,8 +584,11 @@ public final OperationFutureregisterDomainAsyn * 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 (DomainsClient domainsClient = DomainsClient.create()) { * RegisterDomainRequest request = * RegisterDomainRequest.newBuilder() @@ -582,8 +627,11 @@ public final OperationFutureregisterDomainAsyn * 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 (DomainsClient domainsClient = DomainsClient.create()) { * RegisterDomainRequest request = * RegisterDomainRequest.newBuilder() @@ -622,8 +670,11 @@ public final OperationFutureregisterDomainAsyn * 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 (DomainsClient domainsClient = DomainsClient.create()) { * RegisterDomainRequest request = * RegisterDomainRequest.newBuilder() @@ -654,8 +705,11 @@ public final UnaryCallableregisterDomainCalla * 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 (DomainsClient domainsClient = DomainsClient.create()) { * LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); * String domainName = "domainName-1244085905"; @@ -689,8 +743,11 @@ public final RetrieveTransferParametersResponse retrieveTransferParameters( *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 (DomainsClient domainsClient = DomainsClient.create()) { * String location = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * String domainName = "domainName-1244085905"; @@ -724,8 +781,11 @@ public final RetrieveTransferParametersResponse retrieveTransferParameters( *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 (DomainsClient domainsClient = DomainsClient.create()) { * RetrieveTransferParametersRequest request = * RetrieveTransferParametersRequest.newBuilder() @@ -755,8 +815,11 @@ public final RetrieveTransferParametersResponse retrieveTransferParameters( *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 (DomainsClient domainsClient = DomainsClient.create()) { * RetrieveTransferParametersRequest request = * RetrieveTransferParametersRequest.newBuilder() @@ -798,8 +861,11 @@ public final RetrieveTransferParametersResponse retrieveTransferParameters( *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 (DomainsClient domainsClient = DomainsClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * Registration registration = Registration.newBuilder().build(); @@ -864,8 +930,11 @@ public final OperationFuturetransferDomainAsyn * 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 (DomainsClient domainsClient = DomainsClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * Registration registration = Registration.newBuilder().build(); @@ -930,8 +999,11 @@ public final OperationFuturetransferDomainAsyn * 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 (DomainsClient domainsClient = DomainsClient.create()) { * TransferDomainRequest request = * TransferDomainRequest.newBuilder() @@ -977,8 +1049,11 @@ public final OperationFuturetransferDomainAsyn * 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 (DomainsClient domainsClient = DomainsClient.create()) { * TransferDomainRequest request = * TransferDomainRequest.newBuilder() @@ -1024,8 +1099,11 @@ public final OperationFuturetransferDomainAsyn * 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 (DomainsClient domainsClient = DomainsClient.create()) { * TransferDomainRequest request = * TransferDomainRequest.newBuilder() @@ -1053,8 +1131,11 @@ public final UnaryCallabletransferDomainCalla * 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 (DomainsClient domainsClient = DomainsClient.create()) { * LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); * for (Registration element : domainsClient.listRegistrations(parent).iterateAll()) { @@ -1082,8 +1163,11 @@ public final ListRegistrationsPagedResponse listRegistrations(LocationName paren *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 (DomainsClient domainsClient = DomainsClient.create()) { * String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * for (Registration element : domainsClient.listRegistrations(parent).iterateAll()) { @@ -1109,8 +1193,11 @@ public final ListRegistrationsPagedResponse listRegistrations(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 (DomainsClient domainsClient = DomainsClient.create()) { * ListRegistrationsRequest request = * ListRegistrationsRequest.newBuilder() @@ -1139,8 +1226,11 @@ public final ListRegistrationsPagedResponse listRegistrations(ListRegistrationsR *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 (DomainsClient domainsClient = DomainsClient.create()) { * ListRegistrationsRequest request = * ListRegistrationsRequest.newBuilder() @@ -1170,8 +1260,11 @@ public final ListRegistrationsPagedResponse listRegistrations(ListRegistrationsR *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 (DomainsClient domainsClient = DomainsClient.create()) { * ListRegistrationsRequest request = * ListRegistrationsRequest.newBuilder() @@ -1208,8 +1301,11 @@ public final ListRegistrationsPagedResponse listRegistrations(ListRegistrationsR *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 (DomainsClient domainsClient = DomainsClient.create()) { * RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); * Registration response = domainsClient.getRegistration(name); @@ -1233,8 +1329,11 @@ public final Registration getRegistration(RegistrationName 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 (DomainsClient domainsClient = DomainsClient.create()) { * String name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); * Registration response = domainsClient.getRegistration(name); @@ -1257,8 +1356,11 @@ public final Registration getRegistration(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 (DomainsClient domainsClient = DomainsClient.create()) { * GetRegistrationRequest request = * GetRegistrationRequest.newBuilder() @@ -1282,8 +1384,11 @@ public final Registration getRegistration(GetRegistrationRequest 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 (DomainsClient domainsClient = DomainsClient.create()) { * GetRegistrationRequest request = * GetRegistrationRequest.newBuilder() @@ -1313,8 +1418,11 @@ public final UnaryCallablegetRegistration * 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 (DomainsClient domainsClient = DomainsClient.create()) { * Registration registration = Registration.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1352,8 +1460,11 @@ public final OperationFutureupdateRegistration * 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 (DomainsClient domainsClient = DomainsClient.create()) { * UpdateRegistrationRequest request = * UpdateRegistrationRequest.newBuilder() @@ -1386,8 +1497,11 @@ public final OperationFutureupdateRegistration * 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 (DomainsClient domainsClient = DomainsClient.create()) { * UpdateRegistrationRequest request = * UpdateRegistrationRequest.newBuilder() @@ -1420,8 +1534,11 @@ public final OperationFutureupdateRegistration * 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 (DomainsClient domainsClient = DomainsClient.create()) { * UpdateRegistrationRequest request = * UpdateRegistrationRequest.newBuilder() @@ -1445,8 +1562,11 @@ public final UnaryCallableupdateRegistrat * 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 (DomainsClient domainsClient = DomainsClient.create()) { * RegistrationName registration = * RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); @@ -1485,8 +1605,11 @@ public final OperationFutureconfigureManagemen * 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 (DomainsClient domainsClient = DomainsClient.create()) { * String registration = * RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); @@ -1525,8 +1648,11 @@ public final OperationFutureconfigureManagemen * 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 (DomainsClient domainsClient = DomainsClient.create()) { * ConfigureManagementSettingsRequest request = * ConfigureManagementSettingsRequest.newBuilder() @@ -1554,8 +1680,11 @@ public final OperationFutureconfigureManagemen * 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 (DomainsClient domainsClient = DomainsClient.create()) { * ConfigureManagementSettingsRequest request = * ConfigureManagementSettingsRequest.newBuilder() @@ -1584,8 +1713,11 @@ public final OperationFutureconfigureManagemen * 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 (DomainsClient domainsClient = DomainsClient.create()) { * ConfigureManagementSettingsRequest request = * ConfigureManagementSettingsRequest.newBuilder() @@ -1613,8 +1745,11 @@ public final OperationFutureconfigureManagemen * 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 (DomainsClient domainsClient = DomainsClient.create()) { * RegistrationName registration = * RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); @@ -1654,8 +1789,11 @@ public final OperationFutureconfigureDnsSettin * 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 (DomainsClient domainsClient = DomainsClient.create()) { * String registration = * RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); @@ -1695,8 +1833,11 @@ public final OperationFutureconfigureDnsSettin * 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 (DomainsClient domainsClient = DomainsClient.create()) { * ConfigureDnsSettingsRequest request = * ConfigureDnsSettingsRequest.newBuilder() @@ -1725,8 +1866,11 @@ public final OperationFutureconfigureDnsSettin * 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 (DomainsClient domainsClient = DomainsClient.create()) { * ConfigureDnsSettingsRequest request = * ConfigureDnsSettingsRequest.newBuilder() @@ -1755,8 +1899,11 @@ public final OperationFutureconfigureDnsSettin * 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 (DomainsClient domainsClient = DomainsClient.create()) { * ConfigureDnsSettingsRequest request = * ConfigureDnsSettingsRequest.newBuilder() @@ -1786,8 +1933,11 @@ public final OperationFutureconfigureDnsSettin * 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 (DomainsClient domainsClient = DomainsClient.create()) { * RegistrationName registration = * RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); @@ -1827,8 +1977,11 @@ public final OperationFutureconfigureContactSe * 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 (DomainsClient domainsClient = DomainsClient.create()) { * String registration = * RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); @@ -1868,8 +2021,11 @@ public final OperationFutureconfigureContactSe * 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 (DomainsClient domainsClient = DomainsClient.create()) { * ConfigureContactSettingsRequest request = * ConfigureContactSettingsRequest.newBuilder() @@ -1900,8 +2056,11 @@ public final OperationFutureconfigureContactSe * 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 (DomainsClient domainsClient = DomainsClient.create()) { * ConfigureContactSettingsRequest request = * ConfigureContactSettingsRequest.newBuilder() @@ -1932,8 +2091,11 @@ public final OperationFutureconfigureContactSe * 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 (DomainsClient domainsClient = DomainsClient.create()) { * ConfigureContactSettingsRequest request = * ConfigureContactSettingsRequest.newBuilder() @@ -1969,8 +2131,11 @@ public final OperationFutureconfigureContactSe * 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 (DomainsClient domainsClient = DomainsClient.create()) { * RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); * Registration response = domainsClient.exportRegistrationAsync(name).get(); @@ -2003,8 +2168,11 @@ public final OperationFutureexportRegistration * 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 (DomainsClient domainsClient = DomainsClient.create()) { * String name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); * Registration response = domainsClient.exportRegistrationAsync(name).get(); @@ -2035,8 +2203,11 @@ public final OperationFutureexportRegistration * 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 (DomainsClient domainsClient = DomainsClient.create()) { * ExportRegistrationRequest request = * ExportRegistrationRequest.newBuilder() @@ -2067,8 +2238,11 @@ public final OperationFutureexportRegistration * 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 (DomainsClient domainsClient = DomainsClient.create()) { * ExportRegistrationRequest request = * ExportRegistrationRequest.newBuilder() @@ -2099,8 +2273,11 @@ public final OperationFutureexportRegistration * 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 (DomainsClient domainsClient = DomainsClient.create()) { * ExportRegistrationRequest request = * ExportRegistrationRequest.newBuilder() @@ -2142,8 +2319,11 @@ public final UnaryCallableexportRegistrat * 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 (DomainsClient domainsClient = DomainsClient.create()) { * RegistrationName name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); * domainsClient.deleteRegistrationAsync(name).get(); @@ -2189,8 +2369,11 @@ public final OperationFuturedeleteRegistrationAsync( * 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 (DomainsClient domainsClient = DomainsClient.create()) { * String name = RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); * domainsClient.deleteRegistrationAsync(name).get(); @@ -2233,8 +2416,11 @@ public final OperationFuturedeleteRegistrationAsync(S * 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 (DomainsClient domainsClient = DomainsClient.create()) { * DeleteRegistrationRequest request = * DeleteRegistrationRequest.newBuilder() @@ -2278,8 +2464,11 @@ public final OperationFuturedeleteRegistrationAsync( * 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 (DomainsClient domainsClient = DomainsClient.create()) { * DeleteRegistrationRequest request = * DeleteRegistrationRequest.newBuilder() @@ -2323,8 +2512,11 @@ public final OperationFuturedeleteRegistrationAsync( * 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 (DomainsClient domainsClient = DomainsClient.create()) { * DeleteRegistrationRequest request = * DeleteRegistrationRequest.newBuilder() @@ -2351,8 +2543,11 @@ public final UnaryCallabledeleteRegistrat * 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 (DomainsClient domainsClient = DomainsClient.create()) { * RegistrationName registration = * RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); @@ -2383,8 +2578,11 @@ public final AuthorizationCode retrieveAuthorizationCode(RegistrationName regist *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 (DomainsClient domainsClient = DomainsClient.create()) { * String registration = * RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); @@ -2413,8 +2611,11 @@ public final AuthorizationCode retrieveAuthorizationCode(String registration) { *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 (DomainsClient domainsClient = DomainsClient.create()) { * RetrieveAuthorizationCodeRequest request = * RetrieveAuthorizationCodeRequest.newBuilder() @@ -2444,8 +2645,11 @@ public final AuthorizationCode retrieveAuthorizationCode( *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 (DomainsClient domainsClient = DomainsClient.create()) { * RetrieveAuthorizationCodeRequest request = * RetrieveAuthorizationCodeRequest.newBuilder() @@ -2474,8 +2678,11 @@ public final AuthorizationCode retrieveAuthorizationCode( *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 (DomainsClient domainsClient = DomainsClient.create()) { * RegistrationName registration = * RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]"); @@ -2505,8 +2712,11 @@ public final AuthorizationCode resetAuthorizationCode(RegistrationName registrat *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 (DomainsClient domainsClient = DomainsClient.create()) { * String registration = * RegistrationName.of("[PROJECT]", "[LOCATION]", "[REGISTRATION]").toString(); @@ -2534,8 +2744,11 @@ public final AuthorizationCode resetAuthorizationCode(String registration) { *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 (DomainsClient domainsClient = DomainsClient.create()) { * ResetAuthorizationCodeRequest request = * ResetAuthorizationCodeRequest.newBuilder() @@ -2563,8 +2776,11 @@ public final AuthorizationCode resetAuthorizationCode(ResetAuthorizationCodeRequ *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 (DomainsClient domainsClient = DomainsClient.create()) { * ResetAuthorizationCodeRequest request = * ResetAuthorizationCodeRequest.newBuilder() diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsSettings.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsSettings.java index f7ff28d3a079..44399ccfcad0 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsSettings.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsSettings.java @@ -56,16 +56,16 @@ *For example, to set the total timeout of searchDomains 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 * DomainsSettings.Builder domainsSettingsBuilder = DomainsSettings.newBuilder(); * domainsSettingsBuilder * .searchDomainsSettings() * .setRetrySettings( - * domainsSettingsBuilder - * .searchDomainsSettings() - * .getRetrySettings() - * .toBuilder() + * domainsSettingsBuilder.searchDomainsSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * DomainsSettings domainsSettings = domainsSettingsBuilder.build(); diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/package-info.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/package-info.java index e9f614bd41ba..355487cbabb7 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/package-info.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/package-info.java @@ -27,8 +27,11 @@ *Sample for DomainsClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DomainsClient domainsClient = DomainsClient.create()) { * LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); * String query = "query107944136"; diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/DomainsStubSettings.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/DomainsStubSettings.java index 3ffa9c4856cd..446110990416 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/DomainsStubSettings.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/DomainsStubSettings.java @@ -98,16 +98,16 @@ *For example, to set the total timeout of searchDomains 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 * DomainsStubSettings.Builder domainsSettingsBuilder = DomainsStubSettings.newBuilder(); * domainsSettingsBuilder * .searchDomainsSettings() * .setRetrySettings( - * domainsSettingsBuilder - * .searchDomainsSettings() - * .getRetrySettings() - * .toBuilder() + * domainsSettingsBuilder.searchDomainsSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * DomainsStubSettings domainsSettings = domainsSettingsBuilder.build(); diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/HttpJsonDomainsStub.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/HttpJsonDomainsStub.java index 7c7efb05e014..9abdd14b780d 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/HttpJsonDomainsStub.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/HttpJsonDomainsStub.java @@ -179,7 +179,7 @@ public class HttpJsonDomainsStub extends DomainsStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build())) + .toBody("*", request.toBuilder().clearParent().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -254,7 +254,7 @@ public class HttpJsonDomainsStub extends DomainsStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build())) + .toBody("*", request.toBuilder().clearParent().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -364,7 +364,7 @@ public class HttpJsonDomainsStub extends DomainsStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("registration", request.getRegistration())) + .toBody("registration", request.getRegistration(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -405,7 +405,8 @@ public class HttpJsonDomainsStub extends DomainsStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearRegistration().build())) + .toBody( + "*", request.toBuilder().clearRegistration().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -445,7 +446,8 @@ public class HttpJsonDomainsStub extends DomainsStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearRegistration().build())) + .toBody( + "*", request.toBuilder().clearRegistration().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -485,7 +487,8 @@ public class HttpJsonDomainsStub extends DomainsStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearRegistration().build())) + .toBody( + "*", request.toBuilder().clearRegistration().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -524,7 +527,7 @@ public class HttpJsonDomainsStub extends DomainsStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearName().build())) + .toBody("*", request.toBuilder().clearName().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -634,7 +637,8 @@ public class HttpJsonDomainsStub extends DomainsStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearRegistration().build())) + .toBody( + "*", request.toBuilder().clearRegistration().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/DomainsClient.java b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/DomainsClient.java index 3f12438d972b..9547e499b2a8 100644 --- a/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/DomainsClient.java +++ b/java-domains/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/DomainsClient.java @@ -48,8 +48,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 (DomainsClient domainsClient = DomainsClient.create()) { * LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); * String query = "query107944136"; @@ -86,8 +89,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * DomainsSettings domainsSettings = * DomainsSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -98,8 +104,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * DomainsSettings domainsSettings = DomainsSettings.newBuilder().setEndpoint(myEndpoint).build(); * DomainsClient domainsClient = DomainsClient.create(domainsSettings); * }@@ -108,8 +117,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 * DomainsSettings domainsSettings = * DomainsSettings.newBuilder() * .setTransportChannelProvider( @@ -204,8 +216,11 @@ public final OperationsClient getHttpJsonOperationsClient() { *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 (DomainsClient domainsClient = DomainsClient.create()) { * LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); * String query = "query107944136"; @@ -236,8 +251,11 @@ public final SearchDomainsResponse searchDomains(LocationName location, String q *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 (DomainsClient domainsClient = DomainsClient.create()) { * String location = LocationName.of("[PROJECT]", "[LOCATION]").toString(); * String query = "query107944136"; @@ -265,8 +283,11 @@ public final SearchDomainsResponse searchDomains(String location, String query) *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 (DomainsClient domainsClient = DomainsClient.create()) { * SearchDomainsRequest request = * SearchDomainsRequest.newBuilder() @@ -294,8 +315,11 @@ public final SearchDomainsResponse searchDomains(SearchDomainsRequest 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 (DomainsClient domainsClient = DomainsClient.create()) { * SearchDomainsRequest request = * SearchDomainsRequest.newBuilder() @@ -321,8 +345,11 @@ public final UnaryCallablesearchDo * 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 (DomainsClient domainsClient = DomainsClient.create()) { * LocationName location = LocationName.of("[PROJECT]", "[LOCATION]"); * String domainName = "domainName-1244085905"; @@ -354,8 +381,11 @@ public final RetrieveRegisterParametersResponse retrieveRegisterParameters( *