{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying 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/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/DomainsSettings.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/DomainsSettings.java index e1b7cc49..7c48da40 100644 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/DomainsSettings.java +++ b/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/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/package-info.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/package-info.java index 764b92c2..f55cb7c6 100644 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/package-info.java +++ b/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/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/DomainsStubSettings.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/DomainsStubSettings.java index 77bd965e..a5cee80e 100644 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/DomainsStubSettings.java +++ b/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/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/HttpJsonDomainsStub.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/HttpJsonDomainsStub.java index ff46eff7..aac03e7e 100644 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1/stub/HttpJsonDomainsStub.java +++ b/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/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsClient.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsClient.java index 44ea487d..fbc2a706 100644 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsClient.java +++ b/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/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsSettings.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsSettings.java index f7ff28d3..44399ccf 100644 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/DomainsSettings.java +++ b/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/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/package-info.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/package-info.java index e9f614bd..355487cb 100644 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/package-info.java +++ b/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/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/DomainsStubSettings.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/DomainsStubSettings.java index 3ffa9c48..44611099 100644 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/DomainsStubSettings.java +++ b/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/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/HttpJsonDomainsStub.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/HttpJsonDomainsStub.java index 7c7efb05..9abdd14b 100644 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1alpha2/stub/HttpJsonDomainsStub.java +++ b/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/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/DomainsClient.java b/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/DomainsClient.java index 3f12438d..9547e499 100644 --- a/google-cloud-domains/src/main/java/com/google/cloud/domains/v1beta1/DomainsClient.java +++ b/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) { *