diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompanyServiceClient.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompanyServiceClient.java index baef8877b989..99d82c644390 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompanyServiceClient.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompanyServiceClient.java @@ -42,8 +42,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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); * Company company = Company.newBuilder().build(); @@ -80,8 +83,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 * CompanyServiceSettings companyServiceSettings = * CompanyServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -92,8 +98,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 * CompanyServiceSettings companyServiceSettings = * CompanyServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * CompanyServiceClient companyServiceClient = CompanyServiceClient.create(companyServiceSettings); @@ -103,8 +112,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 * CompanyServiceSettings companyServiceSettings = * CompanyServiceSettings.newBuilder() * .setTransportChannelProvider( @@ -172,8 +184,11 @@ public CompanyServiceStub getStub() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); * Company company = Company.newBuilder().build(); @@ -203,8 +218,11 @@ public final Company createCompany(TenantName parent, Company company) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * String parent = TenantName.of("[PROJECT]", "[TENANT]").toString(); * Company company = Company.newBuilder().build(); @@ -231,8 +249,11 @@ public final Company createCompany(String parent, Company company) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * CreateCompanyRequest request = * CreateCompanyRequest.newBuilder() @@ -257,8 +278,11 @@ public final Company createCompany(CreateCompanyRequest 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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * CreateCompanyRequest request = * CreateCompanyRequest.newBuilder() @@ -282,8 +306,11 @@ public final UnaryCallablecreateCompanyCallable( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * CompanyName name = CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]"); * Company response = companyServiceClient.getCompany(name); @@ -308,8 +335,11 @@ public final Company getCompany(CompanyName 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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * String name = CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]").toString(); * Company response = companyServiceClient.getCompany(name); @@ -333,8 +363,11 @@ public final Company getCompany(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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * GetCompanyRequest request = * GetCompanyRequest.newBuilder() @@ -358,8 +391,11 @@ public final Company getCompany(GetCompanyRequest 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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * GetCompanyRequest request = * GetCompanyRequest.newBuilder() @@ -382,8 +418,11 @@ public final UnaryCallablegetCompanyCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * Company company = Company.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -413,8 +452,11 @@ public final Company updateCompany(Company company, FieldMask updateMask) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * UpdateCompanyRequest request = * UpdateCompanyRequest.newBuilder() @@ -439,8 +481,11 @@ public final Company updateCompany(UpdateCompanyRequest 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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * UpdateCompanyRequest request = * UpdateCompanyRequest.newBuilder() @@ -464,8 +509,11 @@ public final UnaryCallableupdateCompanyCallable( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * CompanyName name = CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]"); * companyServiceClient.deleteCompany(name); @@ -490,8 +538,11 @@ public final void deleteCompany(CompanyName 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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * String name = CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]").toString(); * companyServiceClient.deleteCompany(name); @@ -515,8 +566,11 @@ public final void deleteCompany(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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * DeleteCompanyRequest request = * DeleteCompanyRequest.newBuilder() @@ -540,8 +594,11 @@ public final void deleteCompany(DeleteCompanyRequest 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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * DeleteCompanyRequest request = * DeleteCompanyRequest.newBuilder() @@ -564,8 +621,11 @@ public final UnaryCallabledeleteCompanyCallable() * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); * for (Company element : companyServiceClient.listCompanies(parent).iterateAll()) { @@ -594,8 +654,11 @@ public final ListCompaniesPagedResponse listCompanies(TenantName 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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * String parent = TenantName.of("[PROJECT]", "[TENANT]").toString(); * for (Company element : companyServiceClient.listCompanies(parent).iterateAll()) { @@ -621,8 +684,11 @@ public final ListCompaniesPagedResponse listCompanies(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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * ListCompaniesRequest request = * ListCompaniesRequest.newBuilder() @@ -651,8 +717,11 @@ public final ListCompaniesPagedResponse listCompanies(ListCompaniesRequest reque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * ListCompaniesRequest request = * ListCompaniesRequest.newBuilder() @@ -682,8 +751,11 @@ public final ListCompaniesPagedResponse listCompanies(ListCompaniesRequest reque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * ListCompaniesRequest request = * ListCompaniesRequest.newBuilder() diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompanyServiceSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompanyServiceSettings.java index 2daf5030daaf..45dde7ee77a8 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompanyServiceSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompanyServiceSettings.java @@ -54,17 +54,17 @@ *For example, to set the total timeout of createCompany 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 * CompanyServiceSettings.Builder companyServiceSettingsBuilder = * CompanyServiceSettings.newBuilder(); * companyServiceSettingsBuilder * .createCompanySettings() * .setRetrySettings( - * companyServiceSettingsBuilder - * .createCompanySettings() - * .getRetrySettings() - * .toBuilder() + * companyServiceSettingsBuilder.createCompanySettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * CompanyServiceSettings companyServiceSettings = companyServiceSettingsBuilder.build(); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompletionClient.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompletionClient.java index d2fc16c3319b..e97adc287197 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompletionClient.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompletionClient.java @@ -32,8 +32,11 @@ * calls that map to API methods. Sample code to get started: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CompletionClient completionClient = CompletionClient.create()) { * CompleteQueryRequest request = * CompleteQueryRequest.newBuilder() @@ -76,8 +79,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * CompletionSettings completionSettings = * CompletionSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -88,8 +94,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * CompletionSettings completionSettings = * CompletionSettings.newBuilder().setEndpoint(myEndpoint).build(); * CompletionClient completionClient = CompletionClient.create(completionSettings); @@ -99,8 +108,11 @@ * the wire: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * CompletionSettings completionSettings = * CompletionSettings.newBuilder() * .setTransportChannelProvider( @@ -167,8 +179,11 @@ public CompletionStub getStub() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CompletionClient completionClient = CompletionClient.create()) { * CompleteQueryRequest request = * CompleteQueryRequest.newBuilder() @@ -197,8 +212,11 @@ public final CompleteQueryResponse completeQuery(CompleteQueryRequest 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 (CompletionClient completionClient = CompletionClient.create()) { * CompleteQueryRequest request = * CompleteQueryRequest.newBuilder() diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompletionSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompletionSettings.java index b9dc63593394..a514bf13ad3d 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompletionSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/CompletionSettings.java @@ -50,16 +50,16 @@ *For example, to set the total timeout of completeQuery 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 * CompletionSettings.Builder completionSettingsBuilder = CompletionSettings.newBuilder(); * completionSettingsBuilder * .completeQuerySettings() * .setRetrySettings( - * completionSettingsBuilder - * .completeQuerySettings() - * .getRetrySettings() - * .toBuilder() + * completionSettingsBuilder.completeQuerySettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * CompletionSettings completionSettings = completionSettingsBuilder.build(); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/EventServiceClient.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/EventServiceClient.java index 9810c64fb1c6..f27793160c3e 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/EventServiceClient.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/EventServiceClient.java @@ -32,8 +32,11 @@ * calls that map to API methods. Sample code to get started: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EventServiceClient eventServiceClient = EventServiceClient.create()) { * TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); * ClientEvent clientEvent = ClientEvent.newBuilder().build(); @@ -70,8 +73,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 * EventServiceSettings eventServiceSettings = * EventServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -82,8 +88,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 * EventServiceSettings eventServiceSettings = * EventServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * EventServiceClient eventServiceClient = EventServiceClient.create(eventServiceSettings); @@ -93,8 +102,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 * EventServiceSettings eventServiceSettings = * EventServiceSettings.newBuilder() * .setTransportChannelProvider( @@ -164,8 +176,11 @@ public EventServiceStub getStub() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EventServiceClient eventServiceClient = EventServiceClient.create()) { * TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); * ClientEvent clientEvent = ClientEvent.newBuilder().build(); @@ -199,8 +214,11 @@ public final ClientEvent createClientEvent(TenantName parent, ClientEvent client *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EventServiceClient eventServiceClient = EventServiceClient.create()) { * String parent = TenantName.of("[PROJECT]", "[TENANT]").toString(); * ClientEvent clientEvent = ClientEvent.newBuilder().build(); @@ -231,8 +249,11 @@ public final ClientEvent createClientEvent(String parent, ClientEvent clientEven *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EventServiceClient eventServiceClient = EventServiceClient.create()) { * CreateClientEventRequest request = * CreateClientEventRequest.newBuilder() @@ -260,8 +281,11 @@ public final ClientEvent createClientEvent(CreateClientEventRequest 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 (EventServiceClient eventServiceClient = EventServiceClient.create()) { * CreateClientEventRequest request = * CreateClientEventRequest.newBuilder() diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/EventServiceSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/EventServiceSettings.java index 641f90e1d0c4..15a4619dfcaa 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/EventServiceSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/EventServiceSettings.java @@ -50,16 +50,16 @@ *For example, to set the total timeout of createClientEvent 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 * EventServiceSettings.Builder eventServiceSettingsBuilder = EventServiceSettings.newBuilder(); * eventServiceSettingsBuilder * .createClientEventSettings() * .setRetrySettings( - * eventServiceSettingsBuilder - * .createClientEventSettings() - * .getRetrySettings() - * .toBuilder() + * eventServiceSettingsBuilder.createClientEventSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * EventServiceSettings eventServiceSettings = eventServiceSettingsBuilder.build(); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/JobServiceClient.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/JobServiceClient.java index ee5f42995cc1..9f2adb243417 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/JobServiceClient.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/JobServiceClient.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 (JobServiceClient jobServiceClient = JobServiceClient.create()) { * TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); * Job job = Job.newBuilder().build(); @@ -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 * JobServiceSettings jobServiceSettings = * JobServiceSettings.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 * JobServiceSettings jobServiceSettings = * JobServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * JobServiceClient jobServiceClient = JobServiceClient.create(jobServiceSettings); @@ -109,8 +118,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 * JobServiceSettings jobServiceSettings = * JobServiceSettings.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 (JobServiceClient jobServiceClient = JobServiceClient.create()) { * TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); * Job job = Job.newBuilder().build(); @@ -236,8 +251,11 @@ public final Job createJob(TenantName parent, Job job) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * String parent = TenantName.of("[PROJECT]", "[TENANT]").toString(); * Job job = Job.newBuilder().build(); @@ -265,8 +283,11 @@ public final Job createJob(String parent, Job job) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * CreateJobRequest request = * CreateJobRequest.newBuilder() @@ -293,8 +314,11 @@ public final Job createJob(CreateJobRequest 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 (JobServiceClient jobServiceClient = JobServiceClient.create()) { * CreateJobRequest request = * CreateJobRequest.newBuilder() @@ -318,8 +342,11 @@ public final UnaryCallablecreateJobCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); * Listjobs = new ArrayList<>(); @@ -350,8 +377,11 @@ public final UnaryCallable createJobCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * String parent = TenantName.of("[PROJECT]", "[TENANT]").toString(); * Listjobs = new ArrayList<>(); @@ -379,8 +409,11 @@ public final UnaryCallable createJobCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * BatchCreateJobsRequest request = * BatchCreateJobsRequest.newBuilder() @@ -406,8 +439,11 @@ public final UnaryCallablecreateJobCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * BatchCreateJobsRequest request = * BatchCreateJobsRequest.newBuilder() @@ -434,8 +470,11 @@ public final UnaryCallablecreateJobCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * BatchCreateJobsRequest request = * BatchCreateJobsRequest.newBuilder() @@ -459,8 +498,11 @@ public final UnaryCallablebatchCreateJobsCal * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * JobName name = JobName.of("[PROJECT]", "[TENANT]", "[JOB]"); * Job response = jobServiceClient.getJob(name); @@ -485,8 +527,11 @@ public final Job getJob(JobName 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 (JobServiceClient jobServiceClient = JobServiceClient.create()) { * String name = JobName.of("[PROJECT]", "[TENANT]", "[JOB]").toString(); * Job response = jobServiceClient.getJob(name); @@ -510,8 +555,11 @@ public final Job getJob(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 (JobServiceClient jobServiceClient = JobServiceClient.create()) { * GetJobRequest request = * GetJobRequest.newBuilder() @@ -535,8 +583,11 @@ public final Job getJob(GetJobRequest 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 (JobServiceClient jobServiceClient = JobServiceClient.create()) { * GetJobRequest request = * GetJobRequest.newBuilder() @@ -562,8 +613,11 @@ public final UnaryCallablegetJobCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * Job job = Job.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -596,8 +650,11 @@ public final Job updateJob(Job job, FieldMask updateMask) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * UpdateJobRequest request = * UpdateJobRequest.newBuilder() @@ -625,8 +682,11 @@ public final Job updateJob(UpdateJobRequest 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 (JobServiceClient jobServiceClient = JobServiceClient.create()) { * UpdateJobRequest request = * UpdateJobRequest.newBuilder() @@ -650,8 +710,11 @@ public final UnaryCallableupdateJobCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); * Listjobs = new ArrayList<>(); @@ -682,8 +745,11 @@ public final UnaryCallable updateJobCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * String parent = TenantName.of("[PROJECT]", "[TENANT]").toString(); * Listjobs = new ArrayList<>(); @@ -711,8 +777,11 @@ public final UnaryCallable updateJobCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * BatchUpdateJobsRequest request = * BatchUpdateJobsRequest.newBuilder() @@ -739,8 +808,11 @@ public final UnaryCallableupdateJobCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * BatchUpdateJobsRequest request = * BatchUpdateJobsRequest.newBuilder() @@ -768,8 +840,11 @@ public final UnaryCallableupdateJobCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * BatchUpdateJobsRequest request = * BatchUpdateJobsRequest.newBuilder() @@ -796,8 +871,11 @@ public final UnaryCallablebatchUpdateJobsCal * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * JobName name = JobName.of("[PROJECT]", "[TENANT]", "[JOB]"); * jobServiceClient.deleteJob(name); @@ -824,8 +902,11 @@ public final void deleteJob(JobName 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 (JobServiceClient jobServiceClient = JobServiceClient.create()) { * String name = JobName.of("[PROJECT]", "[TENANT]", "[JOB]").toString(); * jobServiceClient.deleteJob(name); @@ -851,8 +932,11 @@ public final void deleteJob(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 (JobServiceClient jobServiceClient = JobServiceClient.create()) { * DeleteJobRequest request = * DeleteJobRequest.newBuilder() @@ -878,8 +962,11 @@ public final void deleteJob(DeleteJobRequest 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 (JobServiceClient jobServiceClient = JobServiceClient.create()) { * DeleteJobRequest request = * DeleteJobRequest.newBuilder() @@ -902,8 +989,11 @@ public final UnaryCallabledeleteJobCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); * Listnames = new ArrayList<>(); @@ -938,8 +1028,11 @@ public final UnaryCallable deleteJobCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * String parent = TenantName.of("[PROJECT]", "[TENANT]").toString(); * Listnames = new ArrayList<>(); @@ -971,8 +1064,11 @@ public final UnaryCallable deleteJobCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * BatchDeleteJobsRequest request = * BatchDeleteJobsRequest.newBuilder() @@ -998,8 +1094,11 @@ public final UnaryCallabledeleteJobCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * BatchDeleteJobsRequest request = * BatchDeleteJobsRequest.newBuilder() @@ -1026,8 +1125,11 @@ public final UnaryCallabledeleteJobCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * BatchDeleteJobsRequest request = * BatchDeleteJobsRequest.newBuilder() @@ -1051,8 +1153,11 @@ public final UnaryCallablebatchDeleteJobsCal * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); * String filter = "filter-1274492040"; @@ -1103,8 +1208,11 @@ public final ListJobsPagedResponse listJobs(TenantName parent, String filter) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * String parent = TenantName.of("[PROJECT]", "[TENANT]").toString(); * String filter = "filter-1274492040"; @@ -1152,8 +1260,11 @@ public final ListJobsPagedResponse listJobs(String parent, String filter) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * ListJobsRequest request = * ListJobsRequest.newBuilder() @@ -1183,8 +1294,11 @@ public final ListJobsPagedResponse listJobs(ListJobsRequest 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 (JobServiceClient jobServiceClient = JobServiceClient.create()) { * ListJobsRequest request = * ListJobsRequest.newBuilder() @@ -1213,8 +1327,11 @@ public final UnaryCallablelistJobsPaged * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * ListJobsRequest request = * ListJobsRequest.newBuilder() @@ -1254,8 +1371,11 @@ public final UnaryCallablelistJobsCallable() * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * SearchJobsRequest request = * SearchJobsRequest.newBuilder() @@ -1294,8 +1414,11 @@ public final SearchJobsResponse searchJobs(SearchJobsRequest 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 (JobServiceClient jobServiceClient = JobServiceClient.create()) { * SearchJobsRequest request = * SearchJobsRequest.newBuilder() @@ -1339,8 +1462,11 @@ public final UnaryCallablesearchJobsCall * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * SearchJobsRequest request = * SearchJobsRequest.newBuilder() @@ -1384,8 +1510,11 @@ public final SearchJobsResponse searchJobsForAlert(SearchJobsRequest 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 (JobServiceClient jobServiceClient = JobServiceClient.create()) { * SearchJobsRequest request = * SearchJobsRequest.newBuilder() diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/JobServiceSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/JobServiceSettings.java index d162758708d2..c169c28ac1d6 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/JobServiceSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/JobServiceSettings.java @@ -56,16 +56,16 @@ *For example, to set the total timeout of createJob 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 * JobServiceSettings.Builder jobServiceSettingsBuilder = JobServiceSettings.newBuilder(); * jobServiceSettingsBuilder * .createJobSettings() * .setRetrySettings( - * jobServiceSettingsBuilder - * .createJobSettings() - * .getRetrySettings() - * .toBuilder() + * jobServiceSettingsBuilder.createJobSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * JobServiceSettings jobServiceSettings = jobServiceSettingsBuilder.build(); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceClient.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceClient.java index 306e4151b628..f52c014ad94a 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceClient.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceClient.java @@ -42,8 +42,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 (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * Tenant tenant = Tenant.newBuilder().build(); @@ -80,8 +83,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 * TenantServiceSettings tenantServiceSettings = * TenantServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -92,8 +98,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 * TenantServiceSettings tenantServiceSettings = * TenantServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * TenantServiceClient tenantServiceClient = TenantServiceClient.create(tenantServiceSettings); @@ -103,8 +112,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 * TenantServiceSettings tenantServiceSettings = * TenantServiceSettings.newBuilder() * .setTransportChannelProvider( @@ -172,8 +184,11 @@ public TenantServiceStub getStub() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * Tenant tenant = Tenant.newBuilder().build(); @@ -202,8 +217,11 @@ public final Tenant createTenant(ProjectName parent, Tenant tenant) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); * Tenant tenant = Tenant.newBuilder().build(); @@ -229,8 +247,11 @@ public final Tenant createTenant(String parent, Tenant tenant) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { * CreateTenantRequest request = * CreateTenantRequest.newBuilder() @@ -255,8 +276,11 @@ public final Tenant createTenant(CreateTenantRequest 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 (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { * CreateTenantRequest request = * CreateTenantRequest.newBuilder() @@ -280,8 +304,11 @@ public final UnaryCallablecreateTenantCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { * TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); * Tenant response = tenantServiceClient.getTenant(name); @@ -306,8 +333,11 @@ public final Tenant getTenant(TenantName 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 (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { * String name = TenantName.of("[PROJECT]", "[TENANT]").toString(); * Tenant response = tenantServiceClient.getTenant(name); @@ -331,8 +361,11 @@ public final Tenant getTenant(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 (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { * GetTenantRequest request = * GetTenantRequest.newBuilder() @@ -356,8 +389,11 @@ public final Tenant getTenant(GetTenantRequest 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 (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { * GetTenantRequest request = * GetTenantRequest.newBuilder() @@ -380,8 +416,11 @@ public final UnaryCallablegetTenantCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { * Tenant tenant = Tenant.newBuilder().build(); * FieldMask updateMask = FieldMask.newBuilder().build(); @@ -411,8 +450,11 @@ public final Tenant updateTenant(Tenant tenant, FieldMask updateMask) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { * UpdateTenantRequest request = * UpdateTenantRequest.newBuilder() @@ -437,8 +479,11 @@ public final Tenant updateTenant(UpdateTenantRequest 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 (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { * UpdateTenantRequest request = * UpdateTenantRequest.newBuilder() @@ -462,8 +507,11 @@ public final UnaryCallableupdateTenantCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { * TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); * tenantServiceClient.deleteTenant(name); @@ -488,8 +536,11 @@ public final void deleteTenant(TenantName 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 (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { * String name = TenantName.of("[PROJECT]", "[TENANT]").toString(); * tenantServiceClient.deleteTenant(name); @@ -513,8 +564,11 @@ public final void deleteTenant(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 (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { * DeleteTenantRequest request = * DeleteTenantRequest.newBuilder() @@ -538,8 +592,11 @@ public final void deleteTenant(DeleteTenantRequest 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 (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { * DeleteTenantRequest request = * DeleteTenantRequest.newBuilder() @@ -562,8 +619,11 @@ public final UnaryCallabledeleteTenantCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * for (Tenant element : tenantServiceClient.listTenants(parent).iterateAll()) { @@ -591,8 +651,11 @@ public final ListTenantsPagedResponse listTenants(ProjectName 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 (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { * String parent = ProjectName.of("[PROJECT]").toString(); * for (Tenant element : tenantServiceClient.listTenants(parent).iterateAll()) { @@ -617,8 +680,11 @@ public final ListTenantsPagedResponse listTenants(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 (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { * ListTenantsRequest request = * ListTenantsRequest.newBuilder() @@ -646,8 +712,11 @@ public final ListTenantsPagedResponse listTenants(ListTenantsRequest 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 (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { * ListTenantsRequest request = * ListTenantsRequest.newBuilder() @@ -675,8 +744,11 @@ public final ListTenantsPagedResponse listTenants(ListTenantsRequest 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 (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { * ListTenantsRequest request = * ListTenantsRequest.newBuilder() diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceSettings.java index 94b938e890f8..1b6f8b048ead 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/TenantServiceSettings.java @@ -54,16 +54,16 @@ *For example, to set the total timeout of createTenant 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 * TenantServiceSettings.Builder tenantServiceSettingsBuilder = TenantServiceSettings.newBuilder(); * tenantServiceSettingsBuilder * .createTenantSettings() * .setRetrySettings( - * tenantServiceSettingsBuilder - * .createTenantSettings() - * .getRetrySettings() - * .toBuilder() + * tenantServiceSettingsBuilder.createTenantSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * TenantServiceSettings tenantServiceSettings = tenantServiceSettingsBuilder.build(); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/package-info.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/package-info.java index 311131e3bb8e..4081fd4aa243 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/package-info.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/package-info.java @@ -25,8 +25,11 @@ *Sample for CompanyServiceClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); * Company company = Company.newBuilder().build(); @@ -41,8 +44,11 @@ *Sample for CompletionClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CompletionClient completionClient = CompletionClient.create()) { * CompleteQueryRequest request = * CompleteQueryRequest.newBuilder() @@ -63,8 +69,11 @@ *Sample for EventServiceClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EventServiceClient eventServiceClient = EventServiceClient.create()) { * TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); * ClientEvent clientEvent = ClientEvent.newBuilder().build(); @@ -80,8 +89,11 @@ *Sample for JobServiceClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); * Job job = Job.newBuilder().build(); @@ -96,8 +108,11 @@ *Sample for TenantServiceClient: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * Tenant tenant = Tenant.newBuilder().build(); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompanyServiceStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompanyServiceStubSettings.java index 436bd1a754ff..6cb7f1e66943 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompanyServiceStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompanyServiceStubSettings.java @@ -78,17 +78,17 @@ *For example, to set the total timeout of createCompany 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 * CompanyServiceStubSettings.Builder companyServiceSettingsBuilder = * CompanyServiceStubSettings.newBuilder(); * companyServiceSettingsBuilder * .createCompanySettings() * .setRetrySettings( - * companyServiceSettingsBuilder - * .createCompanySettings() - * .getRetrySettings() - * .toBuilder() + * companyServiceSettingsBuilder.createCompanySettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * CompanyServiceStubSettings companyServiceSettings = companyServiceSettingsBuilder.build(); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompletionStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompletionStubSettings.java index 85325fb00e0d..45a7ab33de7a 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompletionStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/CompletionStubSettings.java @@ -63,16 +63,16 @@ *For example, to set the total timeout of completeQuery 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 * CompletionStubSettings.Builder completionSettingsBuilder = CompletionStubSettings.newBuilder(); * completionSettingsBuilder * .completeQuerySettings() * .setRetrySettings( - * completionSettingsBuilder - * .completeQuerySettings() - * .getRetrySettings() - * .toBuilder() + * completionSettingsBuilder.completeQuerySettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * CompletionStubSettings completionSettings = completionSettingsBuilder.build(); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/EventServiceStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/EventServiceStubSettings.java index 11e920d73212..1e2d7e09e5d5 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/EventServiceStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/EventServiceStubSettings.java @@ -63,17 +63,17 @@ *For example, to set the total timeout of createClientEvent 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 * EventServiceStubSettings.Builder eventServiceSettingsBuilder = * EventServiceStubSettings.newBuilder(); * eventServiceSettingsBuilder * .createClientEventSettings() * .setRetrySettings( - * eventServiceSettingsBuilder - * .createClientEventSettings() - * .getRetrySettings() - * .toBuilder() + * eventServiceSettingsBuilder.createClientEventSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * EventServiceStubSettings eventServiceSettings = eventServiceSettingsBuilder.build(); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonCompanyServiceStub.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonCompanyServiceStub.java index 9e7d2009972a..bc881a79630b 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonCompanyServiceStub.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonCompanyServiceStub.java @@ -84,7 +84,8 @@ public class HttpJsonCompanyServiceStub extends CompanyServiceStub { }) .setRequestBodyExtractor( request -> - ProtoRestSerializer.create().toBody("company", request.getCompany())) + ProtoRestSerializer.create() + .toBody("company", request.getCompany(), false)) .build()) .setResponseParser( ProtoMessageResponseParser.newBuilder() @@ -153,7 +154,8 @@ public class HttpJsonCompanyServiceStub extends CompanyServiceStub { }) .setRequestBodyExtractor( request -> - ProtoRestSerializer.create().toBody("company", request.getCompany())) + ProtoRestSerializer.create() + .toBody("company", request.getCompany(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonEventServiceStub.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonEventServiceStub.java index c99a590d27a5..6e9af128b759 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonEventServiceStub.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonEventServiceStub.java @@ -77,7 +77,7 @@ public class HttpJsonEventServiceStub extends EventServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("clientEvent", request.getClientEvent())) + .toBody("clientEvent", request.getClientEvent(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonJobServiceStub.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonJobServiceStub.java index a5ff3c6d24c3..5276784374af 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonJobServiceStub.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonJobServiceStub.java @@ -101,7 +101,8 @@ public class HttpJsonJobServiceStub extends JobServiceStub { return fields; }) .setRequestBodyExtractor( - request -> ProtoRestSerializer.create().toBody("job", request.getJob())) + request -> + ProtoRestSerializer.create().toBody("job", request.getJob(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -137,7 +138,7 @@ public class HttpJsonJobServiceStub extends JobServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build())) + .toBody("*", request.toBuilder().clearParent().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -206,7 +207,8 @@ public class HttpJsonJobServiceStub extends JobServiceStub { return fields; }) .setRequestBodyExtractor( - request -> ProtoRestSerializer.create().toBody("job", request.getJob())) + request -> + ProtoRestSerializer.create().toBody("job", request.getJob(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -242,7 +244,7 @@ public class HttpJsonJobServiceStub extends JobServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build())) + .toBody("*", request.toBuilder().clearParent().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -313,7 +315,7 @@ public class HttpJsonJobServiceStub extends JobServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build())) + .toBody("*", request.toBuilder().clearParent().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -389,7 +391,7 @@ public class HttpJsonJobServiceStub extends JobServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build())) + .toBody("*", request.toBuilder().clearParent().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -425,7 +427,7 @@ public class HttpJsonJobServiceStub extends JobServiceStub { .setRequestBodyExtractor( request -> ProtoRestSerializer.create() - .toBody("*", request.toBuilder().clearParent().build())) + .toBody("*", request.toBuilder().clearParent().build(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonTenantServiceStub.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonTenantServiceStub.java index 6ca87cfae8e7..a465aba48879 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonTenantServiceStub.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/HttpJsonTenantServiceStub.java @@ -84,7 +84,8 @@ public class HttpJsonTenantServiceStub extends TenantServiceStub { }) .setRequestBodyExtractor( request -> - ProtoRestSerializer.create().toBody("tenant", request.getTenant())) + ProtoRestSerializer.create() + .toBody("tenant", request.getTenant(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() @@ -153,7 +154,8 @@ public class HttpJsonTenantServiceStub extends TenantServiceStub { }) .setRequestBodyExtractor( request -> - ProtoRestSerializer.create().toBody("tenant", request.getTenant())) + ProtoRestSerializer.create() + .toBody("tenant", request.getTenant(), false)) .build()) .setResponseParser( ProtoMessageResponseParser. newBuilder() diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/JobServiceStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/JobServiceStubSettings.java index 7b8475d83af8..047275f9912c 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/JobServiceStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/JobServiceStubSettings.java @@ -92,16 +92,16 @@ * For example, to set the total timeout of createJob 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 * JobServiceStubSettings.Builder jobServiceSettingsBuilder = JobServiceStubSettings.newBuilder(); * jobServiceSettingsBuilder * .createJobSettings() * .setRetrySettings( - * jobServiceSettingsBuilder - * .createJobSettings() - * .getRetrySettings() - * .toBuilder() + * jobServiceSettingsBuilder.createJobSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * JobServiceStubSettings jobServiceSettings = jobServiceSettingsBuilder.build(); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/TenantServiceStubSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/TenantServiceStubSettings.java index 717718b9ca32..2ad192db45bc 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/TenantServiceStubSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4/stub/TenantServiceStubSettings.java @@ -78,17 +78,17 @@ *For example, to set the total timeout of createTenant 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 * TenantServiceStubSettings.Builder tenantServiceSettingsBuilder = * TenantServiceStubSettings.newBuilder(); * tenantServiceSettingsBuilder * .createTenantSettings() * .setRetrySettings( - * tenantServiceSettingsBuilder - * .createTenantSettings() - * .getRetrySettings() - * .toBuilder() + * tenantServiceSettingsBuilder.createTenantSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * TenantServiceStubSettings tenantServiceSettings = tenantServiceSettingsBuilder.build(); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java index 2c5c6c57fecc..d432eaac8238 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceClient.java @@ -42,8 +42,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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * Company company = Company.newBuilder().build(); @@ -80,8 +83,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 * CompanyServiceSettings companyServiceSettings = * CompanyServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -92,8 +98,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 * CompanyServiceSettings companyServiceSettings = * CompanyServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * CompanyServiceClient companyServiceClient = CompanyServiceClient.create(companyServiceSettings); @@ -103,8 +112,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 * CompanyServiceSettings companyServiceSettings = * CompanyServiceSettings.newBuilder() * .setTransportChannelProvider( @@ -173,8 +185,11 @@ public CompanyServiceStub getStub() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * Company company = Company.newBuilder().build(); @@ -205,8 +220,11 @@ public final Company createCompany(ProjectName parent, Company company) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); * Company company = Company.newBuilder().build(); @@ -237,8 +255,11 @@ public final Company createCompany(TenantName parent, Company company) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * String parent = TenantName.of("[PROJECT]", "[TENANT]").toString(); * Company company = Company.newBuilder().build(); @@ -266,8 +287,11 @@ public final Company createCompany(String parent, Company company) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * CreateCompanyRequest request = * CreateCompanyRequest.newBuilder() @@ -292,8 +316,11 @@ public final Company createCompany(CreateCompanyRequest 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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * CreateCompanyRequest request = * CreateCompanyRequest.newBuilder() @@ -317,8 +344,11 @@ public final UnaryCallablecreateCompanyCallable( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * CompanyName name = * CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]"); @@ -346,8 +376,11 @@ public final Company getCompany(CompanyName 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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * String name = * CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]").toString(); @@ -374,8 +407,11 @@ public final Company getCompany(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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * GetCompanyRequest request = * GetCompanyRequest.newBuilder() @@ -401,8 +437,11 @@ public final Company getCompany(GetCompanyRequest 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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * GetCompanyRequest request = * GetCompanyRequest.newBuilder() @@ -427,8 +466,11 @@ public final UnaryCallablegetCompanyCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * Company company = Company.newBuilder().build(); * Company response = companyServiceClient.updateCompany(company); @@ -450,8 +492,11 @@ public final Company updateCompany(Company company) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * UpdateCompanyRequest request = * UpdateCompanyRequest.newBuilder() @@ -476,8 +521,11 @@ public final Company updateCompany(UpdateCompanyRequest 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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * UpdateCompanyRequest request = * UpdateCompanyRequest.newBuilder() @@ -501,8 +549,11 @@ public final UnaryCallableupdateCompanyCallable( * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * CompanyName name = * CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]"); @@ -530,8 +581,11 @@ public final void deleteCompany(CompanyName 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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * String name = * CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]").toString(); @@ -558,8 +612,11 @@ public final void deleteCompany(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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * DeleteCompanyRequest request = * DeleteCompanyRequest.newBuilder() @@ -585,8 +642,11 @@ public final void deleteCompany(DeleteCompanyRequest 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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * DeleteCompanyRequest request = * DeleteCompanyRequest.newBuilder() @@ -611,8 +671,11 @@ public final UnaryCallabledeleteCompanyCallable() * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * for (Company element : companyServiceClient.listCompanies(parent).iterateAll()) { @@ -643,8 +706,11 @@ public final ListCompaniesPagedResponse listCompanies(ProjectName 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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); * for (Company element : companyServiceClient.listCompanies(parent).iterateAll()) { @@ -675,8 +741,11 @@ public final ListCompaniesPagedResponse listCompanies(TenantName 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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * String parent = TenantName.of("[PROJECT]", "[TENANT]").toString(); * for (Company element : companyServiceClient.listCompanies(parent).iterateAll()) { @@ -704,8 +773,11 @@ public final ListCompaniesPagedResponse listCompanies(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 (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * ListCompaniesRequest request = * ListCompaniesRequest.newBuilder() @@ -734,8 +806,11 @@ public final ListCompaniesPagedResponse listCompanies(ListCompaniesRequest reque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * ListCompaniesRequest request = * ListCompaniesRequest.newBuilder() @@ -765,8 +840,11 @@ public final ListCompaniesPagedResponse listCompanies(ListCompaniesRequest reque *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { * ListCompaniesRequest request = * ListCompaniesRequest.newBuilder() diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceSettings.java index 95aa47adead6..1f2bcc67d53a 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceSettings.java @@ -54,17 +54,17 @@ *For example, to set the total timeout of createCompany 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 * CompanyServiceSettings.Builder companyServiceSettingsBuilder = * CompanyServiceSettings.newBuilder(); * companyServiceSettingsBuilder * .createCompanySettings() * .setRetrySettings( - * companyServiceSettingsBuilder - * .createCompanySettings() - * .getRetrySettings() - * .toBuilder() + * companyServiceSettingsBuilder.createCompanySettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * CompanyServiceSettings companyServiceSettings = companyServiceSettingsBuilder.build(); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionClient.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionClient.java index 8bf186b8f421..b08ac7d5b21d 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionClient.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionClient.java @@ -33,8 +33,11 @@ * calls that map to API methods. Sample code to get started: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CompletionClient completionClient = CompletionClient.create()) { * CompleteQueryRequest request = * CompleteQueryRequest.newBuilder() @@ -79,8 +82,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 * CompletionSettings completionSettings = * CompletionSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -91,8 +97,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 * CompletionSettings completionSettings = * CompletionSettings.newBuilder().setEndpoint(myEndpoint).build(); * CompletionClient completionClient = CompletionClient.create(completionSettings); @@ -102,8 +111,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 * CompletionSettings completionSettings = * CompletionSettings.newBuilder() * .setTransportChannelProvider( @@ -171,8 +183,11 @@ public CompletionStub getStub() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (CompletionClient completionClient = CompletionClient.create()) { * CompleteQueryRequest request = * CompleteQueryRequest.newBuilder() @@ -203,8 +218,11 @@ public final CompleteQueryResponse completeQuery(CompleteQueryRequest 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 (CompletionClient completionClient = CompletionClient.create()) { * CompleteQueryRequest request = * CompleteQueryRequest.newBuilder() diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionSettings.java index 3fcbf80e37ae..21d25617a9eb 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/CompletionSettings.java @@ -50,16 +50,16 @@ *For example, to set the total timeout of completeQuery 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 * CompletionSettings.Builder completionSettingsBuilder = CompletionSettings.newBuilder(); * completionSettingsBuilder * .completeQuerySettings() * .setRetrySettings( - * completionSettingsBuilder - * .completeQuerySettings() - * .getRetrySettings() - * .toBuilder() + * completionSettingsBuilder.completeQuerySettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * CompletionSettings completionSettings = completionSettingsBuilder.build(); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceClient.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceClient.java index 214aeb947b57..f46a38018ec4 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceClient.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceClient.java @@ -33,8 +33,11 @@ * calls that map to API methods. Sample code to get started: * *{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EventServiceClient eventServiceClient = EventServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * ClientEvent clientEvent = ClientEvent.newBuilder().build(); @@ -71,8 +74,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 * EventServiceSettings eventServiceSettings = * EventServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -83,8 +89,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 * EventServiceSettings eventServiceSettings = * EventServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * EventServiceClient eventServiceClient = EventServiceClient.create(eventServiceSettings); @@ -94,8 +103,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 * EventServiceSettings eventServiceSettings = * EventServiceSettings.newBuilder() * .setTransportChannelProvider( @@ -166,8 +178,11 @@ public EventServiceStub getStub() { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EventServiceClient eventServiceClient = EventServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * ClientEvent clientEvent = ClientEvent.newBuilder().build(); @@ -202,8 +217,11 @@ public final ClientEvent createClientEvent(ProjectName parent, ClientEvent clien *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EventServiceClient eventServiceClient = EventServiceClient.create()) { * TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); * ClientEvent clientEvent = ClientEvent.newBuilder().build(); @@ -238,8 +256,11 @@ public final ClientEvent createClientEvent(TenantName parent, ClientEvent client *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EventServiceClient eventServiceClient = EventServiceClient.create()) { * String parent = TenantName.of("[PROJECT]", "[TENANT]").toString(); * ClientEvent clientEvent = ClientEvent.newBuilder().build(); @@ -271,8 +292,11 @@ public final ClientEvent createClientEvent(String parent, ClientEvent clientEven *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (EventServiceClient eventServiceClient = EventServiceClient.create()) { * CreateClientEventRequest request = * CreateClientEventRequest.newBuilder() @@ -300,8 +324,11 @@ public final ClientEvent createClientEvent(CreateClientEventRequest 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 (EventServiceClient eventServiceClient = EventServiceClient.create()) { * CreateClientEventRequest request = * CreateClientEventRequest.newBuilder() diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceSettings.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceSettings.java index 8a39329b8326..cc719d0f4f37 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceSettings.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/EventServiceSettings.java @@ -50,16 +50,16 @@ *For example, to set the total timeout of createClientEvent 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 * EventServiceSettings.Builder eventServiceSettingsBuilder = EventServiceSettings.newBuilder(); * eventServiceSettingsBuilder * .createClientEventSettings() * .setRetrySettings( - * eventServiceSettingsBuilder - * .createClientEventSettings() - * .getRetrySettings() - * .toBuilder() + * eventServiceSettingsBuilder.createClientEventSettings().getRetrySettings().toBuilder() * .setTotalTimeout(Duration.ofSeconds(30)) * .build()); * EventServiceSettings eventServiceSettings = eventServiceSettingsBuilder.build(); diff --git a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceClient.java b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceClient.java index e21ef9bfebca..8b1805a9093a 100644 --- a/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceClient.java +++ b/java-talent/google-cloud-talent/src/main/java/com/google/cloud/talent/v4beta1/JobServiceClient.java @@ -47,8 +47,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 (JobServiceClient jobServiceClient = JobServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * Job job = Job.newBuilder().build(); @@ -85,8 +88,11 @@ *To customize credentials: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * JobServiceSettings jobServiceSettings = * JobServiceSettings.newBuilder() * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) @@ -97,8 +103,11 @@ *To customize the endpoint: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * JobServiceSettings jobServiceSettings = * JobServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); * JobServiceClient jobServiceClient = JobServiceClient.create(jobServiceSettings); @@ -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 * JobServiceSettings jobServiceSettings = * JobServiceSettings.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 (JobServiceClient jobServiceClient = JobServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * Job job = Job.newBuilder().build(); @@ -237,8 +252,11 @@ public final Job createJob(ProjectName parent, Job job) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); * Job job = Job.newBuilder().build(); @@ -271,8 +289,11 @@ public final Job createJob(TenantName parent, Job job) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * String parent = TenantName.of("[PROJECT]", "[TENANT]").toString(); * Job job = Job.newBuilder().build(); @@ -301,8 +322,11 @@ public final Job createJob(String parent, Job job) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * CreateJobRequest request = * CreateJobRequest.newBuilder() @@ -329,8 +353,11 @@ public final Job createJob(CreateJobRequest 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 (JobServiceClient jobServiceClient = JobServiceClient.create()) { * CreateJobRequest request = * CreateJobRequest.newBuilder() @@ -354,8 +381,11 @@ public final UnaryCallablecreateJobCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * Listjobs = new ArrayList<>(); @@ -387,8 +417,11 @@ public final OperationFuture batchCr * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); * Listjobs = new ArrayList<>(); @@ -420,8 +453,11 @@ public final OperationFuture batchCr * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * String parent = TenantName.of("[PROJECT]", "[TENANT]").toString(); * Listjobs = new ArrayList<>(); @@ -450,8 +486,11 @@ public final OperationFuture batchCr * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * BatchCreateJobsRequest request = * BatchCreateJobsRequest.newBuilder() @@ -477,8 +516,11 @@ public final OperationFuturebatchCr * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * BatchCreateJobsRequest request = * BatchCreateJobsRequest.newBuilder() @@ -504,8 +546,11 @@ public final OperationFuturebatchCr * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * BatchCreateJobsRequest request = * BatchCreateJobsRequest.newBuilder() @@ -529,8 +574,11 @@ public final UnaryCallablebatchCreateJobsCal * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * JobName name = JobName.ofProjectTenantJobName("[PROJECT]", "[TENANT]", "[JOB]"); * Job response = jobServiceClient.getJob(name); @@ -557,8 +605,11 @@ public final Job getJob(JobName 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 (JobServiceClient jobServiceClient = JobServiceClient.create()) { * String name = JobName.ofProjectTenantJobName("[PROJECT]", "[TENANT]", "[JOB]").toString(); * Job response = jobServiceClient.getJob(name); @@ -584,8 +635,11 @@ public final Job getJob(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 (JobServiceClient jobServiceClient = JobServiceClient.create()) { * GetJobRequest request = * GetJobRequest.newBuilder() @@ -609,8 +663,11 @@ public final Job getJob(GetJobRequest 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 (JobServiceClient jobServiceClient = JobServiceClient.create()) { * GetJobRequest request = * GetJobRequest.newBuilder() @@ -636,8 +693,11 @@ public final UnaryCallablegetJobCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * Job job = Job.newBuilder().build(); * Job response = jobServiceClient.updateJob(job); @@ -662,8 +722,11 @@ public final Job updateJob(Job job) { *Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * UpdateJobRequest request = * UpdateJobRequest.newBuilder() @@ -691,8 +754,11 @@ public final Job updateJob(UpdateJobRequest 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 (JobServiceClient jobServiceClient = JobServiceClient.create()) { * UpdateJobRequest request = * UpdateJobRequest.newBuilder() @@ -716,8 +782,11 @@ public final UnaryCallableupdateJobCallable() { * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * ProjectName parent = ProjectName.of("[PROJECT]"); * Listjobs = new ArrayList<>(); @@ -749,8 +818,11 @@ public final OperationFuture batchUp * Sample code: * *
{@code - * // This snippet has been automatically generated for illustrative purposes only. - * // It may require modifications to work in your environment. + * // This snippet has been automatically generated and should be regarded as a code template only. + * // It will require modifications to work: + * // - It may require correct/in-range values for request initialization. + * // - It may require specifying regional endpoints when creating the service client as shown in + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (JobServiceClient jobServiceClient = JobServiceClient.create()) { * TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); * Listjobs = new ArrayList<>(); @@ -782,8 +854,11 @@ public final OperationFuture