diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/create/SyncCreateSetCredentialsProvider.java b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/create/SyncCreateSetCredentialsProvider.java index fd35b55ae1f..a4fd1c81a54 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library CompanyServiceSettings companyServiceSettings = CompanyServiceSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/create/SyncCreateSetCredentialsProvider1.java b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/create/SyncCreateSetCredentialsProvider1.java index 856573185aa..bf7d633d2de 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library CompanyServiceSettings companyServiceSettings = CompanyServiceSettings.newBuilder() .setTransportChannelProvider( diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/create/SyncCreateSetEndpoint.java b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/create/SyncCreateSetEndpoint.java index 6dce1bb2f27..92667206583 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/create/SyncCreateSetEndpoint.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/create/SyncCreateSetEndpoint.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library CompanyServiceSettings companyServiceSettings = CompanyServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); CompanyServiceClient companyServiceClient = CompanyServiceClient.create(companyServiceSettings); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/createcompany/AsyncCreateCompany.java b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/createcompany/AsyncCreateCompany.java index 908395122d9..5449a967379 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/createcompany/AsyncCreateCompany.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/createcompany/AsyncCreateCompany.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateCompany() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/createcompany/SyncCreateCompany.java b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/createcompany/SyncCreateCompany.java index 34c05f0cc7f..7b82118bf23 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/createcompany/SyncCreateCompany.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/createcompany/SyncCreateCompany.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateCompany() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/createcompany/SyncCreateCompanyStringCompany.java b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/createcompany/SyncCreateCompanyStringCompany.java index 4b00f714379..81772999256 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/createcompany/SyncCreateCompanyStringCompany.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/createcompany/SyncCreateCompanyStringCompany.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateCompanyStringCompany() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/createcompany/SyncCreateCompanyTenantnameCompany.java b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/createcompany/SyncCreateCompanyTenantnameCompany.java index 7da3d337e8a..5e936a4c7e3 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/createcompany/SyncCreateCompanyTenantnameCompany.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/createcompany/SyncCreateCompanyTenantnameCompany.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateCompanyTenantnameCompany() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/deletecompany/AsyncDeleteCompany.java b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/deletecompany/AsyncDeleteCompany.java index a79de6cdef4..ff8ebed3e94 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/deletecompany/AsyncDeleteCompany.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/deletecompany/AsyncDeleteCompany.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteCompany() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/deletecompany/SyncDeleteCompany.java b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/deletecompany/SyncDeleteCompany.java index 99425afbcee..8f4a0b643b3 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/deletecompany/SyncDeleteCompany.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/deletecompany/SyncDeleteCompany.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteCompany() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/deletecompany/SyncDeleteCompanyCompanyname.java b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/deletecompany/SyncDeleteCompanyCompanyname.java index dfa9a5cdce3..60e85f04158 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/deletecompany/SyncDeleteCompanyCompanyname.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/deletecompany/SyncDeleteCompanyCompanyname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteCompanyCompanyname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/deletecompany/SyncDeleteCompanyString.java b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/deletecompany/SyncDeleteCompanyString.java index e6e2406edc2..8050197e220 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/deletecompany/SyncDeleteCompanyString.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/deletecompany/SyncDeleteCompanyString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteCompanyString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/getcompany/AsyncGetCompany.java b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/getcompany/AsyncGetCompany.java index 0f9d511752e..c54fda6e46b 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/getcompany/AsyncGetCompany.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/getcompany/AsyncGetCompany.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetCompany() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/getcompany/SyncGetCompany.java b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/getcompany/SyncGetCompany.java index 7a3266831b3..86a4ba56d6c 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/getcompany/SyncGetCompany.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/getcompany/SyncGetCompany.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetCompany() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/getcompany/SyncGetCompanyCompanyname.java b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/getcompany/SyncGetCompanyCompanyname.java index 34eca71df7d..662b80d8472 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/getcompany/SyncGetCompanyCompanyname.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/getcompany/SyncGetCompanyCompanyname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetCompanyCompanyname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/getcompany/SyncGetCompanyString.java b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/getcompany/SyncGetCompanyString.java index 64ccf90ec62..11875c699da 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/getcompany/SyncGetCompanyString.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/getcompany/SyncGetCompanyString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetCompanyString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/listcompanies/AsyncListCompanies.java b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/listcompanies/AsyncListCompanies.java index d5e735ef76e..10f1e9a9ef9 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/listcompanies/AsyncListCompanies.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/listcompanies/AsyncListCompanies.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListCompanies() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/listcompanies/AsyncListCompaniesPaged.java b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/listcompanies/AsyncListCompaniesPaged.java index 21de10b3170..4176981aaef 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/listcompanies/AsyncListCompaniesPaged.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/listcompanies/AsyncListCompaniesPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListCompaniesPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/listcompanies/SyncListCompanies.java b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/listcompanies/SyncListCompanies.java index 6750bdf515d..f6b2aa3f73e 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/listcompanies/SyncListCompanies.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/listcompanies/SyncListCompanies.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListCompanies() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/listcompanies/SyncListCompaniesString.java b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/listcompanies/SyncListCompaniesString.java index cba947d671c..70665a7a2b9 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/listcompanies/SyncListCompaniesString.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/listcompanies/SyncListCompaniesString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListCompaniesString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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()) { diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/listcompanies/SyncListCompaniesTenantname.java b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/listcompanies/SyncListCompaniesTenantname.java index f7e134c958c..4f446d1c506 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/listcompanies/SyncListCompaniesTenantname.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/listcompanies/SyncListCompaniesTenantname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListCompaniesTenantname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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()) { diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/updatecompany/AsyncUpdateCompany.java b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/updatecompany/AsyncUpdateCompany.java index d389d25423a..767af8c977d 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/updatecompany/AsyncUpdateCompany.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/updatecompany/AsyncUpdateCompany.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateCompany() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/updatecompany/SyncUpdateCompany.java b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/updatecompany/SyncUpdateCompany.java index 817ba73d759..c5f842b7a1d 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/updatecompany/SyncUpdateCompany.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/updatecompany/SyncUpdateCompany.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateCompany() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/updatecompany/SyncUpdateCompanyCompanyFieldmask.java b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/updatecompany/SyncUpdateCompanyCompanyFieldmask.java index dfbeecc0f33..78233cf38c2 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/updatecompany/SyncUpdateCompanyCompanyFieldmask.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/updatecompany/SyncUpdateCompanyCompanyFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateCompanyCompanyFieldmask() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/companyservicesettings/createcompany/SyncCreateCompany.java b/talent/snippets/generated/com/google/cloud/talent/v4/companyservicesettings/createcompany/SyncCreateCompany.java index 0bcc585a60f..1d2f174d470 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/companyservicesettings/createcompany/SyncCreateCompany.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyservicesettings/createcompany/SyncCreateCompany.java @@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception { } public static void syncCreateCompany() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require 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/talent/snippets/generated/com/google/cloud/talent/v4/completionclient/completequery/AsyncCompleteQuery.java b/talent/snippets/generated/com/google/cloud/talent/v4/completionclient/completequery/AsyncCompleteQuery.java index 3c07042e90a..41053a5c904 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/completionclient/completequery/AsyncCompleteQuery.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/completionclient/completequery/AsyncCompleteQuery.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCompleteQuery() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4/completionclient/completequery/SyncCompleteQuery.java b/talent/snippets/generated/com/google/cloud/talent/v4/completionclient/completequery/SyncCompleteQuery.java index 612e547facd..28c66a6a97b 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/completionclient/completequery/SyncCompleteQuery.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/completionclient/completequery/SyncCompleteQuery.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void syncCompleteQuery() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4/completionclient/create/SyncCreateSetCredentialsProvider.java b/talent/snippets/generated/com/google/cloud/talent/v4/completionclient/create/SyncCreateSetCredentialsProvider.java index de0f37279ed..0448e45a05c 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/completionclient/create/SyncCreateSetCredentialsProvider.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/completionclient/create/SyncCreateSetCredentialsProvider.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library CompletionSettings completionSettings = CompletionSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/completionclient/create/SyncCreateSetCredentialsProvider1.java b/talent/snippets/generated/com/google/cloud/talent/v4/completionclient/create/SyncCreateSetCredentialsProvider1.java index 72c48573c2f..de630cbd0d7 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/completionclient/create/SyncCreateSetCredentialsProvider1.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/completionclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library CompletionSettings completionSettings = CompletionSettings.newBuilder() .setTransportChannelProvider( diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/completionclient/create/SyncCreateSetEndpoint.java b/talent/snippets/generated/com/google/cloud/talent/v4/completionclient/create/SyncCreateSetEndpoint.java index 8c7b4d75cbb..660b234d9f6 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/completionclient/create/SyncCreateSetEndpoint.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/completionclient/create/SyncCreateSetEndpoint.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library CompletionSettings completionSettings = CompletionSettings.newBuilder().setEndpoint(myEndpoint).build(); CompletionClient completionClient = CompletionClient.create(completionSettings); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/completionsettings/completequery/SyncCompleteQuery.java b/talent/snippets/generated/com/google/cloud/talent/v4/completionsettings/completequery/SyncCompleteQuery.java index 6d5b481a291..56011c35cbd 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/completionsettings/completequery/SyncCompleteQuery.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/completionsettings/completequery/SyncCompleteQuery.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncCompleteQuery() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require 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/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/create/SyncCreateSetCredentialsProvider.java b/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/create/SyncCreateSetCredentialsProvider.java index 481cdb74df4..ef0e191da21 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library EventServiceSettings eventServiceSettings = EventServiceSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/create/SyncCreateSetCredentialsProvider1.java b/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/create/SyncCreateSetCredentialsProvider1.java index 53ffbe4fc05..3b28d803599 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library EventServiceSettings eventServiceSettings = EventServiceSettings.newBuilder() .setTransportChannelProvider( diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/create/SyncCreateSetEndpoint.java b/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/create/SyncCreateSetEndpoint.java index 3a4791e1b7c..c03cef53760 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/create/SyncCreateSetEndpoint.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/create/SyncCreateSetEndpoint.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library EventServiceSettings eventServiceSettings = EventServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); EventServiceClient eventServiceClient = EventServiceClient.create(eventServiceSettings); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/createclientevent/AsyncCreateClientEvent.java b/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/createclientevent/AsyncCreateClientEvent.java index 75e3ca5a94c..9ba0df639e4 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/createclientevent/AsyncCreateClientEvent.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/createclientevent/AsyncCreateClientEvent.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateClientEvent() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/createclientevent/SyncCreateClientEvent.java b/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/createclientevent/SyncCreateClientEvent.java index 7f2bc2d6a84..a15505eac2c 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/createclientevent/SyncCreateClientEvent.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/createclientevent/SyncCreateClientEvent.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateClientEvent() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/createclientevent/SyncCreateClientEventStringClientevent.java b/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/createclientevent/SyncCreateClientEventStringClientevent.java index 43f9f59f949..cba1496c921 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/createclientevent/SyncCreateClientEventStringClientevent.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/createclientevent/SyncCreateClientEventStringClientevent.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateClientEventStringClientevent() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/createclientevent/SyncCreateClientEventTenantnameClientevent.java b/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/createclientevent/SyncCreateClientEventTenantnameClientevent.java index d76a042025d..e59374fd37f 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/createclientevent/SyncCreateClientEventTenantnameClientevent.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/createclientevent/SyncCreateClientEventTenantnameClientevent.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateClientEventTenantnameClientevent() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/eventservicesettings/createclientevent/SyncCreateClientEvent.java b/talent/snippets/generated/com/google/cloud/talent/v4/eventservicesettings/createclientevent/SyncCreateClientEvent.java index 0022a6b4976..a2d349ee1d1 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/eventservicesettings/createclientevent/SyncCreateClientEvent.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/eventservicesettings/createclientevent/SyncCreateClientEvent.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncCreateClientEvent() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require 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/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchcreatejobs/AsyncBatchCreateJobs.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchcreatejobs/AsyncBatchCreateJobs.java index a6b9474d164..3d306f68fec 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchcreatejobs/AsyncBatchCreateJobs.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchcreatejobs/AsyncBatchCreateJobs.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncBatchCreateJobs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchcreatejobs/AsyncBatchCreateJobsLRO.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchcreatejobs/AsyncBatchCreateJobsLRO.java index 6ceff52dffa..a3fe3578a7f 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchcreatejobs/AsyncBatchCreateJobsLRO.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchcreatejobs/AsyncBatchCreateJobsLRO.java @@ -33,8 +33,11 @@ public static void main(String[] args) throws Exception { } public static void asyncBatchCreateJobsLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchcreatejobs/SyncBatchCreateJobs.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchcreatejobs/SyncBatchCreateJobs.java index fcdae4743ab..3a014e34339 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchcreatejobs/SyncBatchCreateJobs.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchcreatejobs/SyncBatchCreateJobs.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchCreateJobs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchcreatejobs/SyncBatchCreateJobsStringListjob.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchcreatejobs/SyncBatchCreateJobsStringListjob.java index 3b086a83191..523308de2f8 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchcreatejobs/SyncBatchCreateJobsStringListjob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchcreatejobs/SyncBatchCreateJobsStringListjob.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchCreateJobsStringListjob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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(); List jobs = new ArrayList<>(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchcreatejobs/SyncBatchCreateJobsTenantnameListjob.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchcreatejobs/SyncBatchCreateJobsTenantnameListjob.java index fa6358fa845..b51b6fe2aaf 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchcreatejobs/SyncBatchCreateJobsTenantnameListjob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchcreatejobs/SyncBatchCreateJobsTenantnameListjob.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchCreateJobsTenantnameListjob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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]"); List jobs = new ArrayList<>(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchdeletejobs/AsyncBatchDeleteJobs.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchdeletejobs/AsyncBatchDeleteJobs.java index 7ef3560a5cf..74c9af7357a 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchdeletejobs/AsyncBatchDeleteJobs.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchdeletejobs/AsyncBatchDeleteJobs.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncBatchDeleteJobs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchdeletejobs/AsyncBatchDeleteJobsLRO.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchdeletejobs/AsyncBatchDeleteJobsLRO.java index 574a095f2e3..e7ff0afc70d 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchdeletejobs/AsyncBatchDeleteJobsLRO.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchdeletejobs/AsyncBatchDeleteJobsLRO.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncBatchDeleteJobsLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobs.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobs.java index 2e93832ed57..fdb762cef2d 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobs.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobs.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchDeleteJobs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobsStringListstring.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobsStringListstring.java index 7c9ed9e5783..df1fb763fda 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobsStringListstring.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobsStringListstring.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchDeleteJobsStringListstring() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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(); List names = new ArrayList<>(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobsTenantnameListstring.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobsTenantnameListstring.java index 92c2d4f94be..b861bc06955 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobsTenantnameListstring.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobsTenantnameListstring.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchDeleteJobsTenantnameListstring() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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]"); List names = new ArrayList<>(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchupdatejobs/AsyncBatchUpdateJobs.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchupdatejobs/AsyncBatchUpdateJobs.java index cbc54000a04..af777abd401 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchupdatejobs/AsyncBatchUpdateJobs.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchupdatejobs/AsyncBatchUpdateJobs.java @@ -33,8 +33,11 @@ public static void main(String[] args) throws Exception { } public static void asyncBatchUpdateJobs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchupdatejobs/AsyncBatchUpdateJobsLRO.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchupdatejobs/AsyncBatchUpdateJobsLRO.java index 844986edc6a..987802a3ba6 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchupdatejobs/AsyncBatchUpdateJobsLRO.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchupdatejobs/AsyncBatchUpdateJobsLRO.java @@ -34,8 +34,11 @@ public static void main(String[] args) throws Exception { } public static void asyncBatchUpdateJobsLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobs.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobs.java index dc1aa2686b1..0826c321a80 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobs.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobs.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchUpdateJobs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobsStringListjob.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobsStringListjob.java index f025ae1665b..90a8abd365f 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobsStringListjob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobsStringListjob.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchUpdateJobsStringListjob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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(); List jobs = new ArrayList<>(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobsTenantnameListjob.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobsTenantnameListjob.java index 2d21df1858a..9367b3562bc 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobsTenantnameListjob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobsTenantnameListjob.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchUpdateJobsTenantnameListjob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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]"); List jobs = new ArrayList<>(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/create/SyncCreateSetCredentialsProvider.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/create/SyncCreateSetCredentialsProvider.java index 89b60a06a74..f83252b5542 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library JobServiceSettings jobServiceSettings = JobServiceSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/create/SyncCreateSetCredentialsProvider1.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/create/SyncCreateSetCredentialsProvider1.java index 60974386880..2574c11fa0f 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library JobServiceSettings jobServiceSettings = JobServiceSettings.newBuilder() .setTransportChannelProvider( diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/create/SyncCreateSetEndpoint.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/create/SyncCreateSetEndpoint.java index 3568e2755df..28c9f35eb86 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/create/SyncCreateSetEndpoint.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/create/SyncCreateSetEndpoint.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library JobServiceSettings jobServiceSettings = JobServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); JobServiceClient jobServiceClient = JobServiceClient.create(jobServiceSettings); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/createjob/AsyncCreateJob.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/createjob/AsyncCreateJob.java index 4b0f2e2182d..94eeb92f6bc 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/createjob/AsyncCreateJob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/createjob/AsyncCreateJob.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/createjob/SyncCreateJob.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/createjob/SyncCreateJob.java index 42a04b6f502..a5fa2e47ed8 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/createjob/SyncCreateJob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/createjob/SyncCreateJob.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/createjob/SyncCreateJobStringJob.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/createjob/SyncCreateJobStringJob.java index 3b0db141c02..0b5bafc6294 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/createjob/SyncCreateJobStringJob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/createjob/SyncCreateJobStringJob.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateJobStringJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/createjob/SyncCreateJobTenantnameJob.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/createjob/SyncCreateJobTenantnameJob.java index 5ba7932951b..105621fa02e 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/createjob/SyncCreateJobTenantnameJob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/createjob/SyncCreateJobTenantnameJob.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateJobTenantnameJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/deletejob/AsyncDeleteJob.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/deletejob/AsyncDeleteJob.java index 1691af82fbe..42af9da7a98 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/deletejob/AsyncDeleteJob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/deletejob/AsyncDeleteJob.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/deletejob/SyncDeleteJob.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/deletejob/SyncDeleteJob.java index 0a3b6476227..123ced49df1 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/deletejob/SyncDeleteJob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/deletejob/SyncDeleteJob.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/deletejob/SyncDeleteJobJobname.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/deletejob/SyncDeleteJobJobname.java index 60949736023..7ff66e62e78 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/deletejob/SyncDeleteJobJobname.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/deletejob/SyncDeleteJobJobname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteJobJobname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/deletejob/SyncDeleteJobString.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/deletejob/SyncDeleteJobString.java index 4430c55898e..98c5d8f267d 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/deletejob/SyncDeleteJobString.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/deletejob/SyncDeleteJobString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteJobString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/getjob/AsyncGetJob.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/getjob/AsyncGetJob.java index 9fa4c5474b9..912316d7104 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/getjob/AsyncGetJob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/getjob/AsyncGetJob.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/getjob/SyncGetJob.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/getjob/SyncGetJob.java index ecb8b152d23..fd6dfc2743d 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/getjob/SyncGetJob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/getjob/SyncGetJob.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/getjob/SyncGetJobJobname.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/getjob/SyncGetJobJobname.java index cdb32877756..83d6c98b762 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/getjob/SyncGetJobJobname.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/getjob/SyncGetJobJobname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetJobJobname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/getjob/SyncGetJobString.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/getjob/SyncGetJobString.java index 081b4558d06..b60cd81aa0b 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/getjob/SyncGetJobString.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/getjob/SyncGetJobString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetJobString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/listjobs/AsyncListJobs.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/listjobs/AsyncListJobs.java index 15b9b63c729..c6cb30f5978 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/listjobs/AsyncListJobs.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/listjobs/AsyncListJobs.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListJobs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/listjobs/AsyncListJobsPaged.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/listjobs/AsyncListJobsPaged.java index f86a0c31fbe..75a05b609a1 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/listjobs/AsyncListJobsPaged.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/listjobs/AsyncListJobsPaged.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListJobsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/listjobs/SyncListJobs.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/listjobs/SyncListJobs.java index 92655ffee51..af5c07f53be 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/listjobs/SyncListJobs.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/listjobs/SyncListJobs.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncListJobs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/listjobs/SyncListJobsStringString.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/listjobs/SyncListJobsStringString.java index 0da73117af8..36654031417 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/listjobs/SyncListJobsStringString.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/listjobs/SyncListJobsStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListJobsStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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"; diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/listjobs/SyncListJobsTenantnameString.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/listjobs/SyncListJobsTenantnameString.java index f97f6a0efee..dc18014563f 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/listjobs/SyncListJobsTenantnameString.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/listjobs/SyncListJobsTenantnameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListJobsTenantnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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"; diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/searchjobs/AsyncSearchJobs.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/searchjobs/AsyncSearchJobs.java index 87fdc7ead63..a3460a89275 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/searchjobs/AsyncSearchJobs.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/searchjobs/AsyncSearchJobs.java @@ -35,8 +35,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSearchJobs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/searchjobs/SyncSearchJobs.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/searchjobs/SyncSearchJobs.java index d7a3f7bbfd1..ae60f8988b2 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/searchjobs/SyncSearchJobs.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/searchjobs/SyncSearchJobs.java @@ -34,8 +34,11 @@ public static void main(String[] args) throws Exception { } public static void syncSearchJobs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/searchjobsforalert/AsyncSearchJobsForAlert.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/searchjobsforalert/AsyncSearchJobsForAlert.java index 396c7730bde..7604de795ae 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/searchjobsforalert/AsyncSearchJobsForAlert.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/searchjobsforalert/AsyncSearchJobsForAlert.java @@ -35,8 +35,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSearchJobsForAlert() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/searchjobsforalert/SyncSearchJobsForAlert.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/searchjobsforalert/SyncSearchJobsForAlert.java index 935885856c4..1e2a2bb9516 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/searchjobsforalert/SyncSearchJobsForAlert.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/searchjobsforalert/SyncSearchJobsForAlert.java @@ -34,8 +34,11 @@ public static void main(String[] args) throws Exception { } public static void syncSearchJobsForAlert() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/updatejob/AsyncUpdateJob.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/updatejob/AsyncUpdateJob.java index 6b266188d3c..09fdb8e8790 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/updatejob/AsyncUpdateJob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/updatejob/AsyncUpdateJob.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/updatejob/SyncUpdateJob.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/updatejob/SyncUpdateJob.java index 0bd0ebf6fbc..9ab4f130090 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/updatejob/SyncUpdateJob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/updatejob/SyncUpdateJob.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/updatejob/SyncUpdateJobJobFieldmask.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/updatejob/SyncUpdateJobJobFieldmask.java index 5cb15013d0e..5cbcccba1a9 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/updatejob/SyncUpdateJobJobFieldmask.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/updatejob/SyncUpdateJobJobFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateJobJobFieldmask() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/jobservicesettings/createjob/SyncCreateJob.java b/talent/snippets/generated/com/google/cloud/talent/v4/jobservicesettings/createjob/SyncCreateJob.java index 75ceb424943..88603b8af47 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/jobservicesettings/createjob/SyncCreateJob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobservicesettings/createjob/SyncCreateJob.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncCreateJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require 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/talent/snippets/generated/com/google/cloud/talent/v4/stub/companyservicestubsettings/createcompany/SyncCreateCompany.java b/talent/snippets/generated/com/google/cloud/talent/v4/stub/companyservicestubsettings/createcompany/SyncCreateCompany.java index 0530a27dee3..a04887e82fe 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/stub/companyservicestubsettings/createcompany/SyncCreateCompany.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/stub/companyservicestubsettings/createcompany/SyncCreateCompany.java @@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception { } public static void syncCreateCompany() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require 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/talent/snippets/generated/com/google/cloud/talent/v4/stub/completionstubsettings/completequery/SyncCompleteQuery.java b/talent/snippets/generated/com/google/cloud/talent/v4/stub/completionstubsettings/completequery/SyncCompleteQuery.java index dd05da2bb01..87b70543860 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/stub/completionstubsettings/completequery/SyncCompleteQuery.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/stub/completionstubsettings/completequery/SyncCompleteQuery.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncCompleteQuery() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require 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/talent/snippets/generated/com/google/cloud/talent/v4/stub/eventservicestubsettings/createclientevent/SyncCreateClientEvent.java b/talent/snippets/generated/com/google/cloud/talent/v4/stub/eventservicestubsettings/createclientevent/SyncCreateClientEvent.java index 8ec0da3f0a7..ee10d6b5a9d 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/stub/eventservicestubsettings/createclientevent/SyncCreateClientEvent.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/stub/eventservicestubsettings/createclientevent/SyncCreateClientEvent.java @@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception { } public static void syncCreateClientEvent() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require 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/talent/snippets/generated/com/google/cloud/talent/v4/stub/jobservicestubsettings/createjob/SyncCreateJob.java b/talent/snippets/generated/com/google/cloud/talent/v4/stub/jobservicestubsettings/createjob/SyncCreateJob.java index 5807b548b92..28ca32e7d2a 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/stub/jobservicestubsettings/createjob/SyncCreateJob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/stub/jobservicestubsettings/createjob/SyncCreateJob.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncCreateJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require 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/talent/snippets/generated/com/google/cloud/talent/v4/stub/tenantservicestubsettings/createtenant/SyncCreateTenant.java b/talent/snippets/generated/com/google/cloud/talent/v4/stub/tenantservicestubsettings/createtenant/SyncCreateTenant.java index 11189a0ad59..eef4efaaece 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/stub/tenantservicestubsettings/createtenant/SyncCreateTenant.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/stub/tenantservicestubsettings/createtenant/SyncCreateTenant.java @@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception { } public static void syncCreateTenant() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require 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/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/create/SyncCreateSetCredentialsProvider.java b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/create/SyncCreateSetCredentialsProvider.java index d16170143ab..60046d597b8 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library TenantServiceSettings tenantServiceSettings = TenantServiceSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/create/SyncCreateSetCredentialsProvider1.java b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/create/SyncCreateSetCredentialsProvider1.java index 094c519a4fb..ce55ec8ec5a 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library TenantServiceSettings tenantServiceSettings = TenantServiceSettings.newBuilder() .setTransportChannelProvider( diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/create/SyncCreateSetEndpoint.java b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/create/SyncCreateSetEndpoint.java index 3e65bcd3761..b87e0357b07 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/create/SyncCreateSetEndpoint.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/create/SyncCreateSetEndpoint.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library TenantServiceSettings tenantServiceSettings = TenantServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); TenantServiceClient tenantServiceClient = TenantServiceClient.create(tenantServiceSettings); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/createtenant/AsyncCreateTenant.java b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/createtenant/AsyncCreateTenant.java index 4f2d9c9a066..c1e5aa1ce12 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/createtenant/AsyncCreateTenant.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/createtenant/AsyncCreateTenant.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateTenant() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/createtenant/SyncCreateTenant.java b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/createtenant/SyncCreateTenant.java index a926d50db2b..725b0a3b237 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/createtenant/SyncCreateTenant.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/createtenant/SyncCreateTenant.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateTenant() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/createtenant/SyncCreateTenantProjectnameTenant.java b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/createtenant/SyncCreateTenantProjectnameTenant.java index f377d60f079..7096e950f9a 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/createtenant/SyncCreateTenantProjectnameTenant.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/createtenant/SyncCreateTenantProjectnameTenant.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateTenantProjectnameTenant() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/createtenant/SyncCreateTenantStringTenant.java b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/createtenant/SyncCreateTenantStringTenant.java index 39bf2197dc6..bf7f1832728 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/createtenant/SyncCreateTenantStringTenant.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/createtenant/SyncCreateTenantStringTenant.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateTenantStringTenant() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/deletetenant/AsyncDeleteTenant.java b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/deletetenant/AsyncDeleteTenant.java index b073274ae0f..27b195fa3c4 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/deletetenant/AsyncDeleteTenant.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/deletetenant/AsyncDeleteTenant.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteTenant() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/deletetenant/SyncDeleteTenant.java b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/deletetenant/SyncDeleteTenant.java index 5f9b9d90af5..374189daa55 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/deletetenant/SyncDeleteTenant.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/deletetenant/SyncDeleteTenant.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteTenant() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/deletetenant/SyncDeleteTenantString.java b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/deletetenant/SyncDeleteTenantString.java index 085b8052381..87917c8c9f7 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/deletetenant/SyncDeleteTenantString.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/deletetenant/SyncDeleteTenantString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteTenantString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/deletetenant/SyncDeleteTenantTenantname.java b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/deletetenant/SyncDeleteTenantTenantname.java index cd84f58bc44..41d073e9f73 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/deletetenant/SyncDeleteTenantTenantname.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/deletetenant/SyncDeleteTenantTenantname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteTenantTenantname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/gettenant/AsyncGetTenant.java b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/gettenant/AsyncGetTenant.java index 10428ad5814..7b419ed46f8 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/gettenant/AsyncGetTenant.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/gettenant/AsyncGetTenant.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetTenant() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/gettenant/SyncGetTenant.java b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/gettenant/SyncGetTenant.java index de3a59bb098..bd9e9bb0da9 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/gettenant/SyncGetTenant.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/gettenant/SyncGetTenant.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetTenant() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/gettenant/SyncGetTenantString.java b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/gettenant/SyncGetTenantString.java index 509522611b1..147a5f16766 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/gettenant/SyncGetTenantString.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/gettenant/SyncGetTenantString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetTenantString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/gettenant/SyncGetTenantTenantname.java b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/gettenant/SyncGetTenantTenantname.java index 8373586c9f2..96d486c3e9c 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/gettenant/SyncGetTenantTenantname.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/gettenant/SyncGetTenantTenantname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetTenantTenantname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/listtenants/AsyncListTenants.java b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/listtenants/AsyncListTenants.java index a8dc68b20d2..ba57e6cc6d8 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/listtenants/AsyncListTenants.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/listtenants/AsyncListTenants.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListTenants() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/listtenants/AsyncListTenantsPaged.java b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/listtenants/AsyncListTenantsPaged.java index 765abc34d4c..92f4cf68aa7 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/listtenants/AsyncListTenantsPaged.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/listtenants/AsyncListTenantsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListTenantsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/listtenants/SyncListTenants.java b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/listtenants/SyncListTenants.java index fd48d5ef82a..a1d342da4f8 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/listtenants/SyncListTenants.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/listtenants/SyncListTenants.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListTenants() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/listtenants/SyncListTenantsProjectname.java b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/listtenants/SyncListTenantsProjectname.java index ea6fa06ab1e..d616965f2d7 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/listtenants/SyncListTenantsProjectname.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/listtenants/SyncListTenantsProjectname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListTenantsProjectname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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()) { diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/listtenants/SyncListTenantsString.java b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/listtenants/SyncListTenantsString.java index f0e48be0510..f15646f8f84 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/listtenants/SyncListTenantsString.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/listtenants/SyncListTenantsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListTenantsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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()) { diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/updatetenant/AsyncUpdateTenant.java b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/updatetenant/AsyncUpdateTenant.java index d61ee9bd91d..400cdc11df5 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/updatetenant/AsyncUpdateTenant.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/updatetenant/AsyncUpdateTenant.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateTenant() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/updatetenant/SyncUpdateTenant.java b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/updatetenant/SyncUpdateTenant.java index 07be25a202b..ce239605c08 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/updatetenant/SyncUpdateTenant.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/updatetenant/SyncUpdateTenant.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateTenant() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/updatetenant/SyncUpdateTenantTenantFieldmask.java b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/updatetenant/SyncUpdateTenantTenantFieldmask.java index d1a3d59bb30..a067ddfdb25 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/updatetenant/SyncUpdateTenantTenantFieldmask.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/updatetenant/SyncUpdateTenantTenantFieldmask.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateTenantTenantFieldmask() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4/tenantservicesettings/createtenant/SyncCreateTenant.java b/talent/snippets/generated/com/google/cloud/talent/v4/tenantservicesettings/createtenant/SyncCreateTenant.java index 1150a2e00a0..d4c550c14f0 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4/tenantservicesettings/createtenant/SyncCreateTenant.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantservicesettings/createtenant/SyncCreateTenant.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncCreateTenant() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require 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/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/create/SyncCreateSetCredentialsProvider.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/create/SyncCreateSetCredentialsProvider.java index f058bcbd134..ac32dbd64a7 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library CompanyServiceSettings companyServiceSettings = CompanyServiceSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/create/SyncCreateSetCredentialsProvider1.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/create/SyncCreateSetCredentialsProvider1.java index d34706f9b08..b01ff85bcee 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library CompanyServiceSettings companyServiceSettings = CompanyServiceSettings.newBuilder() .setTransportChannelProvider( diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/create/SyncCreateSetEndpoint.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/create/SyncCreateSetEndpoint.java index 2155eaa8c65..21f1b0339f7 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/create/SyncCreateSetEndpoint.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/create/SyncCreateSetEndpoint.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library CompanyServiceSettings companyServiceSettings = CompanyServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); CompanyServiceClient companyServiceClient = CompanyServiceClient.create(companyServiceSettings); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/createcompany/AsyncCreateCompany.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/createcompany/AsyncCreateCompany.java index 0f6a9d6cd8e..eb622905c0f 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/createcompany/AsyncCreateCompany.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/createcompany/AsyncCreateCompany.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateCompany() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/createcompany/SyncCreateCompany.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/createcompany/SyncCreateCompany.java index 8c410362774..aa57c987322 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/createcompany/SyncCreateCompany.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/createcompany/SyncCreateCompany.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateCompany() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/createcompany/SyncCreateCompanyProjectnameCompany.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/createcompany/SyncCreateCompanyProjectnameCompany.java index de4ad5686bb..75395a02be7 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/createcompany/SyncCreateCompanyProjectnameCompany.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/createcompany/SyncCreateCompanyProjectnameCompany.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateCompanyProjectnameCompany() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/createcompany/SyncCreateCompanyStringCompany.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/createcompany/SyncCreateCompanyStringCompany.java index eb259db4417..a83c4b26f7c 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/createcompany/SyncCreateCompanyStringCompany.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/createcompany/SyncCreateCompanyStringCompany.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateCompanyStringCompany() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/createcompany/SyncCreateCompanyTenantnameCompany.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/createcompany/SyncCreateCompanyTenantnameCompany.java index 0a5e781dcca..9d5e65360e0 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/createcompany/SyncCreateCompanyTenantnameCompany.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/createcompany/SyncCreateCompanyTenantnameCompany.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateCompanyTenantnameCompany() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/deletecompany/AsyncDeleteCompany.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/deletecompany/AsyncDeleteCompany.java index 06ac4571cb7..af83d59b2fb 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/deletecompany/AsyncDeleteCompany.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/deletecompany/AsyncDeleteCompany.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteCompany() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/deletecompany/SyncDeleteCompany.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/deletecompany/SyncDeleteCompany.java index 87663f8faeb..a7c39ca8bfa 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/deletecompany/SyncDeleteCompany.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/deletecompany/SyncDeleteCompany.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteCompany() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/deletecompany/SyncDeleteCompanyCompanyname.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/deletecompany/SyncDeleteCompanyCompanyname.java index 77eaf0dc57d..d0828d97870 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/deletecompany/SyncDeleteCompanyCompanyname.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/deletecompany/SyncDeleteCompanyCompanyname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteCompanyCompanyname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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]"); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/deletecompany/SyncDeleteCompanyString.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/deletecompany/SyncDeleteCompanyString.java index 64a4992e7ba..14d78995219 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/deletecompany/SyncDeleteCompanyString.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/deletecompany/SyncDeleteCompanyString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteCompanyString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/getcompany/AsyncGetCompany.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/getcompany/AsyncGetCompany.java index b327e80d715..10e19f50fc8 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/getcompany/AsyncGetCompany.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/getcompany/AsyncGetCompany.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetCompany() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/getcompany/SyncGetCompany.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/getcompany/SyncGetCompany.java index cd281e9e2a9..f2e4ff22375 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/getcompany/SyncGetCompany.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/getcompany/SyncGetCompany.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetCompany() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/getcompany/SyncGetCompanyCompanyname.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/getcompany/SyncGetCompanyCompanyname.java index 9cd6c5fddf7..1a922f20ef3 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/getcompany/SyncGetCompanyCompanyname.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/getcompany/SyncGetCompanyCompanyname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetCompanyCompanyname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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]"); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/getcompany/SyncGetCompanyString.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/getcompany/SyncGetCompanyString.java index 009758ad18e..a112d99c7e3 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/getcompany/SyncGetCompanyString.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/getcompany/SyncGetCompanyString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetCompanyString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/AsyncListCompanies.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/AsyncListCompanies.java index ce24628e857..2b22fee9613 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/AsyncListCompanies.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/AsyncListCompanies.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListCompanies() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/AsyncListCompaniesPaged.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/AsyncListCompaniesPaged.java index be6efecbae5..cc4791ba695 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/AsyncListCompaniesPaged.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/AsyncListCompaniesPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListCompaniesPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/SyncListCompanies.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/SyncListCompanies.java index 207c608112a..76dd6d7d37b 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/SyncListCompanies.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/SyncListCompanies.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListCompanies() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/SyncListCompaniesProjectname.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/SyncListCompaniesProjectname.java index 6e437f74599..3fb121cbfb9 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/SyncListCompaniesProjectname.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/SyncListCompaniesProjectname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListCompaniesProjectname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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()) { diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/SyncListCompaniesString.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/SyncListCompaniesString.java index aa3937984dd..eaba1f06b88 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/SyncListCompaniesString.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/SyncListCompaniesString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListCompaniesString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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()) { diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/SyncListCompaniesTenantname.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/SyncListCompaniesTenantname.java index bdc3196c4de..ea558fab1f1 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/SyncListCompaniesTenantname.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/SyncListCompaniesTenantname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListCompaniesTenantname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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()) { diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/updatecompany/AsyncUpdateCompany.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/updatecompany/AsyncUpdateCompany.java index d2653c2afe3..803e0e2ba08 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/updatecompany/AsyncUpdateCompany.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/updatecompany/AsyncUpdateCompany.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateCompany() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/updatecompany/SyncUpdateCompany.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/updatecompany/SyncUpdateCompany.java index eb62d5c1885..5175dd48132 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/updatecompany/SyncUpdateCompany.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/updatecompany/SyncUpdateCompany.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateCompany() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/updatecompany/SyncUpdateCompanyCompany.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/updatecompany/SyncUpdateCompanyCompany.java index 042de15dfbc..d9e1db4e3e0 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/updatecompany/SyncUpdateCompanyCompany.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/updatecompany/SyncUpdateCompanyCompany.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateCompanyCompany() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyservicesettings/createcompany/SyncCreateCompany.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyservicesettings/createcompany/SyncCreateCompany.java index c1352fb2e4b..ebbf5d7f2d3 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyservicesettings/createcompany/SyncCreateCompany.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyservicesettings/createcompany/SyncCreateCompany.java @@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception { } public static void syncCreateCompany() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require 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/talent/snippets/generated/com/google/cloud/talent/v4beta1/completionclient/completequery/AsyncCompleteQuery.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/completionclient/completequery/AsyncCompleteQuery.java index daf79b85bc8..2ba40db5216 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/completionclient/completequery/AsyncCompleteQuery.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/completionclient/completequery/AsyncCompleteQuery.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCompleteQuery() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4beta1/completionclient/completequery/SyncCompleteQuery.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/completionclient/completequery/SyncCompleteQuery.java index 6ac31707b38..add0c0549ac 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/completionclient/completequery/SyncCompleteQuery.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/completionclient/completequery/SyncCompleteQuery.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void syncCompleteQuery() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4beta1/completionclient/create/SyncCreateSetCredentialsProvider.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/completionclient/create/SyncCreateSetCredentialsProvider.java index 67cd0a0674c..13480fe2508 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/completionclient/create/SyncCreateSetCredentialsProvider.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/completionclient/create/SyncCreateSetCredentialsProvider.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library CompletionSettings completionSettings = CompletionSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/completionclient/create/SyncCreateSetCredentialsProvider1.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/completionclient/create/SyncCreateSetCredentialsProvider1.java index 06c6c1fdfbd..dead4c83f7a 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/completionclient/create/SyncCreateSetCredentialsProvider1.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/completionclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library CompletionSettings completionSettings = CompletionSettings.newBuilder() .setTransportChannelProvider( diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/completionclient/create/SyncCreateSetEndpoint.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/completionclient/create/SyncCreateSetEndpoint.java index 7ed54e50d77..da7ccb632d2 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/completionclient/create/SyncCreateSetEndpoint.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/completionclient/create/SyncCreateSetEndpoint.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library CompletionSettings completionSettings = CompletionSettings.newBuilder().setEndpoint(myEndpoint).build(); CompletionClient completionClient = CompletionClient.create(completionSettings); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/completionsettings/completequery/SyncCompleteQuery.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/completionsettings/completequery/SyncCompleteQuery.java index 73ca5d2a386..ad289f6a495 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/completionsettings/completequery/SyncCompleteQuery.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/completionsettings/completequery/SyncCompleteQuery.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncCompleteQuery() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require 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/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/create/SyncCreateSetCredentialsProvider.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/create/SyncCreateSetCredentialsProvider.java index 8b6ad4d7d77..eebb1e450aa 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library EventServiceSettings eventServiceSettings = EventServiceSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/create/SyncCreateSetCredentialsProvider1.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/create/SyncCreateSetCredentialsProvider1.java index 55b436b0fdb..579bd27658c 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library EventServiceSettings eventServiceSettings = EventServiceSettings.newBuilder() .setTransportChannelProvider( diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/create/SyncCreateSetEndpoint.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/create/SyncCreateSetEndpoint.java index d8710a90624..a03045e0bd1 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/create/SyncCreateSetEndpoint.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/create/SyncCreateSetEndpoint.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library EventServiceSettings eventServiceSettings = EventServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); EventServiceClient eventServiceClient = EventServiceClient.create(eventServiceSettings); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/createclientevent/AsyncCreateClientEvent.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/createclientevent/AsyncCreateClientEvent.java index 9b7b93a0a15..0c1a9b96d7f 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/createclientevent/AsyncCreateClientEvent.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/createclientevent/AsyncCreateClientEvent.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateClientEvent() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/createclientevent/SyncCreateClientEvent.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/createclientevent/SyncCreateClientEvent.java index 84bcab03cdc..c4311d171cc 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/createclientevent/SyncCreateClientEvent.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/createclientevent/SyncCreateClientEvent.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateClientEvent() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/createclientevent/SyncCreateClientEventProjectnameClientevent.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/createclientevent/SyncCreateClientEventProjectnameClientevent.java index 9f74e94d579..9961f46157e 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/createclientevent/SyncCreateClientEventProjectnameClientevent.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/createclientevent/SyncCreateClientEventProjectnameClientevent.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateClientEventProjectnameClientevent() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/createclientevent/SyncCreateClientEventStringClientevent.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/createclientevent/SyncCreateClientEventStringClientevent.java index 416ab7b500a..838150fb056 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/createclientevent/SyncCreateClientEventStringClientevent.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/createclientevent/SyncCreateClientEventStringClientevent.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateClientEventStringClientevent() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/createclientevent/SyncCreateClientEventTenantnameClientevent.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/createclientevent/SyncCreateClientEventTenantnameClientevent.java index 55a728021db..9ddc9df4ecb 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/createclientevent/SyncCreateClientEventTenantnameClientevent.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/createclientevent/SyncCreateClientEventTenantnameClientevent.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateClientEventTenantnameClientevent() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventservicesettings/createclientevent/SyncCreateClientEvent.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventservicesettings/createclientevent/SyncCreateClientEvent.java index 52c32c0b12c..ea27ed0b53b 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventservicesettings/createclientevent/SyncCreateClientEvent.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventservicesettings/createclientevent/SyncCreateClientEvent.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncCreateClientEvent() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require 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/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/AsyncBatchCreateJobs.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/AsyncBatchCreateJobs.java index 2d8f3b2766b..967ca66d4c5 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/AsyncBatchCreateJobs.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/AsyncBatchCreateJobs.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncBatchCreateJobs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/AsyncBatchCreateJobsLRO.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/AsyncBatchCreateJobsLRO.java index 4c21977a4cb..c0b3c6ed07b 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/AsyncBatchCreateJobsLRO.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/AsyncBatchCreateJobsLRO.java @@ -33,8 +33,11 @@ public static void main(String[] args) throws Exception { } public static void asyncBatchCreateJobsLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/SyncBatchCreateJobs.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/SyncBatchCreateJobs.java index 82f68ccc51f..23a36782520 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/SyncBatchCreateJobs.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/SyncBatchCreateJobs.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchCreateJobs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/SyncBatchCreateJobsProjectnameListjob.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/SyncBatchCreateJobsProjectnameListjob.java index c7b81dccd6d..58c82e653b1 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/SyncBatchCreateJobsProjectnameListjob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/SyncBatchCreateJobsProjectnameListjob.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchCreateJobsProjectnameListjob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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]"); List jobs = new ArrayList<>(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/SyncBatchCreateJobsStringListjob.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/SyncBatchCreateJobsStringListjob.java index bbf7ab1e470..a783183bfd9 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/SyncBatchCreateJobsStringListjob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/SyncBatchCreateJobsStringListjob.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchCreateJobsStringListjob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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(); List jobs = new ArrayList<>(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/SyncBatchCreateJobsTenantnameListjob.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/SyncBatchCreateJobsTenantnameListjob.java index de5218b748e..361049170ea 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/SyncBatchCreateJobsTenantnameListjob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/SyncBatchCreateJobsTenantnameListjob.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchCreateJobsTenantnameListjob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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]"); List jobs = new ArrayList<>(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchdeletejobs/AsyncBatchDeleteJobs.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchdeletejobs/AsyncBatchDeleteJobs.java index a2f931c1b89..2c7ed5d1c1c 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchdeletejobs/AsyncBatchDeleteJobs.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchdeletejobs/AsyncBatchDeleteJobs.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncBatchDeleteJobs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobs.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobs.java index 7de803974b4..caf9e1b3ae8 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobs.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobs.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchDeleteJobs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobsProjectnameString.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobsProjectnameString.java index 4b577f8e1ed..f1539c3699c 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobsProjectnameString.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobsProjectnameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchDeleteJobsProjectnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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]"); String filter = "filter-1274492040"; diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobsStringString.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobsStringString.java index e717bbf6b3b..8bfe715975f 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobsStringString.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobsStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchDeleteJobsStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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"; diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobsTenantnameString.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobsTenantnameString.java index e1ddc2f47f3..79b0a2ae161 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobsTenantnameString.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobsTenantnameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchDeleteJobsTenantnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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"; diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/AsyncBatchUpdateJobs.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/AsyncBatchUpdateJobs.java index f12f6874c5d..037504bd500 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/AsyncBatchUpdateJobs.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/AsyncBatchUpdateJobs.java @@ -33,8 +33,11 @@ public static void main(String[] args) throws Exception { } public static void asyncBatchUpdateJobs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/AsyncBatchUpdateJobsLRO.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/AsyncBatchUpdateJobsLRO.java index 3cb720bfc88..16990944bb0 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/AsyncBatchUpdateJobsLRO.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/AsyncBatchUpdateJobsLRO.java @@ -34,8 +34,11 @@ public static void main(String[] args) throws Exception { } public static void asyncBatchUpdateJobsLRO() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobs.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobs.java index d3d042efb21..1bdb7b20982 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobs.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobs.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchUpdateJobs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobsProjectnameListjob.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobsProjectnameListjob.java index 0dc51283b90..43bc2ee51fd 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobsProjectnameListjob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobsProjectnameListjob.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchUpdateJobsProjectnameListjob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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]"); List jobs = new ArrayList<>(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobsStringListjob.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobsStringListjob.java index a9714d0f18b..276e766a281 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobsStringListjob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobsStringListjob.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchUpdateJobsStringListjob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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(); List jobs = new ArrayList<>(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobsTenantnameListjob.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobsTenantnameListjob.java index f1443802655..ef825ff4533 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobsTenantnameListjob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobsTenantnameListjob.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void syncBatchUpdateJobsTenantnameListjob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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]"); List jobs = new ArrayList<>(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/create/SyncCreateSetCredentialsProvider.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/create/SyncCreateSetCredentialsProvider.java index b379026aa71..82d8340e68d 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library JobServiceSettings jobServiceSettings = JobServiceSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/create/SyncCreateSetCredentialsProvider1.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/create/SyncCreateSetCredentialsProvider1.java index d0b40a7bc07..8ded6509325 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library JobServiceSettings jobServiceSettings = JobServiceSettings.newBuilder() .setTransportChannelProvider( diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/create/SyncCreateSetEndpoint.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/create/SyncCreateSetEndpoint.java index 63e50d21512..fb10d5e57c6 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/create/SyncCreateSetEndpoint.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/create/SyncCreateSetEndpoint.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library JobServiceSettings jobServiceSettings = JobServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); JobServiceClient jobServiceClient = JobServiceClient.create(jobServiceSettings); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/createjob/AsyncCreateJob.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/createjob/AsyncCreateJob.java index 0fc51076080..2624c603b08 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/createjob/AsyncCreateJob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/createjob/AsyncCreateJob.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/createjob/SyncCreateJob.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/createjob/SyncCreateJob.java index b343929a883..7536406885b 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/createjob/SyncCreateJob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/createjob/SyncCreateJob.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/createjob/SyncCreateJobProjectnameJob.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/createjob/SyncCreateJobProjectnameJob.java index 1449a868792..e0bb2ae21b5 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/createjob/SyncCreateJobProjectnameJob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/createjob/SyncCreateJobProjectnameJob.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateJobProjectnameJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/createjob/SyncCreateJobStringJob.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/createjob/SyncCreateJobStringJob.java index 33c97ed86b2..0e12dea81c6 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/createjob/SyncCreateJobStringJob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/createjob/SyncCreateJobStringJob.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateJobStringJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/createjob/SyncCreateJobTenantnameJob.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/createjob/SyncCreateJobTenantnameJob.java index 99730213907..6d65df91a2a 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/createjob/SyncCreateJobTenantnameJob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/createjob/SyncCreateJobTenantnameJob.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateJobTenantnameJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/deletejob/AsyncDeleteJob.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/deletejob/AsyncDeleteJob.java index efbe20addd6..740f82c74c0 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/deletejob/AsyncDeleteJob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/deletejob/AsyncDeleteJob.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/deletejob/SyncDeleteJob.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/deletejob/SyncDeleteJob.java index 7869a980bf3..15590c06db9 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/deletejob/SyncDeleteJob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/deletejob/SyncDeleteJob.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/deletejob/SyncDeleteJobJobname.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/deletejob/SyncDeleteJobJobname.java index c21797d3030..874a1c47b07 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/deletejob/SyncDeleteJobJobname.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/deletejob/SyncDeleteJobJobname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteJobJobname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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]"); jobServiceClient.deleteJob(name); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/deletejob/SyncDeleteJobString.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/deletejob/SyncDeleteJobString.java index 5fca8bc17d7..53661d2ab65 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/deletejob/SyncDeleteJobString.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/deletejob/SyncDeleteJobString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteJobString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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(); jobServiceClient.deleteJob(name); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/getjob/AsyncGetJob.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/getjob/AsyncGetJob.java index a38a5ed21ae..af90d799dc8 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/getjob/AsyncGetJob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/getjob/AsyncGetJob.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/getjob/SyncGetJob.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/getjob/SyncGetJob.java index 769bb8885ed..0973a6027b2 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/getjob/SyncGetJob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/getjob/SyncGetJob.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/getjob/SyncGetJobJobname.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/getjob/SyncGetJobJobname.java index e4c3d088b82..5ac746a576d 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/getjob/SyncGetJobJobname.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/getjob/SyncGetJobJobname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetJobJobname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/getjob/SyncGetJobString.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/getjob/SyncGetJobString.java index 92a1d4cb2a5..f003707b43d 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/getjob/SyncGetJobString.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/getjob/SyncGetJobString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetJobString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/AsyncListJobs.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/AsyncListJobs.java index c05fc175e77..70dab31b10a 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/AsyncListJobs.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/AsyncListJobs.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListJobs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/AsyncListJobsPaged.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/AsyncListJobsPaged.java index 8282f637d38..2dcebafcb33 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/AsyncListJobsPaged.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/AsyncListJobsPaged.java @@ -32,8 +32,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListJobsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/SyncListJobs.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/SyncListJobs.java index bc29d4ffae8..f899d3d8626 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/SyncListJobs.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/SyncListJobs.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void syncListJobs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/SyncListJobsProjectnameString.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/SyncListJobsProjectnameString.java index ae5e87fa8bb..98b6c1c21b0 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/SyncListJobsProjectnameString.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/SyncListJobsProjectnameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListJobsProjectnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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]"); String filter = "filter-1274492040"; diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/SyncListJobsStringString.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/SyncListJobsStringString.java index e9fb6c9fcbf..0a916890d49 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/SyncListJobsStringString.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/SyncListJobsStringString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListJobsStringString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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"; diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/SyncListJobsTenantnameString.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/SyncListJobsTenantnameString.java index 2729f8568b4..fbbd374f6d9 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/SyncListJobsTenantnameString.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/SyncListJobsTenantnameString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListJobsTenantnameString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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"; diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobs/AsyncSearchJobs.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobs/AsyncSearchJobs.java index af33b12a475..8b75dcd16bf 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobs/AsyncSearchJobs.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobs/AsyncSearchJobs.java @@ -35,8 +35,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSearchJobs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobs/AsyncSearchJobsPaged.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobs/AsyncSearchJobsPaged.java index 077376200d8..69d1295b6bb 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobs/AsyncSearchJobsPaged.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobs/AsyncSearchJobsPaged.java @@ -35,8 +35,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSearchJobsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobs/SyncSearchJobs.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobs/SyncSearchJobs.java index e2935ec08e6..cab4ec13187 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobs/SyncSearchJobs.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobs/SyncSearchJobs.java @@ -34,8 +34,11 @@ public static void main(String[] args) throws Exception { } public static void syncSearchJobs() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobsforalert/AsyncSearchJobsForAlert.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobsforalert/AsyncSearchJobsForAlert.java index d0f8f7a7262..3eedd7b6d36 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobsforalert/AsyncSearchJobsForAlert.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobsforalert/AsyncSearchJobsForAlert.java @@ -35,8 +35,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSearchJobsForAlert() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobsforalert/AsyncSearchJobsForAlertPaged.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobsforalert/AsyncSearchJobsForAlertPaged.java index ec17ff11fe8..bda1639dd56 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobsforalert/AsyncSearchJobsForAlertPaged.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobsforalert/AsyncSearchJobsForAlertPaged.java @@ -35,8 +35,11 @@ public static void main(String[] args) throws Exception { } public static void asyncSearchJobsForAlertPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobsforalert/SyncSearchJobsForAlert.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobsforalert/SyncSearchJobsForAlert.java index 9d2adc648c2..cb69408a2cd 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobsforalert/SyncSearchJobsForAlert.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobsforalert/SyncSearchJobsForAlert.java @@ -34,8 +34,11 @@ public static void main(String[] args) throws Exception { } public static void syncSearchJobsForAlert() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/updatejob/AsyncUpdateJob.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/updatejob/AsyncUpdateJob.java index 6014f2845cc..a71d0bcdfcd 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/updatejob/AsyncUpdateJob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/updatejob/AsyncUpdateJob.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/updatejob/SyncUpdateJob.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/updatejob/SyncUpdateJob.java index a267c506add..e538228d94e 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/updatejob/SyncUpdateJob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/updatejob/SyncUpdateJob.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/updatejob/SyncUpdateJobJob.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/updatejob/SyncUpdateJobJob.java index 5d0d61b5a59..8491689d752 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/updatejob/SyncUpdateJobJob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/updatejob/SyncUpdateJobJob.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateJobJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobservicesettings/createjob/SyncCreateJob.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobservicesettings/createjob/SyncCreateJob.java index d2ebfab5198..329af6acc4c 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobservicesettings/createjob/SyncCreateJob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobservicesettings/createjob/SyncCreateJob.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncCreateJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require 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/talent/snippets/generated/com/google/cloud/talent/v4beta1/stub/companyservicestubsettings/createcompany/SyncCreateCompany.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/stub/companyservicestubsettings/createcompany/SyncCreateCompany.java index 908f13d7245..ca8fadc8a68 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/stub/companyservicestubsettings/createcompany/SyncCreateCompany.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/stub/companyservicestubsettings/createcompany/SyncCreateCompany.java @@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception { } public static void syncCreateCompany() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require 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/talent/snippets/generated/com/google/cloud/talent/v4beta1/stub/completionstubsettings/completequery/SyncCompleteQuery.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/stub/completionstubsettings/completequery/SyncCompleteQuery.java index 8757e549083..da564025fa2 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/stub/completionstubsettings/completequery/SyncCompleteQuery.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/stub/completionstubsettings/completequery/SyncCompleteQuery.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncCompleteQuery() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require 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/talent/snippets/generated/com/google/cloud/talent/v4beta1/stub/eventservicestubsettings/createclientevent/SyncCreateClientEvent.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/stub/eventservicestubsettings/createclientevent/SyncCreateClientEvent.java index a6ab4e2cd06..45d96470c93 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/stub/eventservicestubsettings/createclientevent/SyncCreateClientEvent.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/stub/eventservicestubsettings/createclientevent/SyncCreateClientEvent.java @@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception { } public static void syncCreateClientEvent() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require 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/talent/snippets/generated/com/google/cloud/talent/v4beta1/stub/jobservicestubsettings/createjob/SyncCreateJob.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/stub/jobservicestubsettings/createjob/SyncCreateJob.java index 69ff5839670..baaa5978f52 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/stub/jobservicestubsettings/createjob/SyncCreateJob.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/stub/jobservicestubsettings/createjob/SyncCreateJob.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncCreateJob() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require 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/talent/snippets/generated/com/google/cloud/talent/v4beta1/stub/tenantservicestubsettings/createtenant/SyncCreateTenant.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/stub/tenantservicestubsettings/createtenant/SyncCreateTenant.java index 58d2c7d7e37..750793af6b1 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/stub/tenantservicestubsettings/createtenant/SyncCreateTenant.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/stub/tenantservicestubsettings/createtenant/SyncCreateTenant.java @@ -27,17 +27,17 @@ public static void main(String[] args) throws Exception { } public static void syncCreateTenant() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require 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/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/create/SyncCreateSetCredentialsProvider.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/create/SyncCreateSetCredentialsProvider.java index 0a943788791..810d5455b67 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/create/SyncCreateSetCredentialsProvider.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library TenantServiceSettings tenantServiceSettings = TenantServiceSettings.newBuilder() .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/create/SyncCreateSetCredentialsProvider1.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/create/SyncCreateSetCredentialsProvider1.java index d3c730119e2..41bf04fad20 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/create/SyncCreateSetCredentialsProvider1.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetCredentialsProvider1() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library TenantServiceSettings tenantServiceSettings = TenantServiceSettings.newBuilder() .setTransportChannelProvider( diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/create/SyncCreateSetEndpoint.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/create/SyncCreateSetEndpoint.java index e7b2bbfc5b4..e791a8af675 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/create/SyncCreateSetEndpoint.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/create/SyncCreateSetEndpoint.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateSetEndpoint() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying regional endpoints when creating the service client as shown in + // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library TenantServiceSettings tenantServiceSettings = TenantServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); TenantServiceClient tenantServiceClient = TenantServiceClient.create(tenantServiceSettings); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/createtenant/AsyncCreateTenant.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/createtenant/AsyncCreateTenant.java index aea74d50bb6..4c0e11ae265 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/createtenant/AsyncCreateTenant.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/createtenant/AsyncCreateTenant.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncCreateTenant() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/createtenant/SyncCreateTenant.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/createtenant/SyncCreateTenant.java index 7135a821f76..07447cd64b2 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/createtenant/SyncCreateTenant.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/createtenant/SyncCreateTenant.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateTenant() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/createtenant/SyncCreateTenantProjectnameTenant.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/createtenant/SyncCreateTenantProjectnameTenant.java index 0e515957c0d..111195830d2 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/createtenant/SyncCreateTenantProjectnameTenant.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/createtenant/SyncCreateTenantProjectnameTenant.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateTenantProjectnameTenant() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/createtenant/SyncCreateTenantStringTenant.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/createtenant/SyncCreateTenantStringTenant.java index a97fa9f9b1c..15130889c8d 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/createtenant/SyncCreateTenantStringTenant.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/createtenant/SyncCreateTenantStringTenant.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncCreateTenantStringTenant() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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(); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/deletetenant/AsyncDeleteTenant.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/deletetenant/AsyncDeleteTenant.java index 6e01d958d8c..7b0ad1ce99c 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/deletetenant/AsyncDeleteTenant.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/deletetenant/AsyncDeleteTenant.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncDeleteTenant() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/deletetenant/SyncDeleteTenant.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/deletetenant/SyncDeleteTenant.java index 24d217cdc12..bd63418dfcc 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/deletetenant/SyncDeleteTenant.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/deletetenant/SyncDeleteTenant.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteTenant() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/deletetenant/SyncDeleteTenantString.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/deletetenant/SyncDeleteTenantString.java index 4c47f182f93..fbd486a4f3a 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/deletetenant/SyncDeleteTenantString.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/deletetenant/SyncDeleteTenantString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteTenantString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/deletetenant/SyncDeleteTenantTenantname.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/deletetenant/SyncDeleteTenantTenantname.java index bcdbe723cb7..fbf592119d4 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/deletetenant/SyncDeleteTenantTenantname.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/deletetenant/SyncDeleteTenantTenantname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncDeleteTenantTenantname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/gettenant/AsyncGetTenant.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/gettenant/AsyncGetTenant.java index cc24ad80f9c..62db592ea49 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/gettenant/AsyncGetTenant.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/gettenant/AsyncGetTenant.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncGetTenant() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/gettenant/SyncGetTenant.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/gettenant/SyncGetTenant.java index d280744e9d1..176b34f65bf 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/gettenant/SyncGetTenant.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/gettenant/SyncGetTenant.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetTenant() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/gettenant/SyncGetTenantString.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/gettenant/SyncGetTenantString.java index d5075a441bc..895b542b3be 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/gettenant/SyncGetTenantString.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/gettenant/SyncGetTenantString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetTenantString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/gettenant/SyncGetTenantTenantname.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/gettenant/SyncGetTenantTenantname.java index 40700c52ade..1a88ce88eac 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/gettenant/SyncGetTenantTenantname.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/gettenant/SyncGetTenantTenantname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncGetTenantTenantname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/listtenants/AsyncListTenants.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/listtenants/AsyncListTenants.java index 8ef2016e68c..35d7128fbe5 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/listtenants/AsyncListTenants.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/listtenants/AsyncListTenants.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListTenants() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/listtenants/AsyncListTenantsPaged.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/listtenants/AsyncListTenantsPaged.java index c504197238e..f7e299d8b4d 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/listtenants/AsyncListTenantsPaged.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/listtenants/AsyncListTenantsPaged.java @@ -31,8 +31,11 @@ public static void main(String[] args) throws Exception { } public static void asyncListTenantsPaged() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/listtenants/SyncListTenants.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/listtenants/SyncListTenants.java index 93ba0be0a5f..14ea2dce76f 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/listtenants/SyncListTenants.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/listtenants/SyncListTenants.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncListTenants() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/listtenants/SyncListTenantsProjectname.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/listtenants/SyncListTenantsProjectname.java index 3c66852e068..55c6af42446 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/listtenants/SyncListTenantsProjectname.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/listtenants/SyncListTenantsProjectname.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListTenantsProjectname() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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()) { diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/listtenants/SyncListTenantsString.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/listtenants/SyncListTenantsString.java index f04b7f4c61e..2c966668808 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/listtenants/SyncListTenantsString.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/listtenants/SyncListTenantsString.java @@ -28,8 +28,11 @@ public static void main(String[] args) throws Exception { } public static void syncListTenantsString() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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()) { diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/updatetenant/AsyncUpdateTenant.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/updatetenant/AsyncUpdateTenant.java index 8eebf6af813..447f225c7f4 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/updatetenant/AsyncUpdateTenant.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/updatetenant/AsyncUpdateTenant.java @@ -30,8 +30,11 @@ public static void main(String[] args) throws Exception { } public static void asyncUpdateTenant() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/updatetenant/SyncUpdateTenant.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/updatetenant/SyncUpdateTenant.java index f0ed73c0e68..ff50a33c1ed 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/updatetenant/SyncUpdateTenant.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/updatetenant/SyncUpdateTenant.java @@ -29,8 +29,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateTenant() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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() diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/updatetenant/SyncUpdateTenantTenant.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/updatetenant/SyncUpdateTenantTenant.java index 3f7000fbab6..722ec2fe62f 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/updatetenant/SyncUpdateTenantTenant.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/updatetenant/SyncUpdateTenantTenant.java @@ -27,8 +27,11 @@ public static void main(String[] args) throws Exception { } public static void syncUpdateTenantTenant() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require specifying 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(); Tenant response = tenantServiceClient.updateTenant(tenant); diff --git a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantservicesettings/createtenant/SyncCreateTenant.java b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantservicesettings/createtenant/SyncCreateTenant.java index 184ec944e17..d700f9a7571 100644 --- a/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantservicesettings/createtenant/SyncCreateTenant.java +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantservicesettings/createtenant/SyncCreateTenant.java @@ -27,16 +27,16 @@ public static void main(String[] args) throws Exception { } public static void syncCreateTenant() throws Exception { - // This snippet has been automatically generated for illustrative purposes only. - // It may require modifications to work in your environment. + // This snippet has been automatically generated and should be regarded as a code template only. + // It will require modifications to work: + // - It may require correct/in-range values for request initialization. + // - It may require 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();