From 96f2f3124ef727a951238b032667c28b349db13e Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Wed, 5 Feb 2020 09:23:11 -0800 Subject: [PATCH 01/92] samples: add generated samples (#67) --- .../JobSearchAutocompleteJobTitle.java | 118 ++++++++ .../v4beta1/JobSearchBatchCreateJobs.java | 254 ++++++++++++++++ .../v4beta1/JobSearchBatchDeleteJob.java | 92 ++++++ .../v4beta1/JobSearchBatchUpdateJobs.java | 276 ++++++++++++++++++ .../v4beta1/JobSearchCommuteSearch.java | 127 ++++++++ .../v4beta1/JobSearchCreateClientEvent.java | 133 +++++++++ .../v4beta1/JobSearchCreateCompany.java | 104 +++++++ .../talent/v4beta1/JobSearchCreateJob.java | 177 +++++++++++ .../JobSearchCreateJobCustomAttributes.java | 115 ++++++++ .../talent/v4beta1/JobSearchCreateTenant.java | 83 ++++++ .../v4beta1/JobSearchCustomRankingSearch.java | 120 ++++++++ .../v4beta1/JobSearchDeleteCompany.java | 83 ++++++ .../talent/v4beta1/JobSearchDeleteJob.java | 81 +++++ .../talent/v4beta1/JobSearchDeleteTenant.java | 76 +++++ .../talent/v4beta1/JobSearchGetCompany.java | 85 ++++++ .../talent/v4beta1/JobSearchGetJob.java | 96 ++++++ .../talent/v4beta1/JobSearchGetTenant.java | 78 +++++ .../v4beta1/JobSearchHistogramSearch.java | 120 ++++++++ .../v4beta1/JobSearchListCompanies.java | 89 ++++++ .../talent/v4beta1/JobSearchListJobs.java | 94 ++++++ .../talent/v4beta1/JobSearchListTenants.java | 77 +++++ 21 files changed, 2478 insertions(+) create mode 100644 talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchAutocompleteJobTitle.java create mode 100644 talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchCreateJobs.java create mode 100644 talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchDeleteJob.java create mode 100644 talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchUpdateJobs.java create mode 100644 talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCommuteSearch.java create mode 100644 talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateClientEvent.java create mode 100644 talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateCompany.java create mode 100644 talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJob.java create mode 100644 talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJobCustomAttributes.java create mode 100644 talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateTenant.java create mode 100644 talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCustomRankingSearch.java create mode 100644 talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteCompany.java create mode 100644 talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteJob.java create mode 100644 talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteTenant.java create mode 100644 talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetCompany.java create mode 100644 talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetJob.java create mode 100644 talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetTenant.java create mode 100644 talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchHistogramSearch.java create mode 100644 talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListCompanies.java create mode 100644 talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListJobs.java create mode 100644 talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListTenants.java diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchAutocompleteJobTitle.java b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchAutocompleteJobTitle.java new file mode 100644 index 00000000000..09b7f15c4ab --- /dev/null +++ b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchAutocompleteJobTitle.java @@ -0,0 +1,118 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// DO NOT EDIT! This is a generated sample ("Request", "job_search_autocomplete_job_title") +// sample-metadata: +// title: +// description: Complete job title given partial text (autocomplete) +// usage: gradle run +// -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchAutocompleteJobTitle +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"] [--query "[partially typed job title]"] [--num_results 5] [--language_code +// "en-US"]'] + +package com.google.cloud.examples.talent.v4beta1; + +import com.google.cloud.talent.v4beta1.CompleteQueryRequest; +import com.google.cloud.talent.v4beta1.CompleteQueryResponse; +import com.google.cloud.talent.v4beta1.CompletionClient; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.cloud.talent.v4beta1.TenantOrProjectName; +import java.util.Arrays; +import java.util.List; +import org.apache.commons.cli.CommandLine; +import org.apache.commons.cli.DefaultParser; +import org.apache.commons.cli.Option; +import org.apache.commons.cli.Options; + +public class JobSearchAutocompleteJobTitle { + // [START job_search_autocomplete_job_title] + /* + * Please include the following imports to run this sample. + * + * import com.google.cloud.talent.v4beta1.CompleteQueryRequest; + * import com.google.cloud.talent.v4beta1.CompleteQueryResponse; + * import com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult; + * import com.google.cloud.talent.v4beta1.CompletionClient; + * import com.google.cloud.talent.v4beta1.TenantName; + * import com.google.cloud.talent.v4beta1.TenantOrProjectName; + * import java.util.Arrays; + * import java.util.List; + */ + + public static void sampleCompleteQuery() { + // TODO(developer): Replace these variables before running the sample. + String projectId = "Your Google Cloud Project ID"; + String tenantId = "Your Tenant ID (using tenancy is optional)"; + String query = "[partially typed job title]"; + int numResults = 5; + String languageCode = "en-US"; + sampleCompleteQuery(projectId, tenantId, query, numResults, languageCode); + } + + /** + * Complete job title given partial text (autocomplete) + * + * @param projectId Your Google Cloud Project ID + * @param tenantId Identifier of the Tenantd + */ + public static void sampleCompleteQuery( + String projectId, String tenantId, String query, int numResults, String languageCode) { + try (CompletionClient completionClient = CompletionClient.create()) { + TenantOrProjectName parent = TenantName.of(projectId, tenantId); + List languageCodes = Arrays.asList(languageCode); + CompleteQueryRequest request = + CompleteQueryRequest.newBuilder() + .setParent(parent.toString()) + .setQuery(query) + .setPageSize(numResults) + .addAllLanguageCodes(languageCodes) + .build(); + CompleteQueryResponse response = completionClient.completeQuery(request); + for (CompleteQueryResponse.CompletionResult result : response.getCompletionResultsList()) { + System.out.printf("Suggested title: %s\n", result.getSuggestion()); + // Suggestion type is JOB_TITLE or COMPANY_TITLE + System.out.printf("Suggestion type: %s\n", result.getType()); + } + } catch (Exception exception) { + System.err.println("Failed to create the client due to: " + exception); + } + } + // [END job_search_autocomplete_job_title] + + public static void main(String[] args) throws Exception { + Options options = new Options(); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("query").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("num_results").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("language_code").build()); + + CommandLine cl = (new DefaultParser()).parse(options, args); + String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); + String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); + String query = cl.getOptionValue("query", "[partially typed job title]"); + int numResults = + cl.getOptionValue("num_results") != null + ? Integer.parseInt(cl.getOptionValue("num_results")) + : 5; + String languageCode = cl.getOptionValue("language_code", "en-US"); + + sampleCompleteQuery(projectId, tenantId, query, numResults, languageCode); + } +} diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchCreateJobs.java b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchCreateJobs.java new file mode 100644 index 00000000000..25154df1661 --- /dev/null +++ b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchCreateJobs.java @@ -0,0 +1,254 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// DO NOT EDIT! This is a generated sample ("LongRunningRequestAsync", +// "job_search_batch_create_jobs") +// sample-metadata: +// title: +// description: Batch Create Jobs +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchBatchCreateJobs +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"] [--company_name_one "Company name, e.g. +// projects/your-project/companies/company-id"] [--requisition_id_one "Job requisition ID, aka +// Posting ID. Unique per job."] [--title_one "Software Engineer"] [--description_one "This is a +// description of this wonderful job!"] [--job_application_url_one +// "https://www.example.org/job-posting/123"] [--address_one "1600 Amphitheatre Parkway, Mountain +// View, CA 94043"] [--language_code_one "en-US"] [--company_name_two "Company name, e.g. +// projects/your-project/companies/company-id"] [--requisition_id_two "Job requisition ID, aka +// Posting ID. Unique per job."] [--title_two "Quality Assurance"] [--description_two "This is a +// description of this wonderful job!"] [--job_application_url_two +// "https://www.example.org/job-posting/123"] [--address_two "111 8th Avenue, New York, NY 10011"] +// [--language_code_two "en-US"]'] + +package com.google.cloud.examples.talent.v4beta1; + +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.talent.v4beta1.BatchCreateJobsRequest; +import com.google.cloud.talent.v4beta1.BatchOperationMetadata; +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobOperationResult; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; +import java.util.Arrays; +import java.util.List; +import org.apache.commons.cli.CommandLine; +import org.apache.commons.cli.DefaultParser; +import org.apache.commons.cli.Option; +import org.apache.commons.cli.Options; + +public class JobSearchBatchCreateJobs { + // [START job_search_batch_create_jobs] + /* + * Please include the following imports to run this sample. + * + * import com.google.api.gax.longrunning.OperationFuture; + * import com.google.cloud.talent.v4beta1.BatchCreateJobsRequest; + * import com.google.cloud.talent.v4beta1.BatchOperationMetadata; + * import com.google.cloud.talent.v4beta1.Job; + * import com.google.cloud.talent.v4beta1.Job.ApplicationInfo; + * import com.google.cloud.talent.v4beta1.JobOperationResult; + * import com.google.cloud.talent.v4beta1.JobServiceClient; + * import com.google.cloud.talent.v4beta1.TenantName; + * import java.util.Arrays; + * import java.util.List; + */ + + public static void sampleBatchCreateJobs() { + // TODO(developer): Replace these variables before running the sample. + String projectId = "Your Google Cloud Project ID"; + String tenantId = "Your Tenant ID (using tenancy is optional)"; + String companyNameOne = "Company name, e.g. projects/your-project/companies/company-id"; + String requisitionIdOne = "Job requisition ID, aka Posting ID. Unique per job."; + String titleOne = "Software Engineer"; + String descriptionOne = "This is a description of this wonderful job!"; + String jobApplicationUrlOne = "https://www.example.org/job-posting/123"; + String addressOne = "1600 Amphitheatre Parkway, Mountain View, CA 94043"; + String languageCodeOne = "en-US"; + String companyNameTwo = "Company name, e.g. projects/your-project/companies/company-id"; + String requisitionIdTwo = "Job requisition ID, aka Posting ID. Unique per job."; + String titleTwo = "Quality Assurance"; + String descriptionTwo = "This is a description of this wonderful job!"; + String jobApplicationUrlTwo = "https://www.example.org/job-posting/123"; + String addressTwo = "111 8th Avenue, New York, NY 10011"; + String languageCodeTwo = "en-US"; + sampleBatchCreateJobs( + projectId, + tenantId, + companyNameOne, + requisitionIdOne, + titleOne, + descriptionOne, + jobApplicationUrlOne, + addressOne, + languageCodeOne, + companyNameTwo, + requisitionIdTwo, + titleTwo, + descriptionTwo, + jobApplicationUrlTwo, + addressTwo, + languageCodeTwo); + } + + /** + * Batch Create Jobs + * + * @param projectId Your Google Cloud Project ID + * @param tenantId Identifier of the Tenant + */ + public static void sampleBatchCreateJobs( + String projectId, + String tenantId, + String companyNameOne, + String requisitionIdOne, + String titleOne, + String descriptionOne, + String jobApplicationUrlOne, + String addressOne, + String languageCodeOne, + String companyNameTwo, + String requisitionIdTwo, + String titleTwo, + String descriptionTwo, + String jobApplicationUrlTwo, + String addressTwo, + String languageCodeTwo) { + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + String formattedParent = TenantName.format(projectId, tenantId); + List uris = Arrays.asList(jobApplicationUrlOne); + Job.ApplicationInfo applicationInfo = + Job.ApplicationInfo.newBuilder().addAllUris(uris).build(); + List addresses = Arrays.asList(addressOne); + Job jobsElement = + Job.newBuilder() + .setCompany(companyNameOne) + .setRequisitionId(requisitionIdOne) + .setTitle(titleOne) + .setDescription(descriptionOne) + .setApplicationInfo(applicationInfo) + .addAllAddresses(addresses) + .setLanguageCode(languageCodeOne) + .build(); + List uris2 = Arrays.asList(jobApplicationUrlTwo); + Job.ApplicationInfo applicationInfo2 = + Job.ApplicationInfo.newBuilder().addAllUris(uris2).build(); + List addresses2 = Arrays.asList(addressTwo); + Job jobsElement2 = + Job.newBuilder() + .setCompany(companyNameTwo) + .setRequisitionId(requisitionIdTwo) + .setTitle(titleTwo) + .setDescription(descriptionTwo) + .setApplicationInfo(applicationInfo2) + .addAllAddresses(addresses2) + .setLanguageCode(languageCodeTwo) + .build(); + List jobs = Arrays.asList(jobsElement, jobsElement2); + BatchCreateJobsRequest request = + BatchCreateJobsRequest.newBuilder().setParent(formattedParent).addAllJobs(jobs).build(); + OperationFuture future = + jobServiceClient.batchCreateJobsAsync(request); + + System.out.println("Waiting for operation to complete..."); + JobOperationResult response = future.get(); + System.out.printf("Batch response: %s\n", response); + } catch (Exception exception) { + System.err.println("Failed to create the client due to: " + exception); + } + } + // [END job_search_batch_create_jobs] + + public static void main(String[] args) throws Exception { + Options options = new Options(); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("company_name_one").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("requisition_id_one").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("title_one").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("description_one").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("job_application_url_one").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("address_one").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("language_code_one").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("company_name_two").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("requisition_id_two").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("title_two").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("description_two").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("job_application_url_two").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("address_two").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("language_code_two").build()); + + CommandLine cl = (new DefaultParser()).parse(options, args); + String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); + String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); + String companyNameOne = + cl.getOptionValue( + "company_name_one", "Company name, e.g. projects/your-project/companies/company-id"); + String requisitionIdOne = + cl.getOptionValue( + "requisition_id_one", "Job requisition ID, aka Posting ID. Unique per job."); + String titleOne = cl.getOptionValue("title_one", "Software Engineer"); + String descriptionOne = + cl.getOptionValue("description_one", "This is a description of this wonderful job!"); + String jobApplicationUrlOne = + cl.getOptionValue("job_application_url_one", "https://www.example.org/job-posting/123"); + String addressOne = + cl.getOptionValue("address_one", "1600 Amphitheatre Parkway, Mountain View, CA 94043"); + String languageCodeOne = cl.getOptionValue("language_code_one", "en-US"); + String companyNameTwo = + cl.getOptionValue( + "company_name_two", "Company name, e.g. projects/your-project/companies/company-id"); + String requisitionIdTwo = + cl.getOptionValue( + "requisition_id_two", "Job requisition ID, aka Posting ID. Unique per job."); + String titleTwo = cl.getOptionValue("title_two", "Quality Assurance"); + String descriptionTwo = + cl.getOptionValue("description_two", "This is a description of this wonderful job!"); + String jobApplicationUrlTwo = + cl.getOptionValue("job_application_url_two", "https://www.example.org/job-posting/123"); + String addressTwo = cl.getOptionValue("address_two", "111 8th Avenue, New York, NY 10011"); + String languageCodeTwo = cl.getOptionValue("language_code_two", "en-US"); + + sampleBatchCreateJobs( + projectId, + tenantId, + companyNameOne, + requisitionIdOne, + titleOne, + descriptionOne, + jobApplicationUrlOne, + addressOne, + languageCodeOne, + companyNameTwo, + requisitionIdTwo, + titleTwo, + descriptionTwo, + jobApplicationUrlTwo, + addressTwo, + languageCodeTwo); + } +} diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchDeleteJob.java b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchDeleteJob.java new file mode 100644 index 00000000000..2ba61f3449f --- /dev/null +++ b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchDeleteJob.java @@ -0,0 +1,92 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// DO NOT EDIT! This is a generated sample ("Request", "job_search_batch_delete_job") +// sample-metadata: +// title: +// description: Batch delete jobs using a filter +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchBatchDeleteJob +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"] [--filter "[Query]"]'] + +package com.google.cloud.examples.talent.v4beta1; + +import com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.cloud.talent.v4beta1.TenantOrProjectName; +import org.apache.commons.cli.CommandLine; +import org.apache.commons.cli.DefaultParser; +import org.apache.commons.cli.Option; +import org.apache.commons.cli.Options; + +public class JobSearchBatchDeleteJob { + // [START job_search_batch_delete_job] + /* + * Please include the following imports to run this sample. + * + * import com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest; + * import com.google.cloud.talent.v4beta1.JobServiceClient; + * import com.google.cloud.talent.v4beta1.TenantName; + * import com.google.cloud.talent.v4beta1.TenantOrProjectName; + */ + + public static void sampleBatchDeleteJobs() { + // TODO(developer): Replace these variables before running the sample. + String projectId = "Your Google Cloud Project ID"; + String tenantId = "Your Tenant ID (using tenancy is optional)"; + String filter = "[Query]"; + sampleBatchDeleteJobs(projectId, tenantId, filter); + } + + /** + * Batch delete jobs using a filter + * + * @param projectId Your Google Cloud Project ID + * @param tenantId Identifier of the Tenantd + * @param filter The filter string specifies the jobs to be deleted. For example: companyName = + * "projects/api-test-project/companies/123" AND equisitionId = "req-1" + */ + public static void sampleBatchDeleteJobs(String projectId, String tenantId, String filter) { + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + TenantOrProjectName parent = TenantName.of(projectId, tenantId); + BatchDeleteJobsRequest request = + BatchDeleteJobsRequest.newBuilder() + .setParent(parent.toString()) + .setFilter(filter) + .build(); + jobServiceClient.batchDeleteJobs(request); + System.out.println("Batch deleted jobs from filter"); + } catch (Exception exception) { + System.err.println("Failed to create the client due to: " + exception); + } + } + // [END job_search_batch_delete_job] + + public static void main(String[] args) throws Exception { + Options options = new Options(); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("filter").build()); + + CommandLine cl = (new DefaultParser()).parse(options, args); + String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); + String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); + String filter = cl.getOptionValue("filter", "[Query]"); + + sampleBatchDeleteJobs(projectId, tenantId, filter); + } +} diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchUpdateJobs.java b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchUpdateJobs.java new file mode 100644 index 00000000000..08928826b29 --- /dev/null +++ b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchUpdateJobs.java @@ -0,0 +1,276 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// DO NOT EDIT! This is a generated sample ("LongRunningRequestAsync", +// "job_search_batch_update_jobs") +// sample-metadata: +// title: +// description: Batch Update Jobs +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchBatchUpdateJobs +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"] [--job_name_one "job name, e.g. +// projects/your-project/tenants/tenant-id/jobs/job-id"] [--company_name_one "Company name, e.g. +// projects/your-project/companies/company-id"] [--requisition_id_one "Job requisition ID, aka +// Posting ID. Unique per job."] [--title_one "Software Engineer"] [--description_one "This is a +// description of this wonderful job!"] [--job_application_url_one +// "https://www.example.org/job-posting/123"] [--address_one "1600 Amphitheatre Parkway, Mountain +// View, CA 94043"] [--language_code_one "en-US"] [--job_name_two "job name, e.g. +// projects/your-project/tenants/tenant-id/jobs/job-id"] [--company_name_two "Company name, e.g. +// projects/your-project/companies/company-id"] [--requisition_id_two "Job requisition ID, aka +// Posting ID. Unique per job."] [--title_two "Quality Assurance"] [--description_two "This is a +// description of this wonderful job!"] [--job_application_url_two +// "https://www.example.org/job-posting/123"] [--address_two "111 8th Avenue, New York, NY 10011"] +// [--language_code_two "en-US"]'] + +package com.google.cloud.examples.talent.v4beta1; + +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.talent.v4beta1.BatchOperationMetadata; +import com.google.cloud.talent.v4beta1.BatchUpdateJobsRequest; +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobOperationResult; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; +import java.util.Arrays; +import java.util.List; +import org.apache.commons.cli.CommandLine; +import org.apache.commons.cli.DefaultParser; +import org.apache.commons.cli.Option; +import org.apache.commons.cli.Options; + +public class JobSearchBatchUpdateJobs { + // [START job_search_batch_update_jobs] + /* + * Please include the following imports to run this sample. + * + * import com.google.api.gax.longrunning.OperationFuture; + * import com.google.cloud.talent.v4beta1.BatchOperationMetadata; + * import com.google.cloud.talent.v4beta1.BatchUpdateJobsRequest; + * import com.google.cloud.talent.v4beta1.Job; + * import com.google.cloud.talent.v4beta1.Job.ApplicationInfo; + * import com.google.cloud.talent.v4beta1.JobOperationResult; + * import com.google.cloud.talent.v4beta1.JobServiceClient; + * import com.google.cloud.talent.v4beta1.TenantName; + * import java.util.Arrays; + * import java.util.List; + */ + + public static void sampleBatchUpdateJobs() { + // TODO(developer): Replace these variables before running the sample. + String projectId = "Your Google Cloud Project ID"; + String tenantId = "Your Tenant ID (using tenancy is optional)"; + String jobNameOne = "job name, e.g. projects/your-project/tenants/tenant-id/jobs/job-id"; + String companyNameOne = "Company name, e.g. projects/your-project/companies/company-id"; + String requisitionIdOne = "Job requisition ID, aka Posting ID. Unique per job."; + String titleOne = "Software Engineer"; + String descriptionOne = "This is a description of this wonderful job!"; + String jobApplicationUrlOne = "https://www.example.org/job-posting/123"; + String addressOne = "1600 Amphitheatre Parkway, Mountain View, CA 94043"; + String languageCodeOne = "en-US"; + String jobNameTwo = "job name, e.g. projects/your-project/tenants/tenant-id/jobs/job-id"; + String companyNameTwo = "Company name, e.g. projects/your-project/companies/company-id"; + String requisitionIdTwo = "Job requisition ID, aka Posting ID. Unique per job."; + String titleTwo = "Quality Assurance"; + String descriptionTwo = "This is a description of this wonderful job!"; + String jobApplicationUrlTwo = "https://www.example.org/job-posting/123"; + String addressTwo = "111 8th Avenue, New York, NY 10011"; + String languageCodeTwo = "en-US"; + sampleBatchUpdateJobs( + projectId, + tenantId, + jobNameOne, + companyNameOne, + requisitionIdOne, + titleOne, + descriptionOne, + jobApplicationUrlOne, + addressOne, + languageCodeOne, + jobNameTwo, + companyNameTwo, + requisitionIdTwo, + titleTwo, + descriptionTwo, + jobApplicationUrlTwo, + addressTwo, + languageCodeTwo); + } + + /** + * Batch Update Jobs + * + * @param projectId Your Google Cloud Project ID + * @param tenantId Identifier of the Tenant + */ + public static void sampleBatchUpdateJobs( + String projectId, + String tenantId, + String jobNameOne, + String companyNameOne, + String requisitionIdOne, + String titleOne, + String descriptionOne, + String jobApplicationUrlOne, + String addressOne, + String languageCodeOne, + String jobNameTwo, + String companyNameTwo, + String requisitionIdTwo, + String titleTwo, + String descriptionTwo, + String jobApplicationUrlTwo, + String addressTwo, + String languageCodeTwo) { + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + String formattedParent = TenantName.format(projectId, tenantId); + List uris = Arrays.asList(jobApplicationUrlOne); + Job.ApplicationInfo applicationInfo = + Job.ApplicationInfo.newBuilder().addAllUris(uris).build(); + List addresses = Arrays.asList(addressOne); + Job jobsElement = + Job.newBuilder() + .setName(jobNameOne) + .setCompany(companyNameOne) + .setRequisitionId(requisitionIdOne) + .setTitle(titleOne) + .setDescription(descriptionOne) + .setApplicationInfo(applicationInfo) + .addAllAddresses(addresses) + .setLanguageCode(languageCodeOne) + .build(); + List uris2 = Arrays.asList(jobApplicationUrlTwo); + Job.ApplicationInfo applicationInfo2 = + Job.ApplicationInfo.newBuilder().addAllUris(uris2).build(); + List addresses2 = Arrays.asList(addressTwo); + Job jobsElement2 = + Job.newBuilder() + .setName(jobNameTwo) + .setCompany(companyNameTwo) + .setRequisitionId(requisitionIdTwo) + .setTitle(titleTwo) + .setDescription(descriptionTwo) + .setApplicationInfo(applicationInfo2) + .addAllAddresses(addresses2) + .setLanguageCode(languageCodeTwo) + .build(); + List jobs = Arrays.asList(jobsElement, jobsElement2); + BatchUpdateJobsRequest request = + BatchUpdateJobsRequest.newBuilder().setParent(formattedParent).addAllJobs(jobs).build(); + OperationFuture future = + jobServiceClient.batchUpdateJobsAsync(request); + + System.out.println("Waiting for operation to complete..."); + JobOperationResult response = future.get(); + System.out.printf("Batch response: %s\n", response); + } catch (Exception exception) { + System.err.println("Failed to create the client due to: " + exception); + } + } + // [END job_search_batch_update_jobs] + + public static void main(String[] args) throws Exception { + Options options = new Options(); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("job_name_one").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("company_name_one").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("requisition_id_one").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("title_one").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("description_one").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("job_application_url_one").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("address_one").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("language_code_one").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("job_name_two").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("company_name_two").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("requisition_id_two").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("title_two").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("description_two").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("job_application_url_two").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("address_two").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("language_code_two").build()); + + CommandLine cl = (new DefaultParser()).parse(options, args); + String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); + String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); + String jobNameOne = + cl.getOptionValue( + "job_name_one", "job name, e.g. projects/your-project/tenants/tenant-id/jobs/job-id"); + String companyNameOne = + cl.getOptionValue( + "company_name_one", "Company name, e.g. projects/your-project/companies/company-id"); + String requisitionIdOne = + cl.getOptionValue( + "requisition_id_one", "Job requisition ID, aka Posting ID. Unique per job."); + String titleOne = cl.getOptionValue("title_one", "Software Engineer"); + String descriptionOne = + cl.getOptionValue("description_one", "This is a description of this wonderful job!"); + String jobApplicationUrlOne = + cl.getOptionValue("job_application_url_one", "https://www.example.org/job-posting/123"); + String addressOne = + cl.getOptionValue("address_one", "1600 Amphitheatre Parkway, Mountain View, CA 94043"); + String languageCodeOne = cl.getOptionValue("language_code_one", "en-US"); + String jobNameTwo = + cl.getOptionValue( + "job_name_two", "job name, e.g. projects/your-project/tenants/tenant-id/jobs/job-id"); + String companyNameTwo = + cl.getOptionValue( + "company_name_two", "Company name, e.g. projects/your-project/companies/company-id"); + String requisitionIdTwo = + cl.getOptionValue( + "requisition_id_two", "Job requisition ID, aka Posting ID. Unique per job."); + String titleTwo = cl.getOptionValue("title_two", "Quality Assurance"); + String descriptionTwo = + cl.getOptionValue("description_two", "This is a description of this wonderful job!"); + String jobApplicationUrlTwo = + cl.getOptionValue("job_application_url_two", "https://www.example.org/job-posting/123"); + String addressTwo = cl.getOptionValue("address_two", "111 8th Avenue, New York, NY 10011"); + String languageCodeTwo = cl.getOptionValue("language_code_two", "en-US"); + + sampleBatchUpdateJobs( + projectId, + tenantId, + jobNameOne, + companyNameOne, + requisitionIdOne, + titleOne, + descriptionOne, + jobApplicationUrlOne, + addressOne, + languageCodeOne, + jobNameTwo, + companyNameTwo, + requisitionIdTwo, + titleTwo, + descriptionTwo, + jobApplicationUrlTwo, + addressTwo, + languageCodeTwo); + } +} diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCommuteSearch.java b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCommuteSearch.java new file mode 100644 index 00000000000..5a17ec7212a --- /dev/null +++ b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCommuteSearch.java @@ -0,0 +1,127 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// DO NOT EDIT! This is a generated sample ("RequestPaged", "job_search_commute_search") +// sample-metadata: +// title: +// description: Search Jobs using commute distance +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCommuteSearch +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"]'] + +package com.google.cloud.examples.talent.v4beta1; + +import com.google.cloud.talent.v4beta1.CommuteFilter; +import com.google.cloud.talent.v4beta1.CommuteMethod; +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobQuery; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.RequestMetadata; +import com.google.cloud.talent.v4beta1.SearchJobsRequest; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.cloud.talent.v4beta1.TenantOrProjectName; +import com.google.protobuf.Duration; +import com.google.type.LatLng; +import org.apache.commons.cli.CommandLine; +import org.apache.commons.cli.DefaultParser; +import org.apache.commons.cli.Option; +import org.apache.commons.cli.Options; + +public class JobSearchCommuteSearch { + // [START job_search_commute_search] + /* + * Please include the following imports to run this sample. + * + * import com.google.cloud.talent.v4beta1.CommuteFilter; + * import com.google.cloud.talent.v4beta1.CommuteMethod; + * import com.google.cloud.talent.v4beta1.Job; + * import com.google.cloud.talent.v4beta1.JobQuery; + * import com.google.cloud.talent.v4beta1.JobServiceClient; + * import com.google.cloud.talent.v4beta1.RequestMetadata; + * import com.google.cloud.talent.v4beta1.SearchJobsRequest; + * import com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob; + * import com.google.cloud.talent.v4beta1.TenantName; + * import com.google.cloud.talent.v4beta1.TenantOrProjectName; + * import com.google.protobuf.Duration; + * import com.google.type.LatLng; + */ + + public static void sampleSearchJobs() { + // TODO(developer): Replace these variables before running the sample. + String projectId = "Your Google Cloud Project ID"; + String tenantId = "Your Tenant ID (using tenancy is optional)"; + sampleSearchJobs(projectId, tenantId); + } + + /** Search Jobs using commute distance */ + public static void sampleSearchJobs(String projectId, String tenantId) { + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + TenantOrProjectName parent = TenantName.of(projectId, tenantId); + String domain = "www.example.com"; + String sessionId = "Hashed session identifier"; + String userId = "Hashed user identifier"; + RequestMetadata requestMetadata = + RequestMetadata.newBuilder() + .setDomain(domain) + .setSessionId(sessionId) + .setUserId(userId) + .build(); + CommuteMethod commuteMethod = CommuteMethod.TRANSIT; + long seconds = 1800L; + Duration travelDuration = Duration.newBuilder().setSeconds(seconds).build(); + double latitude = 37.422408; + double longitude = -122.084068; + LatLng startCoordinates = + LatLng.newBuilder().setLatitude(latitude).setLongitude(longitude).build(); + CommuteFilter commuteFilter = + CommuteFilter.newBuilder() + .setCommuteMethod(commuteMethod) + .setTravelDuration(travelDuration) + .setStartCoordinates(startCoordinates) + .build(); + JobQuery jobQuery = JobQuery.newBuilder().setCommuteFilter(commuteFilter).build(); + SearchJobsRequest request = + SearchJobsRequest.newBuilder() + .setParent(parent.toString()) + .setRequestMetadata(requestMetadata) + .setJobQuery(jobQuery) + .build(); + for (SearchJobsResponse.MatchingJob responseItem : + jobServiceClient.searchJobs(request).iterateAll()) { + System.out.printf("Job summary: %s\n", responseItem.getJobSummary()); + System.out.printf("Job title snippet: %s\n", responseItem.getJobTitleSnippet()); + Job job = responseItem.getJob(); + System.out.printf("Job name: %s\n", job.getName()); + System.out.printf("Job title: %s\n", job.getTitle()); + } + } catch (Exception exception) { + System.err.println("Failed to create the client due to: " + exception); + } + } + // [END job_search_commute_search] + + public static void main(String[] args) throws Exception { + Options options = new Options(); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); + + CommandLine cl = (new DefaultParser()).parse(options, args); + String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); + String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); + + sampleSearchJobs(projectId, tenantId); + } +} diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateClientEvent.java b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateClientEvent.java new file mode 100644 index 00000000000..e0f77db4cf7 --- /dev/null +++ b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateClientEvent.java @@ -0,0 +1,133 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// DO NOT EDIT! This is a generated sample ("Request", "job_search_create_client_event") +// sample-metadata: +// title: +// description: Creates a client event +// usage: gradle run +// -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateClientEvent +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"] [--request_id "[request_id from ResponseMetadata]"] [--event_id "[Set this +// to a unique identifier]"]'] + +package com.google.cloud.examples.talent.v4beta1; + +import com.google.cloud.talent.v4beta1.ClientEvent; +import com.google.cloud.talent.v4beta1.CreateClientEventRequest; +import com.google.cloud.talent.v4beta1.EventServiceClient; +import com.google.cloud.talent.v4beta1.JobEvent; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.cloud.talent.v4beta1.TenantOrProjectName; +import com.google.protobuf.Timestamp; +import java.util.Arrays; +import java.util.List; +import org.apache.commons.cli.CommandLine; +import org.apache.commons.cli.DefaultParser; +import org.apache.commons.cli.Option; +import org.apache.commons.cli.Options; + +public class JobSearchCreateClientEvent { + // [START job_search_create_client_event] + /* + * Please include the following imports to run this sample. + * + * import com.google.cloud.talent.v4beta1.ClientEvent; + * import com.google.cloud.talent.v4beta1.CreateClientEventRequest; + * import com.google.cloud.talent.v4beta1.EventServiceClient; + * import com.google.cloud.talent.v4beta1.JobEvent; + * import com.google.cloud.talent.v4beta1.TenantName; + * import com.google.cloud.talent.v4beta1.TenantOrProjectName; + * import com.google.protobuf.Timestamp; + * import java.util.Arrays; + * import java.util.List; + */ + + public static void sampleCreateClientEvent() { + // TODO(developer): Replace these variables before running the sample. + String projectId = "Your Google Cloud Project ID"; + String tenantId = "Your Tenant ID (using tenancy is optional)"; + String requestId = "[request_id from ResponseMetadata]"; + String eventId = "[Set this to a unique identifier]"; + sampleCreateClientEvent(projectId, tenantId, requestId, eventId); + } + + /** + * Creates a client event + * + * @param projectId Your Google Cloud Project ID + * @param tenantId Identifier of the Tenant + * @param requestId A unique ID generated in the API responses. Value should be set to the + * request_id from an API response. + * @param eventId A unique identifier, generated by the client application + */ + public static void sampleCreateClientEvent( + String projectId, String tenantId, String requestId, String eventId) { + try (EventServiceClient eventServiceClient = EventServiceClient.create()) { + TenantOrProjectName parent = TenantName.of(projectId, tenantId); + + // The timestamp of the event as seconds of UTC time since Unix epoch + // For more information on how to create google.protobuf.Timestamps + // See: + // https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/timestamp.proto + long seconds = 0L; + Timestamp createTime = Timestamp.newBuilder().setSeconds(seconds).build(); + + // The type of event attributed to the behavior of the end user + JobEvent.JobEventType type = JobEvent.JobEventType.VIEW; + + // List of job names associated with this event + String jobsElement = "projects/[Project ID]/tenants/[Tenant ID]/jobs/[Job ID]"; + String jobsElement2 = "projects/[Project ID]/tenants/[Tenant ID]/jobs/[Job ID]"; + List jobs = Arrays.asList(jobsElement, jobsElement2); + JobEvent jobEvent = JobEvent.newBuilder().setType(type).addAllJobs(jobs).build(); + ClientEvent clientEvent = + ClientEvent.newBuilder() + .setRequestId(requestId) + .setEventId(eventId) + .setCreateTime(createTime) + .setJobEvent(jobEvent) + .build(); + CreateClientEventRequest request = + CreateClientEventRequest.newBuilder() + .setParent(parent.toString()) + .setClientEvent(clientEvent) + .build(); + ClientEvent response = eventServiceClient.createClientEvent(request); + System.out.println("Created client event"); + } catch (Exception exception) { + System.err.println("Failed to create the client due to: " + exception); + } + } + // [END job_search_create_client_event] + + public static void main(String[] args) throws Exception { + Options options = new Options(); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("request_id").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("event_id").build()); + + CommandLine cl = (new DefaultParser()).parse(options, args); + String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); + String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); + String requestId = cl.getOptionValue("request_id", "[request_id from ResponseMetadata]"); + String eventId = cl.getOptionValue("event_id", "[Set this to a unique identifier]"); + + sampleCreateClientEvent(projectId, tenantId, requestId, eventId); + } +} diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateCompany.java b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateCompany.java new file mode 100644 index 00000000000..22d897d879a --- /dev/null +++ b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateCompany.java @@ -0,0 +1,104 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// DO NOT EDIT! This is a generated sample ("Request", "job_search_create_company") +// sample-metadata: +// title: +// description: Create Company +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateCompany +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"] [--display_name "My Company Name"] [--external_id "Identifier of this +// company in my system"]'] + +package com.google.cloud.examples.talent.v4beta1; + +import com.google.cloud.talent.v4beta1.Company; +import com.google.cloud.talent.v4beta1.CompanyServiceClient; +import com.google.cloud.talent.v4beta1.CreateCompanyRequest; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.cloud.talent.v4beta1.TenantOrProjectName; +import org.apache.commons.cli.CommandLine; +import org.apache.commons.cli.DefaultParser; +import org.apache.commons.cli.Option; +import org.apache.commons.cli.Options; + +public class JobSearchCreateCompany { + // [START job_search_create_company] + /* + * Please include the following imports to run this sample. + * + * import com.google.cloud.talent.v4beta1.Company; + * import com.google.cloud.talent.v4beta1.CompanyServiceClient; + * import com.google.cloud.talent.v4beta1.CreateCompanyRequest; + * import com.google.cloud.talent.v4beta1.TenantName; + * import com.google.cloud.talent.v4beta1.TenantOrProjectName; + */ + + public static void sampleCreateCompany() { + // TODO(developer): Replace these variables before running the sample. + String projectId = "Your Google Cloud Project ID"; + String tenantId = "Your Tenant ID (using tenancy is optional)"; + String displayName = "My Company Name"; + String externalId = "Identifier of this company in my system"; + sampleCreateCompany(projectId, tenantId, displayName, externalId); + } + + /** + * Create Company + * + * @param projectId Your Google Cloud Project ID + * @param tenantId Identifier of the Tenant + */ + public static void sampleCreateCompany( + String projectId, String tenantId, String displayName, String externalId) { + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + TenantOrProjectName parent = TenantName.of(projectId, tenantId); + Company company = + Company.newBuilder().setDisplayName(displayName).setExternalId(externalId).build(); + CreateCompanyRequest request = + CreateCompanyRequest.newBuilder() + .setParent(parent.toString()) + .setCompany(company) + .build(); + Company response = companyServiceClient.createCompany(request); + System.out.println("Created Company"); + System.out.printf("Name: %s\n", response.getName()); + System.out.printf("Display Name: %s\n", response.getDisplayName()); + System.out.printf("External ID: %s\n", response.getExternalId()); + } catch (Exception exception) { + System.err.println("Failed to create the client due to: " + exception); + } + } + // [END job_search_create_company] + + public static void main(String[] args) throws Exception { + Options options = new Options(); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("display_name").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("external_id").build()); + + CommandLine cl = (new DefaultParser()).parse(options, args); + String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); + String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); + String displayName = cl.getOptionValue("display_name", "My Company Name"); + String externalId = cl.getOptionValue("external_id", "Identifier of this company in my system"); + + sampleCreateCompany(projectId, tenantId, displayName, externalId); + } +} diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJob.java b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJob.java new file mode 100644 index 00000000000..717a979eb6b --- /dev/null +++ b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJob.java @@ -0,0 +1,177 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// DO NOT EDIT! This is a generated sample ("Request", "job_search_create_job") +// sample-metadata: +// title: +// description: Create Job +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateJob +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"] [--company_name "Company name, e.g. +// projects/your-project/companies/company-id"] [--requisition_id "Job requisition ID, aka Posting +// ID. Unique per job."] [--title "Software Engineer"] [--description "This is a description of this +// wonderful job!"] [--job_application_url "https://www.example.org/job-posting/123"] +// [--address_one "1600 Amphitheatre Parkway, Mountain View, CA 94043"] [--address_two "111 8th +// Avenue, New York, NY 10011"] [--language_code "en-US"]'] + +package com.google.cloud.examples.talent.v4beta1; + +import com.google.cloud.talent.v4beta1.CreateJobRequest; +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.cloud.talent.v4beta1.TenantOrProjectName; +import java.util.Arrays; +import java.util.List; +import org.apache.commons.cli.CommandLine; +import org.apache.commons.cli.DefaultParser; +import org.apache.commons.cli.Option; +import org.apache.commons.cli.Options; + +public class JobSearchCreateJob { + // [START job_search_create_job] + /* + * Please include the following imports to run this sample. + * + * import com.google.cloud.talent.v4beta1.CreateJobRequest; + * import com.google.cloud.talent.v4beta1.Job; + * import com.google.cloud.talent.v4beta1.Job.ApplicationInfo; + * import com.google.cloud.talent.v4beta1.JobServiceClient; + * import com.google.cloud.talent.v4beta1.TenantName; + * import com.google.cloud.talent.v4beta1.TenantOrProjectName; + * import java.util.Arrays; + * import java.util.List; + */ + + public static void sampleCreateJob() { + // TODO(developer): Replace these variables before running the sample. + String projectId = "Your Google Cloud Project ID"; + String tenantId = "Your Tenant ID (using tenancy is optional)"; + String companyName = "Company name, e.g. projects/your-project/companies/company-id"; + String requisitionId = "Job requisition ID, aka Posting ID. Unique per job."; + String title = "Software Engineer"; + String description = "This is a description of this wonderful job!"; + String jobApplicationUrl = "https://www.example.org/job-posting/123"; + String addressOne = "1600 Amphitheatre Parkway, Mountain View, CA 94043"; + String addressTwo = "111 8th Avenue, New York, NY 10011"; + String languageCode = "en-US"; + sampleCreateJob( + projectId, + tenantId, + companyName, + requisitionId, + title, + description, + jobApplicationUrl, + addressOne, + addressTwo, + languageCode); + } + + /** + * Create Job + * + * @param projectId Your Google Cloud Project ID + * @param tenantId Identifier of the Tenant + */ + public static void sampleCreateJob( + String projectId, + String tenantId, + String companyName, + String requisitionId, + String title, + String description, + String jobApplicationUrl, + String addressOne, + String addressTwo, + String languageCode) { + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + TenantOrProjectName parent = TenantName.of(projectId, tenantId); + List uris = Arrays.asList(jobApplicationUrl); + Job.ApplicationInfo applicationInfo = + Job.ApplicationInfo.newBuilder().addAllUris(uris).build(); + List addresses = Arrays.asList(addressOne, addressTwo); + Job job = + Job.newBuilder() + .setCompany(companyName) + .setRequisitionId(requisitionId) + .setTitle(title) + .setDescription(description) + .setApplicationInfo(applicationInfo) + .addAllAddresses(addresses) + .setLanguageCode(languageCode) + .build(); + CreateJobRequest request = + CreateJobRequest.newBuilder().setParent(parent.toString()).setJob(job).build(); + Job response = jobServiceClient.createJob(request); + System.out.printf("Created job: %s\n", response.getName()); + } catch (Exception exception) { + System.err.println("Failed to create the client due to: " + exception); + } + } + // [END job_search_create_job] + + public static void main(String[] args) throws Exception { + Options options = new Options(); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("company_name").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("requisition_id").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("title").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("description").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("job_application_url").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("address_one").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("address_two").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("language_code").build()); + + CommandLine cl = (new DefaultParser()).parse(options, args); + String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); + String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); + String companyName = + cl.getOptionValue( + "company_name", "Company name, e.g. projects/your-project/companies/company-id"); + String requisitionId = + cl.getOptionValue("requisition_id", "Job requisition ID, aka Posting ID. Unique per job."); + String title = cl.getOptionValue("title", "Software Engineer"); + String description = + cl.getOptionValue("description", "This is a description of this wonderful job!"); + String jobApplicationUrl = + cl.getOptionValue("job_application_url", "https://www.example.org/job-posting/123"); + String addressOne = + cl.getOptionValue("address_one", "1600 Amphitheatre Parkway, Mountain View, CA 94043"); + String addressTwo = cl.getOptionValue("address_two", "111 8th Avenue, New York, NY 10011"); + String languageCode = cl.getOptionValue("language_code", "en-US"); + + sampleCreateJob( + projectId, + tenantId, + companyName, + requisitionId, + title, + description, + jobApplicationUrl, + addressOne, + addressTwo, + languageCode); + } +} diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJobCustomAttributes.java b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJobCustomAttributes.java new file mode 100644 index 00000000000..8b52cd635ce --- /dev/null +++ b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJobCustomAttributes.java @@ -0,0 +1,115 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// DO NOT EDIT! This is a generated sample ("Request", "job_search_create_job_custom_attributes") +// sample-metadata: +// title: +// description: Create Job with Custom Attributes +// usage: gradle run +// -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateJobCustomAttributes +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"] [--company_name "Company name, e.g. +// projects/your-project/companies/company-id"] [--requisition_id "Job requisition ID, aka Posting +// ID. Unique per job."] [--language_code "en-US"]'] + +package com.google.cloud.examples.talent.v4beta1; + +import com.google.cloud.talent.v4beta1.CreateJobRequest; +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.cloud.talent.v4beta1.TenantOrProjectName; +import org.apache.commons.cli.CommandLine; +import org.apache.commons.cli.DefaultParser; +import org.apache.commons.cli.Option; +import org.apache.commons.cli.Options; + +public class JobSearchCreateJobCustomAttributes { + // [START job_search_create_job_custom_attributes] + /* + * Please include the following imports to run this sample. + * + * import com.google.cloud.talent.v4beta1.CreateJobRequest; + * import com.google.cloud.talent.v4beta1.Job; + * import com.google.cloud.talent.v4beta1.JobServiceClient; + * import com.google.cloud.talent.v4beta1.TenantName; + * import com.google.cloud.talent.v4beta1.TenantOrProjectName; + */ + + public static void sampleCreateJob() { + // TODO(developer): Replace these variables before running the sample. + String projectId = "Your Google Cloud Project ID"; + String tenantId = "Your Tenant ID (using tenancy is optional)"; + String companyName = "Company name, e.g. projects/your-project/companies/company-id"; + String requisitionId = "Job requisition ID, aka Posting ID. Unique per job."; + String languageCode = "en-US"; + sampleCreateJob(projectId, tenantId, companyName, requisitionId, languageCode); + } + + /** + * Create Job with Custom Attributes + * + * @param projectId Your Google Cloud Project ID + * @param tenantId Identifier of the Tenantd + */ + public static void sampleCreateJob( + String projectId, + String tenantId, + String companyName, + String requisitionId, + String languageCode) { + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + TenantOrProjectName parent = TenantName.of(projectId, tenantId); + Job job = + Job.newBuilder() + .setCompany(companyName) + .setRequisitionId(requisitionId) + .setLanguageCode(languageCode) + .build(); + CreateJobRequest request = + CreateJobRequest.newBuilder().setParent(parent.toString()).setJob(job).build(); + Job response = jobServiceClient.createJob(request); + System.out.printf("Created job: %s\n", response.getName()); + } catch (Exception exception) { + System.err.println("Failed to create the client due to: " + exception); + } + } + // [END job_search_create_job_custom_attributes] + + public static void main(String[] args) throws Exception { + Options options = new Options(); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("company_name").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("requisition_id").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("language_code").build()); + + CommandLine cl = (new DefaultParser()).parse(options, args); + String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); + String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); + String companyName = + cl.getOptionValue( + "company_name", "Company name, e.g. projects/your-project/companies/company-id"); + String requisitionId = + cl.getOptionValue("requisition_id", "Job requisition ID, aka Posting ID. Unique per job."); + String languageCode = cl.getOptionValue("language_code", "en-US"); + + sampleCreateJob(projectId, tenantId, companyName, requisitionId, languageCode); + } +} diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateTenant.java b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateTenant.java new file mode 100644 index 00000000000..4c64217424b --- /dev/null +++ b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateTenant.java @@ -0,0 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// DO NOT EDIT! This is a generated sample ("Request", "job_search_create_tenant") +// sample-metadata: +// title: +// description: Create Tenant for scoping resources, e.g. companies and jobs +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateTenant +// [--args='[--project_id "Your Google Cloud Project ID"] [--external_id "Your Unique Identifier for +// Tenant"]'] + +package com.google.cloud.examples.talent.v4beta1; + +import com.google.cloud.talent.v4beta1.CreateTenantRequest; +import com.google.cloud.talent.v4beta1.ProjectName; +import com.google.cloud.talent.v4beta1.Tenant; +import com.google.cloud.talent.v4beta1.TenantServiceClient; +import org.apache.commons.cli.CommandLine; +import org.apache.commons.cli.DefaultParser; +import org.apache.commons.cli.Option; +import org.apache.commons.cli.Options; + +public class JobSearchCreateTenant { + // [START job_search_create_tenant] + /* + * Please include the following imports to run this sample. + * + * import com.google.cloud.talent.v4beta1.CreateTenantRequest; + * import com.google.cloud.talent.v4beta1.ProjectName; + * import com.google.cloud.talent.v4beta1.Tenant; + * import com.google.cloud.talent.v4beta1.TenantServiceClient; + */ + + public static void sampleCreateTenant() { + // TODO(developer): Replace these variables before running the sample. + String projectId = "Your Google Cloud Project ID"; + String externalId = "Your Unique Identifier for Tenant"; + sampleCreateTenant(projectId, externalId); + } + + /** Create Tenant for scoping resources, e.g. companies and jobs */ + public static void sampleCreateTenant(String projectId, String externalId) { + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + ProjectName parent = ProjectName.of(projectId); + Tenant tenant = Tenant.newBuilder().setExternalId(externalId).build(); + CreateTenantRequest request = + CreateTenantRequest.newBuilder().setParent(parent.toString()).setTenant(tenant).build(); + Tenant response = tenantServiceClient.createTenant(request); + System.out.println("Created Tenant"); + System.out.printf("Name: %s\n", response.getName()); + System.out.printf("External ID: %s\n", response.getExternalId()); + } catch (Exception exception) { + System.err.println("Failed to create the client due to: " + exception); + } + } + // [END job_search_create_tenant] + + public static void main(String[] args) throws Exception { + Options options = new Options(); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("external_id").build()); + + CommandLine cl = (new DefaultParser()).parse(options, args); + String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); + String externalId = cl.getOptionValue("external_id", "Your Unique Identifier for Tenant"); + + sampleCreateTenant(projectId, externalId); + } +} diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCustomRankingSearch.java b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCustomRankingSearch.java new file mode 100644 index 00000000000..66b04264bbe --- /dev/null +++ b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCustomRankingSearch.java @@ -0,0 +1,120 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// DO NOT EDIT! This is a generated sample ("RequestPaged", "job_search_custom_ranking_search") +// sample-metadata: +// title: +// description: Search Jobs using custom rankings +// usage: gradle run +// -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCustomRankingSearch +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"]'] + +package com.google.cloud.examples.talent.v4beta1; + +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.RequestMetadata; +import com.google.cloud.talent.v4beta1.SearchJobsRequest; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.cloud.talent.v4beta1.TenantOrProjectName; +import org.apache.commons.cli.CommandLine; +import org.apache.commons.cli.DefaultParser; +import org.apache.commons.cli.Option; +import org.apache.commons.cli.Options; + +public class JobSearchCustomRankingSearch { + // [START job_search_custom_ranking_search] + /* + * Please include the following imports to run this sample. + * + * import com.google.cloud.talent.v4beta1.Job; + * import com.google.cloud.talent.v4beta1.JobServiceClient; + * import com.google.cloud.talent.v4beta1.RequestMetadata; + * import com.google.cloud.talent.v4beta1.SearchJobsRequest; + * import com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo; + * import com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob; + * import com.google.cloud.talent.v4beta1.TenantName; + * import com.google.cloud.talent.v4beta1.TenantOrProjectName; + */ + + public static void sampleSearchJobs() { + // TODO(developer): Replace these variables before running the sample. + String projectId = "Your Google Cloud Project ID"; + String tenantId = "Your Tenant ID (using tenancy is optional)"; + sampleSearchJobs(projectId, tenantId); + } + + /** + * Search Jobs using custom rankings + * + * @param projectId Your Google Cloud Project ID + * @param tenantId Identifier of the Tenantd + */ + public static void sampleSearchJobs(String projectId, String tenantId) { + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + TenantOrProjectName parent = TenantName.of(projectId, tenantId); + String domain = "www.example.com"; + String sessionId = "Hashed session identifier"; + String userId = "Hashed user identifier"; + RequestMetadata requestMetadata = + RequestMetadata.newBuilder() + .setDomain(domain) + .setSessionId(sessionId) + .setUserId(userId) + .build(); + SearchJobsRequest.CustomRankingInfo.ImportanceLevel importanceLevel = + SearchJobsRequest.CustomRankingInfo.ImportanceLevel.EXTREME; + String rankingExpression = "(someFieldLong + 25) * 0.25"; + SearchJobsRequest.CustomRankingInfo customRankingInfo = + SearchJobsRequest.CustomRankingInfo.newBuilder() + .setImportanceLevel(importanceLevel) + .setRankingExpression(rankingExpression) + .build(); + String orderBy = "custom_ranking desc"; + SearchJobsRequest request = + SearchJobsRequest.newBuilder() + .setParent(parent.toString()) + .setRequestMetadata(requestMetadata) + .setCustomRankingInfo(customRankingInfo) + .setOrderBy(orderBy) + .build(); + for (SearchJobsResponse.MatchingJob responseItem : + jobServiceClient.searchJobs(request).iterateAll()) { + System.out.printf("Job summary: %s\n", responseItem.getJobSummary()); + System.out.printf("Job title snippet: %s\n", responseItem.getJobTitleSnippet()); + Job job = responseItem.getJob(); + System.out.printf("Job name: %s\n", job.getName()); + System.out.printf("Job title: %s\n", job.getTitle()); + } + } catch (Exception exception) { + System.err.println("Failed to create the client due to: " + exception); + } + } + // [END job_search_custom_ranking_search] + + public static void main(String[] args) throws Exception { + Options options = new Options(); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); + + CommandLine cl = (new DefaultParser()).parse(options, args); + String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); + String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); + + sampleSearchJobs(projectId, tenantId); + } +} diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteCompany.java b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteCompany.java new file mode 100644 index 00000000000..3041b730502 --- /dev/null +++ b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteCompany.java @@ -0,0 +1,83 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// DO NOT EDIT! This is a generated sample ("Request", "job_search_delete_company") +// sample-metadata: +// title: +// description: Delete Company +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchDeleteCompany +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"] [--company_id "ID of the company to delete"]'] + +package com.google.cloud.examples.talent.v4beta1; + +import com.google.cloud.talent.v4beta1.CompanyName; +import com.google.cloud.talent.v4beta1.CompanyServiceClient; +import com.google.cloud.talent.v4beta1.CompanyWithTenantName; +import com.google.cloud.talent.v4beta1.DeleteCompanyRequest; +import org.apache.commons.cli.CommandLine; +import org.apache.commons.cli.DefaultParser; +import org.apache.commons.cli.Option; +import org.apache.commons.cli.Options; + +public class JobSearchDeleteCompany { + // [START job_search_delete_company] + /* + * Please include the following imports to run this sample. + * + * import com.google.cloud.talent.v4beta1.CompanyName; + * import com.google.cloud.talent.v4beta1.CompanyServiceClient; + * import com.google.cloud.talent.v4beta1.CompanyWithTenantName; + * import com.google.cloud.talent.v4beta1.DeleteCompanyRequest; + */ + + public static void sampleDeleteCompany() { + // TODO(developer): Replace these variables before running the sample. + String projectId = "Your Google Cloud Project ID"; + String tenantId = "Your Tenant ID (using tenancy is optional)"; + String companyId = "ID of the company to delete"; + sampleDeleteCompany(projectId, tenantId, companyId); + } + + /** Delete Company */ + public static void sampleDeleteCompany(String projectId, String tenantId, String companyId) { + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + CompanyName name = CompanyWithTenantName.of(projectId, tenantId, companyId); + DeleteCompanyRequest request = + DeleteCompanyRequest.newBuilder().setName(name.toString()).build(); + companyServiceClient.deleteCompany(request); + System.out.println("Deleted company"); + } catch (Exception exception) { + System.err.println("Failed to create the client due to: " + exception); + } + } + // [END job_search_delete_company] + + public static void main(String[] args) throws Exception { + Options options = new Options(); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("company_id").build()); + + CommandLine cl = (new DefaultParser()).parse(options, args); + String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); + String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); + String companyId = cl.getOptionValue("company_id", "ID of the company to delete"); + + sampleDeleteCompany(projectId, tenantId, companyId); + } +} diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteJob.java b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteJob.java new file mode 100644 index 00000000000..90a83113cb1 --- /dev/null +++ b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteJob.java @@ -0,0 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// DO NOT EDIT! This is a generated sample ("Request", "job_search_delete_job") +// sample-metadata: +// title: +// description: Delete Job +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchDeleteJob +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"] [--job_id "Company ID"]'] + +package com.google.cloud.examples.talent.v4beta1; + +import com.google.cloud.talent.v4beta1.DeleteJobRequest; +import com.google.cloud.talent.v4beta1.JobName; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.JobWithTenantName; +import org.apache.commons.cli.CommandLine; +import org.apache.commons.cli.DefaultParser; +import org.apache.commons.cli.Option; +import org.apache.commons.cli.Options; + +public class JobSearchDeleteJob { + // [START job_search_delete_job] + /* + * Please include the following imports to run this sample. + * + * import com.google.cloud.talent.v4beta1.DeleteJobRequest; + * import com.google.cloud.talent.v4beta1.JobName; + * import com.google.cloud.talent.v4beta1.JobServiceClient; + * import com.google.cloud.talent.v4beta1.JobWithTenantName; + */ + + public static void sampleDeleteJob() { + // TODO(developer): Replace these variables before running the sample. + String projectId = "Your Google Cloud Project ID"; + String tenantId = "Your Tenant ID (using tenancy is optional)"; + String jobId = "Company ID"; + sampleDeleteJob(projectId, tenantId, jobId); + } + + /** Delete Job */ + public static void sampleDeleteJob(String projectId, String tenantId, String jobId) { + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + JobName name = JobWithTenantName.of(projectId, tenantId, jobId); + DeleteJobRequest request = DeleteJobRequest.newBuilder().setName(name.toString()).build(); + jobServiceClient.deleteJob(request); + System.out.println("Deleted job."); + } catch (Exception exception) { + System.err.println("Failed to create the client due to: " + exception); + } + } + // [END job_search_delete_job] + + public static void main(String[] args) throws Exception { + Options options = new Options(); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("job_id").build()); + + CommandLine cl = (new DefaultParser()).parse(options, args); + String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); + String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); + String jobId = cl.getOptionValue("job_id", "Company ID"); + + sampleDeleteJob(projectId, tenantId, jobId); + } +} diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteTenant.java b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteTenant.java new file mode 100644 index 00000000000..16cf4463b74 --- /dev/null +++ b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteTenant.java @@ -0,0 +1,76 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// DO NOT EDIT! This is a generated sample ("Request", "job_search_delete_tenant") +// sample-metadata: +// title: +// description: Delete Tenant +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchDeleteTenant +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID)"]'] + +package com.google.cloud.examples.talent.v4beta1; + +import com.google.cloud.talent.v4beta1.DeleteTenantRequest; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.cloud.talent.v4beta1.TenantServiceClient; +import org.apache.commons.cli.CommandLine; +import org.apache.commons.cli.DefaultParser; +import org.apache.commons.cli.Option; +import org.apache.commons.cli.Options; + +public class JobSearchDeleteTenant { + // [START job_search_delete_tenant] + /* + * Please include the following imports to run this sample. + * + * import com.google.cloud.talent.v4beta1.DeleteTenantRequest; + * import com.google.cloud.talent.v4beta1.TenantName; + * import com.google.cloud.talent.v4beta1.TenantServiceClient; + */ + + public static void sampleDeleteTenant() { + // TODO(developer): Replace these variables before running the sample. + String projectId = "Your Google Cloud Project ID"; + String tenantId = "Your Tenant ID)"; + sampleDeleteTenant(projectId, tenantId); + } + + /** Delete Tenant */ + public static void sampleDeleteTenant(String projectId, String tenantId) { + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + TenantName name = TenantName.of(projectId, tenantId); + DeleteTenantRequest request = + DeleteTenantRequest.newBuilder().setName(name.toString()).build(); + tenantServiceClient.deleteTenant(request); + System.out.println("Deleted Tenant."); + } catch (Exception exception) { + System.err.println("Failed to create the client due to: " + exception); + } + } + // [END job_search_delete_tenant] + + public static void main(String[] args) throws Exception { + Options options = new Options(); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); + + CommandLine cl = (new DefaultParser()).parse(options, args); + String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); + String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID)"); + + sampleDeleteTenant(projectId, tenantId); + } +} diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetCompany.java b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetCompany.java new file mode 100644 index 00000000000..d4d798deac5 --- /dev/null +++ b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetCompany.java @@ -0,0 +1,85 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// DO NOT EDIT! This is a generated sample ("Request", "job_search_get_company") +// sample-metadata: +// title: +// description: Get Company +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchGetCompany +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"] [--company_id "Company ID"]'] + +package com.google.cloud.examples.talent.v4beta1; + +import com.google.cloud.talent.v4beta1.Company; +import com.google.cloud.talent.v4beta1.CompanyName; +import com.google.cloud.talent.v4beta1.CompanyServiceClient; +import com.google.cloud.talent.v4beta1.CompanyWithTenantName; +import com.google.cloud.talent.v4beta1.GetCompanyRequest; +import org.apache.commons.cli.CommandLine; +import org.apache.commons.cli.DefaultParser; +import org.apache.commons.cli.Option; +import org.apache.commons.cli.Options; + +public class JobSearchGetCompany { + // [START job_search_get_company] + /* + * Please include the following imports to run this sample. + * + * import com.google.cloud.talent.v4beta1.Company; + * import com.google.cloud.talent.v4beta1.CompanyName; + * import com.google.cloud.talent.v4beta1.CompanyServiceClient; + * import com.google.cloud.talent.v4beta1.CompanyWithTenantName; + * import com.google.cloud.talent.v4beta1.GetCompanyRequest; + */ + + public static void sampleGetCompany() { + // TODO(developer): Replace these variables before running the sample. + String projectId = "Your Google Cloud Project ID"; + String tenantId = "Your Tenant ID (using tenancy is optional)"; + String companyId = "Company ID"; + sampleGetCompany(projectId, tenantId, companyId); + } + + /** Get Company */ + public static void sampleGetCompany(String projectId, String tenantId, String companyId) { + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + CompanyName name = CompanyWithTenantName.of(projectId, tenantId, companyId); + GetCompanyRequest request = GetCompanyRequest.newBuilder().setName(name.toString()).build(); + Company response = companyServiceClient.getCompany(request); + System.out.printf("Company name: %s\n", response.getName()); + System.out.printf("Display name: %s\n", response.getDisplayName()); + } catch (Exception exception) { + System.err.println("Failed to create the client due to: " + exception); + } + } + // [END job_search_get_company] + + public static void main(String[] args) throws Exception { + Options options = new Options(); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("company_id").build()); + + CommandLine cl = (new DefaultParser()).parse(options, args); + String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); + String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); + String companyId = cl.getOptionValue("company_id", "Company ID"); + + sampleGetCompany(projectId, tenantId, companyId); + } +} diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetJob.java b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetJob.java new file mode 100644 index 00000000000..0a52a6c3a26 --- /dev/null +++ b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetJob.java @@ -0,0 +1,96 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// DO NOT EDIT! This is a generated sample ("Request", "job_search_get_job") +// sample-metadata: +// title: +// description: Get Job +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchGetJob +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"] [--job_id "Job ID"]'] + +package com.google.cloud.examples.talent.v4beta1; + +import com.google.cloud.talent.v4beta1.GetJobRequest; +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobName; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.JobWithTenantName; +import org.apache.commons.cli.CommandLine; +import org.apache.commons.cli.DefaultParser; +import org.apache.commons.cli.Option; +import org.apache.commons.cli.Options; + +public class JobSearchGetJob { + // [START job_search_get_job] + /* + * Please include the following imports to run this sample. + * + * import com.google.cloud.talent.v4beta1.GetJobRequest; + * import com.google.cloud.talent.v4beta1.Job; + * import com.google.cloud.talent.v4beta1.JobName; + * import com.google.cloud.talent.v4beta1.JobServiceClient; + * import com.google.cloud.talent.v4beta1.JobWithTenantName; + */ + + public static void sampleGetJob() { + // TODO(developer): Replace these variables before running the sample. + String projectId = "Your Google Cloud Project ID"; + String tenantId = "Your Tenant ID (using tenancy is optional)"; + String jobId = "Job ID"; + sampleGetJob(projectId, tenantId, jobId); + } + + /** Get Job */ + public static void sampleGetJob(String projectId, String tenantId, String jobId) { + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + JobName name = JobWithTenantName.of(projectId, tenantId, jobId); + GetJobRequest request = GetJobRequest.newBuilder().setName(name.toString()).build(); + Job response = jobServiceClient.getJob(request); + System.out.printf("Job name: %s\n", response.getName()); + System.out.printf("Requisition ID: %s\n", response.getRequisitionId()); + System.out.printf("Title: %s\n", response.getTitle()); + System.out.printf("Description: %s\n", response.getDescription()); + System.out.printf("Posting language: %s\n", response.getLanguageCode()); + for (String address : response.getAddressesList()) { + System.out.printf("Address: %s\n", address); + } + for (String email : response.getApplicationInfo().getEmailsList()) { + System.out.printf("Email: %s\n", email); + } + for (String websiteUri : response.getApplicationInfo().getUrisList()) { + System.out.printf("Website: %s\n", websiteUri); + } + } catch (Exception exception) { + System.err.println("Failed to create the client due to: " + exception); + } + } + // [END job_search_get_job] + + public static void main(String[] args) throws Exception { + Options options = new Options(); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("job_id").build()); + + CommandLine cl = (new DefaultParser()).parse(options, args); + String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); + String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); + String jobId = cl.getOptionValue("job_id", "Job ID"); + + sampleGetJob(projectId, tenantId, jobId); + } +} diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetTenant.java b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetTenant.java new file mode 100644 index 00000000000..a2f42af943f --- /dev/null +++ b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetTenant.java @@ -0,0 +1,78 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// DO NOT EDIT! This is a generated sample ("Request", "job_search_get_tenant") +// sample-metadata: +// title: +// description: Get Tenant by name +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchGetTenant +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID"]'] + +package com.google.cloud.examples.talent.v4beta1; + +import com.google.cloud.talent.v4beta1.GetTenantRequest; +import com.google.cloud.talent.v4beta1.Tenant; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.cloud.talent.v4beta1.TenantServiceClient; +import org.apache.commons.cli.CommandLine; +import org.apache.commons.cli.DefaultParser; +import org.apache.commons.cli.Option; +import org.apache.commons.cli.Options; + +public class JobSearchGetTenant { + // [START job_search_get_tenant] + /* + * Please include the following imports to run this sample. + * + * import com.google.cloud.talent.v4beta1.GetTenantRequest; + * import com.google.cloud.talent.v4beta1.Tenant; + * import com.google.cloud.talent.v4beta1.TenantName; + * import com.google.cloud.talent.v4beta1.TenantServiceClient; + */ + + public static void sampleGetTenant() { + // TODO(developer): Replace these variables before running the sample. + String projectId = "Your Google Cloud Project ID"; + String tenantId = "Your Tenant ID"; + sampleGetTenant(projectId, tenantId); + } + + /** Get Tenant by name */ + public static void sampleGetTenant(String projectId, String tenantId) { + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + TenantName name = TenantName.of(projectId, tenantId); + GetTenantRequest request = GetTenantRequest.newBuilder().setName(name.toString()).build(); + Tenant response = tenantServiceClient.getTenant(request); + System.out.printf("Name: %s\n", response.getName()); + System.out.printf("External ID: %s\n", response.getExternalId()); + } catch (Exception exception) { + System.err.println("Failed to create the client due to: " + exception); + } + } + // [END job_search_get_tenant] + + public static void main(String[] args) throws Exception { + Options options = new Options(); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); + + CommandLine cl = (new DefaultParser()).parse(options, args); + String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); + String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID"); + + sampleGetTenant(projectId, tenantId); + } +} diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchHistogramSearch.java b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchHistogramSearch.java new file mode 100644 index 00000000000..950f7214f9e --- /dev/null +++ b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchHistogramSearch.java @@ -0,0 +1,120 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// DO NOT EDIT! This is a generated sample ("RequestPaged", "job_search_histogram_search") +// sample-metadata: +// title: +// description: Search Jobs with histogram queries +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchHistogramSearch +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"] [--query "count(base_compensation, [bucket(12, 20)])"]'] + +package com.google.cloud.examples.talent.v4beta1; + +import com.google.cloud.talent.v4beta1.HistogramQuery; +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.RequestMetadata; +import com.google.cloud.talent.v4beta1.SearchJobsRequest; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.cloud.talent.v4beta1.TenantOrProjectName; +import java.util.Arrays; +import java.util.List; +import org.apache.commons.cli.CommandLine; +import org.apache.commons.cli.DefaultParser; +import org.apache.commons.cli.Option; +import org.apache.commons.cli.Options; + +public class JobSearchHistogramSearch { + // [START job_search_histogram_search] + /* + * Please include the following imports to run this sample. + * + * import com.google.cloud.talent.v4beta1.HistogramQuery; + * import com.google.cloud.talent.v4beta1.Job; + * import com.google.cloud.talent.v4beta1.JobServiceClient; + * import com.google.cloud.talent.v4beta1.RequestMetadata; + * import com.google.cloud.talent.v4beta1.SearchJobsRequest; + * import com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob; + * import com.google.cloud.talent.v4beta1.TenantName; + * import com.google.cloud.talent.v4beta1.TenantOrProjectName; + * import java.util.Arrays; + * import java.util.List; + */ + + public static void sampleSearchJobs() { + // TODO(developer): Replace these variables before running the sample. + String projectId = "Your Google Cloud Project ID"; + String tenantId = "Your Tenant ID (using tenancy is optional)"; + String query = "count(base_compensation, [bucket(12, 20)])"; + sampleSearchJobs(projectId, tenantId, query); + } + + /** + * Search Jobs with histogram queries + * + * @param query Histogram query More info on histogram facets, constants, and built-in functions: + * https://godoc.org/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#SearchJobsRequest + */ + public static void sampleSearchJobs(String projectId, String tenantId, String query) { + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + TenantOrProjectName parent = TenantName.of(projectId, tenantId); + String domain = "www.example.com"; + String sessionId = "Hashed session identifier"; + String userId = "Hashed user identifier"; + RequestMetadata requestMetadata = + RequestMetadata.newBuilder() + .setDomain(domain) + .setSessionId(sessionId) + .setUserId(userId) + .build(); + HistogramQuery histogramQueriesElement = + HistogramQuery.newBuilder().setHistogramQuery(query).build(); + List histogramQueries = Arrays.asList(histogramQueriesElement); + SearchJobsRequest request = + SearchJobsRequest.newBuilder() + .setParent(parent.toString()) + .setRequestMetadata(requestMetadata) + .addAllHistogramQueries(histogramQueries) + .build(); + for (SearchJobsResponse.MatchingJob responseItem : + jobServiceClient.searchJobs(request).iterateAll()) { + System.out.printf("Job summary: %s\n", responseItem.getJobSummary()); + System.out.printf("Job title snippet: %s\n", responseItem.getJobTitleSnippet()); + Job job = responseItem.getJob(); + System.out.printf("Job name: %s\n", job.getName()); + System.out.printf("Job title: %s\n", job.getTitle()); + } + } catch (Exception exception) { + System.err.println("Failed to create the client due to: " + exception); + } + } + // [END job_search_histogram_search] + + public static void main(String[] args) throws Exception { + Options options = new Options(); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("query").build()); + + CommandLine cl = (new DefaultParser()).parse(options, args); + String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); + String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); + String query = cl.getOptionValue("query", "count(base_compensation, [bucket(12, 20)])"); + + sampleSearchJobs(projectId, tenantId, query); + } +} diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListCompanies.java b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListCompanies.java new file mode 100644 index 00000000000..5a93e435321 --- /dev/null +++ b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListCompanies.java @@ -0,0 +1,89 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// DO NOT EDIT! This is a generated sample ("RequestPaged", "job_search_list_companies") +// sample-metadata: +// title: +// description: List Companies +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchListCompanies +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"]'] + +package com.google.cloud.examples.talent.v4beta1; + +import com.google.cloud.talent.v4beta1.Company; +import com.google.cloud.talent.v4beta1.CompanyServiceClient; +import com.google.cloud.talent.v4beta1.ListCompaniesRequest; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.cloud.talent.v4beta1.TenantOrProjectName; +import org.apache.commons.cli.CommandLine; +import org.apache.commons.cli.DefaultParser; +import org.apache.commons.cli.Option; +import org.apache.commons.cli.Options; + +public class JobSearchListCompanies { + // [START job_search_list_companies] + /* + * Please include the following imports to run this sample. + * + * import com.google.cloud.talent.v4beta1.Company; + * import com.google.cloud.talent.v4beta1.CompanyServiceClient; + * import com.google.cloud.talent.v4beta1.ListCompaniesRequest; + * import com.google.cloud.talent.v4beta1.TenantName; + * import com.google.cloud.talent.v4beta1.TenantOrProjectName; + */ + + public static void sampleListCompanies() { + // TODO(developer): Replace these variables before running the sample. + String projectId = "Your Google Cloud Project ID"; + String tenantId = "Your Tenant ID (using tenancy is optional)"; + sampleListCompanies(projectId, tenantId); + } + + /** + * List Companies + * + * @param projectId Your Google Cloud Project ID + * @param tenantId Identifier of the Tenant + */ + public static void sampleListCompanies(String projectId, String tenantId) { + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + TenantOrProjectName parent = TenantName.of(projectId, tenantId); + ListCompaniesRequest request = + ListCompaniesRequest.newBuilder().setParent(parent.toString()).build(); + for (Company responseItem : companyServiceClient.listCompanies(request).iterateAll()) { + System.out.printf("Company Name: %s\n", responseItem.getName()); + System.out.printf("Display Name: %s\n", responseItem.getDisplayName()); + System.out.printf("External ID: %s\n", responseItem.getExternalId()); + } + } catch (Exception exception) { + System.err.println("Failed to create the client due to: " + exception); + } + } + // [END job_search_list_companies] + + public static void main(String[] args) throws Exception { + Options options = new Options(); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); + + CommandLine cl = (new DefaultParser()).parse(options, args); + String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); + String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); + + sampleListCompanies(projectId, tenantId); + } +} diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListJobs.java b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListJobs.java new file mode 100644 index 00000000000..fa8443f14c8 --- /dev/null +++ b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListJobs.java @@ -0,0 +1,94 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// DO NOT EDIT! This is a generated sample ("RequestPaged", "job_search_list_jobs") +// sample-metadata: +// title: +// description: List Jobs +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchListJobs +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"] [--filter "companyName=projects/my-project/companies/company-id"]'] + +package com.google.cloud.examples.talent.v4beta1; + +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.ListJobsRequest; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.cloud.talent.v4beta1.TenantOrProjectName; +import org.apache.commons.cli.CommandLine; +import org.apache.commons.cli.DefaultParser; +import org.apache.commons.cli.Option; +import org.apache.commons.cli.Options; + +public class JobSearchListJobs { + // [START job_search_list_jobs] + /* + * Please include the following imports to run this sample. + * + * import com.google.cloud.talent.v4beta1.Job; + * import com.google.cloud.talent.v4beta1.JobServiceClient; + * import com.google.cloud.talent.v4beta1.ListJobsRequest; + * import com.google.cloud.talent.v4beta1.TenantName; + * import com.google.cloud.talent.v4beta1.TenantOrProjectName; + */ + + public static void sampleListJobs() { + // TODO(developer): Replace these variables before running the sample. + String projectId = "Your Google Cloud Project ID"; + String tenantId = "Your Tenant ID (using tenancy is optional)"; + String filter = "companyName=projects/my-project/companies/company-id"; + sampleListJobs(projectId, tenantId, filter); + } + + /** + * List Jobs + * + * @param projectId Your Google Cloud Project ID + * @param tenantId Identifier of the Tenant + */ + public static void sampleListJobs(String projectId, String tenantId, String filter) { + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + TenantOrProjectName parent = TenantName.of(projectId, tenantId); + ListJobsRequest request = + ListJobsRequest.newBuilder().setParent(parent.toString()).setFilter(filter).build(); + for (Job responseItem : jobServiceClient.listJobs(request).iterateAll()) { + System.out.printf("Job name: %s\n", responseItem.getName()); + System.out.printf("Job requisition ID: %s\n", responseItem.getRequisitionId()); + System.out.printf("Job title: %s\n", responseItem.getTitle()); + System.out.printf("Job description: %s\n", responseItem.getDescription()); + } + } catch (Exception exception) { + System.err.println("Failed to create the client due to: " + exception); + } + } + // [END job_search_list_jobs] + + public static void main(String[] args) throws Exception { + Options options = new Options(); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); + options.addOption(Option.builder("").required(false).hasArg(true).longOpt("filter").build()); + + CommandLine cl = (new DefaultParser()).parse(options, args); + String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); + String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); + String filter = + cl.getOptionValue("filter", "companyName=projects/my-project/companies/company-id"); + + sampleListJobs(projectId, tenantId, filter); + } +} diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListTenants.java b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListTenants.java new file mode 100644 index 00000000000..4fab27d57da --- /dev/null +++ b/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListTenants.java @@ -0,0 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// DO NOT EDIT! This is a generated sample ("RequestPaged", "job_search_list_tenants") +// sample-metadata: +// title: +// description: List Tenants +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchListTenants +// [--args='[--project_id "Your Google Cloud Project ID"]'] + +package com.google.cloud.examples.talent.v4beta1; + +import com.google.cloud.talent.v4beta1.ListTenantsRequest; +import com.google.cloud.talent.v4beta1.ProjectName; +import com.google.cloud.talent.v4beta1.Tenant; +import com.google.cloud.talent.v4beta1.TenantServiceClient; +import org.apache.commons.cli.CommandLine; +import org.apache.commons.cli.DefaultParser; +import org.apache.commons.cli.Option; +import org.apache.commons.cli.Options; + +public class JobSearchListTenants { + // [START job_search_list_tenants] + /* + * Please include the following imports to run this sample. + * + * import com.google.cloud.talent.v4beta1.ListTenantsRequest; + * import com.google.cloud.talent.v4beta1.ProjectName; + * import com.google.cloud.talent.v4beta1.Tenant; + * import com.google.cloud.talent.v4beta1.TenantServiceClient; + */ + + public static void sampleListTenants() { + // TODO(developer): Replace these variables before running the sample. + String projectId = "Your Google Cloud Project ID"; + sampleListTenants(projectId); + } + + /** List Tenants */ + public static void sampleListTenants(String projectId) { + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + ProjectName parent = ProjectName.of(projectId); + ListTenantsRequest request = + ListTenantsRequest.newBuilder().setParent(parent.toString()).build(); + for (Tenant responseItem : tenantServiceClient.listTenants(request).iterateAll()) { + System.out.printf("Tenant Name: %s\n", responseItem.getName()); + System.out.printf("External ID: %s\n", responseItem.getExternalId()); + } + } catch (Exception exception) { + System.err.println("Failed to create the client due to: " + exception); + } + } + // [END job_search_list_tenants] + + public static void main(String[] args) throws Exception { + Options options = new Options(); + options.addOption( + Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); + + CommandLine cl = (new DefaultParser()).parse(options, args); + String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); + + sampleListTenants(projectId); + } +} From 7836c01dfef59c6d276e8a75f878d9bed2b3afe7 Mon Sep 17 00:00:00 2001 From: Jeff Ching Date: Mon, 24 Feb 2020 11:21:03 -0800 Subject: [PATCH 02/92] samples: move generated samples to generated directory (#80) --- .../JobSearchAutocompleteJobTitle.java | 7 ++----- .../v4beta1/JobSearchBatchCreateJobs.java | 18 +++-------------- .../v4beta1/JobSearchBatchDeleteJob.java | 4 +--- .../v4beta1/JobSearchBatchUpdateJobs.java | 20 +++---------------- .../v4beta1/JobSearchCommuteSearch.java | 5 ++--- .../v4beta1/JobSearchCreateClientEvent.java | 9 ++------- .../v4beta1/JobSearchCreateCompany.java | 5 +---- .../talent/v4beta1/JobSearchCreateJob.java | 10 ++-------- .../JobSearchCreateJobCustomAttributes.java | 7 +------ .../talent/v4beta1/JobSearchCreateTenant.java | 4 +--- .../v4beta1/JobSearchCustomRankingSearch.java | 7 +++---- .../v4beta1/JobSearchDeleteCompany.java | 4 +--- .../talent/v4beta1/JobSearchDeleteJob.java | 4 +--- .../talent/v4beta1/JobSearchDeleteTenant.java | 3 +-- .../talent/v4beta1/JobSearchGetCompany.java | 4 +--- .../talent/v4beta1/JobSearchGetJob.java | 4 +--- .../talent/v4beta1/JobSearchGetTenant.java | 3 +-- .../v4beta1/JobSearchHistogramSearch.java | 5 ++--- .../v4beta1/JobSearchListCompanies.java | 4 +--- .../talent/v4beta1/JobSearchListJobs.java | 4 +--- .../talent/v4beta1/JobSearchListTenants.java | 3 +-- 21 files changed, 32 insertions(+), 102 deletions(-) rename talent/{ => generated}/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchAutocompleteJobTitle.java (92%) rename talent/{ => generated}/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchCreateJobs.java (90%) rename talent/{ => generated}/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchDeleteJob.java (95%) rename talent/{ => generated}/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchUpdateJobs.java (90%) rename talent/{ => generated}/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCommuteSearch.java (96%) rename talent/{ => generated}/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateClientEvent.java (92%) rename talent/{ => generated}/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateCompany.java (94%) rename talent/{ => generated}/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJob.java (91%) rename talent/{ => generated}/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJobCustomAttributes.java (91%) rename talent/{ => generated}/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateTenant.java (95%) rename talent/{ => generated}/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCustomRankingSearch.java (93%) rename talent/{ => generated}/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteCompany.java (94%) rename talent/{ => generated}/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteJob.java (94%) rename talent/{ => generated}/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteTenant.java (95%) rename talent/{ => generated}/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetCompany.java (95%) rename talent/{ => generated}/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetJob.java (96%) rename talent/{ => generated}/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetTenant.java (96%) rename talent/{ => generated}/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchHistogramSearch.java (94%) rename talent/{ => generated}/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListCompanies.java (95%) rename talent/{ => generated}/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListJobs.java (94%) rename talent/{ => generated}/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListTenants.java (96%) diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchAutocompleteJobTitle.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchAutocompleteJobTitle.java similarity index 92% rename from talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchAutocompleteJobTitle.java rename to talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchAutocompleteJobTitle.java index 09b7f15c4ab..546585ae038 100644 --- a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchAutocompleteJobTitle.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchAutocompleteJobTitle.java @@ -17,16 +17,13 @@ // sample-metadata: // title: // description: Complete job title given partial text (autocomplete) -// usage: gradle run -// -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchAutocompleteJobTitle -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"] [--query "[partially typed job title]"] [--num_results 5] [--language_code -// "en-US"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchAutocompleteJobTitle [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--query "[partially typed job title]"] [--num_results 5] [--language_code "en-US"]'] package com.google.cloud.examples.talent.v4beta1; import com.google.cloud.talent.v4beta1.CompleteQueryRequest; import com.google.cloud.talent.v4beta1.CompleteQueryResponse; +import com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult; import com.google.cloud.talent.v4beta1.CompletionClient; import com.google.cloud.talent.v4beta1.TenantName; import com.google.cloud.talent.v4beta1.TenantOrProjectName; diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchCreateJobs.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchCreateJobs.java similarity index 90% rename from talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchCreateJobs.java rename to talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchCreateJobs.java index 25154df1661..d65476945dc 100644 --- a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchCreateJobs.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchCreateJobs.java @@ -13,24 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// DO NOT EDIT! This is a generated sample ("LongRunningRequestAsync", -// "job_search_batch_create_jobs") +// DO NOT EDIT! This is a generated sample ("LongRunningRequestAsync", "job_search_batch_create_jobs") // sample-metadata: // title: // description: Batch Create Jobs -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchBatchCreateJobs -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"] [--company_name_one "Company name, e.g. -// projects/your-project/companies/company-id"] [--requisition_id_one "Job requisition ID, aka -// Posting ID. Unique per job."] [--title_one "Software Engineer"] [--description_one "This is a -// description of this wonderful job!"] [--job_application_url_one -// "https://www.example.org/job-posting/123"] [--address_one "1600 Amphitheatre Parkway, Mountain -// View, CA 94043"] [--language_code_one "en-US"] [--company_name_two "Company name, e.g. -// projects/your-project/companies/company-id"] [--requisition_id_two "Job requisition ID, aka -// Posting ID. Unique per job."] [--title_two "Quality Assurance"] [--description_two "This is a -// description of this wonderful job!"] [--job_application_url_two -// "https://www.example.org/job-posting/123"] [--address_two "111 8th Avenue, New York, NY 10011"] -// [--language_code_two "en-US"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchBatchCreateJobs [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--company_name_one "Company name, e.g. projects/your-project/companies/company-id"] [--requisition_id_one "Job requisition ID, aka Posting ID. Unique per job."] [--title_one "Software Engineer"] [--description_one "This is a description of this wonderful job!"] [--job_application_url_one "https://www.example.org/job-posting/123"] [--address_one "1600 Amphitheatre Parkway, Mountain View, CA 94043"] [--language_code_one "en-US"] [--company_name_two "Company name, e.g. projects/your-project/companies/company-id"] [--requisition_id_two "Job requisition ID, aka Posting ID. Unique per job."] [--title_two "Quality Assurance"] [--description_two "This is a description of this wonderful job!"] [--job_application_url_two "https://www.example.org/job-posting/123"] [--address_two "111 8th Avenue, New York, NY 10011"] [--language_code_two "en-US"]'] package com.google.cloud.examples.talent.v4beta1; @@ -38,6 +25,7 @@ import com.google.cloud.talent.v4beta1.BatchCreateJobsRequest; import com.google.cloud.talent.v4beta1.BatchOperationMetadata; import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.Job.ApplicationInfo; import com.google.cloud.talent.v4beta1.JobOperationResult; import com.google.cloud.talent.v4beta1.JobServiceClient; import com.google.cloud.talent.v4beta1.TenantName; diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchDeleteJob.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchDeleteJob.java similarity index 95% rename from talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchDeleteJob.java rename to talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchDeleteJob.java index 2ba61f3449f..88ab74064d5 100644 --- a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchDeleteJob.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchDeleteJob.java @@ -17,9 +17,7 @@ // sample-metadata: // title: // description: Batch delete jobs using a filter -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchBatchDeleteJob -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"] [--filter "[Query]"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchBatchDeleteJob [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--filter "[Query]"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchUpdateJobs.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchUpdateJobs.java similarity index 90% rename from talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchUpdateJobs.java rename to talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchUpdateJobs.java index 08928826b29..74682ed06e6 100644 --- a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchUpdateJobs.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchUpdateJobs.java @@ -13,26 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// DO NOT EDIT! This is a generated sample ("LongRunningRequestAsync", -// "job_search_batch_update_jobs") +// DO NOT EDIT! This is a generated sample ("LongRunningRequestAsync", "job_search_batch_update_jobs") // sample-metadata: // title: // description: Batch Update Jobs -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchBatchUpdateJobs -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"] [--job_name_one "job name, e.g. -// projects/your-project/tenants/tenant-id/jobs/job-id"] [--company_name_one "Company name, e.g. -// projects/your-project/companies/company-id"] [--requisition_id_one "Job requisition ID, aka -// Posting ID. Unique per job."] [--title_one "Software Engineer"] [--description_one "This is a -// description of this wonderful job!"] [--job_application_url_one -// "https://www.example.org/job-posting/123"] [--address_one "1600 Amphitheatre Parkway, Mountain -// View, CA 94043"] [--language_code_one "en-US"] [--job_name_two "job name, e.g. -// projects/your-project/tenants/tenant-id/jobs/job-id"] [--company_name_two "Company name, e.g. -// projects/your-project/companies/company-id"] [--requisition_id_two "Job requisition ID, aka -// Posting ID. Unique per job."] [--title_two "Quality Assurance"] [--description_two "This is a -// description of this wonderful job!"] [--job_application_url_two -// "https://www.example.org/job-posting/123"] [--address_two "111 8th Avenue, New York, NY 10011"] -// [--language_code_two "en-US"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchBatchUpdateJobs [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--job_name_one "job name, e.g. projects/your-project/tenants/tenant-id/jobs/job-id"] [--company_name_one "Company name, e.g. projects/your-project/companies/company-id"] [--requisition_id_one "Job requisition ID, aka Posting ID. Unique per job."] [--title_one "Software Engineer"] [--description_one "This is a description of this wonderful job!"] [--job_application_url_one "https://www.example.org/job-posting/123"] [--address_one "1600 Amphitheatre Parkway, Mountain View, CA 94043"] [--language_code_one "en-US"] [--job_name_two "job name, e.g. projects/your-project/tenants/tenant-id/jobs/job-id"] [--company_name_two "Company name, e.g. projects/your-project/companies/company-id"] [--requisition_id_two "Job requisition ID, aka Posting ID. Unique per job."] [--title_two "Quality Assurance"] [--description_two "This is a description of this wonderful job!"] [--job_application_url_two "https://www.example.org/job-posting/123"] [--address_two "111 8th Avenue, New York, NY 10011"] [--language_code_two "en-US"]'] package com.google.cloud.examples.talent.v4beta1; @@ -40,6 +25,7 @@ import com.google.cloud.talent.v4beta1.BatchOperationMetadata; import com.google.cloud.talent.v4beta1.BatchUpdateJobsRequest; import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.Job.ApplicationInfo; import com.google.cloud.talent.v4beta1.JobOperationResult; import com.google.cloud.talent.v4beta1.JobServiceClient; import com.google.cloud.talent.v4beta1.TenantName; diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCommuteSearch.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCommuteSearch.java similarity index 96% rename from talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCommuteSearch.java rename to talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCommuteSearch.java index 5a17ec7212a..7413eb8bdf8 100644 --- a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCommuteSearch.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCommuteSearch.java @@ -17,9 +17,7 @@ // sample-metadata: // title: // description: Search Jobs using commute distance -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCommuteSearch -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCommuteSearch [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"]'] package com.google.cloud.examples.talent.v4beta1; @@ -30,6 +28,7 @@ import com.google.cloud.talent.v4beta1.JobServiceClient; import com.google.cloud.talent.v4beta1.RequestMetadata; import com.google.cloud.talent.v4beta1.SearchJobsRequest; +import com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob; import com.google.cloud.talent.v4beta1.TenantName; import com.google.cloud.talent.v4beta1.TenantOrProjectName; import com.google.protobuf.Duration; diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateClientEvent.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateClientEvent.java similarity index 92% rename from talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateClientEvent.java rename to talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateClientEvent.java index e0f77db4cf7..b1b15ad6094 100644 --- a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateClientEvent.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateClientEvent.java @@ -17,11 +17,7 @@ // sample-metadata: // title: // description: Creates a client event -// usage: gradle run -// -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateClientEvent -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"] [--request_id "[request_id from ResponseMetadata]"] [--event_id "[Set this -// to a unique identifier]"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateClientEvent [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--request_id "[request_id from ResponseMetadata]"] [--event_id "[Set this to a unique identifier]"]'] package com.google.cloud.examples.talent.v4beta1; @@ -80,8 +76,7 @@ public static void sampleCreateClientEvent( // The timestamp of the event as seconds of UTC time since Unix epoch // For more information on how to create google.protobuf.Timestamps - // See: - // https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/timestamp.proto + // See: https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/timestamp.proto long seconds = 0L; Timestamp createTime = Timestamp.newBuilder().setSeconds(seconds).build(); diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateCompany.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateCompany.java similarity index 94% rename from talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateCompany.java rename to talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateCompany.java index 22d897d879a..4f862a3c03f 100644 --- a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateCompany.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateCompany.java @@ -17,10 +17,7 @@ // sample-metadata: // title: // description: Create Company -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateCompany -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"] [--display_name "My Company Name"] [--external_id "Identifier of this -// company in my system"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateCompany [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--display_name "My Company Name"] [--external_id "Identifier of this company in my system"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJob.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJob.java similarity index 91% rename from talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJob.java rename to talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJob.java index 717a979eb6b..03168b6b076 100644 --- a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJob.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJob.java @@ -17,19 +17,13 @@ // sample-metadata: // title: // description: Create Job -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateJob -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"] [--company_name "Company name, e.g. -// projects/your-project/companies/company-id"] [--requisition_id "Job requisition ID, aka Posting -// ID. Unique per job."] [--title "Software Engineer"] [--description "This is a description of this -// wonderful job!"] [--job_application_url "https://www.example.org/job-posting/123"] -// [--address_one "1600 Amphitheatre Parkway, Mountain View, CA 94043"] [--address_two "111 8th -// Avenue, New York, NY 10011"] [--language_code "en-US"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateJob [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--company_name "Company name, e.g. projects/your-project/companies/company-id"] [--requisition_id "Job requisition ID, aka Posting ID. Unique per job."] [--title "Software Engineer"] [--description "This is a description of this wonderful job!"] [--job_application_url "https://www.example.org/job-posting/123"] [--address_one "1600 Amphitheatre Parkway, Mountain View, CA 94043"] [--address_two "111 8th Avenue, New York, NY 10011"] [--language_code "en-US"]'] package com.google.cloud.examples.talent.v4beta1; import com.google.cloud.talent.v4beta1.CreateJobRequest; import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.Job.ApplicationInfo; import com.google.cloud.talent.v4beta1.JobServiceClient; import com.google.cloud.talent.v4beta1.TenantName; import com.google.cloud.talent.v4beta1.TenantOrProjectName; diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJobCustomAttributes.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJobCustomAttributes.java similarity index 91% rename from talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJobCustomAttributes.java rename to talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJobCustomAttributes.java index 8b52cd635ce..0077e2c0f90 100644 --- a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJobCustomAttributes.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJobCustomAttributes.java @@ -17,12 +17,7 @@ // sample-metadata: // title: // description: Create Job with Custom Attributes -// usage: gradle run -// -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateJobCustomAttributes -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"] [--company_name "Company name, e.g. -// projects/your-project/companies/company-id"] [--requisition_id "Job requisition ID, aka Posting -// ID. Unique per job."] [--language_code "en-US"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateJobCustomAttributes [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--company_name "Company name, e.g. projects/your-project/companies/company-id"] [--requisition_id "Job requisition ID, aka Posting ID. Unique per job."] [--language_code "en-US"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateTenant.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateTenant.java similarity index 95% rename from talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateTenant.java rename to talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateTenant.java index 4c64217424b..b631d5be2a3 100644 --- a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateTenant.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateTenant.java @@ -17,9 +17,7 @@ // sample-metadata: // title: // description: Create Tenant for scoping resources, e.g. companies and jobs -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateTenant -// [--args='[--project_id "Your Google Cloud Project ID"] [--external_id "Your Unique Identifier for -// Tenant"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateTenant [--args='[--project_id "Your Google Cloud Project ID"] [--external_id "Your Unique Identifier for Tenant"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCustomRankingSearch.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCustomRankingSearch.java similarity index 93% rename from talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCustomRankingSearch.java rename to talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCustomRankingSearch.java index 66b04264bbe..495bb648d55 100644 --- a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCustomRankingSearch.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCustomRankingSearch.java @@ -17,10 +17,7 @@ // sample-metadata: // title: // description: Search Jobs using custom rankings -// usage: gradle run -// -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCustomRankingSearch -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCustomRankingSearch [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"]'] package com.google.cloud.examples.talent.v4beta1; @@ -28,6 +25,8 @@ import com.google.cloud.talent.v4beta1.JobServiceClient; import com.google.cloud.talent.v4beta1.RequestMetadata; import com.google.cloud.talent.v4beta1.SearchJobsRequest; +import com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo; +import com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob; import com.google.cloud.talent.v4beta1.TenantName; import com.google.cloud.talent.v4beta1.TenantOrProjectName; import org.apache.commons.cli.CommandLine; diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteCompany.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteCompany.java similarity index 94% rename from talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteCompany.java rename to talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteCompany.java index 3041b730502..3dc7aa49966 100644 --- a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteCompany.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteCompany.java @@ -17,9 +17,7 @@ // sample-metadata: // title: // description: Delete Company -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchDeleteCompany -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"] [--company_id "ID of the company to delete"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchDeleteCompany [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--company_id "ID of the company to delete"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteJob.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteJob.java similarity index 94% rename from talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteJob.java rename to talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteJob.java index 90a83113cb1..6464f41a87d 100644 --- a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteJob.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteJob.java @@ -17,9 +17,7 @@ // sample-metadata: // title: // description: Delete Job -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchDeleteJob -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"] [--job_id "Company ID"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchDeleteJob [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--job_id "Company ID"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteTenant.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteTenant.java similarity index 95% rename from talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteTenant.java rename to talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteTenant.java index 16cf4463b74..4c683b5c9f9 100644 --- a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteTenant.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteTenant.java @@ -17,8 +17,7 @@ // sample-metadata: // title: // description: Delete Tenant -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchDeleteTenant -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID)"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchDeleteTenant [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID)"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetCompany.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetCompany.java similarity index 95% rename from talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetCompany.java rename to talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetCompany.java index d4d798deac5..6eda4dd08a3 100644 --- a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetCompany.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetCompany.java @@ -17,9 +17,7 @@ // sample-metadata: // title: // description: Get Company -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchGetCompany -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"] [--company_id "Company ID"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchGetCompany [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--company_id "Company ID"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetJob.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetJob.java similarity index 96% rename from talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetJob.java rename to talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetJob.java index 0a52a6c3a26..4673feec02c 100644 --- a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetJob.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetJob.java @@ -17,9 +17,7 @@ // sample-metadata: // title: // description: Get Job -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchGetJob -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"] [--job_id "Job ID"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchGetJob [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--job_id "Job ID"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetTenant.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetTenant.java similarity index 96% rename from talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetTenant.java rename to talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetTenant.java index a2f42af943f..91780ab829b 100644 --- a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetTenant.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetTenant.java @@ -17,8 +17,7 @@ // sample-metadata: // title: // description: Get Tenant by name -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchGetTenant -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchGetTenant [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchHistogramSearch.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchHistogramSearch.java similarity index 94% rename from talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchHistogramSearch.java rename to talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchHistogramSearch.java index 950f7214f9e..850bc9e3344 100644 --- a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchHistogramSearch.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchHistogramSearch.java @@ -17,9 +17,7 @@ // sample-metadata: // title: // description: Search Jobs with histogram queries -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchHistogramSearch -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"] [--query "count(base_compensation, [bucket(12, 20)])"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchHistogramSearch [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--query "count(base_compensation, [bucket(12, 20)])"]'] package com.google.cloud.examples.talent.v4beta1; @@ -28,6 +26,7 @@ import com.google.cloud.talent.v4beta1.JobServiceClient; import com.google.cloud.talent.v4beta1.RequestMetadata; import com.google.cloud.talent.v4beta1.SearchJobsRequest; +import com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob; import com.google.cloud.talent.v4beta1.TenantName; import com.google.cloud.talent.v4beta1.TenantOrProjectName; import java.util.Arrays; diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListCompanies.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListCompanies.java similarity index 95% rename from talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListCompanies.java rename to talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListCompanies.java index 5a93e435321..612bded50b9 100644 --- a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListCompanies.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListCompanies.java @@ -17,9 +17,7 @@ // sample-metadata: // title: // description: List Companies -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchListCompanies -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchListCompanies [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListJobs.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListJobs.java similarity index 94% rename from talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListJobs.java rename to talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListJobs.java index fa8443f14c8..623d0109bfd 100644 --- a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListJobs.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListJobs.java @@ -17,9 +17,7 @@ // sample-metadata: // title: // description: List Jobs -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchListJobs -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"] [--filter "companyName=projects/my-project/companies/company-id"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchListJobs [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--filter "companyName=projects/my-project/companies/company-id"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListTenants.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListTenants.java similarity index 96% rename from talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListTenants.java rename to talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListTenants.java index 4fab27d57da..ba8d77a6b4f 100644 --- a/talent/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListTenants.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListTenants.java @@ -17,8 +17,7 @@ // sample-metadata: // title: // description: List Tenants -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchListTenants -// [--args='[--project_id "Your Google Cloud Project ID"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchListTenants [--args='[--project_id "Your Google Cloud Project ID"]'] package com.google.cloud.examples.talent.v4beta1; From 5948f75d70832173c8b0bd4d0e84002d4a6773dc Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Tue, 17 Mar 2020 16:11:46 -0700 Subject: [PATCH 03/92] samples: scaffold pom.xml files (#95) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2020-03-17 11:53:49,151 synthtool > Executing /tmpfs/src/git/autosynth/working_repo/synth.py. 2020-03-17 11:53:49,207 synthtool > Ensuring dependencies. 2020-03-17 11:53:49,211 synthtool > Pulling artman image. latest: Pulling from googleapis/artman Digest: sha256:5ef340c8d9334719bc5c6981d95f4a5d2737b0a6a24f2b9a0d430e96fff85c5b Status: Image is up to date for googleapis/artman:latest 2020-03-17 11:53:50,175 synthtool > Cloning googleapis. 2020-03-17 11:53:50,514 synthtool > Running generator for google/cloud/talent/artman_talent_v4beta1.yaml. 2020-03-17 11:54:06,167 synthtool > Generated code into /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java. 2020-03-17 11:54:06,170 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CustomAttributeOrBuilder.java. 2020-03-17 11:54:06,170 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetTenantRequestOrBuilder.java. 2020-03-17 11:54:06,170 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQuery.java. 2020-03-17 11:54:06,171 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequestOrBuilder.java. 2020-03-17 11:54:06,171 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesRequestOrBuilder.java. 2020-03-17 11:54:06,171 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyOrBuilder.java. 2020-03-17 11:54:06,171 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Visibility.java. 2020-03-17 11:54:06,172 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationRecord.java. 2020-03-17 11:54:06,172 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Publication.java. 2020-03-17 11:54:06,172 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationFilter.java. 2020-03-17 11:54:06,172 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteJobRequest.java. 2020-03-17 11:54:06,172 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetJobRequestOrBuilder.java. 2020-03-17 11:54:06,173 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceProto.java. 2020-03-17 11:54:06,173 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AvailabilityFilterOrBuilder.java. 2020-03-17 11:54:06,173 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteApplicationRequestOrBuilder.java. 2020-03-17 11:54:06,173 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesResponseOrBuilder.java. 2020-03-17 11:54:06,173 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateClientEventRequest.java. 2020-03-17 11:54:06,173 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Certification.java. 2020-03-17 11:54:06,174 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimeFilter.java. 2020-03-17 11:54:06,174 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesResponse.java. 2020-03-17 11:54:06,174 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeviceInfoOrBuilder.java. 2020-03-17 11:54:06,174 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteJobRequestOrBuilder.java. 2020-03-17 11:54:06,175 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequestOrBuilder.java. 2020-03-17 11:54:06,175 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CertificationOrBuilder.java. 2020-03-17 11:54:06,175 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateApplicationRequest.java. 2020-03-17 11:54:06,175 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/WorkExperienceFilter.java. 2020-03-17 11:54:06,175 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchUpdateJobsRequest.java. 2020-03-17 11:54:06,176 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQuery.java. 2020-03-17 11:54:06,176 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResponseMetadata.java. 2020-03-17 11:54:06,177 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetProfileRequest.java. 2020-03-17 11:54:06,177 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Activity.java. 2020-03-17 11:54:06,177 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchCreateJobsRequest.java. 2020-03-17 11:54:06,177 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetProfileRequestOrBuilder.java. 2020-03-17 11:54:06,178 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RequestMetadata.java. 2020-03-17 11:54:06,178 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobQueryOrBuilder.java. 2020-03-17 11:54:06,178 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsResponse.java. 2020-03-17 11:54:06,178 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/FiltersProto.java. 2020-03-17 11:54:06,179 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceProto.java. 2020-03-17 11:54:06,179 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateJobRequest.java. 2020-03-17 11:54:06,179 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchProto.java. 2020-03-17 11:54:06,179 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateProfileRequestOrBuilder.java. 2020-03-17 11:54:06,179 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentType.java. 2020-03-17 11:54:06,179 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateJobRequestOrBuilder.java. 2020-03-17 11:54:06,180 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobTitleFilter.java. 2020-03-17 11:54:06,180 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanySize.java. 2020-03-17 11:54:06,180 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateCompanyRequest.java. 2020-03-17 11:54:06,182 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQuery.java. 2020-03-17 11:54:06,182 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateClientEventRequestOrBuilder.java. 2020-03-17 11:54:06,182 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateProfileRequest.java. 2020-03-17 11:54:06,184 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Profile.java. 2020-03-17 11:54:06,185 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchDeleteJobsRequestOrBuilder.java. 2020-03-17 11:54:06,185 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchOperationMetadata.java. 2020-03-17 11:54:06,186 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequest.java. 2020-03-17 11:54:06,186 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileQueryOrBuilder.java. 2020-03-17 11:54:06,186 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsResponseOrBuilder.java. 2020-03-17 11:54:06,186 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsRequestOrBuilder.java. 2020-03-17 11:54:06,186 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateCompanyRequestOrBuilder.java. 2020-03-17 11:54:06,187 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsRequest.java. 2020-03-17 11:54:06,187 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryResponse.java. 2020-03-17 11:54:06,187 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobResourceProto.java. 2020-03-17 11:54:06,187 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsResponseOrBuilder.java. 2020-03-17 11:54:06,187 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationFilterOrBuilder.java. 2020-03-17 11:54:06,188 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyResourceProto.java. 2020-03-17 11:54:06,188 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AvailabilityFilter.java. 2020-03-17 11:54:06,188 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequestOrBuilder.java. 2020-03-17 11:54:06,188 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobOperationResultOrBuilder.java. 2020-03-17 11:54:06,188 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Company.java. 2020-03-17 11:54:06,189 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsResponse.java. 2020-03-17 11:54:06,189 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsResponse.java. 2020-03-17 11:54:06,189 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Phone.java. 2020-03-17 11:54:06,189 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilter.java. 2020-03-17 11:54:06,190 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateCompanyRequest.java. 2020-03-17 11:54:06,190 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonName.java. 2020-03-17 11:54:06,190 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetApplicationRequest.java. 2020-03-17 11:54:06,190 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Tenant.java. 2020-03-17 11:54:06,191 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchUpdateJobsRequestOrBuilder.java. 2020-03-17 11:54:06,191 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimestampRange.java. 2020-03-17 11:54:06,191 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobOperationResult.java. 2020-03-17 11:54:06,191 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetApplicationRequestOrBuilder.java. 2020-03-17 11:54:06,191 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilterOrBuilder.java. 2020-03-17 11:54:06,191 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobLevel.java. 2020-03-17 11:54:06,192 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetCompanyRequest.java. 2020-03-17 11:54:06,192 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileOrBuilder.java. 2020-03-17 11:54:06,192 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteTenantRequest.java. 2020-03-17 11:54:06,192 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SpellingCorrectionOrBuilder.java. 2020-03-17 11:54:06,192 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobTitleFilterOrBuilder.java. 2020-03-17 11:54:06,193 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequestOrBuilder.java. 2020-03-17 11:54:06,193 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteTenantRequestOrBuilder.java. 2020-03-17 11:54:06,193 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteMethod.java. 2020-03-17 11:54:06,193 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesResponse.java. 2020-03-17 11:54:06,193 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeviceInfo.java. 2020-03-17 11:54:06,193 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmployerFilterOrBuilder.java. 2020-03-17 11:54:06,194 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsRequestOrBuilder.java. 2020-03-17 11:54:06,194 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateJobRequestOrBuilder.java. 2020-03-17 11:54:06,194 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramProto.java. 2020-03-17 11:54:06,194 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantOrBuilder.java. 2020-03-17 11:54:06,194 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResponseMetadataOrBuilder.java. 2020-03-17 11:54:06,194 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetCompanyRequestOrBuilder.java. 2020-03-17 11:54:06,195 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobEventOrBuilder.java. 2020-03-17 11:54:06,195 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Resume.java. 2020-03-17 11:54:06,195 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Degree.java. 2020-03-17 11:54:06,195 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEvent.java. 2020-03-17 11:54:06,195 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryResultOrBuilder.java. 2020-03-17 11:54:06,196 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobOrBuilder.java. 2020-03-17 11:54:06,196 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateApplicationRequestOrBuilder.java. 2020-03-17 11:54:06,196 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommonProto.java. 2020-03-17 11:54:06,196 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantResourceProto.java. 2020-03-17 11:54:06,196 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListProfilesRequest.java. 2020-03-17 11:54:06,197 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteFilter.java. 2020-03-17 11:54:06,197 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesResponse.java. 2020-03-17 11:54:06,197 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmailOrBuilder.java. 2020-03-17 11:54:06,197 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateTenantRequestOrBuilder.java. 2020-03-17 11:54:06,197 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteCompanyRequestOrBuilder.java. 2020-03-17 11:54:06,197 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilter.java. 2020-03-17 11:54:06,198 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationOrBuilder.java. 2020-03-17 11:54:06,198 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionServiceProto.java. 2020-03-17 11:54:06,198 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecord.java. 2020-03-17 11:54:06,198 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HtmlSanitization.java. 2020-03-17 11:54:06,198 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchOperationMetadataOrBuilder.java. 2020-03-17 11:54:06,199 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceProto.java. 2020-03-17 11:54:06,199 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PhoneOrBuilder.java. 2020-03-17 11:54:06,199 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateCompanyRequestOrBuilder.java. 2020-03-17 11:54:06,199 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationDateFilterOrBuilder.java. 2020-03-17 11:54:06,199 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOrBuilder.java. 2020-03-17 11:54:06,199 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PostingRegion.java. 2020-03-17 11:54:06,200 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/LocationFilter.java. 2020-03-17 11:54:06,200 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationResourceProto.java. 2020-03-17 11:54:06,200 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AvailabilitySignalType.java. 2020-03-17 11:54:06,200 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListApplicationsResponseOrBuilder.java. 2020-03-17 11:54:06,200 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobCategory.java. 2020-03-17 11:54:06,200 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilter.java. 2020-03-17 11:54:06,201 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Email.java. 2020-03-17 11:54:06,201 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileEventOrBuilder.java. 2020-03-17 11:54:06,201 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfoOrBuilder.java. 2020-03-17 11:54:06,201 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobEvent.java. 2020-03-17 11:54:06,201 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillProficiencyLevel.java. 2020-03-17 11:54:06,202 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetTenantRequest.java. 2020-03-17 11:54:06,202 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationJobFilterOrBuilder.java. 2020-03-17 11:54:06,202 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DegreeOrBuilder.java. 2020-03-17 11:54:06,202 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AddressOrBuilder.java. 2020-03-17 11:54:06,202 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateTenantRequest.java. 2020-03-17 11:54:06,202 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryResult.java. 2020-03-17 11:54:06,203 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Skill.java. 2020-03-17 11:54:06,203 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonNameOrBuilder.java. 2020-03-17 11:54:06,203 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryResponseOrBuilder.java. 2020-03-17 11:54:06,203 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AvailabilitySignalOrBuilder.java. 2020-03-17 11:54:06,203 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventProto.java. 2020-03-17 11:54:06,203 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EmploymentRecordOrBuilder.java. 2020-03-17 11:54:06,204 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateApplicationRequest.java. 2020-03-17 11:54:06,204 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventServiceProto.java. 2020-03-17 11:54:06,204 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesRequest.java. 2020-03-17 11:54:06,204 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileResourceProto.java. 2020-03-17 11:54:06,204 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationFilter.java. 2020-03-17 11:54:06,205 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateTenantRequest.java. 2020-03-17 11:54:06,205 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateJobRequest.java. 2020-03-17 11:54:06,205 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceProto.java. 2020-03-17 11:54:06,206 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Job.java. 2020-03-17 11:54:06,207 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Address.java. 2020-03-17 11:54:06,207 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEventOrBuilder.java. 2020-03-17 11:54:06,207 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ActivityOrBuilder.java. 2020-03-17 11:54:06,207 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationRecordOrBuilder.java. 2020-03-17 11:54:06,207 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteApplicationRequest.java. 2020-03-17 11:54:06,208 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Location.java. 2020-03-17 11:54:06,208 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillOrBuilder.java. 2020-03-17 11:54:06,208 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RequestMetadataOrBuilder.java. 2020-03-17 11:54:06,208 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListTenantsRequest.java. 2020-03-17 11:54:06,208 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimeFilterOrBuilder.java. 2020-03-17 11:54:06,208 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DegreeType.java. 2020-03-17 11:54:06,209 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Interview.java. 2020-03-17 11:54:06,209 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonalUri.java. 2020-03-17 11:54:06,209 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonalUriOrBuilder.java. 2020-03-17 11:54:06,210 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsRequest.java. 2020-03-17 11:54:06,210 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Outcome.java. 2020-03-17 11:54:06,210 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SpellingCorrection.java. 2020-03-17 11:54:06,211 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchCreateJobsRequestOrBuilder.java. 2020-03-17 11:54:06,211 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateApplicationRequestOrBuilder.java. 2020-03-17 11:54:06,211 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteCompanyRequest.java. 2020-03-17 11:54:06,211 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CandidateAvailabilityFilter.java. 2020-03-17 11:54:06,211 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteProfileRequestOrBuilder.java. 2020-03-17 11:54:06,212 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesResponseOrBuilder.java. 2020-03-17 11:54:06,212 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequestOrBuilder.java. 2020-03-17 11:54:06,212 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ResumeOrBuilder.java. 2020-03-17 11:54:06,212 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EducationFilterOrBuilder.java. 2020-03-17 11:54:06,212 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/HistogramQueryOrBuilder.java. 2020-03-17 11:54:06,212 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsResponseOrBuilder.java. 2020-03-17 11:54:06,212 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillFilter.java. 2020-03-17 11:54:06,213 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonNameFilter.java. 2020-03-17 11:54:06,213 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchProfilesRequestOrBuilder.java. 2020-03-17 11:54:06,214 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SearchJobsResponse.java. 2020-03-17 11:54:06,214 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/BatchDeleteJobsRequest.java. 2020-03-17 11:54:06,214 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CustomAttribute.java. 2020-03-17 11:54:06,214 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobView.java. 2020-03-17 11:54:06,214 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CommuteFilterOrBuilder.java. 2020-03-17 11:54:06,215 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PublicationOrBuilder.java. 2020-03-17 11:54:06,215 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/WorkExperienceFilterOrBuilder.java. 2020-03-17 11:54:06,215 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/InterviewOrBuilder.java. 2020-03-17 11:54:06,215 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ContactInfoUsage.java. 2020-03-17 11:54:06,215 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PersonNameFilterOrBuilder.java. 2020-03-17 11:54:06,215 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListCompaniesResponseOrBuilder.java. 2020-03-17 11:54:06,216 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TimestampRangeOrBuilder.java. 2020-03-17 11:54:06,216 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ClientEvent.java. 2020-03-17 11:54:06,216 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AdditionalContactInfoOrBuilder.java. 2020-03-17 11:54:06,216 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfo.java. 2020-03-17 11:54:06,217 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AvailabilitySignal.java. 2020-03-17 11:54:06,217 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfile.java. 2020-03-17 11:54:06,217 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SkillFilterOrBuilder.java. 2020-03-17 11:54:06,217 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/SummarizedProfileOrBuilder.java. 2020-03-17 11:54:06,217 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeNotesFilterOrBuilder.java. 2020-03-17 11:54:06,218 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Patent.java. 2020-03-17 11:54:06,218 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/PatentOrBuilder.java. 2020-03-17 11:54:06,218 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CandidateAvailabilityFilterOrBuilder.java. 2020-03-17 11:54:06,218 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobBenefit.java. 2020-03-17 11:54:06,218 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompleteQueryRequest.java. 2020-03-17 11:54:06,219 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceProto.java. 2020-03-17 11:54:06,219 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ListJobsRequest.java. 2020-03-17 11:54:06,219 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationOutcomeNotesFilter.java. 2020-03-17 11:54:06,219 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/AdditionalContactInfo.java. 2020-03-17 11:54:06,220 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Application.java. 2020-03-17 11:54:06,220 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/Rating.java. 2020-03-17 11:54:06,220 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/RatingOrBuilder.java. 2020-03-17 11:54:06,220 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/GetJobRequest.java. 2020-03-17 11:54:06,220 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/DeleteProfileRequest.java. 2020-03-17 11:54:06,221 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/UpdateTenantRequestOrBuilder.java. 2020-03-17 11:54:06,221 synthtool > Replaced '// Generated by the protocol buffer compiler. DO NOT EDIT!' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CreateProfileRequest.java. 2020-03-17 11:54:06,225 synthtool > Replaced '/\\*\n \\* Copyright \\d{4} Google LLC\n \\*\n \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except\n \\* in compliance with the License. You may obtain a copy of the License at\n \\*\n \\* http://www.apache.org/licenses/LICENSE-2.0\n \\*\n \\* Unless required by applicable law or agreed to in writing, software distributed under the License\n \\* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n \\* or implied. See the License for the specific language governing permissions and limitations under\n \\* the License.\n \\*/\n' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobName.java. 2020-03-17 11:54:06,225 synthtool > Replaced '/\\*\n \\* Copyright \\d{4} Google LLC\n \\*\n \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except\n \\* in compliance with the License. You may obtain a copy of the License at\n \\*\n \\* http://www.apache.org/licenses/LICENSE-2.0\n \\*\n \\* Unless required by applicable law or agreed to in writing, software distributed under the License\n \\* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n \\* or implied. See the License for the specific language governing permissions and limitations under\n \\* the License.\n \\*/\n' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyName.java. 2020-03-17 11:54:06,226 synthtool > Replaced '/\\*\n \\* Copyright \\d{4} Google LLC\n \\*\n \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except\n \\* in compliance with the License. You may obtain a copy of the License at\n \\*\n \\* http://www.apache.org/licenses/LICENSE-2.0\n \\*\n \\* Unless required by applicable law or agreed to in writing, software distributed under the License\n \\* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n \\* or implied. See the License for the specific language governing permissions and limitations under\n \\* the License.\n \\*/\n' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationName.java. 2020-03-17 11:54:06,226 synthtool > Replaced '/\\*\n \\* Copyright \\d{4} Google LLC\n \\*\n \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except\n \\* in compliance with the License. You may obtain a copy of the License at\n \\*\n \\* http://www.apache.org/licenses/LICENSE-2.0\n \\*\n \\* Unless required by applicable law or agreed to in writing, software distributed under the License\n \\* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n \\* or implied. See the License for the specific language governing permissions and limitations under\n \\* the License.\n \\*/\n' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantName.java. 2020-03-17 11:54:06,226 synthtool > Replaced '/\\*\n \\* Copyright \\d{4} Google LLC\n \\*\n \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except\n \\* in compliance with the License. You may obtain a copy of the License at\n \\*\n \\* http://www.apache.org/licenses/LICENSE-2.0\n \\*\n \\* Unless required by applicable law or agreed to in writing, software distributed under the License\n \\* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n \\* or implied. See the License for the specific language governing permissions and limitations under\n \\* the License.\n \\*/\n' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProjectName.java. 2020-03-17 11:54:06,226 synthtool > Replaced '/\\*\n \\* Copyright \\d{4} Google LLC\n \\*\n \\* Licensed under the Apache License, Version 2.0 \\(the "License"\\); you may not use this file except\n \\* in compliance with the License. You may obtain a copy of the License at\n \\*\n \\* http://www.apache.org/licenses/LICENSE-2.0\n \\*\n \\* Unless required by applicable law or agreed to in writing, software distributed under the License\n \\* is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n \\* or implied. See the License for the specific language governing permissions and limitations under\n \\* the License.\n \\*/\n' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileName.java. 2020-03-17 11:54:06,230 synthtool > Replaced '^package (.*);' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/JobServiceGrpc.java. 2020-03-17 11:54:06,230 synthtool > Replaced '^package (.*);' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ApplicationServiceGrpc.java. 2020-03-17 11:54:06,230 synthtool > Replaced '^package (.*);' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/EventServiceGrpc.java. 2020-03-17 11:54:06,231 synthtool > Replaced '^package (.*);' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/ProfileServiceGrpc.java. 2020-03-17 11:54:06,231 synthtool > Replaced '^package (.*);' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompletionGrpc.java. 2020-03-17 11:54:06,232 synthtool > Replaced '^package (.*);' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/TenantServiceGrpc.java. 2020-03-17 11:54:06,232 synthtool > Replaced '^package (.*);' in /home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/grpc-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompanyServiceGrpc.java. 2020-03-17 11:54:06,311 synthtool > No files in sources [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/gapic-google-cloud-talent-v4beta1/samples/src')] were copied. Does the source contain files? 2020-03-17 11:54:06,312 synthtool > No files in sources [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/gapic-google-cloud-talent-v4beta1/samples/resources')] were copied. Does the source contain files? 2020-03-17 11:54:06,312 synthtool > No files in sources [PosixPath('/home/kbuilder/.cache/synthtool/googleapis/artman-genfiles/java/gapic-google-cloud-talent-v4beta1/samples/src/**/*.manifest.yaml')] were copied. Does the source contain files? 2020-03-17 11:54:06,313 synthtool > Running java formatter on 65 files 2020-03-17 11:54:11,292 synthtool > Running java formatter on 7 files 2020-03-17 11:54:14,474 synthtool > Running java formatter on 230 files 2020-03-17 11:54:34,139 synthtool > Running java formatter on 0 files .github/ISSUE_TEMPLATE/bug_report.md .github/ISSUE_TEMPLATE/feature_request.md .github/ISSUE_TEMPLATE/support_request.md .github/PULL_REQUEST_TEMPLATE.md .github/release-please.yml .github/trusted-contribution.yml .kokoro/build.bat .kokoro/build.sh .kokoro/coerce_logs.sh .kokoro/common.cfg .kokoro/continuous/common.cfg .kokoro/continuous/dependencies.cfg .kokoro/continuous/integration.cfg .kokoro/continuous/java11.cfg .kokoro/continuous/java7.cfg .kokoro/continuous/java8-osx.cfg .kokoro/continuous/java8-win.cfg .kokoro/continuous/java8.cfg .kokoro/continuous/lint.cfg .kokoro/continuous/propose_release.cfg .kokoro/continuous/samples.cfg .kokoro/dependencies.sh .kokoro/linkage-monitor.sh .kokoro/nightly/common.cfg .kokoro/nightly/dependencies.cfg .kokoro/nightly/integration.cfg .kokoro/nightly/java11.cfg .kokoro/nightly/java7.cfg .kokoro/nightly/java8-osx.cfg .kokoro/nightly/java8-win.cfg .kokoro/nightly/java8.cfg .kokoro/nightly/lint.cfg .kokoro/nightly/samples.cfg .kokoro/presubmit/clirr.cfg .kokoro/presubmit/common.cfg .kokoro/presubmit/dependencies.cfg .kokoro/presubmit/integration.cfg .kokoro/presubmit/java11.cfg .kokoro/presubmit/java7.cfg .kokoro/presubmit/java8-osx.cfg .kokoro/presubmit/java8-win.cfg .kokoro/presubmit/java8.cfg .kokoro/presubmit/linkage-monitor.cfg .kokoro/presubmit/lint.cfg .kokoro/presubmit/samples.cfg .kokoro/release/bump_snapshot.cfg .kokoro/release/common.cfg .kokoro/release/common.sh .kokoro/release/drop.cfg .kokoro/release/drop.sh .kokoro/release/promote.cfg .kokoro/release/promote.sh .kokoro/release/publish_javadoc.cfg .kokoro/release/publish_javadoc.sh .kokoro/release/snapshot.cfg .kokoro/release/snapshot.sh .kokoro/release/stage.cfg .kokoro/release/stage.sh .kokoro/trampoline.sh CODE_OF_CONDUCT.md CONTRIBUTING.md LICENSE README.md codecov.yaml java.header license-checks.xml renovate.json samples/install-without-bom/pom.xml samples/pom.xml samples/snapshot/pom.xml samples/snippets/pom.xml 2020-03-17 11:54:34,744 synthtool > merge: CODE_OF_CONDUCT.md 2020-03-17 11:54:34,745 synthtool > merge: java.header 2020-03-17 11:54:34,745 synthtool > merge: license-checks.xml 2020-03-17 11:54:34,745 synthtool > merge: LICENSE 2020-03-17 11:54:34,746 synthtool > merge: README.md 2020-03-17 11:54:34,746 synthtool > merge: CONTRIBUTING.md 2020-03-17 11:54:34,746 synthtool > merge: renovate.json 2020-03-17 11:54:34,747 synthtool > merge: codecov.yaml 2020-03-17 11:54:34,748 synthtool > merge: .kokoro/build.sh 2020-03-17 11:54:34,748 synthtool > merge: .kokoro/coerce_logs.sh 2020-03-17 11:54:34,748 synthtool > merge: .kokoro/dependencies.sh 2020-03-17 11:54:34,749 synthtool > merge: .kokoro/linkage-monitor.sh 2020-03-17 11:54:34,749 synthtool > merge: .kokoro/trampoline.sh 2020-03-17 11:54:34,749 synthtool > merge: .kokoro/common.cfg 2020-03-17 11:54:34,749 synthtool > merge: .kokoro/build.bat 2020-03-17 11:54:34,750 synthtool > merge: .kokoro/release/promote.sh 2020-03-17 11:54:34,750 synthtool > merge: .kokoro/release/snapshot.sh 2020-03-17 11:54:34,750 synthtool > merge: .kokoro/release/stage.sh 2020-03-17 11:54:34,750 synthtool > merge: .kokoro/release/bump_snapshot.cfg 2020-03-17 11:54:34,751 synthtool > merge: .kokoro/release/drop.cfg 2020-03-17 11:54:34,751 synthtool > merge: .kokoro/release/snapshot.cfg 2020-03-17 11:54:34,751 synthtool > merge: .kokoro/release/promote.cfg 2020-03-17 11:54:34,752 synthtool > merge: .kokoro/release/publish_javadoc.sh 2020-03-17 11:54:34,752 synthtool > merge: .kokoro/release/common.cfg 2020-03-17 11:54:34,752 synthtool > merge: .kokoro/release/drop.sh 2020-03-17 11:54:34,752 synthtool > merge: .kokoro/release/publish_javadoc.cfg 2020-03-17 11:54:34,753 synthtool > merge: .kokoro/release/stage.cfg 2020-03-17 11:54:34,753 synthtool > merge: .kokoro/release/common.sh 2020-03-17 11:54:34,753 synthtool > merge: .kokoro/nightly/lint.cfg 2020-03-17 11:54:34,753 synthtool > merge: .kokoro/nightly/java11.cfg 2020-03-17 11:54:34,754 synthtool > merge: .kokoro/nightly/samples.cfg 2020-03-17 11:54:34,754 synthtool > merge: .kokoro/nightly/java8.cfg 2020-03-17 11:54:34,754 synthtool > merge: .kokoro/nightly/java7.cfg 2020-03-17 11:54:34,754 synthtool > merge: .kokoro/nightly/common.cfg 2020-03-17 11:54:34,755 synthtool > merge: .kokoro/nightly/dependencies.cfg 2020-03-17 11:54:34,755 synthtool > merge: .kokoro/nightly/java8-osx.cfg 2020-03-17 11:54:34,755 synthtool > merge: .kokoro/nightly/java8-win.cfg 2020-03-17 11:54:34,755 synthtool > merge: .kokoro/nightly/integration.cfg 2020-03-17 11:54:34,756 synthtool > merge: .kokoro/presubmit/lint.cfg 2020-03-17 11:54:34,756 synthtool > merge: .kokoro/presubmit/clirr.cfg 2020-03-17 11:54:34,756 synthtool > merge: .kokoro/presubmit/java11.cfg 2020-03-17 11:54:34,757 synthtool > merge: .kokoro/presubmit/samples.cfg 2020-03-17 11:54:34,757 synthtool > merge: .kokoro/presubmit/linkage-monitor.cfg 2020-03-17 11:54:34,757 synthtool > merge: .kokoro/presubmit/java8.cfg 2020-03-17 11:54:34,757 synthtool > merge: .kokoro/presubmit/java7.cfg 2020-03-17 11:54:34,758 synthtool > merge: .kokoro/presubmit/common.cfg 2020-03-17 11:54:34,758 synthtool > merge: .kokoro/presubmit/dependencies.cfg 2020-03-17 11:54:34,758 synthtool > merge: .kokoro/presubmit/java8-osx.cfg 2020-03-17 11:54:34,758 synthtool > merge: .kokoro/presubmit/java8-win.cfg 2020-03-17 11:54:34,759 synthtool > merge: .kokoro/presubmit/integration.cfg 2020-03-17 11:54:34,759 synthtool > merge: .kokoro/continuous/lint.cfg 2020-03-17 11:54:34,759 synthtool > merge: .kokoro/continuous/java11.cfg 2020-03-17 11:54:34,759 synthtool > merge: .kokoro/continuous/samples.cfg 2020-03-17 11:54:34,760 synthtool > merge: .kokoro/continuous/java8.cfg 2020-03-17 11:54:34,760 synthtool > merge: .kokoro/continuous/java7.cfg 2020-03-17 11:54:34,760 synthtool > merge: .kokoro/continuous/propose_release.cfg 2020-03-17 11:54:34,760 synthtool > merge: .kokoro/continuous/common.cfg 2020-03-17 11:54:34,761 synthtool > merge: .kokoro/continuous/dependencies.cfg 2020-03-17 11:54:34,761 synthtool > merge: .kokoro/continuous/java8-osx.cfg 2020-03-17 11:54:34,761 synthtool > merge: .kokoro/continuous/java8-win.cfg 2020-03-17 11:54:34,761 synthtool > merge: .kokoro/continuous/integration.cfg 2020-03-17 11:54:34,762 synthtool > merge: .github/trusted-contribution.yml 2020-03-17 11:54:34,762 synthtool > merge: .github/release-please.yml 2020-03-17 11:54:34,762 synthtool > merge: .github/PULL_REQUEST_TEMPLATE.md 2020-03-17 11:54:34,762 synthtool > merge: .github/ISSUE_TEMPLATE/feature_request.md 2020-03-17 11:54:34,763 synthtool > merge: .github/ISSUE_TEMPLATE/bug_report.md 2020-03-17 11:54:34,763 synthtool > merge: .github/ISSUE_TEMPLATE/support_request.md 2020-03-17 11:54:34,768 synthtool > Wrote metadata to synth.metadata. ```
--- talent/snippets/pom.xml | 60 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 talent/snippets/pom.xml diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml new file mode 100644 index 00000000000..d78be844ba1 --- /dev/null +++ b/talent/snippets/pom.xml @@ -0,0 +1,60 @@ + + + 4.0.0 + com.google.cloud + talent-snippets + jar + Google Talent Solution Snippets + https://github.com/googleapis/java-talent + + + + com.google.cloud.samples + shared-configuration + 1.0.12 + + + + 1.8 + 1.8 + UTF-8 + + + + + + + + com.google.cloud + libraries-bom + 4.2.0 + pom + import + + + + + + + com.google.cloud + google-cloud-talent + + + + + junit + junit + 4.13 + test + + + com.google.truth + truth + 1.0.1 + test + + + From 2ec08dbbd71c34945f5b63cc2db506ae74b56f76 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 23 Mar 2020 18:23:33 +0100 Subject: [PATCH 04/92] chore(deps): update dependency com.google.cloud:libraries-bom to v4.3.0 (#102) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `4.2.0` -> `4.3.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index d78be844ba1..39c4bbbe2c5 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 4.2.0 + 4.3.0 pom import From 6117aa0dc5cf96e65751b6fa645fbde527e6b33a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 26 Mar 2020 20:38:06 +0100 Subject: [PATCH 05/92] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.13 (#107) --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 39c4bbbe2c5..183bd8504de 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.12 + 1.0.13 From f4f4e72422b893aa841b1e3cfe903a7ef9ee84bf Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 30 Mar 2020 19:57:36 +0200 Subject: [PATCH 06/92] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.14 (#118) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | patch | `1.0.13` -> `1.0.14` | --- ### Release Notes
GoogleCloudPlatform/java-repo-tools ### [`v1.0.14`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/releases/v1.0.14) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.13...v1.0.14) - Update CheckStyle to 8.31 - Add SpotBugs
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 183bd8504de..a81512076f7 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.13 + 1.0.14 From 20f829e0d62f733339f8ddca821a3c07b6f5d453 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 1 Apr 2020 21:34:59 +0200 Subject: [PATCH 07/92] chore(deps): update dependency com.google.cloud:libraries-bom to v4.4.0 (#119) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `4.3.0` -> `4.4.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index a81512076f7..e10891405ee 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 4.3.0 + 4.4.0 pom import From e769f5780ec29dca263420306c5ec64068d47a46 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 6 Apr 2020 17:49:49 +0200 Subject: [PATCH 08/92] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.15 (#121) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | patch | `1.0.14` -> `1.0.15` | --- ### Release Notes
GoogleCloudPlatform/java-repo-tools ### [`v1.0.15`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/releases/v1.0.15) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.14...v1.0.15) - Move some stuff around (in prep for a change to release process) pom.xml's - Add an exclude filter for SpotBugs. (disable the Java 11 surprise) - Don't fail on SpotBugs issues for now - add PMD reporting - Don't fail on PMD issues for now.
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index e10891405ee..7e3f9c9f844 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.14 + 1.0.15 From a9932375ff0e2152de9e7af78c4307f1d0f28dba Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 6 Apr 2020 19:59:16 +0200 Subject: [PATCH 09/92] chore(deps): update dependency com.google.cloud:libraries-bom to v4.4.1 (#123) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | patch | `4.4.0` -> `4.4.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 7e3f9c9f844..7236322f009 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 4.4.0 + 4.4.1 pom import From 36b79cb42036eb8a6c8d18aa9a7936ecda0156be Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 14 Apr 2020 19:36:52 +0200 Subject: [PATCH 10/92] chore(deps): update dependency com.google.cloud:libraries-bom to v5 (#136) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `4.4.1` -> `5.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 7236322f009..5be9de7f935 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 4.4.1 + 5.1.0 pom import From d9796d988288311acd21ebbfb16016c7e9ac1110 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 16 Apr 2020 17:51:36 +0200 Subject: [PATCH 11/92] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.16 (#141) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | patch | `1.0.15` -> `1.0.16` | --- ### Release Notes
GoogleCloudPlatform/java-repo-tools ### [`v1.0.16`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/releases/v1.0.16) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.15...v1.0.16) Add a few SpotBugs exclusions: - `RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE` - existing - codegen bug - `UPM_UNCALLED_PRIVATE_METHOD` - probably SpotBug issue - `NP_NULL_ON_SOME_PATH_FROM_RETURN_VALUE` - likely SpotBug issue - `CLI_CONSTANT_LIST_INDEX` - style issue particular to our samples - `OBL_UNSATISFIED_OBLIGATION` - issue for SQL clients
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 5be9de7f935..20f3583ca85 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.15 + 1.0.16 From 76ab8807cc743b381ef81c51bcb79b545db0fa4f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 17 Apr 2020 08:49:31 +0200 Subject: [PATCH 12/92] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.17 (#145) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | patch | `1.0.16` -> `1.0.17` | --- ### Release Notes
GoogleCloudPlatform/java-repo-tools ### [`v1.0.17`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/releases/v1.0.17) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.16...v1.0.17) - require -P lint Lets not burden customers with our development rules. - Move Checkstyle, ErrorProne, PMD, and SpotBugs to only run w/ -P lint - Update the Readme - spotbugs-annotations 4.0.2
--- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 20f3583ca85..0b7bf580b3f 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.16 + 1.0.17 From ad279688580091770aa03bd862210df343e25a4e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 23 Apr 2020 22:35:46 +0200 Subject: [PATCH 13/92] chore(deps): update dependency com.google.cloud:libraries-bom to v5.2.0 (#149) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.1.0` -> `5.2.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 0b7bf580b3f..1593dee78d1 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.1.0 + 5.2.0 pom import From 21266fd600b1d93a277c0f31ff24580a851542b6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 29 Apr 2020 01:08:03 +0200 Subject: [PATCH 14/92] chore(deps): update dependency com.google.cloud:libraries-bom to v5.3.0 (#154) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.2.0` -> `5.3.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 1593dee78d1..72bbd512d54 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.2.0 + 5.3.0 pom import From caea2760c274c80a03beca7571e5bf3fc3876e87 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 19 May 2020 23:45:36 +0200 Subject: [PATCH 15/92] chore(deps): update dependency com.google.cloud:libraries-bom to v5.4.0 (#162) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.3.0` -> `5.4.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 72bbd512d54..4aa5c5671b7 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.3.0 + 5.4.0 pom import From 84f9edecd73d73685814ec276ff61edc346c6066 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 29 May 2020 20:34:48 +0200 Subject: [PATCH 16/92] chore(deps): update dependency com.google.cloud:libraries-bom to v5.5.0 (#170) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.4.0` -> `5.5.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 4aa5c5671b7..492b919ff2c 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.4.0 + 5.5.0 pom import From a09b5210c31f58409a891428db01365f51c1a261 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 11 Jun 2020 00:46:08 +0200 Subject: [PATCH 17/92] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.18 (#182) This PR contains the following updates: | Package | Update | Change | |---|---|---| | com.google.cloud.samples:shared-configuration | patch | `1.0.17` -> `1.0.18` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 492b919ff2c..17906e9a6a9 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.17 + 1.0.18 From 052c85654e577af5e68059a8c17d8caf97107d0f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 11 Jun 2020 00:52:23 +0200 Subject: [PATCH 18/92] chore(deps): update dependency com.google.cloud:libraries-bom to v5.7.0 (#181) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `5.5.0` -> `5.7.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 17906e9a6a9..84581ed917f 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.5.0 + 5.7.0 pom import From 5102000a69bfc8c59075fac3ea32474da6e8da75 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 17 Jun 2020 01:27:59 +0200 Subject: [PATCH 19/92] chore(deps): update dependency com.google.cloud:libraries-bom to v6 (#190) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `5.7.0` -> `6.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 84581ed917f..2cbc4f4e17a 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 5.7.0 + 6.0.0 pom import From 50d25c773b8c00e59bf970c933df921a6b0a9e70 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 17 Jun 2020 19:42:54 +0200 Subject: [PATCH 20/92] chore(deps): update dependency com.google.cloud:libraries-bom to v7 (#192) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `6.0.0` -> `7.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 2cbc4f4e17a..d87375ffb14 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 6.0.0 + 7.0.0 pom import From 6898dec0d60981d0451071114e69e7134a45c9fa Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 22 Jun 2020 23:48:37 +0200 Subject: [PATCH 21/92] chore(deps): update dependency com.google.cloud:libraries-bom to v7.0.1 (#198) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | patch | `7.0.0` -> `7.0.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index d87375ffb14..375ef7fcdf1 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 7.0.0 + 7.0.1 pom import From e1897252715ecebb0944e4eedb110ecc1ec76fe0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 26 Jun 2020 07:24:02 +0200 Subject: [PATCH 22/92] chore(deps): update dependency com.google.cloud:libraries-bom to v8 (#201) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `7.0.1` -> `8.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 375ef7fcdf1..259a31f2eef 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 7.0.1 + 8.0.0 pom import From a5ec5b1b772d0a11ae91c4b31a9a018c5e8f2f84 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 16 Jul 2020 19:47:07 +0200 Subject: [PATCH 23/92] chore(deps): update dependency com.google.cloud:libraries-bom to v8.1.0 (#208) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `8.0.0` -> `8.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 259a31f2eef..de8fde2db54 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 8.0.0 + 8.1.0 pom import From 1af22ad77126afa16a7df10b54f3f77a99bf0b46 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 9 Sep 2020 20:58:03 +0200 Subject: [PATCH 24/92] chore(deps): update dependency com.google.cloud:libraries-bom to v10 (#224) --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index de8fde2db54..7a4fdd48ac9 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 8.1.0 + 10.0.0 pom import From 346b44c6f9f81b5b7c42c78c816c885faa088a79 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 9 Sep 2020 21:27:17 +0200 Subject: [PATCH 25/92] chore(deps): update dependency com.google.cloud:libraries-bom to v10.1.0 (#228) --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 7a4fdd48ac9..29efcb0dc75 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 10.0.0 + 10.1.0 pom import From df5402c70f6e3fa38421e89d4a2da912a06d7652 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 24 Sep 2020 19:46:20 +0200 Subject: [PATCH 26/92] chore(deps): update dependency com.google.cloud:libraries-bom to v11 (#255) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `10.1.0` -> `11.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 29efcb0dc75..9a3d88f825b 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 10.1.0 + 11.0.0 pom import From 930b1117badc87aa9fd6875a59dcf22e94cedd36 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 1 Oct 2020 20:03:21 +0200 Subject: [PATCH 27/92] chore(deps): update dependency com.google.cloud:libraries-bom to v11.1.0 (#258) --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 9a3d88f825b..0bc9392e14d 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 11.0.0 + 11.1.0 pom import From d19fca7d9d904e99af283291320520ccf4e69689 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 7 Oct 2020 00:08:20 +0200 Subject: [PATCH 28/92] chore(deps): update dependency com.google.cloud:libraries-bom to v12 (#264) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `11.1.0` -> `12.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 0bc9392e14d..61e8de10704 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 11.1.0 + 12.0.0 pom import From cdd28d1412eab3ef42850bfef526c80911e56aba Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Oct 2020 02:00:23 +0200 Subject: [PATCH 29/92] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.21 (#256) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud.samples:shared-configuration](com/google/cloud/samples/shared-configuration) | patch | `1.0.18` -> `1.0.21` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 61e8de10704..87a67cb57d8 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.18 + 1.0.21 From 63bd2e261219c5cac5eb95c7307bf21598b71877 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 12 Oct 2020 19:00:20 +0200 Subject: [PATCH 30/92] test(deps): update dependency junit:junit to v4.13.1 --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 87a67cb57d8..e3c815d0f5d 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -47,7 +47,7 @@ junit junit - 4.13 + 4.13.1 test From 62438adc3e85f0f6d6a97ae5e1063c4b98849b25 Mon Sep 17 00:00:00 2001 From: saumyasahu-bot <71405727+saumyasahu-bot@users.noreply.github.com> Date: Tue, 13 Oct 2020 17:17:59 -0700 Subject: [PATCH 31/92] samples: add Job Search v4 samples (#275) * Sample code for Jobs - V4 Sample code for Jobs v4 APIs. * feat: Add Job Search v4 API * Updated as per comment * No more required. samples/snippets/pom.xml will take care of specific version * Migrated to parent folder Maintaing v4 as the defacto version for now. Later it can be moved to version specific package if required. * test: configure extra cts environment variables * fixed listjobs test fixed listjobs test * fixed lint. Co-authored-by: Jeff Ching --- .../com/example/jobs/CommuteSearchJobs.java | 95 +++++++++++++++++++ .../example/jobs/CustomRankingSearchJobs.java | 81 ++++++++++++++++ .../com/example/jobs/HistogramSearchJobs.java | 78 +++++++++++++++ .../jobs/JobSearchAutoCompleteJobTitle.java | 61 ++++++++++++ .../jobs/JobSearchCreateClientEvent.java | 85 +++++++++++++++++ .../example/jobs/JobSearchCreateCompany.java | 63 ++++++++++++ .../com/example/jobs/JobSearchCreateJob.java | 93 ++++++++++++++++++ .../JobSearchCreateJobCustomAttributes.java | 77 +++++++++++++++ .../example/jobs/JobSearchCreateTenant.java | 55 +++++++++++ .../example/jobs/JobSearchDeleteCompany.java | 53 +++++++++++ .../com/example/jobs/JobSearchDeleteJob.java | 51 ++++++++++ .../example/jobs/JobSearchDeleteTenant.java | 51 ++++++++++ .../com/example/jobs/JobSearchGetCompany.java | 54 +++++++++++ .../com/example/jobs/JobSearchGetJob.java | 65 +++++++++++++ .../com/example/jobs/JobSearchGetTenant.java | 52 ++++++++++ .../example/jobs/JobSearchListCompanies.java | 55 +++++++++++ .../com/example/jobs/JobSearchListJobs.java | 55 +++++++++++ .../example/jobs/JobSearchListTenants.java | 53 +++++++++++ .../src/test/java/CommuteSearchJobsTest.java | 56 +++++++++++ .../java/CustomRankingSearchJobsTest.java | 57 +++++++++++ .../test/java/HistogramSearchJobsTest.java | 55 +++++++++++ .../JobSearchAutoCompleteJobTitleTest.java | 54 +++++++++++ .../test/java/JobSearchCreateCompanyTest.java | 64 +++++++++++++ .../src/test/java/JobSearchCreateJobTest.java | 72 ++++++++++++++ .../JobSearchCreateJobWithCustomAttrTest.java | 72 ++++++++++++++ .../test/java/JobSearchCreateTenantTest.java | 63 ++++++++++++ .../test/java/JobSearchDeleteCompanyTest.java | 68 +++++++++++++ .../src/test/java/JobSearchDeleteJobTest.java | 73 ++++++++++++++ .../test/java/JobSearchDeleteTenantTest.java | 65 +++++++++++++ .../test/java/JobSearchGetCompanyTest.java | 55 +++++++++++ .../src/test/java/JobSearchGetJobTest.java | 65 +++++++++++++ .../src/test/java/JobSearchGetTenantTest.java | 53 +++++++++++ .../test/java/JobSearchListCompaniesTest.java | 55 +++++++++++ .../src/test/java/JobSearchListJobsTest.java | 60 ++++++++++++ .../test/java/JobSearchListTenantsTest.java | 52 ++++++++++ 35 files changed, 2216 insertions(+) create mode 100644 talent/snippets/src/main/java/com/example/jobs/CommuteSearchJobs.java create mode 100644 talent/snippets/src/main/java/com/example/jobs/CustomRankingSearchJobs.java create mode 100644 talent/snippets/src/main/java/com/example/jobs/HistogramSearchJobs.java create mode 100644 talent/snippets/src/main/java/com/example/jobs/JobSearchAutoCompleteJobTitle.java create mode 100644 talent/snippets/src/main/java/com/example/jobs/JobSearchCreateClientEvent.java create mode 100644 talent/snippets/src/main/java/com/example/jobs/JobSearchCreateCompany.java create mode 100644 talent/snippets/src/main/java/com/example/jobs/JobSearchCreateJob.java create mode 100644 talent/snippets/src/main/java/com/example/jobs/JobSearchCreateJobCustomAttributes.java create mode 100644 talent/snippets/src/main/java/com/example/jobs/JobSearchCreateTenant.java create mode 100644 talent/snippets/src/main/java/com/example/jobs/JobSearchDeleteCompany.java create mode 100644 talent/snippets/src/main/java/com/example/jobs/JobSearchDeleteJob.java create mode 100644 talent/snippets/src/main/java/com/example/jobs/JobSearchDeleteTenant.java create mode 100644 talent/snippets/src/main/java/com/example/jobs/JobSearchGetCompany.java create mode 100644 talent/snippets/src/main/java/com/example/jobs/JobSearchGetJob.java create mode 100644 talent/snippets/src/main/java/com/example/jobs/JobSearchGetTenant.java create mode 100644 talent/snippets/src/main/java/com/example/jobs/JobSearchListCompanies.java create mode 100644 talent/snippets/src/main/java/com/example/jobs/JobSearchListJobs.java create mode 100644 talent/snippets/src/main/java/com/example/jobs/JobSearchListTenants.java create mode 100644 talent/snippets/src/test/java/CommuteSearchJobsTest.java create mode 100644 talent/snippets/src/test/java/CustomRankingSearchJobsTest.java create mode 100644 talent/snippets/src/test/java/HistogramSearchJobsTest.java create mode 100644 talent/snippets/src/test/java/JobSearchAutoCompleteJobTitleTest.java create mode 100644 talent/snippets/src/test/java/JobSearchCreateCompanyTest.java create mode 100644 talent/snippets/src/test/java/JobSearchCreateJobTest.java create mode 100644 talent/snippets/src/test/java/JobSearchCreateJobWithCustomAttrTest.java create mode 100644 talent/snippets/src/test/java/JobSearchCreateTenantTest.java create mode 100644 talent/snippets/src/test/java/JobSearchDeleteCompanyTest.java create mode 100644 talent/snippets/src/test/java/JobSearchDeleteJobTest.java create mode 100644 talent/snippets/src/test/java/JobSearchDeleteTenantTest.java create mode 100644 talent/snippets/src/test/java/JobSearchGetCompanyTest.java create mode 100644 talent/snippets/src/test/java/JobSearchGetJobTest.java create mode 100644 talent/snippets/src/test/java/JobSearchGetTenantTest.java create mode 100644 talent/snippets/src/test/java/JobSearchListCompaniesTest.java create mode 100644 talent/snippets/src/test/java/JobSearchListJobsTest.java create mode 100644 talent/snippets/src/test/java/JobSearchListTenantsTest.java diff --git a/talent/snippets/src/main/java/com/example/jobs/CommuteSearchJobs.java b/talent/snippets/src/main/java/com/example/jobs/CommuteSearchJobs.java new file mode 100644 index 00000000000..3218faac986 --- /dev/null +++ b/talent/snippets/src/main/java/com/example/jobs/CommuteSearchJobs.java @@ -0,0 +1,95 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.jobs; + +// [START job_search_commute_search] + +import com.google.cloud.talent.v4.CommuteFilter; +import com.google.cloud.talent.v4.CommuteMethod; +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobQuery; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.RequestMetadata; +import com.google.cloud.talent.v4.SearchJobsRequest; +import com.google.cloud.talent.v4.SearchJobsResponse; +import com.google.cloud.talent.v4.TenantName; +import com.google.protobuf.Duration; +import com.google.type.LatLng; +import java.io.IOException; + +public class CommuteSearchJobs { + + public static void searchJobs() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String tenantId = "your-tenant-id"; + searchJobs(projectId, tenantId); + } + + // Search Jobs with histogram queries. + public static void searchJobs(String projectId, String tenantId) throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + TenantName parent = TenantName.of(projectId, tenantId); + String domain = "www.example.com"; + String sessionId = "Hashed session identifier"; + String userId = "Hashed user identifier"; + RequestMetadata requestMetadata = + RequestMetadata.newBuilder() + .setDomain(domain) + .setSessionId(sessionId) + .setUserId(userId) + .build(); + + CommuteMethod commuteMethod = CommuteMethod.DRIVING; + long seconds = 3600L; + Duration travelDuration = Duration.newBuilder().setSeconds(seconds).build(); + + double latitude = 37.422408; + double longitude = -122.084068; + LatLng startCoordinates = + LatLng.newBuilder().setLatitude(latitude).setLongitude(longitude).build(); + + CommuteFilter commuteFilter = + CommuteFilter.newBuilder() + .setCommuteMethod(commuteMethod) + .setTravelDuration(travelDuration) + .setStartCoordinates(startCoordinates) + .build(); + + JobQuery jobQuery = JobQuery.newBuilder().setCommuteFilter(commuteFilter).build(); + SearchJobsRequest request = + SearchJobsRequest.newBuilder() + .setParent(parent.toString()) + .setRequestMetadata(requestMetadata) + .setJobQuery(jobQuery) + .build(); + + for (SearchJobsResponse.MatchingJob responseItem : + jobServiceClient.searchJobs(request).getMatchingJobsList()) { + System.out.format("Job summary: %s%n", responseItem.getJobSummary()); + System.out.format("Job title snippet: %s%n", responseItem.getJobTitleSnippet()); + Job job = responseItem.getJob(); + System.out.format("Job name: %s%n", job.getName()); + System.out.format("Job title: %s%n", job.getTitle()); + } + } + } +} +// [END job_search_commute_search] diff --git a/talent/snippets/src/main/java/com/example/jobs/CustomRankingSearchJobs.java b/talent/snippets/src/main/java/com/example/jobs/CustomRankingSearchJobs.java new file mode 100644 index 00000000000..cf0e95d4448 --- /dev/null +++ b/talent/snippets/src/main/java/com/example/jobs/CustomRankingSearchJobs.java @@ -0,0 +1,81 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.jobs; + +// [START job_search_custom_ranking_search] + +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.RequestMetadata; +import com.google.cloud.talent.v4.SearchJobsRequest; +import com.google.cloud.talent.v4.SearchJobsResponse; +import com.google.cloud.talent.v4.TenantName; +import java.io.IOException; + +public class CustomRankingSearchJobs { + + public static void searchCustomRankingJobs() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String tenantId = "your-tenant-id"; + searchCustomRankingJobs(projectId, tenantId); + } + + // Search Jobs using custom rankings. + public static void searchCustomRankingJobs(String projectId, String tenantId) throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + TenantName parent = TenantName.of(projectId, tenantId); + String domain = "www.example.com"; + String sessionId = "Hashed session identifier"; + String userId = "Hashed user identifier"; + RequestMetadata requestMetadata = + RequestMetadata.newBuilder() + .setDomain(domain) + .setSessionId(sessionId) + .setUserId(userId) + .build(); + SearchJobsRequest.CustomRankingInfo.ImportanceLevel importanceLevel = + SearchJobsRequest.CustomRankingInfo.ImportanceLevel.EXTREME; + String rankingExpression = "(someFieldLong + 25) * 0.25"; + SearchJobsRequest.CustomRankingInfo customRankingInfo = + SearchJobsRequest.CustomRankingInfo.newBuilder() + .setImportanceLevel(importanceLevel) + .setRankingExpression(rankingExpression) + .build(); + String orderBy = "custom_ranking desc"; + SearchJobsRequest request = + SearchJobsRequest.newBuilder() + .setParent(parent.toString()) + .setRequestMetadata(requestMetadata) + .setCustomRankingInfo(customRankingInfo) + .setOrderBy(orderBy) + .build(); + for (SearchJobsResponse.MatchingJob responseItem : + jobServiceClient.searchJobs(request).getMatchingJobsList()) { + System.out.format("Job summary: %s%n", responseItem.getJobSummary()); + System.out.format("Job title snippet: %s%n", responseItem.getJobTitleSnippet()); + Job job = responseItem.getJob(); + System.out.format("Job name: %s%n", job.getName()); + System.out.format("Job title: %s%n", job.getTitle()); + } + } + } +} +// [END job_search_custom_ranking_search] diff --git a/talent/snippets/src/main/java/com/example/jobs/HistogramSearchJobs.java b/talent/snippets/src/main/java/com/example/jobs/HistogramSearchJobs.java new file mode 100644 index 00000000000..5f6bde45f11 --- /dev/null +++ b/talent/snippets/src/main/java/com/example/jobs/HistogramSearchJobs.java @@ -0,0 +1,78 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.jobs; + +// [START job_search_histogram_search] + +import com.google.cloud.talent.v4.HistogramQuery; +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.RequestMetadata; +import com.google.cloud.talent.v4.SearchJobsRequest; +import com.google.cloud.talent.v4.SearchJobsResponse; +import com.google.cloud.talent.v4.TenantName; +import java.io.IOException; + +public class HistogramSearchJobs { + + public static void searchJobs() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String tenantId = "your-tenant-id"; + String query = "count(base_compensation, [bucket(12, 20)])"; + searchJobs(projectId, tenantId, query); + } + + // Search Jobs with histogram queries. + public static void searchJobs(String projectId, String tenantId, String query) + throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + TenantName parent = TenantName.of(projectId, tenantId); + + String domain = "http://www.jobUrl.com"; + String sessionId = "Hashed session identifier"; + String userId = "Hashed user identifier"; + RequestMetadata requestMetadata = + RequestMetadata.newBuilder() + .setDomain(domain) + .setSessionId(sessionId) + .setUserId(userId) + .build(); + HistogramQuery histogramQueriesElement = + HistogramQuery.newBuilder().setHistogramQuery(query).build(); + SearchJobsRequest request = + SearchJobsRequest.newBuilder() + .setParent(parent.toString()) + .setRequestMetadata(requestMetadata) + .addHistogramQueries(histogramQueriesElement) + .build(); + + for (SearchJobsResponse.MatchingJob responseItem : + jobServiceClient.searchJobs(request).getMatchingJobsList()) { + System.out.format("Job summary: %s%n", responseItem.getJobSummary()); + System.out.format("Job title snippet: %s%n", responseItem.getJobTitleSnippet()); + Job job = responseItem.getJob(); + System.out.format("Job name: %s%n", job.getName()); + System.out.format("Job title: %s%n", job.getTitle()); + } + } + } +} +// [END job_search_histogram_search] diff --git a/talent/snippets/src/main/java/com/example/jobs/JobSearchAutoCompleteJobTitle.java b/talent/snippets/src/main/java/com/example/jobs/JobSearchAutoCompleteJobTitle.java new file mode 100644 index 00000000000..321e416d0f9 --- /dev/null +++ b/talent/snippets/src/main/java/com/example/jobs/JobSearchAutoCompleteJobTitle.java @@ -0,0 +1,61 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.jobs; + +// [START job_search_autocomplete_job_title] + +import com.google.cloud.talent.v4.CompleteQueryRequest; +import com.google.cloud.talent.v4.CompleteQueryResponse; +import com.google.cloud.talent.v4.CompletionClient; +import com.google.cloud.talent.v4.TenantName; +import java.io.IOException; + +public class JobSearchAutoCompleteJobTitle { + + public static void completeQuery() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String tenantId = "your-tenant-id"; + String query = "your-query-for-job-title"; + completeQuery(projectId, tenantId, query); + } + + // Complete job title given partial text (autocomplete). + public static void completeQuery(String projectId, String tenantId, String query) + throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (CompletionClient completionClient = CompletionClient.create()) { + TenantName parent = TenantName.of(projectId, tenantId); + CompleteQueryRequest request = + CompleteQueryRequest.newBuilder() + .setTenant(parent.toString()) + .setQuery(query) + .setPageSize(5) // limit for number of results + .addLanguageCodes("en-US") // language code + .build(); + CompleteQueryResponse response = completionClient.completeQuery(request); + for (CompleteQueryResponse.CompletionResult result : response.getCompletionResultsList()) { + System.out.format("Suggested title: %s%n", result.getSuggestion()); + // Suggestion type is JOB_TITLE or COMPANY_TITLE + System.out.format("Suggestion type: %s%n", result.getType()); + } + } + } +} +// [END job_search_autocomplete_job_title] diff --git a/talent/snippets/src/main/java/com/example/jobs/JobSearchCreateClientEvent.java b/talent/snippets/src/main/java/com/example/jobs/JobSearchCreateClientEvent.java new file mode 100644 index 00000000000..a8273ae5b1f --- /dev/null +++ b/talent/snippets/src/main/java/com/example/jobs/JobSearchCreateClientEvent.java @@ -0,0 +1,85 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.jobs; + +// [START job_search_create_client_event] + +import com.google.cloud.talent.v4.ClientEvent; +import com.google.cloud.talent.v4.CreateClientEventRequest; +import com.google.cloud.talent.v4.EventServiceClient; +import com.google.cloud.talent.v4.JobEvent; +import com.google.cloud.talent.v4.TenantName; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.Arrays; +import java.util.List; + +public class JobSearchCreateClientEvent { + + public static void createClientEvent() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String tenantId = "your-tenant-id"; + String requestId = "your-req-id-from-response-metadata"; + String eventId = "your-unique-identifier-id"; + createClientEvent(projectId, tenantId, requestId, eventId); + } + + // Creates a client event. + public static void createClientEvent( + String projectId, String tenantId, String requestId, String eventId) throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (EventServiceClient eventServiceClient = EventServiceClient.create()) { + TenantName parent = TenantName.of(projectId, tenantId); + + // The timestamp of the event as seconds of UTC time since Unix epoch + // For more information on how to create google.protobuf.Timestamps + // See: + // https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/timestamp.proto + long seconds = 3L; + Timestamp createTime = Timestamp.newBuilder().setSeconds(seconds).build(); + + // The type of event attributed to the behavior of the end user + JobEvent.JobEventType type = JobEvent.JobEventType.VIEW; + + // List of job names associated with this event + String jobsElement = "projects/[Project ID]/tenants/[Tenant ID]/jobs/[Job ID]"; + String jobsElement2 = "projects/[Project ID]/tenants/[Tenant ID]/jobs/[Job ID]"; + + List jobs = Arrays.asList(jobsElement, jobsElement2); + JobEvent jobEvent = JobEvent.newBuilder().setType(type).addAllJobs(jobs).build(); + ClientEvent clientEvent = + ClientEvent.newBuilder() + .setRequestId(requestId) + .setEventId(eventId) + .setCreateTime(createTime) + .setJobEvent(jobEvent) + .build(); + CreateClientEventRequest request = + CreateClientEventRequest.newBuilder() + .setParent(parent.toString()) + .setClientEvent(clientEvent) + .build(); + ClientEvent response = eventServiceClient.createClientEvent(request); + System.out.println("Created client event. "); + System.out.println(response.toString()); + } + } +} +// [END job_search_create_client_event] diff --git a/talent/snippets/src/main/java/com/example/jobs/JobSearchCreateCompany.java b/talent/snippets/src/main/java/com/example/jobs/JobSearchCreateCompany.java new file mode 100644 index 00000000000..587c48e459f --- /dev/null +++ b/talent/snippets/src/main/java/com/example/jobs/JobSearchCreateCompany.java @@ -0,0 +1,63 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.jobs; + +// [START job_search_create_company_beta] + +import com.google.cloud.talent.v4.Company; +import com.google.cloud.talent.v4.CompanyServiceClient; +import com.google.cloud.talent.v4.CreateCompanyRequest; +import com.google.cloud.talent.v4.TenantName; +import java.io.IOException; + +public class JobSearchCreateCompany { + + public static void createCompany() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String tenantId = "your-tenant-id"; + String displayName = "your-company-display-name"; + String externalId = "your-external-id"; + createCompany(projectId, tenantId, displayName, externalId); + } + + // Create a company. + public static void createCompany( + String projectId, String tenantId, String displayName, String externalId) throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + TenantName parent = TenantName.of(projectId, tenantId); + Company company = + Company.newBuilder().setDisplayName(displayName).setExternalId(externalId).build(); + + CreateCompanyRequest request = + CreateCompanyRequest.newBuilder() + .setParent(parent.toString()) + .setCompany(company) + .build(); + + Company response = companyServiceClient.createCompany(request); + System.out.println("Created Company"); + System.out.format("Name: %s%n", response.getName()); + System.out.format("Display Name: %s%n", response.getDisplayName()); + System.out.format("External ID: %s%n", response.getExternalId()); + } + } +} +// [END job_search_create_company_beta] diff --git a/talent/snippets/src/main/java/com/example/jobs/JobSearchCreateJob.java b/talent/snippets/src/main/java/com/example/jobs/JobSearchCreateJob.java new file mode 100644 index 00000000000..d851ca738dd --- /dev/null +++ b/talent/snippets/src/main/java/com/example/jobs/JobSearchCreateJob.java @@ -0,0 +1,93 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.jobs; + +// [START job_search_create_job_beta] + +import com.google.cloud.talent.v4.CreateJobRequest; +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.TenantName; +import java.io.IOException; +import java.sql.Timestamp; +import java.time.LocalDate; +import java.time.LocalDateTime; +import java.util.Arrays; +import java.util.Calendar; +import java.util.List; +import java.util.Locale; + +public class JobSearchCreateJob { + + public static void createJob() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String tenantId = "your-tenant-id"; + String companyId = "your-company-id"; + String requisitionId = "your-unique-req-id"; + String jobApplicationUrl = "your-job-url"; + // String projectId = "me-qa-1"; + // String tenantId = "8ed97629-27ee-4215-909b-18cfe3b7e8e3"; + // String companyId = "05317758-b30e-4b26-a57d-d9e54e4cccd8"; + // String requisitionId = "test-requisitionid-1"; + // String jobApplicationUrl = "http://job.url"; + createJob(projectId, tenantId, companyId, requisitionId, jobApplicationUrl); + } + + // Create a job. + public static void createJob( + String projectId, + String tenantId, + String companyId, + String requisitionId, + String jobApplicationUrl) + throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + TenantName parent = TenantName.of(projectId, tenantId); + Job.ApplicationInfo applicationInfo = + Job.ApplicationInfo.newBuilder().addUris(jobApplicationUrl).build(); + + List addresses = + Arrays.asList( + "1600 Amphitheatre Parkway, Mountain View, CA 94043", + "111 8th Avenue, New York, NY 10011"); + + // By default, job will expire in 30 days. + // https://cloud.google.com/talent-solution/job-search/docs/jobs + Job job = + Job.newBuilder() + .setCompany(companyId) + .setRequisitionId(requisitionId) + .setTitle("Software Developer") + .setDescription("Develop, maintain the software solutions.") + .setApplicationInfo(applicationInfo) + .addAllAddresses(addresses) + .setLanguageCode("en-US") + .build(); + + CreateJobRequest request = + CreateJobRequest.newBuilder().setParent(parent.toString()).setJob(job).build(); + + Job response = jobServiceClient.createJob(request); + System.out.format("Created job: %s%n", response.getName()); + } + } +} +// [END job_search_create_job_beta] diff --git a/talent/snippets/src/main/java/com/example/jobs/JobSearchCreateJobCustomAttributes.java b/talent/snippets/src/main/java/com/example/jobs/JobSearchCreateJobCustomAttributes.java new file mode 100644 index 00000000000..4987511aa77 --- /dev/null +++ b/talent/snippets/src/main/java/com/example/jobs/JobSearchCreateJobCustomAttributes.java @@ -0,0 +1,77 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.jobs; + +// [START job_search_create_job_custom_attributes] + +import com.google.cloud.talent.v4.CreateJobRequest; +import com.google.cloud.talent.v4.CustomAttribute; +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.TenantName; +import java.io.IOException; + +public class JobSearchCreateJobCustomAttributes { + + public static void createJob() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String tenantId = "your-tenant-id"; + String companyId = "your-company-id"; + String requisitionId = "your-unique-req-id"; + createJob(projectId, tenantId, companyId, requisitionId); + } + + // Create Job with Custom Attributes. + public static void createJob( + String projectId, + String tenantId, + String companyId, + String requisitionId) + throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + TenantName parent = TenantName.of(projectId, tenantId); + + // Custom attribute can be string or numeric value, and can be filtered in search queries. + // https://cloud.google.com/talent-solution/job-search/docs/custom-attributes + CustomAttribute customAttribute = CustomAttribute.newBuilder() + .addStringValues("Internship") + .addStringValues("Apprenticeship") + .setFilterable(true) + .build(); + + Job job = + Job.newBuilder() + .setCompany(companyId) + .setTitle("Software Developer I") + .setDescription("This is a description of this wonderful job!") + .putCustomAttributes("FOR_STUDENTS", customAttribute) + .setRequisitionId(requisitionId) + .setLanguageCode("en-US") + .build(); + + CreateJobRequest request = + CreateJobRequest.newBuilder().setParent(parent.toString()).setJob(job).build(); + Job response = jobServiceClient.createJob(request); + System.out.printf("Created job: %s\n", response.getName()); + } + } +} +// [END job_search_create_job_custom_attributes] diff --git a/talent/snippets/src/main/java/com/example/jobs/JobSearchCreateTenant.java b/talent/snippets/src/main/java/com/example/jobs/JobSearchCreateTenant.java new file mode 100644 index 00000000000..abcab4a9d69 --- /dev/null +++ b/talent/snippets/src/main/java/com/example/jobs/JobSearchCreateTenant.java @@ -0,0 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.jobs; + +// [START job_search_create_tenant_beta] + +import com.google.cloud.talent.v4.CreateTenantRequest; +import com.google.cloud.talent.v4.ProjectName; +import com.google.cloud.talent.v4.Tenant; +import com.google.cloud.talent.v4.TenantServiceClient; +import java.io.IOException; + +public class JobSearchCreateTenant { + + public static void createTenant() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String externalId = "your-external-id"; + createTenant(projectId, externalId); + } + + // Create Tenant for scoping resources, e.g. companies and jobs. + public static void createTenant(String projectId, String externalId) throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + ProjectName parent = ProjectName.of(projectId); + Tenant tenant = Tenant.newBuilder().setExternalId(externalId).build(); + + CreateTenantRequest request = + CreateTenantRequest.newBuilder().setParent(parent.toString()).setTenant(tenant).build(); + + Tenant response = tenantServiceClient.createTenant(request); + System.out.println("Created Tenant"); + System.out.format("Name: %s%n", response.getName()); + System.out.format("External ID: %s%n", response.getExternalId()); + } + } +} +// [END job_search_create_tenant_beta] diff --git a/talent/snippets/src/main/java/com/example/jobs/JobSearchDeleteCompany.java b/talent/snippets/src/main/java/com/example/jobs/JobSearchDeleteCompany.java new file mode 100644 index 00000000000..5472de65566 --- /dev/null +++ b/talent/snippets/src/main/java/com/example/jobs/JobSearchDeleteCompany.java @@ -0,0 +1,53 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.jobs; + +// [START job_search_delete_company_beta] + +import com.google.cloud.talent.v4.CompanyName; +import com.google.cloud.talent.v4.CompanyServiceClient; +import com.google.cloud.talent.v4.DeleteCompanyRequest; +import java.io.IOException; + +public class JobSearchDeleteCompany { + + public static void deleteCompany() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String tenantId = "your-tenant-id"; + String companyId = "your-company-id"; + deleteCompany(projectId, tenantId, companyId); + } + + // Delete Company. + public static void deleteCompany(String projectId, String tenantId, String companyId) + throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + CompanyName name = CompanyName.of(projectId, tenantId, companyId); + + DeleteCompanyRequest request = + DeleteCompanyRequest.newBuilder().setName(name.toString()).build(); + + companyServiceClient.deleteCompany(request); + System.out.println("Deleted company"); + } + } +} +// [END job_search_delete_company_beta] diff --git a/talent/snippets/src/main/java/com/example/jobs/JobSearchDeleteJob.java b/talent/snippets/src/main/java/com/example/jobs/JobSearchDeleteJob.java new file mode 100644 index 00000000000..9603f1630c3 --- /dev/null +++ b/talent/snippets/src/main/java/com/example/jobs/JobSearchDeleteJob.java @@ -0,0 +1,51 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.jobs; + +// [START job_search_delete_job_beta] + +import com.google.cloud.talent.v4.DeleteJobRequest; +import com.google.cloud.talent.v4.JobName; +import com.google.cloud.talent.v4.JobServiceClient; +import java.io.IOException; + +public class JobSearchDeleteJob { + + public static void deleteJob() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String tenantId = "your-tenant-id"; + String jobId = "your-job-id"; + deleteJob(projectId, tenantId, jobId); + } + + // Delete Job. + public static void deleteJob(String projectId, String tenantId, String jobId) throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + JobName name = JobName.of(projectId, tenantId, jobId); + + DeleteJobRequest request = DeleteJobRequest.newBuilder().setName(name.toString()).build(); + + jobServiceClient.deleteJob(request); + System.out.println("Deleted job."); + } + } +} +// [END job_search_delete_job_beta] diff --git a/talent/snippets/src/main/java/com/example/jobs/JobSearchDeleteTenant.java b/talent/snippets/src/main/java/com/example/jobs/JobSearchDeleteTenant.java new file mode 100644 index 00000000000..d7f949f49cd --- /dev/null +++ b/talent/snippets/src/main/java/com/example/jobs/JobSearchDeleteTenant.java @@ -0,0 +1,51 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.jobs; + +// [START job_search_delete_tenant_beta] + +import com.google.cloud.talent.v4.DeleteTenantRequest; +import com.google.cloud.talent.v4.TenantName; +import com.google.cloud.talent.v4.TenantServiceClient; +import java.io.IOException; + +public class JobSearchDeleteTenant { + + public static void deleteTenant() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String tenantId = "your-tenant-id"; + deleteTenant(projectId, tenantId); + } + + // Delete Tenant. + public static void deleteTenant(String projectId, String tenantId) throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + TenantName name = TenantName.of(projectId, tenantId); + + DeleteTenantRequest request = + DeleteTenantRequest.newBuilder().setName(name.toString()).build(); + + tenantServiceClient.deleteTenant(request); + System.out.println("Deleted Tenant."); + } + } +} +// [END job_search_delete_tenant_beta] diff --git a/talent/snippets/src/main/java/com/example/jobs/JobSearchGetCompany.java b/talent/snippets/src/main/java/com/example/jobs/JobSearchGetCompany.java new file mode 100644 index 00000000000..9a4da2d076e --- /dev/null +++ b/talent/snippets/src/main/java/com/example/jobs/JobSearchGetCompany.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.jobs; + +// [START job_search_get_company_beta] + +import com.google.cloud.talent.v4.Company; +import com.google.cloud.talent.v4.CompanyName; +import com.google.cloud.talent.v4.CompanyServiceClient; +import com.google.cloud.talent.v4.GetCompanyRequest; +import java.io.IOException; + +public class JobSearchGetCompany { + + public static void getCompany() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String tenantId = "your-tenant-id"; + String companyId = "your-company-id"; + getCompany(projectId, tenantId, companyId); + } + + // Get Company. + public static void getCompany(String projectId, String tenantId, String companyId) + throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + CompanyName name = CompanyName.of(projectId, tenantId, companyId); + + GetCompanyRequest request = GetCompanyRequest.newBuilder().setName(name.toString()).build(); + + Company response = companyServiceClient.getCompany(request); + System.out.format("Company name: %s%n", response.getName()); + System.out.format("Display name: %s%n", response.getDisplayName()); + } + } +} +// [END job_search_get_company_beta] diff --git a/talent/snippets/src/main/java/com/example/jobs/JobSearchGetJob.java b/talent/snippets/src/main/java/com/example/jobs/JobSearchGetJob.java new file mode 100644 index 00000000000..0314f149406 --- /dev/null +++ b/talent/snippets/src/main/java/com/example/jobs/JobSearchGetJob.java @@ -0,0 +1,65 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.jobs; + +// [START job_search_get_job_beta] + +import com.google.cloud.talent.v4.GetJobRequest; +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobName; +import com.google.cloud.talent.v4.JobServiceClient; +import java.io.IOException; + +public class JobSearchGetJob { + + public static void getJob() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String tenantId = "your-tenant-id"; + String jobId = "your-job-id"; + getJob(projectId, tenantId, jobId); + } + + // Get Job. + public static void getJob(String projectId, String tenantId, String jobId) throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + JobName name = JobName.of(projectId, tenantId, jobId); + + GetJobRequest request = GetJobRequest.newBuilder().setName(name.toString()).build(); + + Job response = jobServiceClient.getJob(request); + System.out.format("Job name: %s%n", response.getName()); + System.out.format("Requisition ID: %s%n", response.getRequisitionId()); + System.out.format("Title: %s%n", response.getTitle()); + System.out.format("Description: %s%n", response.getDescription()); + System.out.format("Posting language: %s%n", response.getLanguageCode()); + for (String address : response.getAddressesList()) { + System.out.format("Address: %s%n", address); + } + for (String email : response.getApplicationInfo().getEmailsList()) { + System.out.format("Email: %s%n", email); + } + for (String websiteUri : response.getApplicationInfo().getUrisList()) { + System.out.format("Website: %s%n", websiteUri); + } + } + } +} +// [END job_search_get_job_beta] diff --git a/talent/snippets/src/main/java/com/example/jobs/JobSearchGetTenant.java b/talent/snippets/src/main/java/com/example/jobs/JobSearchGetTenant.java new file mode 100644 index 00000000000..c91631046dd --- /dev/null +++ b/talent/snippets/src/main/java/com/example/jobs/JobSearchGetTenant.java @@ -0,0 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.jobs; + +// [START job_search_get_tenant_beta] + +import com.google.cloud.talent.v4.GetTenantRequest; +import com.google.cloud.talent.v4.Tenant; +import com.google.cloud.talent.v4.TenantName; +import com.google.cloud.talent.v4.TenantServiceClient; +import java.io.IOException; + +public class JobSearchGetTenant { + + public static void getTenant() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String tenantId = "your-tenant-id"; + getTenant(projectId, tenantId); + } + + // Get Tenant by name. + public static void getTenant(String projectId, String tenantId) throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + TenantName name = TenantName.of(projectId, tenantId); + + GetTenantRequest request = GetTenantRequest.newBuilder().setName(name.toString()).build(); + + Tenant response = tenantServiceClient.getTenant(request); + System.out.format("Name: %s%n", response.getName()); + System.out.format("External ID: %s%n", response.getExternalId()); + } + } +} +// [END job_search_get_tenant_beta] diff --git a/talent/snippets/src/main/java/com/example/jobs/JobSearchListCompanies.java b/talent/snippets/src/main/java/com/example/jobs/JobSearchListCompanies.java new file mode 100644 index 00000000000..0313045fdb0 --- /dev/null +++ b/talent/snippets/src/main/java/com/example/jobs/JobSearchListCompanies.java @@ -0,0 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.jobs; + +// [START job_search_list_companies_beta] + +import com.google.cloud.talent.v4.Company; +import com.google.cloud.talent.v4.CompanyServiceClient; +import com.google.cloud.talent.v4.ListCompaniesRequest; +import com.google.cloud.talent.v4.TenantName; +import java.io.IOException; + +public class JobSearchListCompanies { + + public static void listCompanies() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String tenantId = "your-tenant-id"; + listCompanies(projectId, tenantId); + } + + // List Companies. + public static void listCompanies(String projectId, String tenantId) throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + TenantName parent = TenantName.of(projectId, tenantId); + + ListCompaniesRequest request = + ListCompaniesRequest.newBuilder().setParent(parent.toString()).build(); + + for (Company responseItem : companyServiceClient.listCompanies(request).iterateAll()) { + System.out.format("Company Name: %s%n", responseItem.getName()); + System.out.format("Display Name: %s%n", responseItem.getDisplayName()); + System.out.format("External ID: %s%n", responseItem.getExternalId()); + } + } + } +} +// [END job_search_list_companies_beta] diff --git a/talent/snippets/src/main/java/com/example/jobs/JobSearchListJobs.java b/talent/snippets/src/main/java/com/example/jobs/JobSearchListJobs.java new file mode 100644 index 00000000000..9fe1bbc85ab --- /dev/null +++ b/talent/snippets/src/main/java/com/example/jobs/JobSearchListJobs.java @@ -0,0 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.jobs; + +// [START job_search_list_jobs] + +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.ListJobsRequest; +import com.google.cloud.talent.v4.TenantName; +import java.io.IOException; + +public class JobSearchListJobs { + + public static void listJobs() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + String tenantId = "your-tenant-id"; + String query = "count(base_compensation, [bucket(12, 20)])"; + listJobs(projectId, tenantId, query); + } + + // Search Jobs with histogram queries. + public static void listJobs(String projectId, String tenantId, String filter) throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + TenantName parent = TenantName.of(projectId, tenantId); + ListJobsRequest request = + ListJobsRequest.newBuilder().setParent(parent.toString()).setFilter(filter).build(); + for (Job responseItem : jobServiceClient.listJobs(request).iterateAll()) { + System.out.format("Job name: %s%n", responseItem.getName()); + System.out.format("Job requisition ID: %s%n", responseItem.getRequisitionId()); + System.out.format("Job title: %s%n", responseItem.getTitle()); + System.out.format("Job description: %s%n", responseItem.getDescription()); + } + } + } +} +// [END job_search_list_jobs] diff --git a/talent/snippets/src/main/java/com/example/jobs/JobSearchListTenants.java b/talent/snippets/src/main/java/com/example/jobs/JobSearchListTenants.java new file mode 100644 index 00000000000..d71191f08cc --- /dev/null +++ b/talent/snippets/src/main/java/com/example/jobs/JobSearchListTenants.java @@ -0,0 +1,53 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.example.jobs; + +// [START job_search_list_tenants_beta] + +import com.google.cloud.talent.v4.ListTenantsRequest; +import com.google.cloud.talent.v4.ProjectName; +import com.google.cloud.talent.v4.Tenant; +import com.google.cloud.talent.v4.TenantServiceClient; +import java.io.IOException; + +public class JobSearchListTenants { + + public static void listTenants() throws IOException { + // TODO(developer): Replace these variables before running the sample. + String projectId = "your-project-id"; + listTenants(projectId); + } + + // List Tenants. + public static void listTenants(String projectId) throws IOException { + // Initialize client that will be used to send requests. This client only needs to be created + // once, and can be reused for multiple requests. After completing all of your requests, call + // the "close" method on the client to safely clean up any remaining background resources. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + ProjectName parent = ProjectName.of(projectId); + + ListTenantsRequest request = + ListTenantsRequest.newBuilder().setParent(parent.toString()).build(); + + for (Tenant responseItem : tenantServiceClient.listTenants(request).iterateAll()) { + System.out.format("Tenant Name: %s%n", responseItem.getName()); + System.out.format("External ID: %s%n", responseItem.getExternalId()); + } + } + } +} +// [END job_search_list_tenants_beta] diff --git a/talent/snippets/src/test/java/CommuteSearchJobsTest.java b/talent/snippets/src/test/java/CommuteSearchJobsTest.java new file mode 100644 index 00000000000..163f2068899 --- /dev/null +++ b/talent/snippets/src/test/java/CommuteSearchJobsTest.java @@ -0,0 +1,56 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import static com.google.common.truth.Truth.assertThat; + +import com.example.jobs.CommuteSearchJobs; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +public class CommuteSearchJobsTest { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String TENANT_ID = System.getenv("CTS_TENANT_ID"); + + private ByteArrayOutputStream bout; + private PrintStream out; + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = System.out; + System.setOut(new PrintStream(bout)); + } + + @Test + public void testCommuteSearchJobs() throws IOException { + // retrieve a job. + CommuteSearchJobs.searchJobs( + PROJECT_ID, TENANT_ID); + String got = bout.toString(); + + assertThat(got).contains("Job summary:"); + assertThat(got).contains("Job title snippet:"); + } + + @After + public void tearDown() { + System.setOut(out); + } +} diff --git a/talent/snippets/src/test/java/CustomRankingSearchJobsTest.java b/talent/snippets/src/test/java/CustomRankingSearchJobsTest.java new file mode 100644 index 00000000000..df31410304b --- /dev/null +++ b/talent/snippets/src/test/java/CustomRankingSearchJobsTest.java @@ -0,0 +1,57 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import static com.google.common.truth.Truth.assertThat; + +import com.example.jobs.CustomRankingSearchJobs; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +public class CustomRankingSearchJobsTest { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String TENANT_ID = System.getenv("CTS_TENANT_ID"); + + private ByteArrayOutputStream bout; + private PrintStream out; + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = System.out; + System.setOut(new PrintStream(bout)); + } + + @Test + public void testCustomRankingSearchJobs() throws IOException { + // retrieve a job. + CustomRankingSearchJobs.searchCustomRankingJobs( + PROJECT_ID, TENANT_ID); + String got = bout.toString(); + + assertThat(got).contains("Job summary:"); + assertThat(got).contains("Job title snippet:"); + assertThat(got).contains("Job title:"); + } + + @After + public void tearDown() { + System.setOut(out); + } +} diff --git a/talent/snippets/src/test/java/HistogramSearchJobsTest.java b/talent/snippets/src/test/java/HistogramSearchJobsTest.java new file mode 100644 index 00000000000..8e2b7b043af --- /dev/null +++ b/talent/snippets/src/test/java/HistogramSearchJobsTest.java @@ -0,0 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import static com.google.common.truth.Truth.assertThat; + +import com.example.jobs.HistogramSearchJobs; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +public class HistogramSearchJobsTest { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String TENANT_ID = System.getenv("CTS_TENANT_ID"); + + private ByteArrayOutputStream bout; + private PrintStream out; + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = System.out; + System.setOut(new PrintStream(bout)); + } + + @Test + public void testHistogramSearch() throws IOException { + // retrieve a job. + HistogramSearchJobs.searchJobs( + PROJECT_ID, TENANT_ID, "count(base_compensation, [bucket(12, 20)])"); + String got = bout.toString(); + assertThat(got).contains("Job summary:"); + assertThat(got).contains("Job title snippet:"); + } + + @After + public void tearDown() { + System.setOut(out); + } +} diff --git a/talent/snippets/src/test/java/JobSearchAutoCompleteJobTitleTest.java b/talent/snippets/src/test/java/JobSearchAutoCompleteJobTitleTest.java new file mode 100644 index 00000000000..61b36650278 --- /dev/null +++ b/talent/snippets/src/test/java/JobSearchAutoCompleteJobTitleTest.java @@ -0,0 +1,54 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import static com.google.common.truth.Truth.assertThat; + +import com.example.jobs.JobSearchAutoCompleteJobTitle; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +public class JobSearchAutoCompleteJobTitleTest { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String TENANT_ID = System.getenv("CTS_TENANT_ID"); + + private ByteArrayOutputStream bout; + private PrintStream out; + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = System.out; + System.setOut(new PrintStream(bout)); + } + + @Test + public void testAutoCompleteJobTitle() throws IOException { + // retrieve a tenant. + JobSearchAutoCompleteJobTitle.completeQuery(PROJECT_ID, TENANT_ID, "Developer Program"); + String got = bout.toString(); + assertThat(got).contains("Suggested title:"); + assertThat(got).contains("Suggestion type:"); + } + + @After + public void tearDown() { + System.setOut(out); + } +} diff --git a/talent/snippets/src/test/java/JobSearchCreateCompanyTest.java b/talent/snippets/src/test/java/JobSearchCreateCompanyTest.java new file mode 100644 index 00000000000..325e1af44ca --- /dev/null +++ b/talent/snippets/src/test/java/JobSearchCreateCompanyTest.java @@ -0,0 +1,64 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import static com.google.common.truth.Truth.assertThat; + +import com.example.jobs.JobSearchCreateCompany; +import com.example.jobs.JobSearchDeleteCompany; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +public class JobSearchCreateCompanyTest { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String TENANT_ID = System.getenv("CTS_TENANT_ID"); + + private static final String COMPANY_EXT_ID = + String.format("COMP_EXT_ID_%s", UUID.randomUUID().toString().substring(0, 20)); + private static final String COMPANY_DISPLAY_NAME = "DO_NOT_DELETE_COMPANY"; + + private String companyId; + private ByteArrayOutputStream bout; + private PrintStream out; + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = System.out; + System.setOut(new PrintStream(bout)); + } + + @Test + public void testCreateCompany() throws IOException { + // retrieve a tenant. + JobSearchCreateCompany.createCompany( + PROJECT_ID, TENANT_ID, COMPANY_DISPLAY_NAME, COMPANY_EXT_ID); + String got = bout.toString(); + assertThat(got).contains("Created Company"); + + companyId = JobSearchGetJobTest.extractLastId(got.split("\n")[1]); + } + + @After + public void tearDown() throws IOException { + // delete that job. + JobSearchDeleteCompany.deleteCompany(PROJECT_ID, TENANT_ID, companyId); + System.setOut(out); + } +} diff --git a/talent/snippets/src/test/java/JobSearchCreateJobTest.java b/talent/snippets/src/test/java/JobSearchCreateJobTest.java new file mode 100644 index 00000000000..c53cf1b55a8 --- /dev/null +++ b/talent/snippets/src/test/java/JobSearchCreateJobTest.java @@ -0,0 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import static com.google.common.truth.Truth.assertThat; + +import com.example.jobs.JobSearchCreateJob; +import com.example.jobs.JobSearchDeleteJob; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +public class JobSearchCreateJobTest { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String TENANT_ID = System.getenv("CTS_TENANT_ID"); + private static final String COMPANY_ID = System.getenv("CTS_COMPANY_ID"); + private static final String POST_UNIQUE_ID = + String.format( + "TEST_POST_ID_%s", + UUID.randomUUID().toString().substring(0, 20)); // Posting ID. Unique per job. + + private String jobId; + private ByteArrayOutputStream bout; + private PrintStream out; + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = System.out; + System.setOut(new PrintStream(bout)); + } + + @Test + public void testCreateJob() throws IOException { + // create a job. + JobSearchCreateJob.createJob( + PROJECT_ID, TENANT_ID, COMPANY_ID, POST_UNIQUE_ID, "http://www.jobUrl.com"); + String got = bout.toString(); + + assertThat(got).contains("Created job:"); + jobId = JobSearchGetJobTest.extractLastId(got.split("\n")[0].trim()); + + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() throws IOException { + // delete that job. + JobSearchDeleteJob.deleteJob(PROJECT_ID, TENANT_ID, jobId); + String got = bout.toString(); + assertThat(got).contains("Deleted job"); + System.setOut(out); + } +} diff --git a/talent/snippets/src/test/java/JobSearchCreateJobWithCustomAttrTest.java b/talent/snippets/src/test/java/JobSearchCreateJobWithCustomAttrTest.java new file mode 100644 index 00000000000..dc43b5cd8de --- /dev/null +++ b/talent/snippets/src/test/java/JobSearchCreateJobWithCustomAttrTest.java @@ -0,0 +1,72 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import static com.google.common.truth.Truth.assertThat; + +import com.example.jobs.JobSearchCreateJobCustomAttributes; +import com.example.jobs.JobSearchDeleteJob; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +public class JobSearchCreateJobWithCustomAttrTest { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String TENANT_ID = System.getenv("CTS_TENANT_ID"); + private static final String COMPANY_ID = System.getenv("CTS_COMPANY_ID"); + private static final String POST_UNIQUE_ID = + String.format( + "TEST_POST_ID_%s", + UUID.randomUUID().toString().substring(0, 20)); // Posting ID. Unique per job. + + private String jobId; + private ByteArrayOutputStream bout; + private PrintStream out; + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = System.out; + System.setOut(new PrintStream(bout)); + } + + @Test + public void testCreateJob() throws IOException { + // create a job with custom attributes. + JobSearchCreateJobCustomAttributes.createJob( + PROJECT_ID, TENANT_ID, COMPANY_ID, POST_UNIQUE_ID); + String got = bout.toString(); + + assertThat(got).contains("Created job:"); + jobId = JobSearchGetJobTest.extractLastId(got.split("\n")[0].trim()); + + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @After + public void tearDown() throws IOException { + // delete that job. + JobSearchDeleteJob.deleteJob(PROJECT_ID, TENANT_ID, jobId); + String got = bout.toString(); + assertThat(got).contains("Deleted job"); + System.setOut(out); + } +} diff --git a/talent/snippets/src/test/java/JobSearchCreateTenantTest.java b/talent/snippets/src/test/java/JobSearchCreateTenantTest.java new file mode 100644 index 00000000000..fdbe993233f --- /dev/null +++ b/talent/snippets/src/test/java/JobSearchCreateTenantTest.java @@ -0,0 +1,63 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import static com.google.common.truth.Truth.assertThat; + +import com.example.jobs.JobSearchCreateTenant; +import com.example.jobs.JobSearchDeleteTenant; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +public class JobSearchCreateTenantTest { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String TENANT_EXT_ID = + String.format("EXTERNAL_TEMP_TENANT_ID_%s", UUID.randomUUID().toString().substring(0, 20)); + + private String tenantId; + private ByteArrayOutputStream bout; + private PrintStream out; + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = System.out; + System.setOut(new PrintStream(bout)); + } + + @Test + public void testCreateTenant() throws IOException { + // create a tenant. + JobSearchCreateTenant.createTenant(PROJECT_ID, TENANT_EXT_ID); + + String got = bout.toString(); + assertThat(got).contains("Created Tenant"); + + tenantId = JobSearchGetJobTest.extractLastId(got.split("\n")[1]); + } + + @After + public void tearDown() throws IOException { + + // clean up. + JobSearchDeleteTenant.deleteTenant(PROJECT_ID, tenantId); + System.setOut(out); + } +} diff --git a/talent/snippets/src/test/java/JobSearchDeleteCompanyTest.java b/talent/snippets/src/test/java/JobSearchDeleteCompanyTest.java new file mode 100644 index 00000000000..a321d80e0e6 --- /dev/null +++ b/talent/snippets/src/test/java/JobSearchDeleteCompanyTest.java @@ -0,0 +1,68 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import static com.google.common.truth.Truth.assertThat; + +import com.example.jobs.JobSearchCreateCompany; +import com.example.jobs.JobSearchDeleteCompany; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +public class JobSearchDeleteCompanyTest { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String TENANT_ID = System.getenv("CTS_TENANT_ID"); + + private static final String COMPANY_EXT_ID = + String.format("COMP_EXT_ID_%s", UUID.randomUUID().toString().substring(0, 20)); + private static final String COMPANY_DISPLAY_NAME = "DO_NOT_DELETE_COMPANY"; + + private String companyId; + private ByteArrayOutputStream bout; + private PrintStream out; + + @Before + public void setUp() throws IOException { + bout = new ByteArrayOutputStream(); + out = System.out; + System.setOut(new PrintStream(bout)); + + // create a company + JobSearchCreateCompany.createCompany( + PROJECT_ID, TENANT_ID, COMPANY_DISPLAY_NAME, COMPANY_EXT_ID); + String got = bout.toString(); + assertThat(got).contains("Created Company"); + + companyId = JobSearchGetJobTest.extractLastId(got.split("\n")[1]); + } + + @Test + public void testDeleteCompany() throws IOException { + // retrieve a tenant. + JobSearchDeleteCompany.deleteCompany(PROJECT_ID, TENANT_ID, companyId); + String got = bout.toString(); + assertThat(got).contains("Deleted company"); + } + + @After + public void tearDown() { + System.setOut(out); + } +} diff --git a/talent/snippets/src/test/java/JobSearchDeleteJobTest.java b/talent/snippets/src/test/java/JobSearchDeleteJobTest.java new file mode 100644 index 00000000000..7896a43d808 --- /dev/null +++ b/talent/snippets/src/test/java/JobSearchDeleteJobTest.java @@ -0,0 +1,73 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import static com.google.common.truth.Truth.assertThat; + +import com.example.jobs.JobSearchCreateJob; +import com.example.jobs.JobSearchDeleteJob; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +public class JobSearchDeleteJobTest { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String TENANT_ID = System.getenv("CTS_TENANT_ID"); + private static final String COMPANY_ID = System.getenv("CTS_COMPANY_ID"); + private static final String POST_UNIQUE_ID = + String.format( + "TEST_POST_ID_%s", + UUID.randomUUID().toString().substring(0, 20)); // Posting ID. Unique per job. + + private String jobId; + private ByteArrayOutputStream bout; + private PrintStream out; + + @Before + public void setUp() throws IOException { + bout = new ByteArrayOutputStream(); + out = System.out; + System.setOut(new PrintStream(bout)); + + JobSearchCreateJob.createJob( + PROJECT_ID, TENANT_ID, COMPANY_ID, POST_UNIQUE_ID, "http://www.jobUrl.com"); + + String got = bout.toString(); + assertThat(got).contains("Created job:"); + jobId = JobSearchGetJobTest.extractLastId(got.split("\n")[0].trim()); + + bout = new ByteArrayOutputStream(); + out = new PrintStream(bout); + System.setOut(out); + } + + @Test + public void testDeleteJob() throws IOException { + // delete a job. + JobSearchDeleteJob.deleteJob(PROJECT_ID, TENANT_ID, jobId); + String got = bout.toString(); + + assertThat(got).contains("Deleted job"); + } + + @After + public void tearDown() { + System.setOut(out); + } +} diff --git a/talent/snippets/src/test/java/JobSearchDeleteTenantTest.java b/talent/snippets/src/test/java/JobSearchDeleteTenantTest.java new file mode 100644 index 00000000000..5f2b1867572 --- /dev/null +++ b/talent/snippets/src/test/java/JobSearchDeleteTenantTest.java @@ -0,0 +1,65 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import static com.google.common.truth.Truth.assertThat; + +import com.example.jobs.JobSearchCreateTenant; +import com.example.jobs.JobSearchDeleteTenant; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import java.util.UUID; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +public class JobSearchDeleteTenantTest { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String TENANT_EXT_ID = + String.format("EXTERNAL_TEMP_TENANT_ID_%s", UUID.randomUUID().toString().substring(0, 20)); + private String tenantId; + + private ByteArrayOutputStream bout; + private PrintStream out; + + @Before + public void setUp() throws IOException { + bout = new ByteArrayOutputStream(); + out = System.out; + System.setOut(new PrintStream(bout)); + + // create a tenant for job and company + JobSearchCreateTenant.createTenant(PROJECT_ID, TENANT_EXT_ID); + + String got = bout.toString(); + assertThat(got).contains("Created Tenant"); + + tenantId = JobSearchGetJobTest.extractLastId(got.split("\n")[1]); + } + + @Test + public void testDeleteTenantTest() throws IOException { + // delete a tenant. + JobSearchDeleteTenant.deleteTenant(PROJECT_ID, tenantId); + String got = bout.toString(); + assertThat(got).contains("Deleted Tenant."); + } + + @After + public void tearDown() { + System.setOut(out); + } +} diff --git a/talent/snippets/src/test/java/JobSearchGetCompanyTest.java b/talent/snippets/src/test/java/JobSearchGetCompanyTest.java new file mode 100644 index 00000000000..95d915bd7d1 --- /dev/null +++ b/talent/snippets/src/test/java/JobSearchGetCompanyTest.java @@ -0,0 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import static com.google.common.truth.Truth.assertThat; + +import com.example.jobs.JobSearchGetCompany; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +public class JobSearchGetCompanyTest { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String TENANT_ID = System.getenv("CTS_TENANT_ID"); + private static final String COMPANY_ID = System.getenv("CTS_COMPANY_ID"); + + private ByteArrayOutputStream bout; + private PrintStream out; + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = System.out; + System.setOut(new PrintStream(bout)); + } + + @Test + public void testGetCompany() throws IOException { + // retrieve a tenant. + JobSearchGetCompany.getCompany(PROJECT_ID, TENANT_ID, COMPANY_ID); + String got = bout.toString(); + assertThat(got).contains("Company name:"); + assertThat(got).contains("Display name:"); + } + + @After + public void tearDown() { + System.setOut(out); + } +} diff --git a/talent/snippets/src/test/java/JobSearchGetJobTest.java b/talent/snippets/src/test/java/JobSearchGetJobTest.java new file mode 100644 index 00000000000..c3d0f4b1eda --- /dev/null +++ b/talent/snippets/src/test/java/JobSearchGetJobTest.java @@ -0,0 +1,65 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import static com.google.common.truth.Truth.assertThat; + +import com.example.jobs.JobSearchGetJob; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + + + +public class JobSearchGetJobTest { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String TENANT_ID = System.getenv("CTS_TENANT_ID"); + private static final String JOB_ID = System.getenv("CTS_JOB_ID"); + + private ByteArrayOutputStream bout; + private PrintStream out; + + @Before + public void setUp() throws IOException { + bout = new ByteArrayOutputStream(); + out = System.out; + System.setOut(new PrintStream(bout)); + } + + @Test + public void testGetJob() throws IOException { + // retrieve a job. + JobSearchGetJob.getJob(PROJECT_ID, TENANT_ID, JOB_ID); + String got = bout.toString(); + assertThat(got).contains("Job name: "); + assertThat(got).contains("Website:"); + } + + @After + public void tearDown() { + System.setOut(out); + } + + // Helper method for getting the last id from the full path. + public static String extractLastId(String fullPath) { + if (fullPath == null || fullPath.length() < 1 || !fullPath.contains("/")) { + throw new IllegalArgumentException("Not valid path"); + } + String[] parts = fullPath.split("/"); + return parts[parts.length - 1]; + } +} diff --git a/talent/snippets/src/test/java/JobSearchGetTenantTest.java b/talent/snippets/src/test/java/JobSearchGetTenantTest.java new file mode 100644 index 00000000000..ccd1d1b5e46 --- /dev/null +++ b/talent/snippets/src/test/java/JobSearchGetTenantTest.java @@ -0,0 +1,53 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import static com.google.common.truth.Truth.assertThat; + +import com.example.jobs.JobSearchGetTenant; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +public class JobSearchGetTenantTest { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String TENANT_ID = System.getenv("CTS_TENANT_ID"); + + private ByteArrayOutputStream bout; + private PrintStream out; + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = System.out; + System.setOut(new PrintStream(bout)); + } + + @Test + public void testGetTenant() throws IOException { + // retrieve a tenant. + JobSearchGetTenant.getTenant(PROJECT_ID, TENANT_ID); + String got = bout.toString(); + assertThat(got).contains("Name:"); + assertThat(got).contains("External ID:"); + } + + @After + public void tearDown() { + System.setOut(out); + } +} diff --git a/talent/snippets/src/test/java/JobSearchListCompaniesTest.java b/talent/snippets/src/test/java/JobSearchListCompaniesTest.java new file mode 100644 index 00000000000..4138c6bdfca --- /dev/null +++ b/talent/snippets/src/test/java/JobSearchListCompaniesTest.java @@ -0,0 +1,55 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import static com.google.common.truth.Truth.assertThat; + +import com.example.jobs.JobSearchListCompanies; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +public class JobSearchListCompaniesTest { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String TENANT_ID = System.getenv("CTS_TENANT_ID"); + + private ByteArrayOutputStream bout; + private PrintStream out; + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = System.out; + System.setOut(new PrintStream(bout)); + } + + @Test + public void testListCompanies() throws IOException { + // retrieve a tenant. + JobSearchListCompanies.listCompanies(PROJECT_ID, TENANT_ID); + String got = bout.toString(); + assertThat(got).contains("Company Name:"); + assertThat(got).contains("Display Name:"); + assertThat(got).contains("External ID:"); + } + + @After + public void tearDown() { + // delete that job. + System.setOut(out); + } +} diff --git a/talent/snippets/src/test/java/JobSearchListJobsTest.java b/talent/snippets/src/test/java/JobSearchListJobsTest.java new file mode 100644 index 00000000000..e52ae70657f --- /dev/null +++ b/talent/snippets/src/test/java/JobSearchListJobsTest.java @@ -0,0 +1,60 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +import static com.google.common.truth.Truth.assertThat; + +import com.example.jobs.JobSearchListJobs; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +public class JobSearchListJobsTest { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + private static final String TENANT_ID = System.getenv("CTS_TENANT_ID"); + private static final String COMPANY_ID = System.getenv("CTS_COMPANY_ID"); + + private static final String FILTER = + "companyName=\"projects/%s/companies/%s\""; + private ByteArrayOutputStream bout; + private PrintStream out; + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = System.out; + System.setOut(new PrintStream(bout)); + } + + @Test + public void testListJobs() throws IOException { + // retrieve a job. + JobSearchListJobs.listJobs(PROJECT_ID, TENANT_ID, String.format(FILTER, + PROJECT_ID, COMPANY_ID)); + String got = bout.toString(); + + assertThat(got).contains("Job name:"); + assertThat(got).contains("Job requisition ID:"); + assertThat(got).contains("Job title:"); + } + + @After + public void tearDown() { + System.setOut(out); + } +} diff --git a/talent/snippets/src/test/java/JobSearchListTenantsTest.java b/talent/snippets/src/test/java/JobSearchListTenantsTest.java new file mode 100644 index 00000000000..d615bebf30c --- /dev/null +++ b/talent/snippets/src/test/java/JobSearchListTenantsTest.java @@ -0,0 +1,52 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +import static com.google.common.truth.Truth.assertThat; + +import com.example.jobs.JobSearchListTenants; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.PrintStream; +import org.junit.After; +import org.junit.Before; +import org.junit.Test; + +public class JobSearchListTenantsTest { + private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); + + private ByteArrayOutputStream bout; + private PrintStream out; + + @Before + public void setUp() { + bout = new ByteArrayOutputStream(); + out = System.out; + System.setOut(new PrintStream(bout)); + } + + @Test + public void testListTenants() throws IOException { + // retrieve a tenant. + JobSearchListTenants.listTenants(PROJECT_ID); + String got = bout.toString(); + assertThat(got).contains("Tenant Name:"); + assertThat(got).contains("External ID:"); + } + + @After + public void tearDown() { + System.setOut(out); + } +} From 115d63735e89fd7d5cd23e755a937e07492c4481 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 15 Oct 2020 17:06:30 +0200 Subject: [PATCH 32/92] chore(deps): update dependency com.google.cloud:libraries-bom to v12.1.0 (#278) --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index e3c815d0f5d..bd60ce4255a 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 12.0.0 + 12.1.0 pom import From f55d72f287d3d1ddfe50d9491c90b8df459bfbf2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 21 Oct 2020 00:51:05 +0200 Subject: [PATCH 33/92] chore(deps): update dependency com.google.cloud:libraries-bom to v13 (#291) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `12.1.0` -> `13.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index bd60ce4255a..2d0e9001454 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 12.1.0 + 13.0.0 pom import From 7cc284c243bf98dcb74df6c8d747dd9f8125baf4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 21 Oct 2020 20:32:16 +0200 Subject: [PATCH 34/92] chore(deps): update dependency com.google.cloud:libraries-bom to v13.1.0 (#297) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `13.0.0` -> `13.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 2d0e9001454..9b872c75e48 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 13.0.0 + 13.1.0 pom import From d23719b79ba4222677800dd185896ea74c7d22e6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 22 Oct 2020 21:36:25 +0200 Subject: [PATCH 35/92] test(deps): update dependency com.google.truth:truth to v1.1 (#292) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.truth:truth](com/google/truth/truth) | minor | `1.0.1` -> `1.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 9b872c75e48..72f54d056b3 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -53,7 +53,7 @@ com.google.truth truth - 1.0.1 + 1.1 test From 75dc820bf1d26fb8b7501d8f1049a50c02ce5238 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 23 Oct 2020 20:00:16 +0200 Subject: [PATCH 36/92] chore(deps): update dependency com.google.cloud:libraries-bom to v13.2.0 (#303) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `13.1.0` -> `13.2.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 72f54d056b3..4d41cfdaabc 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 13.1.0 + 13.2.0 pom import From fddd568756112d82df25e4340ba076ff6caa781f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 27 Oct 2020 01:00:14 +0100 Subject: [PATCH 37/92] chore(deps): update dependency com.google.cloud:libraries-bom to v13.3.0 (#305) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `13.2.0` -> `13.3.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 4d41cfdaabc..5f31782c619 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 13.2.0 + 13.3.0 pom import From 5052c026da808ee8ddce89fd4f2512d522e1d68f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Sat, 31 Oct 2020 00:36:14 +0100 Subject: [PATCH 38/92] chore(deps): update dependency com.google.cloud:libraries-bom to v13.4.0 (#316) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `13.3.0` -> `13.4.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 5f31782c619..c831ba1d693 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 13.3.0 + 13.4.0 pom import From 6cd8021b09af9ef649acae38ddb836e9c4de9df6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 4 Nov 2020 01:26:20 +0100 Subject: [PATCH 39/92] chore(deps): update dependency com.google.cloud:libraries-bom to v14 (#326) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `13.4.0` -> `14.4.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index c831ba1d693..48779b78d06 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 13.4.0 + 14.4.1 pom import From 11ea3660f3591b51819c395b43db19db30413896 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 6 Nov 2020 00:02:29 +0100 Subject: [PATCH 40/92] chore(deps): update dependency com.google.cloud:libraries-bom to v15 (#329) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `14.4.1` -> `15.0.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 48779b78d06..5f95c621de1 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 14.4.1 + 15.0.0 pom import From 87e072d7d2d201a5754dba09b1f1e778e5e95e1a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 Nov 2020 18:02:11 +0100 Subject: [PATCH 41/92] chore(deps): update dependency com.google.cloud:libraries-bom to v16 (#349) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | major | `15.0.0` -> `16.1.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 5f95c621de1..c15059a8989 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 15.0.0 + 16.1.0 pom import From b555461109e5d9f4e072fc84882ef49a8a6d0660 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 15 Dec 2020 23:32:29 +0100 Subject: [PATCH 42/92] chore(deps): update dependency com.google.cloud:libraries-bom to v16.2.0 (#373) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | minor | `16.1.0` -> `16.2.0` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index c15059a8989..2ceb90ce6ef 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.1.0 + 16.2.0 pom import From ab17da2e9e76174d1f855c0649f780c909aa594f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 7 Jan 2021 22:28:21 +0100 Subject: [PATCH 43/92] chore(deps): update dependency com.google.cloud:libraries-bom to v16.2.1 (#380) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Update | Change | |---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | patch | `16.2.0` -> `16.2.1` | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 2ceb90ce6ef..3c83d82f339 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.2.0 + 16.2.1 pom import From d8d6167293c976a2157d8ae93d3f30f4fb1688a9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 20 Jan 2021 21:19:58 +0100 Subject: [PATCH 44/92] chore(deps): update dependency com.google.cloud:libraries-bom to v16.3.0 (#390) --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 3c83d82f339..c663d32654e 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.2.1 + 16.3.0 pom import From f88d1893dc7427f3229bb5546b738e89ba9b7d82 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 25 Jan 2021 18:32:23 +0100 Subject: [PATCH 45/92] test(deps): update dependency com.google.truth:truth to v1.1.2 (#393) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.truth:truth](com/google/truth/truth) | `1.1` -> `1.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/compatibility-slim/1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.2/confidence-slim/1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index c663d32654e..6b9af31639f 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -53,7 +53,7 @@ com.google.truth truth - 1.1 + 1.1.2 test From adb824154e44a58efb45513264e92541ad402f85 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 19 Feb 2021 22:55:51 +0100 Subject: [PATCH 46/92] test(deps): update dependency junit:junit to v4.13.2 (#411) --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 6b9af31639f..8d64bccb359 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -47,7 +47,7 @@ junit junit - 4.13.1 + 4.13.2 test From d5f67070d90ebf740a4d8c55b3d06ed92dbfc9e2 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 24 Feb 2021 20:38:24 +0100 Subject: [PATCH 47/92] chore(deps): update dependency com.google.cloud:libraries-bom to v17 (#420) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `16.3.0` -> `17.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/compatibility-slim/16.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/17.0.0/confidence-slim/16.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 8d64bccb359..d49d33e43b8 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 16.3.0 + 17.0.0 pom import From 1cf474e5538b1c86f4a7044e1f07aabe4f59b518 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 25 Feb 2021 01:56:27 +0100 Subject: [PATCH 48/92] chore(deps): update dependency com.google.cloud:libraries-bom to v18 (#423) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `17.0.0` -> `18.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/compatibility-slim/17.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/18.0.0/confidence-slim/17.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index d49d33e43b8..befa4efb715 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 17.0.0 + 18.0.0 pom import From a89782169f73a04bc28234a3131b8f6d5ea68fca Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 4 Mar 2021 20:37:00 +0100 Subject: [PATCH 49/92] chore(deps): update dependency com.google.cloud:libraries-bom to v19 (#437) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `18.0.0` -> `19.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.0.0/compatibility-slim/18.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.0.0/confidence-slim/18.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index befa4efb715..d4a7848ecb2 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 18.0.0 + 19.0.0 pom import From 80017505c7050c3c9f1dfa901b20a9aa0947be0a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 29 Mar 2021 16:02:04 +0200 Subject: [PATCH 50/92] chore(deps): update dependency com.google.cloud:libraries-bom to v19.2.1 (#447) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `19.0.0` -> `19.2.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/compatibility-slim/19.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/19.2.1/confidence-slim/19.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index d4a7848ecb2..83f64205acf 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 19.0.0 + 19.2.1 pom import From a462f1f74b848817cbf9fd9cdceebd672f3ce97b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Apr 2021 19:52:14 +0200 Subject: [PATCH 51/92] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.22 (#452) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | com.google.cloud.samples:shared-configuration | `1.0.21` -> `1.0.22` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.22/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.22/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.22/compatibility-slim/1.0.21)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.22/confidence-slim/1.0.21)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 83f64205acf..fe27cd72c84 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.21 + 1.0.22 From e404d92b5001b7d1b1946b284e438c24f13fbc53 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 12 Apr 2021 17:29:18 +0200 Subject: [PATCH 52/92] chore(deps): update dependency com.google.cloud:libraries-bom to v20 (#462) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `19.2.1` -> `20.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.0.0/compatibility-slim/19.2.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.0.0/confidence-slim/19.2.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index fe27cd72c84..49e6688c65d 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 19.2.1 + 20.0.0 pom import From eb36e5648946ff2e9235c91158d9ac4e64ce3b53 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 19 Apr 2021 16:46:13 +0200 Subject: [PATCH 53/92] chore(deps): update dependency com.google.cloud:libraries-bom to v20.1.0 (#467) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.0.0` -> `20.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.1.0/compatibility-slim/20.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.1.0/confidence-slim/20.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 49e6688c65d..8e285ec406d 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.0.0 + 20.1.0 pom import From 976792eac973639323ea023a1ee04f553a5155d4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 29 Apr 2021 19:38:05 +0200 Subject: [PATCH 54/92] chore(deps): update dependency com.google.cloud:libraries-bom to v20.2.0 (#494) [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.1.0` -> `20.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.2.0/compatibility-slim/20.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.2.0/confidence-slim/20.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 8e285ec406d..34bcdb7c56b 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.1.0 + 20.2.0 pom import From dcfba6fadf85da34b054cb48e48dfc9b20c0c6fe Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 13 May 2021 15:56:34 +0200 Subject: [PATCH 55/92] chore(deps): update dependency com.google.cloud:libraries-bom to v20.3.0 (#501) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.2.0` -> `20.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.3.0/compatibility-slim/20.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.3.0/confidence-slim/20.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 34bcdb7c56b..893f00ee776 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.2.0 + 20.3.0 pom import From ff9010a04caef81fb0a2e0f148b8376e86646920 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 17 May 2021 03:46:32 +0200 Subject: [PATCH 56/92] chore(deps): update dependency com.google.cloud:libraries-bom to v20.4.0 (#510) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.3.0` -> `20.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/compatibility-slim/20.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.4.0/confidence-slim/20.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 893f00ee776..e621fc0eb94 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.3.0 + 20.4.0 pom import From 21581a76eb29f68bc16a9d17a41b5d74cb2b1e89 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 25 May 2021 19:28:11 +0200 Subject: [PATCH 57/92] chore(deps): update dependency com.google.cloud:libraries-bom to v20.5.0 (#518) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.4.0` -> `20.5.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.5.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.5.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.5.0/compatibility-slim/20.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.5.0/confidence-slim/20.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index e621fc0eb94..678e4c51789 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.4.0 + 20.5.0 pom import From ad3e609b492849257efb751d0f9f9f672778f9a9 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 26 May 2021 02:52:05 +0200 Subject: [PATCH 58/92] test(deps): update dependency com.google.truth:truth to v1.1.3 (#521) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | com.google.truth:truth | `1.1.2` -> `1.1.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.3/compatibility-slim/1.1.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.truth:truth/1.1.3/confidence-slim/1.1.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻️ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 678e4c51789..b2ca30fc89d 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -53,7 +53,7 @@ com.google.truth truth - 1.1.2 + 1.1.3 test From 73354e21fb5d57835e7da73b9d6653b6adf3520d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 7 Jun 2021 21:02:04 +0200 Subject: [PATCH 59/92] chore(deps): update dependency com.google.cloud:libraries-bom to v20.6.0 (#531) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.5.0` -> `20.6.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/compatibility-slim/20.5.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.6.0/confidence-slim/20.5.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index b2ca30fc89d..c77ef80899a 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.5.0 + 20.6.0 pom import From 92ff1f413ee373618bcb7702b3cb0eaa218a49b5 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Jun 2021 00:32:11 +0200 Subject: [PATCH 60/92] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.0.23 (#530) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | com.google.cloud.samples:shared-configuration | `1.0.22` -> `1.0.23` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.23/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.23/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.23/compatibility-slim/1.0.22)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.0.23/confidence-slim/1.0.22)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index c77ef80899a..a0b3d40b8e1 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.22 + 1.0.23 From f8791a25d7c7b16cfa3d6eff3bacc886b8a3d490 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 23 Jun 2021 21:08:40 +0200 Subject: [PATCH 61/92] chore(deps): update dependency com.google.cloud:libraries-bom to v20.7.0 (#540) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.6.0` -> `20.7.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.7.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.7.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.7.0/compatibility-slim/20.6.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.7.0/confidence-slim/20.6.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index a0b3d40b8e1..1c7992a1ec1 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.6.0 + 20.7.0 pom import From 2cfaad8dea256b3ae2871a79bbfd67e440180f06 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 9 Jul 2021 17:34:33 +0200 Subject: [PATCH 62/92] chore(deps): update dependency com.google.cloud:libraries-bom to v20.8.0 (#550) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.7.0` -> `20.8.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/compatibility-slim/20.7.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.8.0/confidence-slim/20.7.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 1c7992a1ec1..02c426dbcec 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.7.0 + 20.8.0 pom import From a904e829cc1b0e5999c24b2ae907a6bf2e527a1e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 28 Jul 2021 01:12:35 +0200 Subject: [PATCH 63/92] chore(deps): update dependency com.google.cloud:libraries-bom to v20.9.0 (#555) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.8.0` -> `20.9.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.9.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.9.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.9.0/compatibility-slim/20.8.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/20.9.0/confidence-slim/20.8.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 02c426dbcec..7748a081a4e 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.8.0 + 20.9.0 pom import From f516fe89b1b1cabf7080a87d49c9a9f731a08d4f Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 19 Aug 2021 19:56:24 +0200 Subject: [PATCH 64/92] chore(deps): update dependency com.google.cloud:libraries-bom to v21 (#579) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `20.9.0` -> `21.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/21.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/21.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/21.0.0/compatibility-slim/20.9.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/21.0.0/confidence-slim/20.9.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 7748a081a4e..78e1a069e40 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 20.9.0 + 21.0.0 pom import From 2ec5e290eef62fab1c7fa4dcd3276be3ba386353 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 27 Aug 2021 17:01:02 +0200 Subject: [PATCH 65/92] chore(deps): update dependency com.google.cloud:libraries-bom to v22 (#596) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `21.0.0` -> `22.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/compatibility-slim/21.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/22.0.0/confidence-slim/21.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 78e1a069e40..8ead1cb411a 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 21.0.0 + 22.0.0 pom import From 38d25f40e6498a0ba8020b3e4bb1e92c5f4842de Mon Sep 17 00:00:00 2001 From: Neenu Shaji Date: Sun, 5 Sep 2021 14:04:29 -0400 Subject: [PATCH 66/92] chore: migrate to owlbot (#606) --- .../JobSearchAutocompleteJobTitle.java | 7 +++-- .../v4beta1/JobSearchBatchCreateJobs.java | 18 ++++++++++-- .../v4beta1/JobSearchBatchDeleteJob.java | 4 ++- .../v4beta1/JobSearchBatchUpdateJobs.java | 20 +++++++++++-- .../v4beta1/JobSearchCommuteSearch.java | 5 ++-- .../v4beta1/JobSearchCreateClientEvent.java | 9 ++++-- .../v4beta1/JobSearchCreateCompany.java | 5 +++- .../talent/v4beta1/JobSearchCreateJob.java | 10 +++++-- .../JobSearchCreateJobCustomAttributes.java | 7 ++++- .../talent/v4beta1/JobSearchCreateTenant.java | 4 ++- .../v4beta1/JobSearchCustomRankingSearch.java | 7 +++-- .../v4beta1/JobSearchDeleteCompany.java | 4 ++- .../talent/v4beta1/JobSearchDeleteJob.java | 4 ++- .../talent/v4beta1/JobSearchDeleteTenant.java | 3 +- .../talent/v4beta1/JobSearchGetCompany.java | 4 ++- .../talent/v4beta1/JobSearchGetJob.java | 4 ++- .../talent/v4beta1/JobSearchGetTenant.java | 3 +- .../v4beta1/JobSearchHistogramSearch.java | 5 ++-- .../v4beta1/JobSearchListCompanies.java | 4 ++- .../talent/v4beta1/JobSearchListJobs.java | 4 ++- .../talent/v4beta1/JobSearchListTenants.java | 3 +- .../com/example/jobs/JobSearchCreateJob.java | 5 ---- .../JobSearchCreateJobCustomAttributes.java | 28 +++++++++---------- .../src/test/java/CommuteSearchJobsTest.java | 3 +- .../java/CustomRankingSearchJobsTest.java | 3 +- .../JobSearchCreateJobWithCustomAttrTest.java | 3 +- .../src/test/java/JobSearchGetJobTest.java | 2 -- .../src/test/java/JobSearchListJobsTest.java | 7 ++--- 28 files changed, 121 insertions(+), 64 deletions(-) diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchAutocompleteJobTitle.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchAutocompleteJobTitle.java index 546585ae038..09b7f15c4ab 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchAutocompleteJobTitle.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchAutocompleteJobTitle.java @@ -17,13 +17,16 @@ // sample-metadata: // title: // description: Complete job title given partial text (autocomplete) -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchAutocompleteJobTitle [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--query "[partially typed job title]"] [--num_results 5] [--language_code "en-US"]'] +// usage: gradle run +// -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchAutocompleteJobTitle +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"] [--query "[partially typed job title]"] [--num_results 5] [--language_code +// "en-US"]'] package com.google.cloud.examples.talent.v4beta1; import com.google.cloud.talent.v4beta1.CompleteQueryRequest; import com.google.cloud.talent.v4beta1.CompleteQueryResponse; -import com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult; import com.google.cloud.talent.v4beta1.CompletionClient; import com.google.cloud.talent.v4beta1.TenantName; import com.google.cloud.talent.v4beta1.TenantOrProjectName; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchCreateJobs.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchCreateJobs.java index d65476945dc..25154df1661 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchCreateJobs.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchCreateJobs.java @@ -13,11 +13,24 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// DO NOT EDIT! This is a generated sample ("LongRunningRequestAsync", "job_search_batch_create_jobs") +// DO NOT EDIT! This is a generated sample ("LongRunningRequestAsync", +// "job_search_batch_create_jobs") // sample-metadata: // title: // description: Batch Create Jobs -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchBatchCreateJobs [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--company_name_one "Company name, e.g. projects/your-project/companies/company-id"] [--requisition_id_one "Job requisition ID, aka Posting ID. Unique per job."] [--title_one "Software Engineer"] [--description_one "This is a description of this wonderful job!"] [--job_application_url_one "https://www.example.org/job-posting/123"] [--address_one "1600 Amphitheatre Parkway, Mountain View, CA 94043"] [--language_code_one "en-US"] [--company_name_two "Company name, e.g. projects/your-project/companies/company-id"] [--requisition_id_two "Job requisition ID, aka Posting ID. Unique per job."] [--title_two "Quality Assurance"] [--description_two "This is a description of this wonderful job!"] [--job_application_url_two "https://www.example.org/job-posting/123"] [--address_two "111 8th Avenue, New York, NY 10011"] [--language_code_two "en-US"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchBatchCreateJobs +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"] [--company_name_one "Company name, e.g. +// projects/your-project/companies/company-id"] [--requisition_id_one "Job requisition ID, aka +// Posting ID. Unique per job."] [--title_one "Software Engineer"] [--description_one "This is a +// description of this wonderful job!"] [--job_application_url_one +// "https://www.example.org/job-posting/123"] [--address_one "1600 Amphitheatre Parkway, Mountain +// View, CA 94043"] [--language_code_one "en-US"] [--company_name_two "Company name, e.g. +// projects/your-project/companies/company-id"] [--requisition_id_two "Job requisition ID, aka +// Posting ID. Unique per job."] [--title_two "Quality Assurance"] [--description_two "This is a +// description of this wonderful job!"] [--job_application_url_two +// "https://www.example.org/job-posting/123"] [--address_two "111 8th Avenue, New York, NY 10011"] +// [--language_code_two "en-US"]'] package com.google.cloud.examples.talent.v4beta1; @@ -25,7 +38,6 @@ import com.google.cloud.talent.v4beta1.BatchCreateJobsRequest; import com.google.cloud.talent.v4beta1.BatchOperationMetadata; import com.google.cloud.talent.v4beta1.Job; -import com.google.cloud.talent.v4beta1.Job.ApplicationInfo; import com.google.cloud.talent.v4beta1.JobOperationResult; import com.google.cloud.talent.v4beta1.JobServiceClient; import com.google.cloud.talent.v4beta1.TenantName; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchDeleteJob.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchDeleteJob.java index 88ab74064d5..2ba61f3449f 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchDeleteJob.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchDeleteJob.java @@ -17,7 +17,9 @@ // sample-metadata: // title: // description: Batch delete jobs using a filter -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchBatchDeleteJob [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--filter "[Query]"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchBatchDeleteJob +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"] [--filter "[Query]"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchUpdateJobs.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchUpdateJobs.java index 74682ed06e6..08928826b29 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchUpdateJobs.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchUpdateJobs.java @@ -13,11 +13,26 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// DO NOT EDIT! This is a generated sample ("LongRunningRequestAsync", "job_search_batch_update_jobs") +// DO NOT EDIT! This is a generated sample ("LongRunningRequestAsync", +// "job_search_batch_update_jobs") // sample-metadata: // title: // description: Batch Update Jobs -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchBatchUpdateJobs [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--job_name_one "job name, e.g. projects/your-project/tenants/tenant-id/jobs/job-id"] [--company_name_one "Company name, e.g. projects/your-project/companies/company-id"] [--requisition_id_one "Job requisition ID, aka Posting ID. Unique per job."] [--title_one "Software Engineer"] [--description_one "This is a description of this wonderful job!"] [--job_application_url_one "https://www.example.org/job-posting/123"] [--address_one "1600 Amphitheatre Parkway, Mountain View, CA 94043"] [--language_code_one "en-US"] [--job_name_two "job name, e.g. projects/your-project/tenants/tenant-id/jobs/job-id"] [--company_name_two "Company name, e.g. projects/your-project/companies/company-id"] [--requisition_id_two "Job requisition ID, aka Posting ID. Unique per job."] [--title_two "Quality Assurance"] [--description_two "This is a description of this wonderful job!"] [--job_application_url_two "https://www.example.org/job-posting/123"] [--address_two "111 8th Avenue, New York, NY 10011"] [--language_code_two "en-US"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchBatchUpdateJobs +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"] [--job_name_one "job name, e.g. +// projects/your-project/tenants/tenant-id/jobs/job-id"] [--company_name_one "Company name, e.g. +// projects/your-project/companies/company-id"] [--requisition_id_one "Job requisition ID, aka +// Posting ID. Unique per job."] [--title_one "Software Engineer"] [--description_one "This is a +// description of this wonderful job!"] [--job_application_url_one +// "https://www.example.org/job-posting/123"] [--address_one "1600 Amphitheatre Parkway, Mountain +// View, CA 94043"] [--language_code_one "en-US"] [--job_name_two "job name, e.g. +// projects/your-project/tenants/tenant-id/jobs/job-id"] [--company_name_two "Company name, e.g. +// projects/your-project/companies/company-id"] [--requisition_id_two "Job requisition ID, aka +// Posting ID. Unique per job."] [--title_two "Quality Assurance"] [--description_two "This is a +// description of this wonderful job!"] [--job_application_url_two +// "https://www.example.org/job-posting/123"] [--address_two "111 8th Avenue, New York, NY 10011"] +// [--language_code_two "en-US"]'] package com.google.cloud.examples.talent.v4beta1; @@ -25,7 +40,6 @@ import com.google.cloud.talent.v4beta1.BatchOperationMetadata; import com.google.cloud.talent.v4beta1.BatchUpdateJobsRequest; import com.google.cloud.talent.v4beta1.Job; -import com.google.cloud.talent.v4beta1.Job.ApplicationInfo; import com.google.cloud.talent.v4beta1.JobOperationResult; import com.google.cloud.talent.v4beta1.JobServiceClient; import com.google.cloud.talent.v4beta1.TenantName; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCommuteSearch.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCommuteSearch.java index 7413eb8bdf8..5a17ec7212a 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCommuteSearch.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCommuteSearch.java @@ -17,7 +17,9 @@ // sample-metadata: // title: // description: Search Jobs using commute distance -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCommuteSearch [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCommuteSearch +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"]'] package com.google.cloud.examples.talent.v4beta1; @@ -28,7 +30,6 @@ import com.google.cloud.talent.v4beta1.JobServiceClient; import com.google.cloud.talent.v4beta1.RequestMetadata; import com.google.cloud.talent.v4beta1.SearchJobsRequest; -import com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob; import com.google.cloud.talent.v4beta1.TenantName; import com.google.cloud.talent.v4beta1.TenantOrProjectName; import com.google.protobuf.Duration; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateClientEvent.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateClientEvent.java index b1b15ad6094..e0f77db4cf7 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateClientEvent.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateClientEvent.java @@ -17,7 +17,11 @@ // sample-metadata: // title: // description: Creates a client event -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateClientEvent [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--request_id "[request_id from ResponseMetadata]"] [--event_id "[Set this to a unique identifier]"]'] +// usage: gradle run +// -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateClientEvent +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"] [--request_id "[request_id from ResponseMetadata]"] [--event_id "[Set this +// to a unique identifier]"]'] package com.google.cloud.examples.talent.v4beta1; @@ -76,7 +80,8 @@ public static void sampleCreateClientEvent( // The timestamp of the event as seconds of UTC time since Unix epoch // For more information on how to create google.protobuf.Timestamps - // See: https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/timestamp.proto + // See: + // https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/timestamp.proto long seconds = 0L; Timestamp createTime = Timestamp.newBuilder().setSeconds(seconds).build(); diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateCompany.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateCompany.java index 4f862a3c03f..22d897d879a 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateCompany.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateCompany.java @@ -17,7 +17,10 @@ // sample-metadata: // title: // description: Create Company -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateCompany [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--display_name "My Company Name"] [--external_id "Identifier of this company in my system"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateCompany +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"] [--display_name "My Company Name"] [--external_id "Identifier of this +// company in my system"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJob.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJob.java index 03168b6b076..717a979eb6b 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJob.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJob.java @@ -17,13 +17,19 @@ // sample-metadata: // title: // description: Create Job -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateJob [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--company_name "Company name, e.g. projects/your-project/companies/company-id"] [--requisition_id "Job requisition ID, aka Posting ID. Unique per job."] [--title "Software Engineer"] [--description "This is a description of this wonderful job!"] [--job_application_url "https://www.example.org/job-posting/123"] [--address_one "1600 Amphitheatre Parkway, Mountain View, CA 94043"] [--address_two "111 8th Avenue, New York, NY 10011"] [--language_code "en-US"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateJob +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"] [--company_name "Company name, e.g. +// projects/your-project/companies/company-id"] [--requisition_id "Job requisition ID, aka Posting +// ID. Unique per job."] [--title "Software Engineer"] [--description "This is a description of this +// wonderful job!"] [--job_application_url "https://www.example.org/job-posting/123"] +// [--address_one "1600 Amphitheatre Parkway, Mountain View, CA 94043"] [--address_two "111 8th +// Avenue, New York, NY 10011"] [--language_code "en-US"]'] package com.google.cloud.examples.talent.v4beta1; import com.google.cloud.talent.v4beta1.CreateJobRequest; import com.google.cloud.talent.v4beta1.Job; -import com.google.cloud.talent.v4beta1.Job.ApplicationInfo; import com.google.cloud.talent.v4beta1.JobServiceClient; import com.google.cloud.talent.v4beta1.TenantName; import com.google.cloud.talent.v4beta1.TenantOrProjectName; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJobCustomAttributes.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJobCustomAttributes.java index 0077e2c0f90..8b52cd635ce 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJobCustomAttributes.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJobCustomAttributes.java @@ -17,7 +17,12 @@ // sample-metadata: // title: // description: Create Job with Custom Attributes -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateJobCustomAttributes [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--company_name "Company name, e.g. projects/your-project/companies/company-id"] [--requisition_id "Job requisition ID, aka Posting ID. Unique per job."] [--language_code "en-US"]'] +// usage: gradle run +// -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateJobCustomAttributes +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"] [--company_name "Company name, e.g. +// projects/your-project/companies/company-id"] [--requisition_id "Job requisition ID, aka Posting +// ID. Unique per job."] [--language_code "en-US"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateTenant.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateTenant.java index b631d5be2a3..4c64217424b 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateTenant.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateTenant.java @@ -17,7 +17,9 @@ // sample-metadata: // title: // description: Create Tenant for scoping resources, e.g. companies and jobs -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateTenant [--args='[--project_id "Your Google Cloud Project ID"] [--external_id "Your Unique Identifier for Tenant"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateTenant +// [--args='[--project_id "Your Google Cloud Project ID"] [--external_id "Your Unique Identifier for +// Tenant"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCustomRankingSearch.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCustomRankingSearch.java index 495bb648d55..66b04264bbe 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCustomRankingSearch.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCustomRankingSearch.java @@ -17,7 +17,10 @@ // sample-metadata: // title: // description: Search Jobs using custom rankings -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCustomRankingSearch [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"]'] +// usage: gradle run +// -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCustomRankingSearch +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"]'] package com.google.cloud.examples.talent.v4beta1; @@ -25,8 +28,6 @@ import com.google.cloud.talent.v4beta1.JobServiceClient; import com.google.cloud.talent.v4beta1.RequestMetadata; import com.google.cloud.talent.v4beta1.SearchJobsRequest; -import com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo; -import com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob; import com.google.cloud.talent.v4beta1.TenantName; import com.google.cloud.talent.v4beta1.TenantOrProjectName; import org.apache.commons.cli.CommandLine; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteCompany.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteCompany.java index 3dc7aa49966..3041b730502 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteCompany.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteCompany.java @@ -17,7 +17,9 @@ // sample-metadata: // title: // description: Delete Company -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchDeleteCompany [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--company_id "ID of the company to delete"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchDeleteCompany +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"] [--company_id "ID of the company to delete"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteJob.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteJob.java index 6464f41a87d..90a83113cb1 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteJob.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteJob.java @@ -17,7 +17,9 @@ // sample-metadata: // title: // description: Delete Job -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchDeleteJob [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--job_id "Company ID"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchDeleteJob +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"] [--job_id "Company ID"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteTenant.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteTenant.java index 4c683b5c9f9..16cf4463b74 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteTenant.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteTenant.java @@ -17,7 +17,8 @@ // sample-metadata: // title: // description: Delete Tenant -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchDeleteTenant [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID)"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchDeleteTenant +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID)"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetCompany.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetCompany.java index 6eda4dd08a3..d4d798deac5 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetCompany.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetCompany.java @@ -17,7 +17,9 @@ // sample-metadata: // title: // description: Get Company -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchGetCompany [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--company_id "Company ID"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchGetCompany +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"] [--company_id "Company ID"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetJob.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetJob.java index 4673feec02c..0a52a6c3a26 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetJob.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetJob.java @@ -17,7 +17,9 @@ // sample-metadata: // title: // description: Get Job -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchGetJob [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--job_id "Job ID"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchGetJob +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"] [--job_id "Job ID"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetTenant.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetTenant.java index 91780ab829b..a2f42af943f 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetTenant.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetTenant.java @@ -17,7 +17,8 @@ // sample-metadata: // title: // description: Get Tenant by name -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchGetTenant [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchGetTenant +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchHistogramSearch.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchHistogramSearch.java index 850bc9e3344..950f7214f9e 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchHistogramSearch.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchHistogramSearch.java @@ -17,7 +17,9 @@ // sample-metadata: // title: // description: Search Jobs with histogram queries -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchHistogramSearch [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--query "count(base_compensation, [bucket(12, 20)])"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchHistogramSearch +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"] [--query "count(base_compensation, [bucket(12, 20)])"]'] package com.google.cloud.examples.talent.v4beta1; @@ -26,7 +28,6 @@ import com.google.cloud.talent.v4beta1.JobServiceClient; import com.google.cloud.talent.v4beta1.RequestMetadata; import com.google.cloud.talent.v4beta1.SearchJobsRequest; -import com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob; import com.google.cloud.talent.v4beta1.TenantName; import com.google.cloud.talent.v4beta1.TenantOrProjectName; import java.util.Arrays; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListCompanies.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListCompanies.java index 612bded50b9..5a93e435321 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListCompanies.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListCompanies.java @@ -17,7 +17,9 @@ // sample-metadata: // title: // description: List Companies -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchListCompanies [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchListCompanies +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListJobs.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListJobs.java index 623d0109bfd..fa8443f14c8 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListJobs.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListJobs.java @@ -17,7 +17,9 @@ // sample-metadata: // title: // description: List Jobs -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchListJobs [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using tenancy is optional)"] [--filter "companyName=projects/my-project/companies/company-id"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchListJobs +// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using +// tenancy is optional)"] [--filter "companyName=projects/my-project/companies/company-id"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListTenants.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListTenants.java index ba8d77a6b4f..4fab27d57da 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListTenants.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListTenants.java @@ -17,7 +17,8 @@ // sample-metadata: // title: // description: List Tenants -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchListTenants [--args='[--project_id "Your Google Cloud Project ID"]'] +// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchListTenants +// [--args='[--project_id "Your Google Cloud Project ID"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/snippets/src/main/java/com/example/jobs/JobSearchCreateJob.java b/talent/snippets/src/main/java/com/example/jobs/JobSearchCreateJob.java index d851ca738dd..af2dad8e62c 100644 --- a/talent/snippets/src/main/java/com/example/jobs/JobSearchCreateJob.java +++ b/talent/snippets/src/main/java/com/example/jobs/JobSearchCreateJob.java @@ -23,13 +23,8 @@ import com.google.cloud.talent.v4.JobServiceClient; import com.google.cloud.talent.v4.TenantName; import java.io.IOException; -import java.sql.Timestamp; -import java.time.LocalDate; -import java.time.LocalDateTime; import java.util.Arrays; -import java.util.Calendar; import java.util.List; -import java.util.Locale; public class JobSearchCreateJob { diff --git a/talent/snippets/src/main/java/com/example/jobs/JobSearchCreateJobCustomAttributes.java b/talent/snippets/src/main/java/com/example/jobs/JobSearchCreateJobCustomAttributes.java index 4987511aa77..7e79d55a0e2 100644 --- a/talent/snippets/src/main/java/com/example/jobs/JobSearchCreateJobCustomAttributes.java +++ b/talent/snippets/src/main/java/com/example/jobs/JobSearchCreateJobCustomAttributes.java @@ -38,11 +38,8 @@ public static void createJob() throws IOException { // Create Job with Custom Attributes. public static void createJob( - String projectId, - String tenantId, - String companyId, - String requisitionId) - throws IOException { + String projectId, String tenantId, String companyId, String requisitionId) + throws IOException { // Initialize client that will be used to send requests. This client only needs to be created // once, and can be reused for multiple requests. After completing all of your requests, call // the "close" method on the client to safely clean up any remaining background resources. @@ -51,24 +48,25 @@ public static void createJob( // Custom attribute can be string or numeric value, and can be filtered in search queries. // https://cloud.google.com/talent-solution/job-search/docs/custom-attributes - CustomAttribute customAttribute = CustomAttribute.newBuilder() + CustomAttribute customAttribute = + CustomAttribute.newBuilder() .addStringValues("Internship") .addStringValues("Apprenticeship") .setFilterable(true) .build(); Job job = - Job.newBuilder() - .setCompany(companyId) - .setTitle("Software Developer I") - .setDescription("This is a description of this wonderful job!") - .putCustomAttributes("FOR_STUDENTS", customAttribute) - .setRequisitionId(requisitionId) - .setLanguageCode("en-US") - .build(); + Job.newBuilder() + .setCompany(companyId) + .setTitle("Software Developer I") + .setDescription("This is a description of this wonderful job!") + .putCustomAttributes("FOR_STUDENTS", customAttribute) + .setRequisitionId(requisitionId) + .setLanguageCode("en-US") + .build(); CreateJobRequest request = - CreateJobRequest.newBuilder().setParent(parent.toString()).setJob(job).build(); + CreateJobRequest.newBuilder().setParent(parent.toString()).setJob(job).build(); Job response = jobServiceClient.createJob(request); System.out.printf("Created job: %s\n", response.getName()); } diff --git a/talent/snippets/src/test/java/CommuteSearchJobsTest.java b/talent/snippets/src/test/java/CommuteSearchJobsTest.java index 163f2068899..15836240753 100644 --- a/talent/snippets/src/test/java/CommuteSearchJobsTest.java +++ b/talent/snippets/src/test/java/CommuteSearchJobsTest.java @@ -41,8 +41,7 @@ public void setUp() { @Test public void testCommuteSearchJobs() throws IOException { // retrieve a job. - CommuteSearchJobs.searchJobs( - PROJECT_ID, TENANT_ID); + CommuteSearchJobs.searchJobs(PROJECT_ID, TENANT_ID); String got = bout.toString(); assertThat(got).contains("Job summary:"); diff --git a/talent/snippets/src/test/java/CustomRankingSearchJobsTest.java b/talent/snippets/src/test/java/CustomRankingSearchJobsTest.java index df31410304b..2f5aa257e2b 100644 --- a/talent/snippets/src/test/java/CustomRankingSearchJobsTest.java +++ b/talent/snippets/src/test/java/CustomRankingSearchJobsTest.java @@ -41,8 +41,7 @@ public void setUp() { @Test public void testCustomRankingSearchJobs() throws IOException { // retrieve a job. - CustomRankingSearchJobs.searchCustomRankingJobs( - PROJECT_ID, TENANT_ID); + CustomRankingSearchJobs.searchCustomRankingJobs(PROJECT_ID, TENANT_ID); String got = bout.toString(); assertThat(got).contains("Job summary:"); diff --git a/talent/snippets/src/test/java/JobSearchCreateJobWithCustomAttrTest.java b/talent/snippets/src/test/java/JobSearchCreateJobWithCustomAttrTest.java index dc43b5cd8de..0671921b78e 100644 --- a/talent/snippets/src/test/java/JobSearchCreateJobWithCustomAttrTest.java +++ b/talent/snippets/src/test/java/JobSearchCreateJobWithCustomAttrTest.java @@ -49,8 +49,7 @@ public void setUp() { @Test public void testCreateJob() throws IOException { // create a job with custom attributes. - JobSearchCreateJobCustomAttributes.createJob( - PROJECT_ID, TENANT_ID, COMPANY_ID, POST_UNIQUE_ID); + JobSearchCreateJobCustomAttributes.createJob(PROJECT_ID, TENANT_ID, COMPANY_ID, POST_UNIQUE_ID); String got = bout.toString(); assertThat(got).contains("Created job:"); diff --git a/talent/snippets/src/test/java/JobSearchGetJobTest.java b/talent/snippets/src/test/java/JobSearchGetJobTest.java index c3d0f4b1eda..26d53e4c6eb 100644 --- a/talent/snippets/src/test/java/JobSearchGetJobTest.java +++ b/talent/snippets/src/test/java/JobSearchGetJobTest.java @@ -23,8 +23,6 @@ import org.junit.Before; import org.junit.Test; - - public class JobSearchGetJobTest { private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String TENANT_ID = System.getenv("CTS_TENANT_ID"); diff --git a/talent/snippets/src/test/java/JobSearchListJobsTest.java b/talent/snippets/src/test/java/JobSearchListJobsTest.java index e52ae70657f..c3070fccb09 100644 --- a/talent/snippets/src/test/java/JobSearchListJobsTest.java +++ b/talent/snippets/src/test/java/JobSearchListJobsTest.java @@ -29,8 +29,7 @@ public class JobSearchListJobsTest { private static final String TENANT_ID = System.getenv("CTS_TENANT_ID"); private static final String COMPANY_ID = System.getenv("CTS_COMPANY_ID"); - private static final String FILTER = - "companyName=\"projects/%s/companies/%s\""; + private static final String FILTER = "companyName=\"projects/%s/companies/%s\""; private ByteArrayOutputStream bout; private PrintStream out; @@ -44,8 +43,8 @@ public void setUp() { @Test public void testListJobs() throws IOException { // retrieve a job. - JobSearchListJobs.listJobs(PROJECT_ID, TENANT_ID, String.format(FILTER, - PROJECT_ID, COMPANY_ID)); + JobSearchListJobs.listJobs( + PROJECT_ID, TENANT_ID, String.format(FILTER, PROJECT_ID, COMPANY_ID)); String got = bout.toString(); assertThat(got).contains("Job name:"); From 05f4eb278d9557a119c9235f5c4e517f45aff83a Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 13 Sep 2021 18:40:53 +0200 Subject: [PATCH 67/92] chore(deps): update dependency com.google.cloud:libraries-bom to v23 (#608) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `22.0.0` -> `23.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.0.0/compatibility-slim/22.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.0.0/confidence-slim/22.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 8ead1cb411a..de1c6a1a17a 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 22.0.0 + 23.0.0 pom import From 54848bfab03941ba3e30958565da6e3ccc945305 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 20 Sep 2021 19:54:29 +0000 Subject: [PATCH 68/92] feat: Added a new `KeywordMatchMode` field to support more keyword matching options (#616) feat: Added more `DiversificationLevel` configuration options - [x] Regenerate this pull request now. PiperOrigin-RevId: 396667150 Source-Link: https://github.com/googleapis/googleapis/commit/caad48d4b6f28a3a44732ceeeca871ce335f48ec Source-Link: https://github.com/googleapis/googleapis-gen/commit/1ac7721fb6aaba8211b25ba0adb9a8effb9ba1a3 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMWFjNzcyMWZiNmFhYmE4MjExYjI1YmEwYWRiOWE4ZWZmYjliYTFhMyJ9 --- .../JobSearchAutocompleteJobTitle.java | 9 --------- .../v4beta1/JobSearchBatchCreateJobs.java | 18 ----------------- .../v4beta1/JobSearchBatchDeleteJob.java | 7 ------- .../v4beta1/JobSearchBatchUpdateJobs.java | 20 ------------------- .../v4beta1/JobSearchCommuteSearch.java | 8 -------- .../v4beta1/JobSearchCreateClientEvent.java | 9 --------- .../v4beta1/JobSearchCreateCompany.java | 8 -------- .../talent/v4beta1/JobSearchCreateJob.java | 12 ----------- .../JobSearchCreateJobCustomAttributes.java | 10 ---------- .../talent/v4beta1/JobSearchCreateTenant.java | 7 ------- .../v4beta1/JobSearchCustomRankingSearch.java | 8 -------- .../v4beta1/JobSearchDeleteCompany.java | 7 ------- .../talent/v4beta1/JobSearchDeleteJob.java | 7 ------- .../talent/v4beta1/JobSearchDeleteTenant.java | 6 ------ .../talent/v4beta1/JobSearchGetCompany.java | 7 ------- .../talent/v4beta1/JobSearchGetJob.java | 7 ------- .../talent/v4beta1/JobSearchGetTenant.java | 6 ------ .../v4beta1/JobSearchHistogramSearch.java | 7 ------- .../v4beta1/JobSearchListCompanies.java | 7 ------- .../talent/v4beta1/JobSearchListJobs.java | 7 ------- .../talent/v4beta1/JobSearchListTenants.java | 6 ------ 21 files changed, 183 deletions(-) diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchAutocompleteJobTitle.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchAutocompleteJobTitle.java index 09b7f15c4ab..a318049cab0 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchAutocompleteJobTitle.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchAutocompleteJobTitle.java @@ -13,15 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// DO NOT EDIT! This is a generated sample ("Request", "job_search_autocomplete_job_title") -// sample-metadata: -// title: -// description: Complete job title given partial text (autocomplete) -// usage: gradle run -// -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchAutocompleteJobTitle -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"] [--query "[partially typed job title]"] [--num_results 5] [--language_code -// "en-US"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchCreateJobs.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchCreateJobs.java index 25154df1661..bfaa3fc1699 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchCreateJobs.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchCreateJobs.java @@ -13,24 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// DO NOT EDIT! This is a generated sample ("LongRunningRequestAsync", -// "job_search_batch_create_jobs") -// sample-metadata: -// title: -// description: Batch Create Jobs -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchBatchCreateJobs -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"] [--company_name_one "Company name, e.g. -// projects/your-project/companies/company-id"] [--requisition_id_one "Job requisition ID, aka -// Posting ID. Unique per job."] [--title_one "Software Engineer"] [--description_one "This is a -// description of this wonderful job!"] [--job_application_url_one -// "https://www.example.org/job-posting/123"] [--address_one "1600 Amphitheatre Parkway, Mountain -// View, CA 94043"] [--language_code_one "en-US"] [--company_name_two "Company name, e.g. -// projects/your-project/companies/company-id"] [--requisition_id_two "Job requisition ID, aka -// Posting ID. Unique per job."] [--title_two "Quality Assurance"] [--description_two "This is a -// description of this wonderful job!"] [--job_application_url_two -// "https://www.example.org/job-posting/123"] [--address_two "111 8th Avenue, New York, NY 10011"] -// [--language_code_two "en-US"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchDeleteJob.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchDeleteJob.java index 2ba61f3449f..2d163d8fb26 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchDeleteJob.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchDeleteJob.java @@ -13,13 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// DO NOT EDIT! This is a generated sample ("Request", "job_search_batch_delete_job") -// sample-metadata: -// title: -// description: Batch delete jobs using a filter -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchBatchDeleteJob -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"] [--filter "[Query]"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchUpdateJobs.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchUpdateJobs.java index 08928826b29..1cf7d0289df 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchUpdateJobs.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchUpdateJobs.java @@ -13,26 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// DO NOT EDIT! This is a generated sample ("LongRunningRequestAsync", -// "job_search_batch_update_jobs") -// sample-metadata: -// title: -// description: Batch Update Jobs -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchBatchUpdateJobs -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"] [--job_name_one "job name, e.g. -// projects/your-project/tenants/tenant-id/jobs/job-id"] [--company_name_one "Company name, e.g. -// projects/your-project/companies/company-id"] [--requisition_id_one "Job requisition ID, aka -// Posting ID. Unique per job."] [--title_one "Software Engineer"] [--description_one "This is a -// description of this wonderful job!"] [--job_application_url_one -// "https://www.example.org/job-posting/123"] [--address_one "1600 Amphitheatre Parkway, Mountain -// View, CA 94043"] [--language_code_one "en-US"] [--job_name_two "job name, e.g. -// projects/your-project/tenants/tenant-id/jobs/job-id"] [--company_name_two "Company name, e.g. -// projects/your-project/companies/company-id"] [--requisition_id_two "Job requisition ID, aka -// Posting ID. Unique per job."] [--title_two "Quality Assurance"] [--description_two "This is a -// description of this wonderful job!"] [--job_application_url_two -// "https://www.example.org/job-posting/123"] [--address_two "111 8th Avenue, New York, NY 10011"] -// [--language_code_two "en-US"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCommuteSearch.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCommuteSearch.java index 5a17ec7212a..7f2c5fce366 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCommuteSearch.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCommuteSearch.java @@ -13,14 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// DO NOT EDIT! This is a generated sample ("RequestPaged", "job_search_commute_search") -// sample-metadata: -// title: -// description: Search Jobs using commute distance -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCommuteSearch -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"]'] - package com.google.cloud.examples.talent.v4beta1; import com.google.cloud.talent.v4beta1.CommuteFilter; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateClientEvent.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateClientEvent.java index e0f77db4cf7..4d4faa4ef3f 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateClientEvent.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateClientEvent.java @@ -13,15 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// DO NOT EDIT! This is a generated sample ("Request", "job_search_create_client_event") -// sample-metadata: -// title: -// description: Creates a client event -// usage: gradle run -// -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateClientEvent -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"] [--request_id "[request_id from ResponseMetadata]"] [--event_id "[Set this -// to a unique identifier]"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateCompany.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateCompany.java index 22d897d879a..86009221c38 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateCompany.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateCompany.java @@ -13,14 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// DO NOT EDIT! This is a generated sample ("Request", "job_search_create_company") -// sample-metadata: -// title: -// description: Create Company -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateCompany -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"] [--display_name "My Company Name"] [--external_id "Identifier of this -// company in my system"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJob.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJob.java index 717a979eb6b..88322015318 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJob.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJob.java @@ -13,18 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// DO NOT EDIT! This is a generated sample ("Request", "job_search_create_job") -// sample-metadata: -// title: -// description: Create Job -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateJob -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"] [--company_name "Company name, e.g. -// projects/your-project/companies/company-id"] [--requisition_id "Job requisition ID, aka Posting -// ID. Unique per job."] [--title "Software Engineer"] [--description "This is a description of this -// wonderful job!"] [--job_application_url "https://www.example.org/job-posting/123"] -// [--address_one "1600 Amphitheatre Parkway, Mountain View, CA 94043"] [--address_two "111 8th -// Avenue, New York, NY 10011"] [--language_code "en-US"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJobCustomAttributes.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJobCustomAttributes.java index 8b52cd635ce..cbd7c1d5ca5 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJobCustomAttributes.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJobCustomAttributes.java @@ -13,16 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// DO NOT EDIT! This is a generated sample ("Request", "job_search_create_job_custom_attributes") -// sample-metadata: -// title: -// description: Create Job with Custom Attributes -// usage: gradle run -// -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateJobCustomAttributes -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"] [--company_name "Company name, e.g. -// projects/your-project/companies/company-id"] [--requisition_id "Job requisition ID, aka Posting -// ID. Unique per job."] [--language_code "en-US"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateTenant.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateTenant.java index 4c64217424b..a0d1775b9b2 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateTenant.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateTenant.java @@ -13,13 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// DO NOT EDIT! This is a generated sample ("Request", "job_search_create_tenant") -// sample-metadata: -// title: -// description: Create Tenant for scoping resources, e.g. companies and jobs -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCreateTenant -// [--args='[--project_id "Your Google Cloud Project ID"] [--external_id "Your Unique Identifier for -// Tenant"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCustomRankingSearch.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCustomRankingSearch.java index 66b04264bbe..cf916999260 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCustomRankingSearch.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCustomRankingSearch.java @@ -13,14 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// DO NOT EDIT! This is a generated sample ("RequestPaged", "job_search_custom_ranking_search") -// sample-metadata: -// title: -// description: Search Jobs using custom rankings -// usage: gradle run -// -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchCustomRankingSearch -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteCompany.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteCompany.java index 3041b730502..c4ef8acb657 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteCompany.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteCompany.java @@ -13,13 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// DO NOT EDIT! This is a generated sample ("Request", "job_search_delete_company") -// sample-metadata: -// title: -// description: Delete Company -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchDeleteCompany -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"] [--company_id "ID of the company to delete"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteJob.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteJob.java index 90a83113cb1..ded170c624c 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteJob.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteJob.java @@ -13,13 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// DO NOT EDIT! This is a generated sample ("Request", "job_search_delete_job") -// sample-metadata: -// title: -// description: Delete Job -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchDeleteJob -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"] [--job_id "Company ID"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteTenant.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteTenant.java index 16cf4463b74..95dac1df344 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteTenant.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteTenant.java @@ -13,12 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// DO NOT EDIT! This is a generated sample ("Request", "job_search_delete_tenant") -// sample-metadata: -// title: -// description: Delete Tenant -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchDeleteTenant -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID)"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetCompany.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetCompany.java index d4d798deac5..2fcf1721cf8 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetCompany.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetCompany.java @@ -13,13 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// DO NOT EDIT! This is a generated sample ("Request", "job_search_get_company") -// sample-metadata: -// title: -// description: Get Company -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchGetCompany -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"] [--company_id "Company ID"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetJob.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetJob.java index 0a52a6c3a26..fbc92ccbe3a 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetJob.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetJob.java @@ -13,13 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// DO NOT EDIT! This is a generated sample ("Request", "job_search_get_job") -// sample-metadata: -// title: -// description: Get Job -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchGetJob -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"] [--job_id "Job ID"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetTenant.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetTenant.java index a2f42af943f..86830cf9031 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetTenant.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetTenant.java @@ -13,12 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// DO NOT EDIT! This is a generated sample ("Request", "job_search_get_tenant") -// sample-metadata: -// title: -// description: Get Tenant by name -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchGetTenant -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchHistogramSearch.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchHistogramSearch.java index 950f7214f9e..877cb4306df 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchHistogramSearch.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchHistogramSearch.java @@ -13,13 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// DO NOT EDIT! This is a generated sample ("RequestPaged", "job_search_histogram_search") -// sample-metadata: -// title: -// description: Search Jobs with histogram queries -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchHistogramSearch -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"] [--query "count(base_compensation, [bucket(12, 20)])"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListCompanies.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListCompanies.java index 5a93e435321..3c5f9df1dbb 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListCompanies.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListCompanies.java @@ -13,13 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// DO NOT EDIT! This is a generated sample ("RequestPaged", "job_search_list_companies") -// sample-metadata: -// title: -// description: List Companies -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchListCompanies -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListJobs.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListJobs.java index fa8443f14c8..04cd4e335cc 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListJobs.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListJobs.java @@ -13,13 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// DO NOT EDIT! This is a generated sample ("RequestPaged", "job_search_list_jobs") -// sample-metadata: -// title: -// description: List Jobs -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchListJobs -// [--args='[--project_id "Your Google Cloud Project ID"] [--tenant_id "Your Tenant ID (using -// tenancy is optional)"] [--filter "companyName=projects/my-project/companies/company-id"]'] package com.google.cloud.examples.talent.v4beta1; diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListTenants.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListTenants.java index 4fab27d57da..681552d6463 100644 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListTenants.java +++ b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListTenants.java @@ -13,12 +13,6 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -// DO NOT EDIT! This is a generated sample ("RequestPaged", "job_search_list_tenants") -// sample-metadata: -// title: -// description: List Tenants -// usage: gradle run -PmainClass=com.google.cloud.examples.talent.v4beta1.JobSearchListTenants -// [--args='[--project_id "Your Google Cloud Project ID"]'] package com.google.cloud.examples.talent.v4beta1; From 59155919c5138bbea54ec49f580fca92514815a1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Oct 2021 16:28:44 +0200 Subject: [PATCH 69/92] chore(deps): update dependency com.google.cloud:libraries-bom to v23.1.0 (#636) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `23.0.0` -> `23.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/compatibility-slim/23.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/23.1.0/confidence-slim/23.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index de1c6a1a17a..ed27958cfa2 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 23.0.0 + 23.1.0 pom import From b9953d5f84571bc4e04f6bff63521c04a11e53a7 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 27 Oct 2021 18:16:45 +0200 Subject: [PATCH 70/92] chore(deps): update dependency com.google.cloud:libraries-bom to v24 (#664) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `23.1.0` -> `24.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/compatibility-slim/23.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.0.0/confidence-slim/23.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index ed27958cfa2..807dcc02960 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 23.1.0 + 24.0.0 pom import From 51881116a23664a25b49cdf42730479ff5f5fbeb Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 7 Dec 2021 00:18:22 +0100 Subject: [PATCH 71/92] chore(deps): update dependency com.google.cloud.samples:shared-configuration to v1.2.0 (#680) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud.samples:shared-configuration](https://togithub.com/GoogleCloudPlatform/java-repo-tools) | `1.0.23` -> `1.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/compatibility-slim/1.0.23)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud.samples:shared-configuration/1.2.0/confidence-slim/1.0.23)](https://docs.renovatebot.com/merge-confidence/) | --- ### Release Notes
GoogleCloudPlatform/java-repo-tools ### [`v1.2.0`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.24...v1.2.0) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.24...v1.2.0) ### [`v1.0.24`](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.23...v1.0.24) [Compare Source](https://togithub.com/GoogleCloudPlatform/java-repo-tools/compare/v1.0.23...v1.0.24)
--- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 807dcc02960..4e8e08aed6d 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -14,7 +14,7 @@ com.google.cloud.samples shared-configuration - 1.0.23 + 1.2.0 From afc51f44dbb0313f81c7a0a5771087527bee5865 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 9 Dec 2021 00:10:19 +0100 Subject: [PATCH 72/92] chore(deps): update dependency com.google.cloud:libraries-bom to v24.1.0 (#697) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.0.0` -> `24.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.0/compatibility-slim/24.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.0/confidence-slim/24.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 4e8e08aed6d..e4f4db71f5a 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.0.0 + 24.1.0 pom import From 8a33621366cc706a8c106d6524e3291af4788d91 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 28 Dec 2021 22:02:23 +0100 Subject: [PATCH 73/92] chore(deps): update dependency com.google.cloud:libraries-bom to v24.1.1 (#698) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.1.0` -> `24.1.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/compatibility-slim/24.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.1/confidence-slim/24.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index e4f4db71f5a..a5ee467e790 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.1.0 + 24.1.1 pom import From 204e70dd2da148b499411c43779f34c907e77d61 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 7 Jan 2022 16:50:13 +0100 Subject: [PATCH 74/92] chore(deps): update dependency com.google.cloud:libraries-bom to v24.1.2 (#700) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.1.1` -> `24.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/compatibility-slim/24.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.1.2/confidence-slim/24.1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index a5ee467e790..64019e4d393 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.1.1 + 24.1.2 pom import From f546fc4f79fe67fb5b4d535a23f148408b4c0646 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 18 Jan 2022 19:58:22 +0100 Subject: [PATCH 75/92] chore(deps): update dependency com.google.cloud:libraries-bom to v24.2.0 (#710) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java) | `24.1.2` -> `24.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.2.0/compatibility-slim/24.1.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.2.0/confidence-slim/24.1.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 64019e4d393..8468787b52a 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.1.2 + 24.2.0 pom import From 48aea92564554310aecba32a5422228a99f76fd8 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 8 Feb 2022 23:15:00 +0100 Subject: [PATCH 76/92] chore(deps): update dependency com.google.cloud:libraries-bom to v24.3.0 (#727) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `24.2.0` -> `24.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/compatibility-slim/24.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.3.0/confidence-slim/24.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 8468787b52a..0d609000f56 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.2.0 + 24.3.0 pom import From 6bb3b3ff3f2c0e7f4ba1f0b43c7c70fc3d17a798 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Thu, 3 Mar 2022 02:42:27 +0100 Subject: [PATCH 77/92] chore(deps): update dependency com.google.cloud:libraries-bom to v24.4.0 (#751) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `24.3.0` -> `24.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/compatibility-slim/24.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/24.4.0/confidence-slim/24.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 0d609000f56..d14c7155e04 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.3.0 + 24.4.0 pom import From bfab22309271a66ac27129a4d3bcd685c418fdce Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 14 Mar 2022 23:42:29 +0100 Subject: [PATCH 78/92] chore(deps): update dependency com.google.cloud:libraries-bom to v25 (#759) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `24.4.0` -> `25.0.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.0.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.0.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.0.0/compatibility-slim/24.4.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.0.0/confidence-slim/24.4.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index d14c7155e04..32c1fae9eb7 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 24.4.0 + 25.0.0 pom import From 064c64cde8c78b030a54c2054036c5726b1b798c Mon Sep 17 00:00:00 2001 From: Emily Ball Date: Mon, 21 Mar 2022 17:19:21 -0700 Subject: [PATCH 79/92] test: fix sample test (#762) --- talent/snippets/src/test/java/JobSearchGetJobTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/src/test/java/JobSearchGetJobTest.java b/talent/snippets/src/test/java/JobSearchGetJobTest.java index 26d53e4c6eb..ad1b9501653 100644 --- a/talent/snippets/src/test/java/JobSearchGetJobTest.java +++ b/talent/snippets/src/test/java/JobSearchGetJobTest.java @@ -26,7 +26,7 @@ public class JobSearchGetJobTest { private static final String PROJECT_ID = System.getenv("GOOGLE_CLOUD_PROJECT"); private static final String TENANT_ID = System.getenv("CTS_TENANT_ID"); - private static final String JOB_ID = System.getenv("CTS_JOB_ID"); + private static final String JOB_ID = System.getenv("CTS_GET_JOB_ID"); private ByteArrayOutputStream bout; private PrintStream out; From b911760439dc44c37ad69d5a328c4a42fb1f736d Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 1 Apr 2022 18:38:18 +0200 Subject: [PATCH 80/92] chore(deps): update dependency com.google.cloud:libraries-bom to v25.1.0 (#768) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.0.0` -> `25.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/compatibility-slim/25.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.1.0/confidence-slim/25.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 32c1fae9eb7..8ce8573d25f 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.0.0 + 25.1.0 pom import From b93a5dd6c27049915a6db58997e9809bb474a9b0 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 27 Apr 2022 17:36:15 +0200 Subject: [PATCH 81/92] chore(deps): update dependency com.google.cloud:libraries-bom to v25.2.0 (#779) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.1.0` -> `25.2.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/compatibility-slim/25.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.2.0/confidence-slim/25.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 8ce8573d25f..8cda5bde645 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.1.0 + 25.2.0 pom import From d7b98dadf54c4b9135b83099397e6e19fba8ec9c Mon Sep 17 00:00:00 2001 From: Emily Ball Date: Fri, 13 May 2022 08:23:53 -0700 Subject: [PATCH 82/92] chore: remove legacy generated samples (#783) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore: remove legacy generated samples Fixes #635 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- .../JobSearchAutocompleteJobTitle.java | 109 -------- .../v4beta1/JobSearchBatchCreateJobs.java | 236 ---------------- .../v4beta1/JobSearchBatchDeleteJob.java | 85 ------ .../v4beta1/JobSearchBatchUpdateJobs.java | 256 ------------------ .../v4beta1/JobSearchCommuteSearch.java | 119 -------- .../v4beta1/JobSearchCreateClientEvent.java | 124 --------- .../v4beta1/JobSearchCreateCompany.java | 96 ------- .../talent/v4beta1/JobSearchCreateJob.java | 165 ----------- .../JobSearchCreateJobCustomAttributes.java | 105 ------- .../talent/v4beta1/JobSearchCreateTenant.java | 76 ------ .../v4beta1/JobSearchCustomRankingSearch.java | 112 -------- .../v4beta1/JobSearchDeleteCompany.java | 76 ------ .../talent/v4beta1/JobSearchDeleteJob.java | 74 ----- .../talent/v4beta1/JobSearchDeleteTenant.java | 70 ----- .../talent/v4beta1/JobSearchGetCompany.java | 78 ------ .../talent/v4beta1/JobSearchGetJob.java | 89 ------ .../talent/v4beta1/JobSearchGetTenant.java | 72 ----- .../v4beta1/JobSearchHistogramSearch.java | 113 -------- .../v4beta1/JobSearchListCompanies.java | 82 ------ .../talent/v4beta1/JobSearchListJobs.java | 87 ------ .../talent/v4beta1/JobSearchListTenants.java | 71 ----- 21 files changed, 2295 deletions(-) delete mode 100644 talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchAutocompleteJobTitle.java delete mode 100644 talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchCreateJobs.java delete mode 100644 talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchDeleteJob.java delete mode 100644 talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchUpdateJobs.java delete mode 100644 talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCommuteSearch.java delete mode 100644 talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateClientEvent.java delete mode 100644 talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateCompany.java delete mode 100644 talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJob.java delete mode 100644 talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJobCustomAttributes.java delete mode 100644 talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateTenant.java delete mode 100644 talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCustomRankingSearch.java delete mode 100644 talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteCompany.java delete mode 100644 talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteJob.java delete mode 100644 talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteTenant.java delete mode 100644 talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetCompany.java delete mode 100644 talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetJob.java delete mode 100644 talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetTenant.java delete mode 100644 talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchHistogramSearch.java delete mode 100644 talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListCompanies.java delete mode 100644 talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListJobs.java delete mode 100644 talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListTenants.java diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchAutocompleteJobTitle.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchAutocompleteJobTitle.java deleted file mode 100644 index a318049cab0..00000000000 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchAutocompleteJobTitle.java +++ /dev/null @@ -1,109 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.examples.talent.v4beta1; - -import com.google.cloud.talent.v4beta1.CompleteQueryRequest; -import com.google.cloud.talent.v4beta1.CompleteQueryResponse; -import com.google.cloud.talent.v4beta1.CompletionClient; -import com.google.cloud.talent.v4beta1.TenantName; -import com.google.cloud.talent.v4beta1.TenantOrProjectName; -import java.util.Arrays; -import java.util.List; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; - -public class JobSearchAutocompleteJobTitle { - // [START job_search_autocomplete_job_title] - /* - * Please include the following imports to run this sample. - * - * import com.google.cloud.talent.v4beta1.CompleteQueryRequest; - * import com.google.cloud.talent.v4beta1.CompleteQueryResponse; - * import com.google.cloud.talent.v4beta1.CompleteQueryResponse.CompletionResult; - * import com.google.cloud.talent.v4beta1.CompletionClient; - * import com.google.cloud.talent.v4beta1.TenantName; - * import com.google.cloud.talent.v4beta1.TenantOrProjectName; - * import java.util.Arrays; - * import java.util.List; - */ - - public static void sampleCompleteQuery() { - // TODO(developer): Replace these variables before running the sample. - String projectId = "Your Google Cloud Project ID"; - String tenantId = "Your Tenant ID (using tenancy is optional)"; - String query = "[partially typed job title]"; - int numResults = 5; - String languageCode = "en-US"; - sampleCompleteQuery(projectId, tenantId, query, numResults, languageCode); - } - - /** - * Complete job title given partial text (autocomplete) - * - * @param projectId Your Google Cloud Project ID - * @param tenantId Identifier of the Tenantd - */ - public static void sampleCompleteQuery( - String projectId, String tenantId, String query, int numResults, String languageCode) { - try (CompletionClient completionClient = CompletionClient.create()) { - TenantOrProjectName parent = TenantName.of(projectId, tenantId); - List languageCodes = Arrays.asList(languageCode); - CompleteQueryRequest request = - CompleteQueryRequest.newBuilder() - .setParent(parent.toString()) - .setQuery(query) - .setPageSize(numResults) - .addAllLanguageCodes(languageCodes) - .build(); - CompleteQueryResponse response = completionClient.completeQuery(request); - for (CompleteQueryResponse.CompletionResult result : response.getCompletionResultsList()) { - System.out.printf("Suggested title: %s\n", result.getSuggestion()); - // Suggestion type is JOB_TITLE or COMPANY_TITLE - System.out.printf("Suggestion type: %s\n", result.getType()); - } - } catch (Exception exception) { - System.err.println("Failed to create the client due to: " + exception); - } - } - // [END job_search_autocomplete_job_title] - - public static void main(String[] args) throws Exception { - Options options = new Options(); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("query").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("num_results").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("language_code").build()); - - CommandLine cl = (new DefaultParser()).parse(options, args); - String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); - String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); - String query = cl.getOptionValue("query", "[partially typed job title]"); - int numResults = - cl.getOptionValue("num_results") != null - ? Integer.parseInt(cl.getOptionValue("num_results")) - : 5; - String languageCode = cl.getOptionValue("language_code", "en-US"); - - sampleCompleteQuery(projectId, tenantId, query, numResults, languageCode); - } -} diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchCreateJobs.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchCreateJobs.java deleted file mode 100644 index bfaa3fc1699..00000000000 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchCreateJobs.java +++ /dev/null @@ -1,236 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.examples.talent.v4beta1; - -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.talent.v4beta1.BatchCreateJobsRequest; -import com.google.cloud.talent.v4beta1.BatchOperationMetadata; -import com.google.cloud.talent.v4beta1.Job; -import com.google.cloud.talent.v4beta1.JobOperationResult; -import com.google.cloud.talent.v4beta1.JobServiceClient; -import com.google.cloud.talent.v4beta1.TenantName; -import java.util.Arrays; -import java.util.List; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; - -public class JobSearchBatchCreateJobs { - // [START job_search_batch_create_jobs] - /* - * Please include the following imports to run this sample. - * - * import com.google.api.gax.longrunning.OperationFuture; - * import com.google.cloud.talent.v4beta1.BatchCreateJobsRequest; - * import com.google.cloud.talent.v4beta1.BatchOperationMetadata; - * import com.google.cloud.talent.v4beta1.Job; - * import com.google.cloud.talent.v4beta1.Job.ApplicationInfo; - * import com.google.cloud.talent.v4beta1.JobOperationResult; - * import com.google.cloud.talent.v4beta1.JobServiceClient; - * import com.google.cloud.talent.v4beta1.TenantName; - * import java.util.Arrays; - * import java.util.List; - */ - - public static void sampleBatchCreateJobs() { - // TODO(developer): Replace these variables before running the sample. - String projectId = "Your Google Cloud Project ID"; - String tenantId = "Your Tenant ID (using tenancy is optional)"; - String companyNameOne = "Company name, e.g. projects/your-project/companies/company-id"; - String requisitionIdOne = "Job requisition ID, aka Posting ID. Unique per job."; - String titleOne = "Software Engineer"; - String descriptionOne = "This is a description of this wonderful job!"; - String jobApplicationUrlOne = "https://www.example.org/job-posting/123"; - String addressOne = "1600 Amphitheatre Parkway, Mountain View, CA 94043"; - String languageCodeOne = "en-US"; - String companyNameTwo = "Company name, e.g. projects/your-project/companies/company-id"; - String requisitionIdTwo = "Job requisition ID, aka Posting ID. Unique per job."; - String titleTwo = "Quality Assurance"; - String descriptionTwo = "This is a description of this wonderful job!"; - String jobApplicationUrlTwo = "https://www.example.org/job-posting/123"; - String addressTwo = "111 8th Avenue, New York, NY 10011"; - String languageCodeTwo = "en-US"; - sampleBatchCreateJobs( - projectId, - tenantId, - companyNameOne, - requisitionIdOne, - titleOne, - descriptionOne, - jobApplicationUrlOne, - addressOne, - languageCodeOne, - companyNameTwo, - requisitionIdTwo, - titleTwo, - descriptionTwo, - jobApplicationUrlTwo, - addressTwo, - languageCodeTwo); - } - - /** - * Batch Create Jobs - * - * @param projectId Your Google Cloud Project ID - * @param tenantId Identifier of the Tenant - */ - public static void sampleBatchCreateJobs( - String projectId, - String tenantId, - String companyNameOne, - String requisitionIdOne, - String titleOne, - String descriptionOne, - String jobApplicationUrlOne, - String addressOne, - String languageCodeOne, - String companyNameTwo, - String requisitionIdTwo, - String titleTwo, - String descriptionTwo, - String jobApplicationUrlTwo, - String addressTwo, - String languageCodeTwo) { - try (JobServiceClient jobServiceClient = JobServiceClient.create()) { - String formattedParent = TenantName.format(projectId, tenantId); - List uris = Arrays.asList(jobApplicationUrlOne); - Job.ApplicationInfo applicationInfo = - Job.ApplicationInfo.newBuilder().addAllUris(uris).build(); - List addresses = Arrays.asList(addressOne); - Job jobsElement = - Job.newBuilder() - .setCompany(companyNameOne) - .setRequisitionId(requisitionIdOne) - .setTitle(titleOne) - .setDescription(descriptionOne) - .setApplicationInfo(applicationInfo) - .addAllAddresses(addresses) - .setLanguageCode(languageCodeOne) - .build(); - List uris2 = Arrays.asList(jobApplicationUrlTwo); - Job.ApplicationInfo applicationInfo2 = - Job.ApplicationInfo.newBuilder().addAllUris(uris2).build(); - List addresses2 = Arrays.asList(addressTwo); - Job jobsElement2 = - Job.newBuilder() - .setCompany(companyNameTwo) - .setRequisitionId(requisitionIdTwo) - .setTitle(titleTwo) - .setDescription(descriptionTwo) - .setApplicationInfo(applicationInfo2) - .addAllAddresses(addresses2) - .setLanguageCode(languageCodeTwo) - .build(); - List jobs = Arrays.asList(jobsElement, jobsElement2); - BatchCreateJobsRequest request = - BatchCreateJobsRequest.newBuilder().setParent(formattedParent).addAllJobs(jobs).build(); - OperationFuture future = - jobServiceClient.batchCreateJobsAsync(request); - - System.out.println("Waiting for operation to complete..."); - JobOperationResult response = future.get(); - System.out.printf("Batch response: %s\n", response); - } catch (Exception exception) { - System.err.println("Failed to create the client due to: " + exception); - } - } - // [END job_search_batch_create_jobs] - - public static void main(String[] args) throws Exception { - Options options = new Options(); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("company_name_one").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("requisition_id_one").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("title_one").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("description_one").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("job_application_url_one").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("address_one").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("language_code_one").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("company_name_two").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("requisition_id_two").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("title_two").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("description_two").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("job_application_url_two").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("address_two").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("language_code_two").build()); - - CommandLine cl = (new DefaultParser()).parse(options, args); - String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); - String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); - String companyNameOne = - cl.getOptionValue( - "company_name_one", "Company name, e.g. projects/your-project/companies/company-id"); - String requisitionIdOne = - cl.getOptionValue( - "requisition_id_one", "Job requisition ID, aka Posting ID. Unique per job."); - String titleOne = cl.getOptionValue("title_one", "Software Engineer"); - String descriptionOne = - cl.getOptionValue("description_one", "This is a description of this wonderful job!"); - String jobApplicationUrlOne = - cl.getOptionValue("job_application_url_one", "https://www.example.org/job-posting/123"); - String addressOne = - cl.getOptionValue("address_one", "1600 Amphitheatre Parkway, Mountain View, CA 94043"); - String languageCodeOne = cl.getOptionValue("language_code_one", "en-US"); - String companyNameTwo = - cl.getOptionValue( - "company_name_two", "Company name, e.g. projects/your-project/companies/company-id"); - String requisitionIdTwo = - cl.getOptionValue( - "requisition_id_two", "Job requisition ID, aka Posting ID. Unique per job."); - String titleTwo = cl.getOptionValue("title_two", "Quality Assurance"); - String descriptionTwo = - cl.getOptionValue("description_two", "This is a description of this wonderful job!"); - String jobApplicationUrlTwo = - cl.getOptionValue("job_application_url_two", "https://www.example.org/job-posting/123"); - String addressTwo = cl.getOptionValue("address_two", "111 8th Avenue, New York, NY 10011"); - String languageCodeTwo = cl.getOptionValue("language_code_two", "en-US"); - - sampleBatchCreateJobs( - projectId, - tenantId, - companyNameOne, - requisitionIdOne, - titleOne, - descriptionOne, - jobApplicationUrlOne, - addressOne, - languageCodeOne, - companyNameTwo, - requisitionIdTwo, - titleTwo, - descriptionTwo, - jobApplicationUrlTwo, - addressTwo, - languageCodeTwo); - } -} diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchDeleteJob.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchDeleteJob.java deleted file mode 100644 index 2d163d8fb26..00000000000 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchDeleteJob.java +++ /dev/null @@ -1,85 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.examples.talent.v4beta1; - -import com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest; -import com.google.cloud.talent.v4beta1.JobServiceClient; -import com.google.cloud.talent.v4beta1.TenantName; -import com.google.cloud.talent.v4beta1.TenantOrProjectName; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; - -public class JobSearchBatchDeleteJob { - // [START job_search_batch_delete_job] - /* - * Please include the following imports to run this sample. - * - * import com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest; - * import com.google.cloud.talent.v4beta1.JobServiceClient; - * import com.google.cloud.talent.v4beta1.TenantName; - * import com.google.cloud.talent.v4beta1.TenantOrProjectName; - */ - - public static void sampleBatchDeleteJobs() { - // TODO(developer): Replace these variables before running the sample. - String projectId = "Your Google Cloud Project ID"; - String tenantId = "Your Tenant ID (using tenancy is optional)"; - String filter = "[Query]"; - sampleBatchDeleteJobs(projectId, tenantId, filter); - } - - /** - * Batch delete jobs using a filter - * - * @param projectId Your Google Cloud Project ID - * @param tenantId Identifier of the Tenantd - * @param filter The filter string specifies the jobs to be deleted. For example: companyName = - * "projects/api-test-project/companies/123" AND equisitionId = "req-1" - */ - public static void sampleBatchDeleteJobs(String projectId, String tenantId, String filter) { - try (JobServiceClient jobServiceClient = JobServiceClient.create()) { - TenantOrProjectName parent = TenantName.of(projectId, tenantId); - BatchDeleteJobsRequest request = - BatchDeleteJobsRequest.newBuilder() - .setParent(parent.toString()) - .setFilter(filter) - .build(); - jobServiceClient.batchDeleteJobs(request); - System.out.println("Batch deleted jobs from filter"); - } catch (Exception exception) { - System.err.println("Failed to create the client due to: " + exception); - } - } - // [END job_search_batch_delete_job] - - public static void main(String[] args) throws Exception { - Options options = new Options(); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("filter").build()); - - CommandLine cl = (new DefaultParser()).parse(options, args); - String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); - String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); - String filter = cl.getOptionValue("filter", "[Query]"); - - sampleBatchDeleteJobs(projectId, tenantId, filter); - } -} diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchUpdateJobs.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchUpdateJobs.java deleted file mode 100644 index 1cf7d0289df..00000000000 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchBatchUpdateJobs.java +++ /dev/null @@ -1,256 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.examples.talent.v4beta1; - -import com.google.api.gax.longrunning.OperationFuture; -import com.google.cloud.talent.v4beta1.BatchOperationMetadata; -import com.google.cloud.talent.v4beta1.BatchUpdateJobsRequest; -import com.google.cloud.talent.v4beta1.Job; -import com.google.cloud.talent.v4beta1.JobOperationResult; -import com.google.cloud.talent.v4beta1.JobServiceClient; -import com.google.cloud.talent.v4beta1.TenantName; -import java.util.Arrays; -import java.util.List; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; - -public class JobSearchBatchUpdateJobs { - // [START job_search_batch_update_jobs] - /* - * Please include the following imports to run this sample. - * - * import com.google.api.gax.longrunning.OperationFuture; - * import com.google.cloud.talent.v4beta1.BatchOperationMetadata; - * import com.google.cloud.talent.v4beta1.BatchUpdateJobsRequest; - * import com.google.cloud.talent.v4beta1.Job; - * import com.google.cloud.talent.v4beta1.Job.ApplicationInfo; - * import com.google.cloud.talent.v4beta1.JobOperationResult; - * import com.google.cloud.talent.v4beta1.JobServiceClient; - * import com.google.cloud.talent.v4beta1.TenantName; - * import java.util.Arrays; - * import java.util.List; - */ - - public static void sampleBatchUpdateJobs() { - // TODO(developer): Replace these variables before running the sample. - String projectId = "Your Google Cloud Project ID"; - String tenantId = "Your Tenant ID (using tenancy is optional)"; - String jobNameOne = "job name, e.g. projects/your-project/tenants/tenant-id/jobs/job-id"; - String companyNameOne = "Company name, e.g. projects/your-project/companies/company-id"; - String requisitionIdOne = "Job requisition ID, aka Posting ID. Unique per job."; - String titleOne = "Software Engineer"; - String descriptionOne = "This is a description of this wonderful job!"; - String jobApplicationUrlOne = "https://www.example.org/job-posting/123"; - String addressOne = "1600 Amphitheatre Parkway, Mountain View, CA 94043"; - String languageCodeOne = "en-US"; - String jobNameTwo = "job name, e.g. projects/your-project/tenants/tenant-id/jobs/job-id"; - String companyNameTwo = "Company name, e.g. projects/your-project/companies/company-id"; - String requisitionIdTwo = "Job requisition ID, aka Posting ID. Unique per job."; - String titleTwo = "Quality Assurance"; - String descriptionTwo = "This is a description of this wonderful job!"; - String jobApplicationUrlTwo = "https://www.example.org/job-posting/123"; - String addressTwo = "111 8th Avenue, New York, NY 10011"; - String languageCodeTwo = "en-US"; - sampleBatchUpdateJobs( - projectId, - tenantId, - jobNameOne, - companyNameOne, - requisitionIdOne, - titleOne, - descriptionOne, - jobApplicationUrlOne, - addressOne, - languageCodeOne, - jobNameTwo, - companyNameTwo, - requisitionIdTwo, - titleTwo, - descriptionTwo, - jobApplicationUrlTwo, - addressTwo, - languageCodeTwo); - } - - /** - * Batch Update Jobs - * - * @param projectId Your Google Cloud Project ID - * @param tenantId Identifier of the Tenant - */ - public static void sampleBatchUpdateJobs( - String projectId, - String tenantId, - String jobNameOne, - String companyNameOne, - String requisitionIdOne, - String titleOne, - String descriptionOne, - String jobApplicationUrlOne, - String addressOne, - String languageCodeOne, - String jobNameTwo, - String companyNameTwo, - String requisitionIdTwo, - String titleTwo, - String descriptionTwo, - String jobApplicationUrlTwo, - String addressTwo, - String languageCodeTwo) { - try (JobServiceClient jobServiceClient = JobServiceClient.create()) { - String formattedParent = TenantName.format(projectId, tenantId); - List uris = Arrays.asList(jobApplicationUrlOne); - Job.ApplicationInfo applicationInfo = - Job.ApplicationInfo.newBuilder().addAllUris(uris).build(); - List addresses = Arrays.asList(addressOne); - Job jobsElement = - Job.newBuilder() - .setName(jobNameOne) - .setCompany(companyNameOne) - .setRequisitionId(requisitionIdOne) - .setTitle(titleOne) - .setDescription(descriptionOne) - .setApplicationInfo(applicationInfo) - .addAllAddresses(addresses) - .setLanguageCode(languageCodeOne) - .build(); - List uris2 = Arrays.asList(jobApplicationUrlTwo); - Job.ApplicationInfo applicationInfo2 = - Job.ApplicationInfo.newBuilder().addAllUris(uris2).build(); - List addresses2 = Arrays.asList(addressTwo); - Job jobsElement2 = - Job.newBuilder() - .setName(jobNameTwo) - .setCompany(companyNameTwo) - .setRequisitionId(requisitionIdTwo) - .setTitle(titleTwo) - .setDescription(descriptionTwo) - .setApplicationInfo(applicationInfo2) - .addAllAddresses(addresses2) - .setLanguageCode(languageCodeTwo) - .build(); - List jobs = Arrays.asList(jobsElement, jobsElement2); - BatchUpdateJobsRequest request = - BatchUpdateJobsRequest.newBuilder().setParent(formattedParent).addAllJobs(jobs).build(); - OperationFuture future = - jobServiceClient.batchUpdateJobsAsync(request); - - System.out.println("Waiting for operation to complete..."); - JobOperationResult response = future.get(); - System.out.printf("Batch response: %s\n", response); - } catch (Exception exception) { - System.err.println("Failed to create the client due to: " + exception); - } - } - // [END job_search_batch_update_jobs] - - public static void main(String[] args) throws Exception { - Options options = new Options(); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("job_name_one").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("company_name_one").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("requisition_id_one").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("title_one").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("description_one").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("job_application_url_one").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("address_one").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("language_code_one").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("job_name_two").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("company_name_two").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("requisition_id_two").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("title_two").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("description_two").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("job_application_url_two").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("address_two").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("language_code_two").build()); - - CommandLine cl = (new DefaultParser()).parse(options, args); - String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); - String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); - String jobNameOne = - cl.getOptionValue( - "job_name_one", "job name, e.g. projects/your-project/tenants/tenant-id/jobs/job-id"); - String companyNameOne = - cl.getOptionValue( - "company_name_one", "Company name, e.g. projects/your-project/companies/company-id"); - String requisitionIdOne = - cl.getOptionValue( - "requisition_id_one", "Job requisition ID, aka Posting ID. Unique per job."); - String titleOne = cl.getOptionValue("title_one", "Software Engineer"); - String descriptionOne = - cl.getOptionValue("description_one", "This is a description of this wonderful job!"); - String jobApplicationUrlOne = - cl.getOptionValue("job_application_url_one", "https://www.example.org/job-posting/123"); - String addressOne = - cl.getOptionValue("address_one", "1600 Amphitheatre Parkway, Mountain View, CA 94043"); - String languageCodeOne = cl.getOptionValue("language_code_one", "en-US"); - String jobNameTwo = - cl.getOptionValue( - "job_name_two", "job name, e.g. projects/your-project/tenants/tenant-id/jobs/job-id"); - String companyNameTwo = - cl.getOptionValue( - "company_name_two", "Company name, e.g. projects/your-project/companies/company-id"); - String requisitionIdTwo = - cl.getOptionValue( - "requisition_id_two", "Job requisition ID, aka Posting ID. Unique per job."); - String titleTwo = cl.getOptionValue("title_two", "Quality Assurance"); - String descriptionTwo = - cl.getOptionValue("description_two", "This is a description of this wonderful job!"); - String jobApplicationUrlTwo = - cl.getOptionValue("job_application_url_two", "https://www.example.org/job-posting/123"); - String addressTwo = cl.getOptionValue("address_two", "111 8th Avenue, New York, NY 10011"); - String languageCodeTwo = cl.getOptionValue("language_code_two", "en-US"); - - sampleBatchUpdateJobs( - projectId, - tenantId, - jobNameOne, - companyNameOne, - requisitionIdOne, - titleOne, - descriptionOne, - jobApplicationUrlOne, - addressOne, - languageCodeOne, - jobNameTwo, - companyNameTwo, - requisitionIdTwo, - titleTwo, - descriptionTwo, - jobApplicationUrlTwo, - addressTwo, - languageCodeTwo); - } -} diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCommuteSearch.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCommuteSearch.java deleted file mode 100644 index 7f2c5fce366..00000000000 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCommuteSearch.java +++ /dev/null @@ -1,119 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ -package com.google.cloud.examples.talent.v4beta1; - -import com.google.cloud.talent.v4beta1.CommuteFilter; -import com.google.cloud.talent.v4beta1.CommuteMethod; -import com.google.cloud.talent.v4beta1.Job; -import com.google.cloud.talent.v4beta1.JobQuery; -import com.google.cloud.talent.v4beta1.JobServiceClient; -import com.google.cloud.talent.v4beta1.RequestMetadata; -import com.google.cloud.talent.v4beta1.SearchJobsRequest; -import com.google.cloud.talent.v4beta1.TenantName; -import com.google.cloud.talent.v4beta1.TenantOrProjectName; -import com.google.protobuf.Duration; -import com.google.type.LatLng; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; - -public class JobSearchCommuteSearch { - // [START job_search_commute_search] - /* - * Please include the following imports to run this sample. - * - * import com.google.cloud.talent.v4beta1.CommuteFilter; - * import com.google.cloud.talent.v4beta1.CommuteMethod; - * import com.google.cloud.talent.v4beta1.Job; - * import com.google.cloud.talent.v4beta1.JobQuery; - * import com.google.cloud.talent.v4beta1.JobServiceClient; - * import com.google.cloud.talent.v4beta1.RequestMetadata; - * import com.google.cloud.talent.v4beta1.SearchJobsRequest; - * import com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob; - * import com.google.cloud.talent.v4beta1.TenantName; - * import com.google.cloud.talent.v4beta1.TenantOrProjectName; - * import com.google.protobuf.Duration; - * import com.google.type.LatLng; - */ - - public static void sampleSearchJobs() { - // TODO(developer): Replace these variables before running the sample. - String projectId = "Your Google Cloud Project ID"; - String tenantId = "Your Tenant ID (using tenancy is optional)"; - sampleSearchJobs(projectId, tenantId); - } - - /** Search Jobs using commute distance */ - public static void sampleSearchJobs(String projectId, String tenantId) { - try (JobServiceClient jobServiceClient = JobServiceClient.create()) { - TenantOrProjectName parent = TenantName.of(projectId, tenantId); - String domain = "www.example.com"; - String sessionId = "Hashed session identifier"; - String userId = "Hashed user identifier"; - RequestMetadata requestMetadata = - RequestMetadata.newBuilder() - .setDomain(domain) - .setSessionId(sessionId) - .setUserId(userId) - .build(); - CommuteMethod commuteMethod = CommuteMethod.TRANSIT; - long seconds = 1800L; - Duration travelDuration = Duration.newBuilder().setSeconds(seconds).build(); - double latitude = 37.422408; - double longitude = -122.084068; - LatLng startCoordinates = - LatLng.newBuilder().setLatitude(latitude).setLongitude(longitude).build(); - CommuteFilter commuteFilter = - CommuteFilter.newBuilder() - .setCommuteMethod(commuteMethod) - .setTravelDuration(travelDuration) - .setStartCoordinates(startCoordinates) - .build(); - JobQuery jobQuery = JobQuery.newBuilder().setCommuteFilter(commuteFilter).build(); - SearchJobsRequest request = - SearchJobsRequest.newBuilder() - .setParent(parent.toString()) - .setRequestMetadata(requestMetadata) - .setJobQuery(jobQuery) - .build(); - for (SearchJobsResponse.MatchingJob responseItem : - jobServiceClient.searchJobs(request).iterateAll()) { - System.out.printf("Job summary: %s\n", responseItem.getJobSummary()); - System.out.printf("Job title snippet: %s\n", responseItem.getJobTitleSnippet()); - Job job = responseItem.getJob(); - System.out.printf("Job name: %s\n", job.getName()); - System.out.printf("Job title: %s\n", job.getTitle()); - } - } catch (Exception exception) { - System.err.println("Failed to create the client due to: " + exception); - } - } - // [END job_search_commute_search] - - public static void main(String[] args) throws Exception { - Options options = new Options(); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); - - CommandLine cl = (new DefaultParser()).parse(options, args); - String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); - String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); - - sampleSearchJobs(projectId, tenantId); - } -} diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateClientEvent.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateClientEvent.java deleted file mode 100644 index 4d4faa4ef3f..00000000000 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateClientEvent.java +++ /dev/null @@ -1,124 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.examples.talent.v4beta1; - -import com.google.cloud.talent.v4beta1.ClientEvent; -import com.google.cloud.talent.v4beta1.CreateClientEventRequest; -import com.google.cloud.talent.v4beta1.EventServiceClient; -import com.google.cloud.talent.v4beta1.JobEvent; -import com.google.cloud.talent.v4beta1.TenantName; -import com.google.cloud.talent.v4beta1.TenantOrProjectName; -import com.google.protobuf.Timestamp; -import java.util.Arrays; -import java.util.List; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; - -public class JobSearchCreateClientEvent { - // [START job_search_create_client_event] - /* - * Please include the following imports to run this sample. - * - * import com.google.cloud.talent.v4beta1.ClientEvent; - * import com.google.cloud.talent.v4beta1.CreateClientEventRequest; - * import com.google.cloud.talent.v4beta1.EventServiceClient; - * import com.google.cloud.talent.v4beta1.JobEvent; - * import com.google.cloud.talent.v4beta1.TenantName; - * import com.google.cloud.talent.v4beta1.TenantOrProjectName; - * import com.google.protobuf.Timestamp; - * import java.util.Arrays; - * import java.util.List; - */ - - public static void sampleCreateClientEvent() { - // TODO(developer): Replace these variables before running the sample. - String projectId = "Your Google Cloud Project ID"; - String tenantId = "Your Tenant ID (using tenancy is optional)"; - String requestId = "[request_id from ResponseMetadata]"; - String eventId = "[Set this to a unique identifier]"; - sampleCreateClientEvent(projectId, tenantId, requestId, eventId); - } - - /** - * Creates a client event - * - * @param projectId Your Google Cloud Project ID - * @param tenantId Identifier of the Tenant - * @param requestId A unique ID generated in the API responses. Value should be set to the - * request_id from an API response. - * @param eventId A unique identifier, generated by the client application - */ - public static void sampleCreateClientEvent( - String projectId, String tenantId, String requestId, String eventId) { - try (EventServiceClient eventServiceClient = EventServiceClient.create()) { - TenantOrProjectName parent = TenantName.of(projectId, tenantId); - - // The timestamp of the event as seconds of UTC time since Unix epoch - // For more information on how to create google.protobuf.Timestamps - // See: - // https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/timestamp.proto - long seconds = 0L; - Timestamp createTime = Timestamp.newBuilder().setSeconds(seconds).build(); - - // The type of event attributed to the behavior of the end user - JobEvent.JobEventType type = JobEvent.JobEventType.VIEW; - - // List of job names associated with this event - String jobsElement = "projects/[Project ID]/tenants/[Tenant ID]/jobs/[Job ID]"; - String jobsElement2 = "projects/[Project ID]/tenants/[Tenant ID]/jobs/[Job ID]"; - List jobs = Arrays.asList(jobsElement, jobsElement2); - JobEvent jobEvent = JobEvent.newBuilder().setType(type).addAllJobs(jobs).build(); - ClientEvent clientEvent = - ClientEvent.newBuilder() - .setRequestId(requestId) - .setEventId(eventId) - .setCreateTime(createTime) - .setJobEvent(jobEvent) - .build(); - CreateClientEventRequest request = - CreateClientEventRequest.newBuilder() - .setParent(parent.toString()) - .setClientEvent(clientEvent) - .build(); - ClientEvent response = eventServiceClient.createClientEvent(request); - System.out.println("Created client event"); - } catch (Exception exception) { - System.err.println("Failed to create the client due to: " + exception); - } - } - // [END job_search_create_client_event] - - public static void main(String[] args) throws Exception { - Options options = new Options(); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("request_id").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("event_id").build()); - - CommandLine cl = (new DefaultParser()).parse(options, args); - String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); - String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); - String requestId = cl.getOptionValue("request_id", "[request_id from ResponseMetadata]"); - String eventId = cl.getOptionValue("event_id", "[Set this to a unique identifier]"); - - sampleCreateClientEvent(projectId, tenantId, requestId, eventId); - } -} diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateCompany.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateCompany.java deleted file mode 100644 index 86009221c38..00000000000 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateCompany.java +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.examples.talent.v4beta1; - -import com.google.cloud.talent.v4beta1.Company; -import com.google.cloud.talent.v4beta1.CompanyServiceClient; -import com.google.cloud.talent.v4beta1.CreateCompanyRequest; -import com.google.cloud.talent.v4beta1.TenantName; -import com.google.cloud.talent.v4beta1.TenantOrProjectName; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; - -public class JobSearchCreateCompany { - // [START job_search_create_company] - /* - * Please include the following imports to run this sample. - * - * import com.google.cloud.talent.v4beta1.Company; - * import com.google.cloud.talent.v4beta1.CompanyServiceClient; - * import com.google.cloud.talent.v4beta1.CreateCompanyRequest; - * import com.google.cloud.talent.v4beta1.TenantName; - * import com.google.cloud.talent.v4beta1.TenantOrProjectName; - */ - - public static void sampleCreateCompany() { - // TODO(developer): Replace these variables before running the sample. - String projectId = "Your Google Cloud Project ID"; - String tenantId = "Your Tenant ID (using tenancy is optional)"; - String displayName = "My Company Name"; - String externalId = "Identifier of this company in my system"; - sampleCreateCompany(projectId, tenantId, displayName, externalId); - } - - /** - * Create Company - * - * @param projectId Your Google Cloud Project ID - * @param tenantId Identifier of the Tenant - */ - public static void sampleCreateCompany( - String projectId, String tenantId, String displayName, String externalId) { - try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { - TenantOrProjectName parent = TenantName.of(projectId, tenantId); - Company company = - Company.newBuilder().setDisplayName(displayName).setExternalId(externalId).build(); - CreateCompanyRequest request = - CreateCompanyRequest.newBuilder() - .setParent(parent.toString()) - .setCompany(company) - .build(); - Company response = companyServiceClient.createCompany(request); - System.out.println("Created Company"); - System.out.printf("Name: %s\n", response.getName()); - System.out.printf("Display Name: %s\n", response.getDisplayName()); - System.out.printf("External ID: %s\n", response.getExternalId()); - } catch (Exception exception) { - System.err.println("Failed to create the client due to: " + exception); - } - } - // [END job_search_create_company] - - public static void main(String[] args) throws Exception { - Options options = new Options(); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("display_name").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("external_id").build()); - - CommandLine cl = (new DefaultParser()).parse(options, args); - String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); - String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); - String displayName = cl.getOptionValue("display_name", "My Company Name"); - String externalId = cl.getOptionValue("external_id", "Identifier of this company in my system"); - - sampleCreateCompany(projectId, tenantId, displayName, externalId); - } -} diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJob.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJob.java deleted file mode 100644 index 88322015318..00000000000 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJob.java +++ /dev/null @@ -1,165 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.examples.talent.v4beta1; - -import com.google.cloud.talent.v4beta1.CreateJobRequest; -import com.google.cloud.talent.v4beta1.Job; -import com.google.cloud.talent.v4beta1.JobServiceClient; -import com.google.cloud.talent.v4beta1.TenantName; -import com.google.cloud.talent.v4beta1.TenantOrProjectName; -import java.util.Arrays; -import java.util.List; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; - -public class JobSearchCreateJob { - // [START job_search_create_job] - /* - * Please include the following imports to run this sample. - * - * import com.google.cloud.talent.v4beta1.CreateJobRequest; - * import com.google.cloud.talent.v4beta1.Job; - * import com.google.cloud.talent.v4beta1.Job.ApplicationInfo; - * import com.google.cloud.talent.v4beta1.JobServiceClient; - * import com.google.cloud.talent.v4beta1.TenantName; - * import com.google.cloud.talent.v4beta1.TenantOrProjectName; - * import java.util.Arrays; - * import java.util.List; - */ - - public static void sampleCreateJob() { - // TODO(developer): Replace these variables before running the sample. - String projectId = "Your Google Cloud Project ID"; - String tenantId = "Your Tenant ID (using tenancy is optional)"; - String companyName = "Company name, e.g. projects/your-project/companies/company-id"; - String requisitionId = "Job requisition ID, aka Posting ID. Unique per job."; - String title = "Software Engineer"; - String description = "This is a description of this wonderful job!"; - String jobApplicationUrl = "https://www.example.org/job-posting/123"; - String addressOne = "1600 Amphitheatre Parkway, Mountain View, CA 94043"; - String addressTwo = "111 8th Avenue, New York, NY 10011"; - String languageCode = "en-US"; - sampleCreateJob( - projectId, - tenantId, - companyName, - requisitionId, - title, - description, - jobApplicationUrl, - addressOne, - addressTwo, - languageCode); - } - - /** - * Create Job - * - * @param projectId Your Google Cloud Project ID - * @param tenantId Identifier of the Tenant - */ - public static void sampleCreateJob( - String projectId, - String tenantId, - String companyName, - String requisitionId, - String title, - String description, - String jobApplicationUrl, - String addressOne, - String addressTwo, - String languageCode) { - try (JobServiceClient jobServiceClient = JobServiceClient.create()) { - TenantOrProjectName parent = TenantName.of(projectId, tenantId); - List uris = Arrays.asList(jobApplicationUrl); - Job.ApplicationInfo applicationInfo = - Job.ApplicationInfo.newBuilder().addAllUris(uris).build(); - List addresses = Arrays.asList(addressOne, addressTwo); - Job job = - Job.newBuilder() - .setCompany(companyName) - .setRequisitionId(requisitionId) - .setTitle(title) - .setDescription(description) - .setApplicationInfo(applicationInfo) - .addAllAddresses(addresses) - .setLanguageCode(languageCode) - .build(); - CreateJobRequest request = - CreateJobRequest.newBuilder().setParent(parent.toString()).setJob(job).build(); - Job response = jobServiceClient.createJob(request); - System.out.printf("Created job: %s\n", response.getName()); - } catch (Exception exception) { - System.err.println("Failed to create the client due to: " + exception); - } - } - // [END job_search_create_job] - - public static void main(String[] args) throws Exception { - Options options = new Options(); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("company_name").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("requisition_id").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("title").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("description").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("job_application_url").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("address_one").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("address_two").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("language_code").build()); - - CommandLine cl = (new DefaultParser()).parse(options, args); - String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); - String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); - String companyName = - cl.getOptionValue( - "company_name", "Company name, e.g. projects/your-project/companies/company-id"); - String requisitionId = - cl.getOptionValue("requisition_id", "Job requisition ID, aka Posting ID. Unique per job."); - String title = cl.getOptionValue("title", "Software Engineer"); - String description = - cl.getOptionValue("description", "This is a description of this wonderful job!"); - String jobApplicationUrl = - cl.getOptionValue("job_application_url", "https://www.example.org/job-posting/123"); - String addressOne = - cl.getOptionValue("address_one", "1600 Amphitheatre Parkway, Mountain View, CA 94043"); - String addressTwo = cl.getOptionValue("address_two", "111 8th Avenue, New York, NY 10011"); - String languageCode = cl.getOptionValue("language_code", "en-US"); - - sampleCreateJob( - projectId, - tenantId, - companyName, - requisitionId, - title, - description, - jobApplicationUrl, - addressOne, - addressTwo, - languageCode); - } -} diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJobCustomAttributes.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJobCustomAttributes.java deleted file mode 100644 index cbd7c1d5ca5..00000000000 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateJobCustomAttributes.java +++ /dev/null @@ -1,105 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.examples.talent.v4beta1; - -import com.google.cloud.talent.v4beta1.CreateJobRequest; -import com.google.cloud.talent.v4beta1.Job; -import com.google.cloud.talent.v4beta1.JobServiceClient; -import com.google.cloud.talent.v4beta1.TenantName; -import com.google.cloud.talent.v4beta1.TenantOrProjectName; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; - -public class JobSearchCreateJobCustomAttributes { - // [START job_search_create_job_custom_attributes] - /* - * Please include the following imports to run this sample. - * - * import com.google.cloud.talent.v4beta1.CreateJobRequest; - * import com.google.cloud.talent.v4beta1.Job; - * import com.google.cloud.talent.v4beta1.JobServiceClient; - * import com.google.cloud.talent.v4beta1.TenantName; - * import com.google.cloud.talent.v4beta1.TenantOrProjectName; - */ - - public static void sampleCreateJob() { - // TODO(developer): Replace these variables before running the sample. - String projectId = "Your Google Cloud Project ID"; - String tenantId = "Your Tenant ID (using tenancy is optional)"; - String companyName = "Company name, e.g. projects/your-project/companies/company-id"; - String requisitionId = "Job requisition ID, aka Posting ID. Unique per job."; - String languageCode = "en-US"; - sampleCreateJob(projectId, tenantId, companyName, requisitionId, languageCode); - } - - /** - * Create Job with Custom Attributes - * - * @param projectId Your Google Cloud Project ID - * @param tenantId Identifier of the Tenantd - */ - public static void sampleCreateJob( - String projectId, - String tenantId, - String companyName, - String requisitionId, - String languageCode) { - try (JobServiceClient jobServiceClient = JobServiceClient.create()) { - TenantOrProjectName parent = TenantName.of(projectId, tenantId); - Job job = - Job.newBuilder() - .setCompany(companyName) - .setRequisitionId(requisitionId) - .setLanguageCode(languageCode) - .build(); - CreateJobRequest request = - CreateJobRequest.newBuilder().setParent(parent.toString()).setJob(job).build(); - Job response = jobServiceClient.createJob(request); - System.out.printf("Created job: %s\n", response.getName()); - } catch (Exception exception) { - System.err.println("Failed to create the client due to: " + exception); - } - } - // [END job_search_create_job_custom_attributes] - - public static void main(String[] args) throws Exception { - Options options = new Options(); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("company_name").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("requisition_id").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("language_code").build()); - - CommandLine cl = (new DefaultParser()).parse(options, args); - String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); - String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); - String companyName = - cl.getOptionValue( - "company_name", "Company name, e.g. projects/your-project/companies/company-id"); - String requisitionId = - cl.getOptionValue("requisition_id", "Job requisition ID, aka Posting ID. Unique per job."); - String languageCode = cl.getOptionValue("language_code", "en-US"); - - sampleCreateJob(projectId, tenantId, companyName, requisitionId, languageCode); - } -} diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateTenant.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateTenant.java deleted file mode 100644 index a0d1775b9b2..00000000000 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCreateTenant.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.examples.talent.v4beta1; - -import com.google.cloud.talent.v4beta1.CreateTenantRequest; -import com.google.cloud.talent.v4beta1.ProjectName; -import com.google.cloud.talent.v4beta1.Tenant; -import com.google.cloud.talent.v4beta1.TenantServiceClient; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; - -public class JobSearchCreateTenant { - // [START job_search_create_tenant] - /* - * Please include the following imports to run this sample. - * - * import com.google.cloud.talent.v4beta1.CreateTenantRequest; - * import com.google.cloud.talent.v4beta1.ProjectName; - * import com.google.cloud.talent.v4beta1.Tenant; - * import com.google.cloud.talent.v4beta1.TenantServiceClient; - */ - - public static void sampleCreateTenant() { - // TODO(developer): Replace these variables before running the sample. - String projectId = "Your Google Cloud Project ID"; - String externalId = "Your Unique Identifier for Tenant"; - sampleCreateTenant(projectId, externalId); - } - - /** Create Tenant for scoping resources, e.g. companies and jobs */ - public static void sampleCreateTenant(String projectId, String externalId) { - try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { - ProjectName parent = ProjectName.of(projectId); - Tenant tenant = Tenant.newBuilder().setExternalId(externalId).build(); - CreateTenantRequest request = - CreateTenantRequest.newBuilder().setParent(parent.toString()).setTenant(tenant).build(); - Tenant response = tenantServiceClient.createTenant(request); - System.out.println("Created Tenant"); - System.out.printf("Name: %s\n", response.getName()); - System.out.printf("External ID: %s\n", response.getExternalId()); - } catch (Exception exception) { - System.err.println("Failed to create the client due to: " + exception); - } - } - // [END job_search_create_tenant] - - public static void main(String[] args) throws Exception { - Options options = new Options(); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("external_id").build()); - - CommandLine cl = (new DefaultParser()).parse(options, args); - String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); - String externalId = cl.getOptionValue("external_id", "Your Unique Identifier for Tenant"); - - sampleCreateTenant(projectId, externalId); - } -} diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCustomRankingSearch.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCustomRankingSearch.java deleted file mode 100644 index cf916999260..00000000000 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchCustomRankingSearch.java +++ /dev/null @@ -1,112 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.examples.talent.v4beta1; - -import com.google.cloud.talent.v4beta1.Job; -import com.google.cloud.talent.v4beta1.JobServiceClient; -import com.google.cloud.talent.v4beta1.RequestMetadata; -import com.google.cloud.talent.v4beta1.SearchJobsRequest; -import com.google.cloud.talent.v4beta1.TenantName; -import com.google.cloud.talent.v4beta1.TenantOrProjectName; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; - -public class JobSearchCustomRankingSearch { - // [START job_search_custom_ranking_search] - /* - * Please include the following imports to run this sample. - * - * import com.google.cloud.talent.v4beta1.Job; - * import com.google.cloud.talent.v4beta1.JobServiceClient; - * import com.google.cloud.talent.v4beta1.RequestMetadata; - * import com.google.cloud.talent.v4beta1.SearchJobsRequest; - * import com.google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo; - * import com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob; - * import com.google.cloud.talent.v4beta1.TenantName; - * import com.google.cloud.talent.v4beta1.TenantOrProjectName; - */ - - public static void sampleSearchJobs() { - // TODO(developer): Replace these variables before running the sample. - String projectId = "Your Google Cloud Project ID"; - String tenantId = "Your Tenant ID (using tenancy is optional)"; - sampleSearchJobs(projectId, tenantId); - } - - /** - * Search Jobs using custom rankings - * - * @param projectId Your Google Cloud Project ID - * @param tenantId Identifier of the Tenantd - */ - public static void sampleSearchJobs(String projectId, String tenantId) { - try (JobServiceClient jobServiceClient = JobServiceClient.create()) { - TenantOrProjectName parent = TenantName.of(projectId, tenantId); - String domain = "www.example.com"; - String sessionId = "Hashed session identifier"; - String userId = "Hashed user identifier"; - RequestMetadata requestMetadata = - RequestMetadata.newBuilder() - .setDomain(domain) - .setSessionId(sessionId) - .setUserId(userId) - .build(); - SearchJobsRequest.CustomRankingInfo.ImportanceLevel importanceLevel = - SearchJobsRequest.CustomRankingInfo.ImportanceLevel.EXTREME; - String rankingExpression = "(someFieldLong + 25) * 0.25"; - SearchJobsRequest.CustomRankingInfo customRankingInfo = - SearchJobsRequest.CustomRankingInfo.newBuilder() - .setImportanceLevel(importanceLevel) - .setRankingExpression(rankingExpression) - .build(); - String orderBy = "custom_ranking desc"; - SearchJobsRequest request = - SearchJobsRequest.newBuilder() - .setParent(parent.toString()) - .setRequestMetadata(requestMetadata) - .setCustomRankingInfo(customRankingInfo) - .setOrderBy(orderBy) - .build(); - for (SearchJobsResponse.MatchingJob responseItem : - jobServiceClient.searchJobs(request).iterateAll()) { - System.out.printf("Job summary: %s\n", responseItem.getJobSummary()); - System.out.printf("Job title snippet: %s\n", responseItem.getJobTitleSnippet()); - Job job = responseItem.getJob(); - System.out.printf("Job name: %s\n", job.getName()); - System.out.printf("Job title: %s\n", job.getTitle()); - } - } catch (Exception exception) { - System.err.println("Failed to create the client due to: " + exception); - } - } - // [END job_search_custom_ranking_search] - - public static void main(String[] args) throws Exception { - Options options = new Options(); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); - - CommandLine cl = (new DefaultParser()).parse(options, args); - String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); - String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); - - sampleSearchJobs(projectId, tenantId); - } -} diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteCompany.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteCompany.java deleted file mode 100644 index c4ef8acb657..00000000000 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteCompany.java +++ /dev/null @@ -1,76 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.examples.talent.v4beta1; - -import com.google.cloud.talent.v4beta1.CompanyName; -import com.google.cloud.talent.v4beta1.CompanyServiceClient; -import com.google.cloud.talent.v4beta1.CompanyWithTenantName; -import com.google.cloud.talent.v4beta1.DeleteCompanyRequest; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; - -public class JobSearchDeleteCompany { - // [START job_search_delete_company] - /* - * Please include the following imports to run this sample. - * - * import com.google.cloud.talent.v4beta1.CompanyName; - * import com.google.cloud.talent.v4beta1.CompanyServiceClient; - * import com.google.cloud.talent.v4beta1.CompanyWithTenantName; - * import com.google.cloud.talent.v4beta1.DeleteCompanyRequest; - */ - - public static void sampleDeleteCompany() { - // TODO(developer): Replace these variables before running the sample. - String projectId = "Your Google Cloud Project ID"; - String tenantId = "Your Tenant ID (using tenancy is optional)"; - String companyId = "ID of the company to delete"; - sampleDeleteCompany(projectId, tenantId, companyId); - } - - /** Delete Company */ - public static void sampleDeleteCompany(String projectId, String tenantId, String companyId) { - try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { - CompanyName name = CompanyWithTenantName.of(projectId, tenantId, companyId); - DeleteCompanyRequest request = - DeleteCompanyRequest.newBuilder().setName(name.toString()).build(); - companyServiceClient.deleteCompany(request); - System.out.println("Deleted company"); - } catch (Exception exception) { - System.err.println("Failed to create the client due to: " + exception); - } - } - // [END job_search_delete_company] - - public static void main(String[] args) throws Exception { - Options options = new Options(); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("company_id").build()); - - CommandLine cl = (new DefaultParser()).parse(options, args); - String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); - String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); - String companyId = cl.getOptionValue("company_id", "ID of the company to delete"); - - sampleDeleteCompany(projectId, tenantId, companyId); - } -} diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteJob.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteJob.java deleted file mode 100644 index ded170c624c..00000000000 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteJob.java +++ /dev/null @@ -1,74 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.examples.talent.v4beta1; - -import com.google.cloud.talent.v4beta1.DeleteJobRequest; -import com.google.cloud.talent.v4beta1.JobName; -import com.google.cloud.talent.v4beta1.JobServiceClient; -import com.google.cloud.talent.v4beta1.JobWithTenantName; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; - -public class JobSearchDeleteJob { - // [START job_search_delete_job] - /* - * Please include the following imports to run this sample. - * - * import com.google.cloud.talent.v4beta1.DeleteJobRequest; - * import com.google.cloud.talent.v4beta1.JobName; - * import com.google.cloud.talent.v4beta1.JobServiceClient; - * import com.google.cloud.talent.v4beta1.JobWithTenantName; - */ - - public static void sampleDeleteJob() { - // TODO(developer): Replace these variables before running the sample. - String projectId = "Your Google Cloud Project ID"; - String tenantId = "Your Tenant ID (using tenancy is optional)"; - String jobId = "Company ID"; - sampleDeleteJob(projectId, tenantId, jobId); - } - - /** Delete Job */ - public static void sampleDeleteJob(String projectId, String tenantId, String jobId) { - try (JobServiceClient jobServiceClient = JobServiceClient.create()) { - JobName name = JobWithTenantName.of(projectId, tenantId, jobId); - DeleteJobRequest request = DeleteJobRequest.newBuilder().setName(name.toString()).build(); - jobServiceClient.deleteJob(request); - System.out.println("Deleted job."); - } catch (Exception exception) { - System.err.println("Failed to create the client due to: " + exception); - } - } - // [END job_search_delete_job] - - public static void main(String[] args) throws Exception { - Options options = new Options(); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("job_id").build()); - - CommandLine cl = (new DefaultParser()).parse(options, args); - String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); - String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); - String jobId = cl.getOptionValue("job_id", "Company ID"); - - sampleDeleteJob(projectId, tenantId, jobId); - } -} diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteTenant.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteTenant.java deleted file mode 100644 index 95dac1df344..00000000000 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchDeleteTenant.java +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.examples.talent.v4beta1; - -import com.google.cloud.talent.v4beta1.DeleteTenantRequest; -import com.google.cloud.talent.v4beta1.TenantName; -import com.google.cloud.talent.v4beta1.TenantServiceClient; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; - -public class JobSearchDeleteTenant { - // [START job_search_delete_tenant] - /* - * Please include the following imports to run this sample. - * - * import com.google.cloud.talent.v4beta1.DeleteTenantRequest; - * import com.google.cloud.talent.v4beta1.TenantName; - * import com.google.cloud.talent.v4beta1.TenantServiceClient; - */ - - public static void sampleDeleteTenant() { - // TODO(developer): Replace these variables before running the sample. - String projectId = "Your Google Cloud Project ID"; - String tenantId = "Your Tenant ID)"; - sampleDeleteTenant(projectId, tenantId); - } - - /** Delete Tenant */ - public static void sampleDeleteTenant(String projectId, String tenantId) { - try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { - TenantName name = TenantName.of(projectId, tenantId); - DeleteTenantRequest request = - DeleteTenantRequest.newBuilder().setName(name.toString()).build(); - tenantServiceClient.deleteTenant(request); - System.out.println("Deleted Tenant."); - } catch (Exception exception) { - System.err.println("Failed to create the client due to: " + exception); - } - } - // [END job_search_delete_tenant] - - public static void main(String[] args) throws Exception { - Options options = new Options(); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); - - CommandLine cl = (new DefaultParser()).parse(options, args); - String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); - String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID)"); - - sampleDeleteTenant(projectId, tenantId); - } -} diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetCompany.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetCompany.java deleted file mode 100644 index 2fcf1721cf8..00000000000 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetCompany.java +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.examples.talent.v4beta1; - -import com.google.cloud.talent.v4beta1.Company; -import com.google.cloud.talent.v4beta1.CompanyName; -import com.google.cloud.talent.v4beta1.CompanyServiceClient; -import com.google.cloud.talent.v4beta1.CompanyWithTenantName; -import com.google.cloud.talent.v4beta1.GetCompanyRequest; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; - -public class JobSearchGetCompany { - // [START job_search_get_company] - /* - * Please include the following imports to run this sample. - * - * import com.google.cloud.talent.v4beta1.Company; - * import com.google.cloud.talent.v4beta1.CompanyName; - * import com.google.cloud.talent.v4beta1.CompanyServiceClient; - * import com.google.cloud.talent.v4beta1.CompanyWithTenantName; - * import com.google.cloud.talent.v4beta1.GetCompanyRequest; - */ - - public static void sampleGetCompany() { - // TODO(developer): Replace these variables before running the sample. - String projectId = "Your Google Cloud Project ID"; - String tenantId = "Your Tenant ID (using tenancy is optional)"; - String companyId = "Company ID"; - sampleGetCompany(projectId, tenantId, companyId); - } - - /** Get Company */ - public static void sampleGetCompany(String projectId, String tenantId, String companyId) { - try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { - CompanyName name = CompanyWithTenantName.of(projectId, tenantId, companyId); - GetCompanyRequest request = GetCompanyRequest.newBuilder().setName(name.toString()).build(); - Company response = companyServiceClient.getCompany(request); - System.out.printf("Company name: %s\n", response.getName()); - System.out.printf("Display name: %s\n", response.getDisplayName()); - } catch (Exception exception) { - System.err.println("Failed to create the client due to: " + exception); - } - } - // [END job_search_get_company] - - public static void main(String[] args) throws Exception { - Options options = new Options(); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("company_id").build()); - - CommandLine cl = (new DefaultParser()).parse(options, args); - String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); - String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); - String companyId = cl.getOptionValue("company_id", "Company ID"); - - sampleGetCompany(projectId, tenantId, companyId); - } -} diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetJob.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetJob.java deleted file mode 100644 index fbc92ccbe3a..00000000000 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetJob.java +++ /dev/null @@ -1,89 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.examples.talent.v4beta1; - -import com.google.cloud.talent.v4beta1.GetJobRequest; -import com.google.cloud.talent.v4beta1.Job; -import com.google.cloud.talent.v4beta1.JobName; -import com.google.cloud.talent.v4beta1.JobServiceClient; -import com.google.cloud.talent.v4beta1.JobWithTenantName; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; - -public class JobSearchGetJob { - // [START job_search_get_job] - /* - * Please include the following imports to run this sample. - * - * import com.google.cloud.talent.v4beta1.GetJobRequest; - * import com.google.cloud.talent.v4beta1.Job; - * import com.google.cloud.talent.v4beta1.JobName; - * import com.google.cloud.talent.v4beta1.JobServiceClient; - * import com.google.cloud.talent.v4beta1.JobWithTenantName; - */ - - public static void sampleGetJob() { - // TODO(developer): Replace these variables before running the sample. - String projectId = "Your Google Cloud Project ID"; - String tenantId = "Your Tenant ID (using tenancy is optional)"; - String jobId = "Job ID"; - sampleGetJob(projectId, tenantId, jobId); - } - - /** Get Job */ - public static void sampleGetJob(String projectId, String tenantId, String jobId) { - try (JobServiceClient jobServiceClient = JobServiceClient.create()) { - JobName name = JobWithTenantName.of(projectId, tenantId, jobId); - GetJobRequest request = GetJobRequest.newBuilder().setName(name.toString()).build(); - Job response = jobServiceClient.getJob(request); - System.out.printf("Job name: %s\n", response.getName()); - System.out.printf("Requisition ID: %s\n", response.getRequisitionId()); - System.out.printf("Title: %s\n", response.getTitle()); - System.out.printf("Description: %s\n", response.getDescription()); - System.out.printf("Posting language: %s\n", response.getLanguageCode()); - for (String address : response.getAddressesList()) { - System.out.printf("Address: %s\n", address); - } - for (String email : response.getApplicationInfo().getEmailsList()) { - System.out.printf("Email: %s\n", email); - } - for (String websiteUri : response.getApplicationInfo().getUrisList()) { - System.out.printf("Website: %s\n", websiteUri); - } - } catch (Exception exception) { - System.err.println("Failed to create the client due to: " + exception); - } - } - // [END job_search_get_job] - - public static void main(String[] args) throws Exception { - Options options = new Options(); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("job_id").build()); - - CommandLine cl = (new DefaultParser()).parse(options, args); - String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); - String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); - String jobId = cl.getOptionValue("job_id", "Job ID"); - - sampleGetJob(projectId, tenantId, jobId); - } -} diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetTenant.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetTenant.java deleted file mode 100644 index 86830cf9031..00000000000 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchGetTenant.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.examples.talent.v4beta1; - -import com.google.cloud.talent.v4beta1.GetTenantRequest; -import com.google.cloud.talent.v4beta1.Tenant; -import com.google.cloud.talent.v4beta1.TenantName; -import com.google.cloud.talent.v4beta1.TenantServiceClient; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; - -public class JobSearchGetTenant { - // [START job_search_get_tenant] - /* - * Please include the following imports to run this sample. - * - * import com.google.cloud.talent.v4beta1.GetTenantRequest; - * import com.google.cloud.talent.v4beta1.Tenant; - * import com.google.cloud.talent.v4beta1.TenantName; - * import com.google.cloud.talent.v4beta1.TenantServiceClient; - */ - - public static void sampleGetTenant() { - // TODO(developer): Replace these variables before running the sample. - String projectId = "Your Google Cloud Project ID"; - String tenantId = "Your Tenant ID"; - sampleGetTenant(projectId, tenantId); - } - - /** Get Tenant by name */ - public static void sampleGetTenant(String projectId, String tenantId) { - try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { - TenantName name = TenantName.of(projectId, tenantId); - GetTenantRequest request = GetTenantRequest.newBuilder().setName(name.toString()).build(); - Tenant response = tenantServiceClient.getTenant(request); - System.out.printf("Name: %s\n", response.getName()); - System.out.printf("External ID: %s\n", response.getExternalId()); - } catch (Exception exception) { - System.err.println("Failed to create the client due to: " + exception); - } - } - // [END job_search_get_tenant] - - public static void main(String[] args) throws Exception { - Options options = new Options(); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); - - CommandLine cl = (new DefaultParser()).parse(options, args); - String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); - String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID"); - - sampleGetTenant(projectId, tenantId); - } -} diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchHistogramSearch.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchHistogramSearch.java deleted file mode 100644 index 877cb4306df..00000000000 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchHistogramSearch.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.examples.talent.v4beta1; - -import com.google.cloud.talent.v4beta1.HistogramQuery; -import com.google.cloud.talent.v4beta1.Job; -import com.google.cloud.talent.v4beta1.JobServiceClient; -import com.google.cloud.talent.v4beta1.RequestMetadata; -import com.google.cloud.talent.v4beta1.SearchJobsRequest; -import com.google.cloud.talent.v4beta1.TenantName; -import com.google.cloud.talent.v4beta1.TenantOrProjectName; -import java.util.Arrays; -import java.util.List; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; - -public class JobSearchHistogramSearch { - // [START job_search_histogram_search] - /* - * Please include the following imports to run this sample. - * - * import com.google.cloud.talent.v4beta1.HistogramQuery; - * import com.google.cloud.talent.v4beta1.Job; - * import com.google.cloud.talent.v4beta1.JobServiceClient; - * import com.google.cloud.talent.v4beta1.RequestMetadata; - * import com.google.cloud.talent.v4beta1.SearchJobsRequest; - * import com.google.cloud.talent.v4beta1.SearchJobsResponse.MatchingJob; - * import com.google.cloud.talent.v4beta1.TenantName; - * import com.google.cloud.talent.v4beta1.TenantOrProjectName; - * import java.util.Arrays; - * import java.util.List; - */ - - public static void sampleSearchJobs() { - // TODO(developer): Replace these variables before running the sample. - String projectId = "Your Google Cloud Project ID"; - String tenantId = "Your Tenant ID (using tenancy is optional)"; - String query = "count(base_compensation, [bucket(12, 20)])"; - sampleSearchJobs(projectId, tenantId, query); - } - - /** - * Search Jobs with histogram queries - * - * @param query Histogram query More info on histogram facets, constants, and built-in functions: - * https://godoc.org/google.golang.org/genproto/googleapis/cloud/talent/v4beta1#SearchJobsRequest - */ - public static void sampleSearchJobs(String projectId, String tenantId, String query) { - try (JobServiceClient jobServiceClient = JobServiceClient.create()) { - TenantOrProjectName parent = TenantName.of(projectId, tenantId); - String domain = "www.example.com"; - String sessionId = "Hashed session identifier"; - String userId = "Hashed user identifier"; - RequestMetadata requestMetadata = - RequestMetadata.newBuilder() - .setDomain(domain) - .setSessionId(sessionId) - .setUserId(userId) - .build(); - HistogramQuery histogramQueriesElement = - HistogramQuery.newBuilder().setHistogramQuery(query).build(); - List histogramQueries = Arrays.asList(histogramQueriesElement); - SearchJobsRequest request = - SearchJobsRequest.newBuilder() - .setParent(parent.toString()) - .setRequestMetadata(requestMetadata) - .addAllHistogramQueries(histogramQueries) - .build(); - for (SearchJobsResponse.MatchingJob responseItem : - jobServiceClient.searchJobs(request).iterateAll()) { - System.out.printf("Job summary: %s\n", responseItem.getJobSummary()); - System.out.printf("Job title snippet: %s\n", responseItem.getJobTitleSnippet()); - Job job = responseItem.getJob(); - System.out.printf("Job name: %s\n", job.getName()); - System.out.printf("Job title: %s\n", job.getTitle()); - } - } catch (Exception exception) { - System.err.println("Failed to create the client due to: " + exception); - } - } - // [END job_search_histogram_search] - - public static void main(String[] args) throws Exception { - Options options = new Options(); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("query").build()); - - CommandLine cl = (new DefaultParser()).parse(options, args); - String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); - String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); - String query = cl.getOptionValue("query", "count(base_compensation, [bucket(12, 20)])"); - - sampleSearchJobs(projectId, tenantId, query); - } -} diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListCompanies.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListCompanies.java deleted file mode 100644 index 3c5f9df1dbb..00000000000 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListCompanies.java +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.examples.talent.v4beta1; - -import com.google.cloud.talent.v4beta1.Company; -import com.google.cloud.talent.v4beta1.CompanyServiceClient; -import com.google.cloud.talent.v4beta1.ListCompaniesRequest; -import com.google.cloud.talent.v4beta1.TenantName; -import com.google.cloud.talent.v4beta1.TenantOrProjectName; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; - -public class JobSearchListCompanies { - // [START job_search_list_companies] - /* - * Please include the following imports to run this sample. - * - * import com.google.cloud.talent.v4beta1.Company; - * import com.google.cloud.talent.v4beta1.CompanyServiceClient; - * import com.google.cloud.talent.v4beta1.ListCompaniesRequest; - * import com.google.cloud.talent.v4beta1.TenantName; - * import com.google.cloud.talent.v4beta1.TenantOrProjectName; - */ - - public static void sampleListCompanies() { - // TODO(developer): Replace these variables before running the sample. - String projectId = "Your Google Cloud Project ID"; - String tenantId = "Your Tenant ID (using tenancy is optional)"; - sampleListCompanies(projectId, tenantId); - } - - /** - * List Companies - * - * @param projectId Your Google Cloud Project ID - * @param tenantId Identifier of the Tenant - */ - public static void sampleListCompanies(String projectId, String tenantId) { - try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { - TenantOrProjectName parent = TenantName.of(projectId, tenantId); - ListCompaniesRequest request = - ListCompaniesRequest.newBuilder().setParent(parent.toString()).build(); - for (Company responseItem : companyServiceClient.listCompanies(request).iterateAll()) { - System.out.printf("Company Name: %s\n", responseItem.getName()); - System.out.printf("Display Name: %s\n", responseItem.getDisplayName()); - System.out.printf("External ID: %s\n", responseItem.getExternalId()); - } - } catch (Exception exception) { - System.err.println("Failed to create the client due to: " + exception); - } - } - // [END job_search_list_companies] - - public static void main(String[] args) throws Exception { - Options options = new Options(); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); - - CommandLine cl = (new DefaultParser()).parse(options, args); - String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); - String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); - - sampleListCompanies(projectId, tenantId); - } -} diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListJobs.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListJobs.java deleted file mode 100644 index 04cd4e335cc..00000000000 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListJobs.java +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.examples.talent.v4beta1; - -import com.google.cloud.talent.v4beta1.Job; -import com.google.cloud.talent.v4beta1.JobServiceClient; -import com.google.cloud.talent.v4beta1.ListJobsRequest; -import com.google.cloud.talent.v4beta1.TenantName; -import com.google.cloud.talent.v4beta1.TenantOrProjectName; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; - -public class JobSearchListJobs { - // [START job_search_list_jobs] - /* - * Please include the following imports to run this sample. - * - * import com.google.cloud.talent.v4beta1.Job; - * import com.google.cloud.talent.v4beta1.JobServiceClient; - * import com.google.cloud.talent.v4beta1.ListJobsRequest; - * import com.google.cloud.talent.v4beta1.TenantName; - * import com.google.cloud.talent.v4beta1.TenantOrProjectName; - */ - - public static void sampleListJobs() { - // TODO(developer): Replace these variables before running the sample. - String projectId = "Your Google Cloud Project ID"; - String tenantId = "Your Tenant ID (using tenancy is optional)"; - String filter = "companyName=projects/my-project/companies/company-id"; - sampleListJobs(projectId, tenantId, filter); - } - - /** - * List Jobs - * - * @param projectId Your Google Cloud Project ID - * @param tenantId Identifier of the Tenant - */ - public static void sampleListJobs(String projectId, String tenantId, String filter) { - try (JobServiceClient jobServiceClient = JobServiceClient.create()) { - TenantOrProjectName parent = TenantName.of(projectId, tenantId); - ListJobsRequest request = - ListJobsRequest.newBuilder().setParent(parent.toString()).setFilter(filter).build(); - for (Job responseItem : jobServiceClient.listJobs(request).iterateAll()) { - System.out.printf("Job name: %s\n", responseItem.getName()); - System.out.printf("Job requisition ID: %s\n", responseItem.getRequisitionId()); - System.out.printf("Job title: %s\n", responseItem.getTitle()); - System.out.printf("Job description: %s\n", responseItem.getDescription()); - } - } catch (Exception exception) { - System.err.println("Failed to create the client due to: " + exception); - } - } - // [END job_search_list_jobs] - - public static void main(String[] args) throws Exception { - Options options = new Options(); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("tenant_id").build()); - options.addOption(Option.builder("").required(false).hasArg(true).longOpt("filter").build()); - - CommandLine cl = (new DefaultParser()).parse(options, args); - String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); - String tenantId = cl.getOptionValue("tenant_id", "Your Tenant ID (using tenancy is optional)"); - String filter = - cl.getOptionValue("filter", "companyName=projects/my-project/companies/company-id"); - - sampleListJobs(projectId, tenantId, filter); - } -} diff --git a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListTenants.java b/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListTenants.java deleted file mode 100644 index 681552d6463..00000000000 --- a/talent/generated/src/main/java/com/google/cloud/examples/talent/v4beta1/JobSearchListTenants.java +++ /dev/null @@ -1,71 +0,0 @@ -/* - * Copyright 2020 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.examples.talent.v4beta1; - -import com.google.cloud.talent.v4beta1.ListTenantsRequest; -import com.google.cloud.talent.v4beta1.ProjectName; -import com.google.cloud.talent.v4beta1.Tenant; -import com.google.cloud.talent.v4beta1.TenantServiceClient; -import org.apache.commons.cli.CommandLine; -import org.apache.commons.cli.DefaultParser; -import org.apache.commons.cli.Option; -import org.apache.commons.cli.Options; - -public class JobSearchListTenants { - // [START job_search_list_tenants] - /* - * Please include the following imports to run this sample. - * - * import com.google.cloud.talent.v4beta1.ListTenantsRequest; - * import com.google.cloud.talent.v4beta1.ProjectName; - * import com.google.cloud.talent.v4beta1.Tenant; - * import com.google.cloud.talent.v4beta1.TenantServiceClient; - */ - - public static void sampleListTenants() { - // TODO(developer): Replace these variables before running the sample. - String projectId = "Your Google Cloud Project ID"; - sampleListTenants(projectId); - } - - /** List Tenants */ - public static void sampleListTenants(String projectId) { - try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { - ProjectName parent = ProjectName.of(projectId); - ListTenantsRequest request = - ListTenantsRequest.newBuilder().setParent(parent.toString()).build(); - for (Tenant responseItem : tenantServiceClient.listTenants(request).iterateAll()) { - System.out.printf("Tenant Name: %s\n", responseItem.getName()); - System.out.printf("External ID: %s\n", responseItem.getExternalId()); - } - } catch (Exception exception) { - System.err.println("Failed to create the client due to: " + exception); - } - } - // [END job_search_list_tenants] - - public static void main(String[] args) throws Exception { - Options options = new Options(); - options.addOption( - Option.builder("").required(false).hasArg(true).longOpt("project_id").build()); - - CommandLine cl = (new DefaultParser()).parse(options, args); - String projectId = cl.getOptionValue("project_id", "Your Google Cloud Project ID"); - - sampleListTenants(projectId); - } -} From 85911f5f6f25a7517ce79b20a83a7117a9135a2e Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 16 May 2022 19:38:31 +0200 Subject: [PATCH 83/92] chore(deps): update dependency com.google.cloud:libraries-bom to v25.3.0 (#784) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![WhiteSource Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.2.0` -> `25.3.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.3.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.3.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.3.0/compatibility-slim/25.2.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.3.0/confidence-slim/25.2.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 8cda5bde645..cf53fb0474e 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.2.0 + 25.3.0 pom import From 8f393736033e0789752b772be959dec51695192b Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 6 Jun 2022 19:10:31 +0200 Subject: [PATCH 84/92] chore(deps): update dependency com.google.cloud:libraries-bom to v25.4.0 (#793) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/GoogleCloudPlatform/cloud-opensource-java)) | `25.3.0` -> `25.4.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/compatibility-slim/25.3.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/25.4.0/confidence-slim/25.3.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index cf53fb0474e..bc75f0547a9 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.3.0 + 25.4.0 pom import From a1b6c0ecbe191f2953758e2b31a1fd0f08200b61 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 1 Jul 2022 15:52:15 +0000 Subject: [PATCH 85/92] build: library of v4 jobs onboarded to SAM (#800) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 457827103 Source-Link: https://github.com/googleapis/googleapis/commit/67f6d0b277c675a951f533a24031863fef69c001 Source-Link: https://github.com/googleapis/googleapis-gen/commit/ba91dc0d519670d03b6bc890f265356e9f3bd3b7 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiYmE5MWRjMGQ1MTk2NzBkMDNiNmJjODkwZjI2NTM1NmU5ZjNiZDNiNyJ9 build: library of v4 jobs onboarded to SAM PiperOrigin-RevId: 457783072 Source-Link: https://github.com/googleapis/googleapis/commit/6ff6b49397491751aa8d2281f43bdb11a905e78e Source-Link: https://github.com/googleapis/googleapis-gen/commit/e485ffbb0be33b64fdd93e3a6f866250491017c6 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTQ4NWZmYmIwYmUzM2I2NGZkZDkzZTNhNmY4NjYyNTA0OTEwMTdjNiJ9 --- .../SyncCreateSetCredentialsProvider.java | 41 +++++++++++ .../SyncCreateSetCredentialsProvider1.java | 40 +++++++++++ .../create/SyncCreateSetEndpoint.java | 38 ++++++++++ .../createcompany/AsyncCreateCompany.java | 47 ++++++++++++ .../createcompany/SyncCreateCompany.java | 44 ++++++++++++ .../SyncCreateCompanyStringCompany.java | 40 +++++++++++ .../SyncCreateCompanyTenantnameCompany.java | 40 +++++++++++ .../deletecompany/AsyncDeleteCompany.java | 46 ++++++++++++ .../deletecompany/SyncDeleteCompany.java | 43 +++++++++++ .../SyncDeleteCompanyCompanyname.java | 39 ++++++++++ .../SyncDeleteCompanyString.java | 39 ++++++++++ .../getcompany/AsyncGetCompany.java | 46 ++++++++++++ .../getcompany/SyncGetCompany.java | 43 +++++++++++ .../getcompany/SyncGetCompanyCompanyname.java | 39 ++++++++++ .../getcompany/SyncGetCompanyString.java | 39 ++++++++++ .../listcompanies/AsyncListCompanies.java | 52 ++++++++++++++ .../AsyncListCompaniesPaged.java | 59 +++++++++++++++ .../listcompanies/SyncListCompanies.java | 48 +++++++++++++ .../SyncListCompaniesString.java | 41 +++++++++++ .../SyncListCompaniesTenantname.java | 41 +++++++++++ .../updatecompany/AsyncUpdateCompany.java | 47 ++++++++++++ .../updatecompany/SyncUpdateCompany.java | 44 ++++++++++++ .../SyncUpdateCompanyCompanyFieldmask.java | 40 +++++++++++ .../createcompany/SyncCreateCompany.java | 46 ++++++++++++ .../completequery/AsyncCompleteQuery.java | 53 ++++++++++++++ .../completequery/SyncCompleteQuery.java | 49 +++++++++++++ .../SyncCreateSetCredentialsProvider.java | 41 +++++++++++ .../SyncCreateSetCredentialsProvider1.java | 40 +++++++++++ .../create/SyncCreateSetEndpoint.java | 38 ++++++++++ .../completequery/SyncCompleteQuery.java | 45 ++++++++++++ .../SyncCreateSetCredentialsProvider.java | 41 +++++++++++ .../SyncCreateSetCredentialsProvider1.java | 40 +++++++++++ .../create/SyncCreateSetEndpoint.java | 38 ++++++++++ .../AsyncCreateClientEvent.java | 48 +++++++++++++ .../SyncCreateClientEvent.java | 44 ++++++++++++ ...yncCreateClientEventStringClientevent.java | 40 +++++++++++ ...reateClientEventTenantnameClientevent.java | 40 +++++++++++ .../SyncCreateClientEvent.java | 45 ++++++++++++ .../batchcreatejobs/AsyncBatchCreateJobs.java | 49 +++++++++++++ .../AsyncBatchCreateJobsLRO.java | 51 +++++++++++++ .../batchcreatejobs/SyncBatchCreateJobs.java | 46 ++++++++++++ .../SyncBatchCreateJobsStringListjob.java | 43 +++++++++++ .../SyncBatchCreateJobsTenantnameListjob.java | 43 +++++++++++ .../batchdeletejobs/AsyncBatchDeleteJobs.java | 48 +++++++++++++ .../AsyncBatchDeleteJobsLRO.java | 50 +++++++++++++ .../batchdeletejobs/SyncBatchDeleteJobs.java | 45 ++++++++++++ .../SyncBatchDeleteJobsStringListstring.java | 42 +++++++++++ ...ncBatchDeleteJobsTenantnameListstring.java | 42 +++++++++++ .../batchupdatejobs/AsyncBatchUpdateJobs.java | 51 +++++++++++++ .../AsyncBatchUpdateJobsLRO.java | 53 ++++++++++++++ .../batchupdatejobs/SyncBatchUpdateJobs.java | 48 +++++++++++++ .../SyncBatchUpdateJobsStringListjob.java | 43 +++++++++++ .../SyncBatchUpdateJobsTenantnameListjob.java | 43 +++++++++++ .../SyncCreateSetCredentialsProvider.java | 41 +++++++++++ .../SyncCreateSetCredentialsProvider1.java | 40 +++++++++++ .../create/SyncCreateSetEndpoint.java | 38 ++++++++++ .../createjob/AsyncCreateJob.java | 47 ++++++++++++ .../createjob/SyncCreateJob.java | 44 ++++++++++++ .../createjob/SyncCreateJobStringJob.java | 40 +++++++++++ .../createjob/SyncCreateJobTenantnameJob.java | 40 +++++++++++ .../deletejob/AsyncDeleteJob.java | 46 ++++++++++++ .../deletejob/SyncDeleteJob.java | 43 +++++++++++ .../deletejob/SyncDeleteJobJobname.java | 39 ++++++++++ .../deletejob/SyncDeleteJobString.java | 39 ++++++++++ .../jobserviceclient/getjob/AsyncGetJob.java | 46 ++++++++++++ .../jobserviceclient/getjob/SyncGetJob.java | 43 +++++++++++ .../getjob/SyncGetJobJobname.java | 39 ++++++++++ .../getjob/SyncGetJobString.java | 39 ++++++++++ .../listjobs/AsyncListJobs.java | 53 ++++++++++++++ .../listjobs/AsyncListJobsPaged.java | 61 ++++++++++++++++ .../listjobs/SyncListJobs.java | 50 +++++++++++++ .../listjobs/SyncListJobsStringString.java | 42 +++++++++++ .../SyncListJobsTenantnameString.java | 42 +++++++++++ .../searchjobs/AsyncSearchJobs.java | 63 ++++++++++++++++ .../searchjobs/SyncSearchJobs.java | 59 +++++++++++++++ .../AsyncSearchJobsForAlert.java | 63 ++++++++++++++++ .../SyncSearchJobsForAlert.java | 59 +++++++++++++++ .../updatejob/AsyncUpdateJob.java | 47 ++++++++++++ .../updatejob/SyncUpdateJob.java | 44 ++++++++++++ .../updatejob/SyncUpdateJobJobFieldmask.java | 40 +++++++++++ .../createjob/SyncCreateJob.java | 45 ++++++++++++ .../createcompany/SyncCreateCompany.java | 46 ++++++++++++ .../completequery/SyncCompleteQuery.java | 45 ++++++++++++ .../SyncCreateClientEvent.java | 46 ++++++++++++ .../createjob/SyncCreateJob.java | 45 ++++++++++++ .../createtenant/SyncCreateTenant.java | 46 ++++++++++++ .../SyncCreateSetCredentialsProvider.java | 41 +++++++++++ .../SyncCreateSetCredentialsProvider1.java | 40 +++++++++++ .../create/SyncCreateSetEndpoint.java | 38 ++++++++++ .../createtenant/AsyncCreateTenant.java | 47 ++++++++++++ .../createtenant/SyncCreateTenant.java | 44 ++++++++++++ .../SyncCreateTenantProjectnameTenant.java | 40 +++++++++++ .../SyncCreateTenantStringTenant.java | 40 +++++++++++ .../deletetenant/AsyncDeleteTenant.java | 46 ++++++++++++ .../deletetenant/SyncDeleteTenant.java | 43 +++++++++++ .../deletetenant/SyncDeleteTenantString.java | 39 ++++++++++ .../SyncDeleteTenantTenantname.java | 39 ++++++++++ .../gettenant/AsyncGetTenant.java | 46 ++++++++++++ .../gettenant/SyncGetTenant.java | 43 +++++++++++ .../gettenant/SyncGetTenantString.java | 39 ++++++++++ .../gettenant/SyncGetTenantTenantname.java | 39 ++++++++++ .../listtenants/AsyncListTenants.java | 50 +++++++++++++ .../listtenants/AsyncListTenantsPaged.java | 58 +++++++++++++++ .../listtenants/SyncListTenants.java | 47 ++++++++++++ .../SyncListTenantsProjectname.java | 41 +++++++++++ .../listtenants/SyncListTenantsString.java | 41 +++++++++++ .../updatetenant/AsyncUpdateTenant.java | 47 ++++++++++++ .../updatetenant/SyncUpdateTenant.java | 44 ++++++++++++ .../SyncUpdateTenantTenantFieldmask.java | 40 +++++++++++ .../createtenant/SyncCreateTenant.java | 45 ++++++++++++ .../SyncCreateSetCredentialsProvider.java | 41 +++++++++++ .../SyncCreateSetCredentialsProvider1.java | 40 +++++++++++ .../create/SyncCreateSetEndpoint.java | 38 ++++++++++ .../createcompany/AsyncCreateCompany.java | 47 ++++++++++++ .../createcompany/SyncCreateCompany.java | 44 ++++++++++++ .../SyncCreateCompanyProjectnameCompany.java | 40 +++++++++++ .../SyncCreateCompanyStringCompany.java | 40 +++++++++++ .../SyncCreateCompanyTenantnameCompany.java | 40 +++++++++++ .../deletecompany/AsyncDeleteCompany.java | 48 +++++++++++++ .../deletecompany/SyncDeleteCompany.java | 45 ++++++++++++ .../SyncDeleteCompanyCompanyname.java | 40 +++++++++++ .../SyncDeleteCompanyString.java | 40 +++++++++++ .../getcompany/AsyncGetCompany.java | 48 +++++++++++++ .../getcompany/SyncGetCompany.java | 45 ++++++++++++ .../getcompany/SyncGetCompanyCompanyname.java | 40 +++++++++++ .../getcompany/SyncGetCompanyString.java | 40 +++++++++++ .../listcompanies/AsyncListCompanies.java | 52 ++++++++++++++ .../AsyncListCompaniesPaged.java | 59 +++++++++++++++ .../listcompanies/SyncListCompanies.java | 48 +++++++++++++ .../SyncListCompaniesProjectname.java | 41 +++++++++++ .../SyncListCompaniesString.java | 41 +++++++++++ .../SyncListCompaniesTenantname.java | 41 +++++++++++ .../updatecompany/AsyncUpdateCompany.java | 47 ++++++++++++ .../updatecompany/SyncUpdateCompany.java | 44 ++++++++++++ .../SyncUpdateCompanyCompany.java | 38 ++++++++++ .../createcompany/SyncCreateCompany.java | 46 ++++++++++++ .../completequery/AsyncCompleteQuery.java | 55 ++++++++++++++ .../completequery/SyncCompleteQuery.java | 51 +++++++++++++ .../SyncCreateSetCredentialsProvider.java | 41 +++++++++++ .../SyncCreateSetCredentialsProvider1.java | 40 +++++++++++ .../create/SyncCreateSetEndpoint.java | 38 ++++++++++ .../completequery/SyncCompleteQuery.java | 45 ++++++++++++ .../SyncCreateSetCredentialsProvider.java | 41 +++++++++++ .../SyncCreateSetCredentialsProvider1.java | 40 +++++++++++ .../create/SyncCreateSetEndpoint.java | 38 ++++++++++ .../AsyncCreateClientEvent.java | 48 +++++++++++++ .../SyncCreateClientEvent.java | 44 ++++++++++++ ...eateClientEventProjectnameClientevent.java | 40 +++++++++++ ...yncCreateClientEventStringClientevent.java | 40 +++++++++++ ...reateClientEventTenantnameClientevent.java | 40 +++++++++++ .../SyncCreateClientEvent.java | 45 ++++++++++++ .../batchcreatejobs/AsyncBatchCreateJobs.java | 49 +++++++++++++ .../AsyncBatchCreateJobsLRO.java | 51 +++++++++++++ .../batchcreatejobs/SyncBatchCreateJobs.java | 46 ++++++++++++ ...SyncBatchCreateJobsProjectnameListjob.java | 43 +++++++++++ .../SyncBatchCreateJobsStringListjob.java | 43 +++++++++++ .../SyncBatchCreateJobsTenantnameListjob.java | 43 +++++++++++ .../batchdeletejobs/AsyncBatchDeleteJobs.java | 47 ++++++++++++ .../batchdeletejobs/SyncBatchDeleteJobs.java | 44 ++++++++++++ .../SyncBatchDeleteJobsProjectnameString.java | 40 +++++++++++ .../SyncBatchDeleteJobsStringString.java | 40 +++++++++++ .../SyncBatchDeleteJobsTenantnameString.java | 40 +++++++++++ .../batchupdatejobs/AsyncBatchUpdateJobs.java | 51 +++++++++++++ .../AsyncBatchUpdateJobsLRO.java | 53 ++++++++++++++ .../batchupdatejobs/SyncBatchUpdateJobs.java | 48 +++++++++++++ ...SyncBatchUpdateJobsProjectnameListjob.java | 43 +++++++++++ .../SyncBatchUpdateJobsStringListjob.java | 43 +++++++++++ .../SyncBatchUpdateJobsTenantnameListjob.java | 43 +++++++++++ .../SyncCreateSetCredentialsProvider.java | 41 +++++++++++ .../SyncCreateSetCredentialsProvider1.java | 40 +++++++++++ .../create/SyncCreateSetEndpoint.java | 38 ++++++++++ .../createjob/AsyncCreateJob.java | 47 ++++++++++++ .../createjob/SyncCreateJob.java | 44 ++++++++++++ .../SyncCreateJobProjectnameJob.java | 40 +++++++++++ .../createjob/SyncCreateJobStringJob.java | 40 +++++++++++ .../createjob/SyncCreateJobTenantnameJob.java | 40 +++++++++++ .../deletejob/AsyncDeleteJob.java | 46 ++++++++++++ .../deletejob/SyncDeleteJob.java | 43 +++++++++++ .../deletejob/SyncDeleteJobJobname.java | 39 ++++++++++ .../deletejob/SyncDeleteJobString.java | 39 ++++++++++ .../jobserviceclient/getjob/AsyncGetJob.java | 46 ++++++++++++ .../jobserviceclient/getjob/SyncGetJob.java | 43 +++++++++++ .../getjob/SyncGetJobJobname.java | 39 ++++++++++ .../getjob/SyncGetJobString.java | 39 ++++++++++ .../listjobs/AsyncListJobs.java | 53 ++++++++++++++ .../listjobs/AsyncListJobsPaged.java | 61 ++++++++++++++++ .../listjobs/SyncListJobs.java | 50 +++++++++++++ .../SyncListJobsProjectnameString.java | 42 +++++++++++ .../listjobs/SyncListJobsStringString.java | 42 +++++++++++ .../SyncListJobsTenantnameString.java | 42 +++++++++++ .../searchjobs/AsyncSearchJobs.java | 66 +++++++++++++++++ .../searchjobs/AsyncSearchJobsPaged.java | 72 +++++++++++++++++++ .../searchjobs/SyncSearchJobs.java | 63 ++++++++++++++++ .../AsyncSearchJobsForAlert.java | 66 +++++++++++++++++ .../AsyncSearchJobsForAlertPaged.java | 72 +++++++++++++++++++ .../SyncSearchJobsForAlert.java | 63 ++++++++++++++++ .../updatejob/AsyncUpdateJob.java | 47 ++++++++++++ .../updatejob/SyncUpdateJob.java | 44 ++++++++++++ .../updatejob/SyncUpdateJobJob.java | 38 ++++++++++ .../createjob/SyncCreateJob.java | 45 ++++++++++++ .../createcompany/SyncCreateCompany.java | 46 ++++++++++++ .../completequery/SyncCompleteQuery.java | 45 ++++++++++++ .../SyncCreateClientEvent.java | 46 ++++++++++++ .../createjob/SyncCreateJob.java | 45 ++++++++++++ .../createtenant/SyncCreateTenant.java | 46 ++++++++++++ .../SyncCreateSetCredentialsProvider.java | 41 +++++++++++ .../SyncCreateSetCredentialsProvider1.java | 40 +++++++++++ .../create/SyncCreateSetEndpoint.java | 38 ++++++++++ .../createtenant/AsyncCreateTenant.java | 47 ++++++++++++ .../createtenant/SyncCreateTenant.java | 44 ++++++++++++ .../SyncCreateTenantProjectnameTenant.java | 40 +++++++++++ .../SyncCreateTenantStringTenant.java | 40 +++++++++++ .../deletetenant/AsyncDeleteTenant.java | 46 ++++++++++++ .../deletetenant/SyncDeleteTenant.java | 43 +++++++++++ .../deletetenant/SyncDeleteTenantString.java | 39 ++++++++++ .../SyncDeleteTenantTenantname.java | 39 ++++++++++ .../gettenant/AsyncGetTenant.java | 46 ++++++++++++ .../gettenant/SyncGetTenant.java | 43 +++++++++++ .../gettenant/SyncGetTenantString.java | 39 ++++++++++ .../gettenant/SyncGetTenantTenantname.java | 39 ++++++++++ .../listtenants/AsyncListTenants.java | 50 +++++++++++++ .../listtenants/AsyncListTenantsPaged.java | 58 +++++++++++++++ .../listtenants/SyncListTenants.java | 47 ++++++++++++ .../SyncListTenantsProjectname.java | 41 +++++++++++ .../listtenants/SyncListTenantsString.java | 41 +++++++++++ .../updatetenant/AsyncUpdateTenant.java | 47 ++++++++++++ .../updatetenant/SyncUpdateTenant.java | 44 ++++++++++++ .../updatetenant/SyncUpdateTenantTenant.java | 38 ++++++++++ .../createtenant/SyncCreateTenant.java | 45 ++++++++++++ 229 files changed, 10237 insertions(+) create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/createcompany/AsyncCreateCompany.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/createcompany/SyncCreateCompany.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/createcompany/SyncCreateCompanyStringCompany.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/createcompany/SyncCreateCompanyTenantnameCompany.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/deletecompany/AsyncDeleteCompany.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/deletecompany/SyncDeleteCompany.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/deletecompany/SyncDeleteCompanyCompanyname.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/deletecompany/SyncDeleteCompanyString.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/getcompany/AsyncGetCompany.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/getcompany/SyncGetCompany.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/getcompany/SyncGetCompanyCompanyname.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/getcompany/SyncGetCompanyString.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/listcompanies/AsyncListCompanies.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/listcompanies/AsyncListCompaniesPaged.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/listcompanies/SyncListCompanies.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/listcompanies/SyncListCompaniesString.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/listcompanies/SyncListCompaniesTenantname.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/updatecompany/AsyncUpdateCompany.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/updatecompany/SyncUpdateCompany.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/updatecompany/SyncUpdateCompanyCompanyFieldmask.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/companyservicesettings/createcompany/SyncCreateCompany.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/completionclient/completequery/AsyncCompleteQuery.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/completionclient/completequery/SyncCompleteQuery.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/completionclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/completionclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/completionclient/create/SyncCreateSetEndpoint.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/completionsettings/completequery/SyncCompleteQuery.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/createclientevent/AsyncCreateClientEvent.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/createclientevent/SyncCreateClientEvent.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/createclientevent/SyncCreateClientEventStringClientevent.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/createclientevent/SyncCreateClientEventTenantnameClientevent.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/eventservicesettings/createclientevent/SyncCreateClientEvent.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchcreatejobs/AsyncBatchCreateJobs.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchcreatejobs/AsyncBatchCreateJobsLRO.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchcreatejobs/SyncBatchCreateJobs.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchcreatejobs/SyncBatchCreateJobsStringListjob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchcreatejobs/SyncBatchCreateJobsTenantnameListjob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchdeletejobs/AsyncBatchDeleteJobs.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchdeletejobs/AsyncBatchDeleteJobsLRO.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobs.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobsStringListstring.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobsTenantnameListstring.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchupdatejobs/AsyncBatchUpdateJobs.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchupdatejobs/AsyncBatchUpdateJobsLRO.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobs.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobsStringListjob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobsTenantnameListjob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/createjob/AsyncCreateJob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/createjob/SyncCreateJob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/createjob/SyncCreateJobStringJob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/createjob/SyncCreateJobTenantnameJob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/deletejob/AsyncDeleteJob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/deletejob/SyncDeleteJob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/deletejob/SyncDeleteJobJobname.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/deletejob/SyncDeleteJobString.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/getjob/AsyncGetJob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/getjob/SyncGetJob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/getjob/SyncGetJobJobname.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/getjob/SyncGetJobString.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/listjobs/AsyncListJobs.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/listjobs/AsyncListJobsPaged.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/listjobs/SyncListJobs.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/listjobs/SyncListJobsStringString.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/listjobs/SyncListJobsTenantnameString.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/searchjobs/AsyncSearchJobs.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/searchjobs/SyncSearchJobs.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/searchjobsforalert/AsyncSearchJobsForAlert.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/searchjobsforalert/SyncSearchJobsForAlert.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/updatejob/AsyncUpdateJob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/updatejob/SyncUpdateJob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/updatejob/SyncUpdateJobJobFieldmask.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/jobservicesettings/createjob/SyncCreateJob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/stub/companyservicestubsettings/createcompany/SyncCreateCompany.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/stub/completionstubsettings/completequery/SyncCompleteQuery.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/stub/eventservicestubsettings/createclientevent/SyncCreateClientEvent.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/stub/jobservicestubsettings/createjob/SyncCreateJob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/stub/tenantservicestubsettings/createtenant/SyncCreateTenant.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/createtenant/AsyncCreateTenant.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/createtenant/SyncCreateTenant.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/createtenant/SyncCreateTenantProjectnameTenant.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/createtenant/SyncCreateTenantStringTenant.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/deletetenant/AsyncDeleteTenant.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/deletetenant/SyncDeleteTenant.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/deletetenant/SyncDeleteTenantString.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/deletetenant/SyncDeleteTenantTenantname.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/gettenant/AsyncGetTenant.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/gettenant/SyncGetTenant.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/gettenant/SyncGetTenantString.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/gettenant/SyncGetTenantTenantname.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/listtenants/AsyncListTenants.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/listtenants/AsyncListTenantsPaged.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/listtenants/SyncListTenants.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/listtenants/SyncListTenantsProjectname.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/listtenants/SyncListTenantsString.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/updatetenant/AsyncUpdateTenant.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/updatetenant/SyncUpdateTenant.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/updatetenant/SyncUpdateTenantTenantFieldmask.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4/tenantservicesettings/createtenant/SyncCreateTenant.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/createcompany/AsyncCreateCompany.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/createcompany/SyncCreateCompany.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/createcompany/SyncCreateCompanyProjectnameCompany.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/createcompany/SyncCreateCompanyStringCompany.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/createcompany/SyncCreateCompanyTenantnameCompany.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/deletecompany/AsyncDeleteCompany.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/deletecompany/SyncDeleteCompany.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/deletecompany/SyncDeleteCompanyCompanyname.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/deletecompany/SyncDeleteCompanyString.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/getcompany/AsyncGetCompany.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/getcompany/SyncGetCompany.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/getcompany/SyncGetCompanyCompanyname.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/getcompany/SyncGetCompanyString.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/AsyncListCompanies.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/AsyncListCompaniesPaged.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/SyncListCompanies.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/SyncListCompaniesProjectname.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/SyncListCompaniesString.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/SyncListCompaniesTenantname.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/updatecompany/AsyncUpdateCompany.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/updatecompany/SyncUpdateCompany.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/updatecompany/SyncUpdateCompanyCompany.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/companyservicesettings/createcompany/SyncCreateCompany.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/completionclient/completequery/AsyncCompleteQuery.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/completionclient/completequery/SyncCompleteQuery.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/completionclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/completionclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/completionclient/create/SyncCreateSetEndpoint.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/completionsettings/completequery/SyncCompleteQuery.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/createclientevent/AsyncCreateClientEvent.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/createclientevent/SyncCreateClientEvent.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/createclientevent/SyncCreateClientEventProjectnameClientevent.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/createclientevent/SyncCreateClientEventStringClientevent.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/createclientevent/SyncCreateClientEventTenantnameClientevent.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/eventservicesettings/createclientevent/SyncCreateClientEvent.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/AsyncBatchCreateJobs.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/AsyncBatchCreateJobsLRO.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/SyncBatchCreateJobs.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/SyncBatchCreateJobsProjectnameListjob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/SyncBatchCreateJobsStringListjob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/SyncBatchCreateJobsTenantnameListjob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchdeletejobs/AsyncBatchDeleteJobs.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobs.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobsProjectnameString.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobsStringString.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobsTenantnameString.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/AsyncBatchUpdateJobs.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/AsyncBatchUpdateJobsLRO.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobs.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobsProjectnameListjob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobsStringListjob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobsTenantnameListjob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/createjob/AsyncCreateJob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/createjob/SyncCreateJob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/createjob/SyncCreateJobProjectnameJob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/createjob/SyncCreateJobStringJob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/createjob/SyncCreateJobTenantnameJob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/deletejob/AsyncDeleteJob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/deletejob/SyncDeleteJob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/deletejob/SyncDeleteJobJobname.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/deletejob/SyncDeleteJobString.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/getjob/AsyncGetJob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/getjob/SyncGetJob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/getjob/SyncGetJobJobname.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/getjob/SyncGetJobString.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/AsyncListJobs.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/AsyncListJobsPaged.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/SyncListJobs.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/SyncListJobsProjectnameString.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/SyncListJobsStringString.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/SyncListJobsTenantnameString.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobs/AsyncSearchJobs.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobs/AsyncSearchJobsPaged.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobs/SyncSearchJobs.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobsforalert/AsyncSearchJobsForAlert.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobsforalert/AsyncSearchJobsForAlertPaged.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobsforalert/SyncSearchJobsForAlert.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/updatejob/AsyncUpdateJob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/updatejob/SyncUpdateJob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/updatejob/SyncUpdateJobJob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/jobservicesettings/createjob/SyncCreateJob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/stub/companyservicestubsettings/createcompany/SyncCreateCompany.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/stub/completionstubsettings/completequery/SyncCompleteQuery.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/stub/eventservicestubsettings/createclientevent/SyncCreateClientEvent.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/stub/jobservicestubsettings/createjob/SyncCreateJob.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/stub/tenantservicestubsettings/createtenant/SyncCreateTenant.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/create/SyncCreateSetCredentialsProvider.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/create/SyncCreateSetCredentialsProvider1.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/create/SyncCreateSetEndpoint.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/createtenant/AsyncCreateTenant.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/createtenant/SyncCreateTenant.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/createtenant/SyncCreateTenantProjectnameTenant.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/createtenant/SyncCreateTenantStringTenant.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/deletetenant/AsyncDeleteTenant.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/deletetenant/SyncDeleteTenant.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/deletetenant/SyncDeleteTenantString.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/deletetenant/SyncDeleteTenantTenantname.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/gettenant/AsyncGetTenant.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/gettenant/SyncGetTenant.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/gettenant/SyncGetTenantString.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/gettenant/SyncGetTenantTenantname.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/listtenants/AsyncListTenants.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/listtenants/AsyncListTenantsPaged.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/listtenants/SyncListTenants.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/listtenants/SyncListTenantsProjectname.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/listtenants/SyncListTenantsString.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/updatetenant/AsyncUpdateTenant.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/updatetenant/SyncUpdateTenant.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/updatetenant/SyncUpdateTenantTenant.java create mode 100644 talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantservicesettings/createtenant/SyncCreateTenant.java 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 new file mode 100644 index 00000000000..fd35b55ae1f --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_companyserviceclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.talent.v4.CompanyServiceClient; +import com.google.cloud.talent.v4.CompanyServiceSettings; +import com.google.cloud.talent.v4.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + 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. + CompanyServiceSettings companyServiceSettings = + CompanyServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + CompanyServiceClient companyServiceClient = CompanyServiceClient.create(companyServiceSettings); + } +} +// [END talent_v4_generated_companyserviceclient_create_setcredentialsprovider_sync] 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 new file mode 100644 index 00000000000..856573185aa --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_companyserviceclient_create_setcredentialsprovider1_sync] +import com.google.cloud.talent.v4.CompanyServiceClient; +import com.google.cloud.talent.v4.CompanyServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + 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. + CompanyServiceSettings companyServiceSettings = + CompanyServiceSettings.newBuilder() + .setTransportChannelProvider( + CompanyServiceSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + CompanyServiceClient companyServiceClient = CompanyServiceClient.create(companyServiceSettings); + } +} +// [END talent_v4_generated_companyserviceclient_create_setcredentialsprovider1_sync] 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 new file mode 100644 index 00000000000..6dce1bb2f27 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_companyserviceclient_create_setendpoint_sync] +import com.google.cloud.talent.v4.CompanyServiceClient; +import com.google.cloud.talent.v4.CompanyServiceSettings; +import com.google.cloud.talent.v4.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + 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. + CompanyServiceSettings companyServiceSettings = + CompanyServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + CompanyServiceClient companyServiceClient = CompanyServiceClient.create(companyServiceSettings); + } +} +// [END talent_v4_generated_companyserviceclient_create_setendpoint_sync] 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 new file mode 100644 index 00000000000..908395122d9 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/createcompany/AsyncCreateCompany.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_companyserviceclient_createcompany_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4.Company; +import com.google.cloud.talent.v4.CompanyServiceClient; +import com.google.cloud.talent.v4.CreateCompanyRequest; +import com.google.cloud.talent.v4.TenantName; + +public class AsyncCreateCompany { + + public static void main(String[] args) throws Exception { + asyncCreateCompany(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + CreateCompanyRequest request = + CreateCompanyRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setCompany(Company.newBuilder().build()) + .build(); + ApiFuture future = companyServiceClient.createCompanyCallable().futureCall(request); + // Do something. + Company response = future.get(); + } + } +} +// [END talent_v4_generated_companyserviceclient_createcompany_async] 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 new file mode 100644 index 00000000000..34c05f0cc7f --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/createcompany/SyncCreateCompany.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_companyserviceclient_createcompany_sync] +import com.google.cloud.talent.v4.Company; +import com.google.cloud.talent.v4.CompanyServiceClient; +import com.google.cloud.talent.v4.CreateCompanyRequest; +import com.google.cloud.talent.v4.TenantName; + +public class SyncCreateCompany { + + public static void main(String[] args) throws Exception { + syncCreateCompany(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + CreateCompanyRequest request = + CreateCompanyRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setCompany(Company.newBuilder().build()) + .build(); + Company response = companyServiceClient.createCompany(request); + } + } +} +// [END talent_v4_generated_companyserviceclient_createcompany_sync] 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 new file mode 100644 index 00000000000..4b00f714379 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/createcompany/SyncCreateCompanyStringCompany.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_companyserviceclient_createcompany_stringcompany_sync] +import com.google.cloud.talent.v4.Company; +import com.google.cloud.talent.v4.CompanyServiceClient; +import com.google.cloud.talent.v4.TenantName; + +public class SyncCreateCompanyStringCompany { + + public static void main(String[] args) throws Exception { + syncCreateCompanyStringCompany(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + String parent = TenantName.of("[PROJECT]", "[TENANT]").toString(); + Company company = Company.newBuilder().build(); + Company response = companyServiceClient.createCompany(parent, company); + } + } +} +// [END talent_v4_generated_companyserviceclient_createcompany_stringcompany_sync] 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 new file mode 100644 index 00000000000..7da3d337e8a --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/createcompany/SyncCreateCompanyTenantnameCompany.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_companyserviceclient_createcompany_tenantnamecompany_sync] +import com.google.cloud.talent.v4.Company; +import com.google.cloud.talent.v4.CompanyServiceClient; +import com.google.cloud.talent.v4.TenantName; + +public class SyncCreateCompanyTenantnameCompany { + + public static void main(String[] args) throws Exception { + syncCreateCompanyTenantnameCompany(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + Company company = Company.newBuilder().build(); + Company response = companyServiceClient.createCompany(parent, company); + } + } +} +// [END talent_v4_generated_companyserviceclient_createcompany_tenantnamecompany_sync] 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 new file mode 100644 index 00000000000..a79de6cdef4 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/deletecompany/AsyncDeleteCompany.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_companyserviceclient_deletecompany_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4.CompanyName; +import com.google.cloud.talent.v4.CompanyServiceClient; +import com.google.cloud.talent.v4.DeleteCompanyRequest; +import com.google.protobuf.Empty; + +public class AsyncDeleteCompany { + + public static void main(String[] args) throws Exception { + asyncDeleteCompany(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + DeleteCompanyRequest request = + DeleteCompanyRequest.newBuilder() + .setName(CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]").toString()) + .build(); + ApiFuture future = companyServiceClient.deleteCompanyCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END talent_v4_generated_companyserviceclient_deletecompany_async] 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 new file mode 100644 index 00000000000..99425afbcee --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/deletecompany/SyncDeleteCompany.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_companyserviceclient_deletecompany_sync] +import com.google.cloud.talent.v4.CompanyName; +import com.google.cloud.talent.v4.CompanyServiceClient; +import com.google.cloud.talent.v4.DeleteCompanyRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteCompany { + + public static void main(String[] args) throws Exception { + syncDeleteCompany(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + DeleteCompanyRequest request = + DeleteCompanyRequest.newBuilder() + .setName(CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]").toString()) + .build(); + companyServiceClient.deleteCompany(request); + } + } +} +// [END talent_v4_generated_companyserviceclient_deletecompany_sync] 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 new file mode 100644 index 00000000000..dfa9a5cdce3 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/deletecompany/SyncDeleteCompanyCompanyname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_companyserviceclient_deletecompany_companyname_sync] +import com.google.cloud.talent.v4.CompanyName; +import com.google.cloud.talent.v4.CompanyServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCompanyCompanyname { + + public static void main(String[] args) throws Exception { + syncDeleteCompanyCompanyname(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + CompanyName name = CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]"); + companyServiceClient.deleteCompany(name); + } + } +} +// [END talent_v4_generated_companyserviceclient_deletecompany_companyname_sync] 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 new file mode 100644 index 00000000000..e6e2406edc2 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/deletecompany/SyncDeleteCompanyString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_companyserviceclient_deletecompany_string_sync] +import com.google.cloud.talent.v4.CompanyName; +import com.google.cloud.talent.v4.CompanyServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCompanyString { + + public static void main(String[] args) throws Exception { + syncDeleteCompanyString(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + String name = CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]").toString(); + companyServiceClient.deleteCompany(name); + } + } +} +// [END talent_v4_generated_companyserviceclient_deletecompany_string_sync] 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 new file mode 100644 index 00000000000..0f9d511752e --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/getcompany/AsyncGetCompany.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_companyserviceclient_getcompany_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4.Company; +import com.google.cloud.talent.v4.CompanyName; +import com.google.cloud.talent.v4.CompanyServiceClient; +import com.google.cloud.talent.v4.GetCompanyRequest; + +public class AsyncGetCompany { + + public static void main(String[] args) throws Exception { + asyncGetCompany(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + GetCompanyRequest request = + GetCompanyRequest.newBuilder() + .setName(CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]").toString()) + .build(); + ApiFuture future = companyServiceClient.getCompanyCallable().futureCall(request); + // Do something. + Company response = future.get(); + } + } +} +// [END talent_v4_generated_companyserviceclient_getcompany_async] 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 new file mode 100644 index 00000000000..7a3266831b3 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/getcompany/SyncGetCompany.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_companyserviceclient_getcompany_sync] +import com.google.cloud.talent.v4.Company; +import com.google.cloud.talent.v4.CompanyName; +import com.google.cloud.talent.v4.CompanyServiceClient; +import com.google.cloud.talent.v4.GetCompanyRequest; + +public class SyncGetCompany { + + public static void main(String[] args) throws Exception { + syncGetCompany(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + GetCompanyRequest request = + GetCompanyRequest.newBuilder() + .setName(CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]").toString()) + .build(); + Company response = companyServiceClient.getCompany(request); + } + } +} +// [END talent_v4_generated_companyserviceclient_getcompany_sync] 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 new file mode 100644 index 00000000000..34eca71df7d --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/getcompany/SyncGetCompanyCompanyname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_companyserviceclient_getcompany_companyname_sync] +import com.google.cloud.talent.v4.Company; +import com.google.cloud.talent.v4.CompanyName; +import com.google.cloud.talent.v4.CompanyServiceClient; + +public class SyncGetCompanyCompanyname { + + public static void main(String[] args) throws Exception { + syncGetCompanyCompanyname(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + CompanyName name = CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]"); + Company response = companyServiceClient.getCompany(name); + } + } +} +// [END talent_v4_generated_companyserviceclient_getcompany_companyname_sync] 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 new file mode 100644 index 00000000000..64ccf90ec62 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/getcompany/SyncGetCompanyString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_companyserviceclient_getcompany_string_sync] +import com.google.cloud.talent.v4.Company; +import com.google.cloud.talent.v4.CompanyName; +import com.google.cloud.talent.v4.CompanyServiceClient; + +public class SyncGetCompanyString { + + public static void main(String[] args) throws Exception { + syncGetCompanyString(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + String name = CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]").toString(); + Company response = companyServiceClient.getCompany(name); + } + } +} +// [END talent_v4_generated_companyserviceclient_getcompany_string_sync] 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 new file mode 100644 index 00000000000..d5e735ef76e --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/listcompanies/AsyncListCompanies.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_companyserviceclient_listcompanies_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4.Company; +import com.google.cloud.talent.v4.CompanyServiceClient; +import com.google.cloud.talent.v4.ListCompaniesRequest; +import com.google.cloud.talent.v4.TenantName; + +public class AsyncListCompanies { + + public static void main(String[] args) throws Exception { + asyncListCompanies(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + ListCompaniesRequest request = + ListCompaniesRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .setRequireOpenJobs(true) + .build(); + ApiFuture future = + companyServiceClient.listCompaniesPagedCallable().futureCall(request); + // Do something. + for (Company element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END talent_v4_generated_companyserviceclient_listcompanies_async] 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 new file mode 100644 index 00000000000..21de10b3170 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/listcompanies/AsyncListCompaniesPaged.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_companyserviceclient_listcompanies_paged_async] +import com.google.cloud.talent.v4.Company; +import com.google.cloud.talent.v4.CompanyServiceClient; +import com.google.cloud.talent.v4.ListCompaniesRequest; +import com.google.cloud.talent.v4.ListCompaniesResponse; +import com.google.cloud.talent.v4.TenantName; +import com.google.common.base.Strings; + +public class AsyncListCompaniesPaged { + + public static void main(String[] args) throws Exception { + asyncListCompaniesPaged(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + ListCompaniesRequest request = + ListCompaniesRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .setRequireOpenJobs(true) + .build(); + while (true) { + ListCompaniesResponse response = companyServiceClient.listCompaniesCallable().call(request); + for (Company element : response.getCompaniesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END talent_v4_generated_companyserviceclient_listcompanies_paged_async] 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 new file mode 100644 index 00000000000..6750bdf515d --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/listcompanies/SyncListCompanies.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_companyserviceclient_listcompanies_sync] +import com.google.cloud.talent.v4.Company; +import com.google.cloud.talent.v4.CompanyServiceClient; +import com.google.cloud.talent.v4.ListCompaniesRequest; +import com.google.cloud.talent.v4.TenantName; + +public class SyncListCompanies { + + public static void main(String[] args) throws Exception { + syncListCompanies(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + ListCompaniesRequest request = + ListCompaniesRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .setRequireOpenJobs(true) + .build(); + for (Company element : companyServiceClient.listCompanies(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END talent_v4_generated_companyserviceclient_listcompanies_sync] 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 new file mode 100644 index 00000000000..cba947d671c --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/listcompanies/SyncListCompaniesString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_companyserviceclient_listcompanies_string_sync] +import com.google.cloud.talent.v4.Company; +import com.google.cloud.talent.v4.CompanyServiceClient; +import com.google.cloud.talent.v4.TenantName; + +public class SyncListCompaniesString { + + public static void main(String[] args) throws Exception { + syncListCompaniesString(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + String parent = TenantName.of("[PROJECT]", "[TENANT]").toString(); + for (Company element : companyServiceClient.listCompanies(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END talent_v4_generated_companyserviceclient_listcompanies_string_sync] 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 new file mode 100644 index 00000000000..f7e134c958c --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/listcompanies/SyncListCompaniesTenantname.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_companyserviceclient_listcompanies_tenantname_sync] +import com.google.cloud.talent.v4.Company; +import com.google.cloud.talent.v4.CompanyServiceClient; +import com.google.cloud.talent.v4.TenantName; + +public class SyncListCompaniesTenantname { + + public static void main(String[] args) throws Exception { + syncListCompaniesTenantname(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + for (Company element : companyServiceClient.listCompanies(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END talent_v4_generated_companyserviceclient_listcompanies_tenantname_sync] 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 new file mode 100644 index 00000000000..d389d25423a --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/updatecompany/AsyncUpdateCompany.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_companyserviceclient_updatecompany_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4.Company; +import com.google.cloud.talent.v4.CompanyServiceClient; +import com.google.cloud.talent.v4.UpdateCompanyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateCompany { + + public static void main(String[] args) throws Exception { + asyncUpdateCompany(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + UpdateCompanyRequest request = + UpdateCompanyRequest.newBuilder() + .setCompany(Company.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = companyServiceClient.updateCompanyCallable().futureCall(request); + // Do something. + Company response = future.get(); + } + } +} +// [END talent_v4_generated_companyserviceclient_updatecompany_async] 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 new file mode 100644 index 00000000000..817ba73d759 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/updatecompany/SyncUpdateCompany.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_companyserviceclient_updatecompany_sync] +import com.google.cloud.talent.v4.Company; +import com.google.cloud.talent.v4.CompanyServiceClient; +import com.google.cloud.talent.v4.UpdateCompanyRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCompany { + + public static void main(String[] args) throws Exception { + syncUpdateCompany(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + UpdateCompanyRequest request = + UpdateCompanyRequest.newBuilder() + .setCompany(Company.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Company response = companyServiceClient.updateCompany(request); + } + } +} +// [END talent_v4_generated_companyserviceclient_updatecompany_sync] 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 new file mode 100644 index 00000000000..dfbeecc0f33 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyserviceclient/updatecompany/SyncUpdateCompanyCompanyFieldmask.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_companyserviceclient_updatecompany_companyfieldmask_sync] +import com.google.cloud.talent.v4.Company; +import com.google.cloud.talent.v4.CompanyServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCompanyCompanyFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateCompanyCompanyFieldmask(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + Company company = Company.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Company response = companyServiceClient.updateCompany(company, updateMask); + } + } +} +// [END talent_v4_generated_companyserviceclient_updatecompany_companyfieldmask_sync] 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 new file mode 100644 index 00000000000..0bcc585a60f --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/companyservicesettings/createcompany/SyncCreateCompany.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_companyservicesettings_createcompany_sync] +import com.google.cloud.talent.v4.CompanyServiceSettings; +import java.time.Duration; + +public class SyncCreateCompany { + + public static void main(String[] args) throws Exception { + syncCreateCompany(); + } + + 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. + CompanyServiceSettings.Builder companyServiceSettingsBuilder = + CompanyServiceSettings.newBuilder(); + companyServiceSettingsBuilder + .createCompanySettings() + .setRetrySettings( + companyServiceSettingsBuilder + .createCompanySettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + CompanyServiceSettings companyServiceSettings = companyServiceSettingsBuilder.build(); + } +} +// [END talent_v4_generated_companyservicesettings_createcompany_sync] 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 new file mode 100644 index 00000000000..3c07042e90a --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/completionclient/completequery/AsyncCompleteQuery.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_completionclient_completequery_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4.CompanyName; +import com.google.cloud.talent.v4.CompleteQueryRequest; +import com.google.cloud.talent.v4.CompleteQueryResponse; +import com.google.cloud.talent.v4.CompletionClient; +import com.google.cloud.talent.v4.TenantName; +import java.util.ArrayList; + +public class AsyncCompleteQuery { + + public static void main(String[] args) throws Exception { + asyncCompleteQuery(); + } + + 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. + try (CompletionClient completionClient = CompletionClient.create()) { + CompleteQueryRequest request = + CompleteQueryRequest.newBuilder() + .setTenant(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setQuery("query107944136") + .addAllLanguageCodes(new ArrayList()) + .setPageSize(883849137) + .setCompany(CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]").toString()) + .build(); + ApiFuture future = + completionClient.completeQueryCallable().futureCall(request); + // Do something. + CompleteQueryResponse response = future.get(); + } + } +} +// [END talent_v4_generated_completionclient_completequery_async] 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 new file mode 100644 index 00000000000..612e547facd --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/completionclient/completequery/SyncCompleteQuery.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_completionclient_completequery_sync] +import com.google.cloud.talent.v4.CompanyName; +import com.google.cloud.talent.v4.CompleteQueryRequest; +import com.google.cloud.talent.v4.CompleteQueryResponse; +import com.google.cloud.talent.v4.CompletionClient; +import com.google.cloud.talent.v4.TenantName; +import java.util.ArrayList; + +public class SyncCompleteQuery { + + public static void main(String[] args) throws Exception { + syncCompleteQuery(); + } + + 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. + try (CompletionClient completionClient = CompletionClient.create()) { + CompleteQueryRequest request = + CompleteQueryRequest.newBuilder() + .setTenant(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setQuery("query107944136") + .addAllLanguageCodes(new ArrayList()) + .setPageSize(883849137) + .setCompany(CompanyName.of("[PROJECT]", "[TENANT]", "[COMPANY]").toString()) + .build(); + CompleteQueryResponse response = completionClient.completeQuery(request); + } + } +} +// [END talent_v4_generated_completionclient_completequery_sync] 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 new file mode 100644 index 00000000000..de0f37279ed --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/completionclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_completionclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.talent.v4.CompletionClient; +import com.google.cloud.talent.v4.CompletionSettings; +import com.google.cloud.talent.v4.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + 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. + CompletionSettings completionSettings = + CompletionSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + CompletionClient completionClient = CompletionClient.create(completionSettings); + } +} +// [END talent_v4_generated_completionclient_create_setcredentialsprovider_sync] 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 new file mode 100644 index 00000000000..72c48573c2f --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/completionclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_completionclient_create_setcredentialsprovider1_sync] +import com.google.cloud.talent.v4.CompletionClient; +import com.google.cloud.talent.v4.CompletionSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + 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. + CompletionSettings completionSettings = + CompletionSettings.newBuilder() + .setTransportChannelProvider( + CompletionSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + CompletionClient completionClient = CompletionClient.create(completionSettings); + } +} +// [END talent_v4_generated_completionclient_create_setcredentialsprovider1_sync] 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 new file mode 100644 index 00000000000..8c7b4d75cbb --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/completionclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_completionclient_create_setendpoint_sync] +import com.google.cloud.talent.v4.CompletionClient; +import com.google.cloud.talent.v4.CompletionSettings; +import com.google.cloud.talent.v4.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + 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. + CompletionSettings completionSettings = + CompletionSettings.newBuilder().setEndpoint(myEndpoint).build(); + CompletionClient completionClient = CompletionClient.create(completionSettings); + } +} +// [END talent_v4_generated_completionclient_create_setendpoint_sync] 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 new file mode 100644 index 00000000000..6d5b481a291 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/completionsettings/completequery/SyncCompleteQuery.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_completionsettings_completequery_sync] +import com.google.cloud.talent.v4.CompletionSettings; +import java.time.Duration; + +public class SyncCompleteQuery { + + public static void main(String[] args) throws Exception { + syncCompleteQuery(); + } + + 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. + CompletionSettings.Builder completionSettingsBuilder = CompletionSettings.newBuilder(); + completionSettingsBuilder + .completeQuerySettings() + .setRetrySettings( + completionSettingsBuilder + .completeQuerySettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + CompletionSettings completionSettings = completionSettingsBuilder.build(); + } +} +// [END talent_v4_generated_completionsettings_completequery_sync] 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 new file mode 100644 index 00000000000..481cdb74df4 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_eventserviceclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.talent.v4.EventServiceClient; +import com.google.cloud.talent.v4.EventServiceSettings; +import com.google.cloud.talent.v4.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + 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. + EventServiceSettings eventServiceSettings = + EventServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + EventServiceClient eventServiceClient = EventServiceClient.create(eventServiceSettings); + } +} +// [END talent_v4_generated_eventserviceclient_create_setcredentialsprovider_sync] 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 new file mode 100644 index 00000000000..53ffbe4fc05 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_eventserviceclient_create_setcredentialsprovider1_sync] +import com.google.cloud.talent.v4.EventServiceClient; +import com.google.cloud.talent.v4.EventServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + 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. + EventServiceSettings eventServiceSettings = + EventServiceSettings.newBuilder() + .setTransportChannelProvider( + EventServiceSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + EventServiceClient eventServiceClient = EventServiceClient.create(eventServiceSettings); + } +} +// [END talent_v4_generated_eventserviceclient_create_setcredentialsprovider1_sync] 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 new file mode 100644 index 00000000000..3a4791e1b7c --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_eventserviceclient_create_setendpoint_sync] +import com.google.cloud.talent.v4.EventServiceClient; +import com.google.cloud.talent.v4.EventServiceSettings; +import com.google.cloud.talent.v4.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + 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. + EventServiceSettings eventServiceSettings = + EventServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + EventServiceClient eventServiceClient = EventServiceClient.create(eventServiceSettings); + } +} +// [END talent_v4_generated_eventserviceclient_create_setendpoint_sync] 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 new file mode 100644 index 00000000000..75e3ca5a94c --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/createclientevent/AsyncCreateClientEvent.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_eventserviceclient_createclientevent_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4.ClientEvent; +import com.google.cloud.talent.v4.CreateClientEventRequest; +import com.google.cloud.talent.v4.EventServiceClient; +import com.google.cloud.talent.v4.TenantName; + +public class AsyncCreateClientEvent { + + public static void main(String[] args) throws Exception { + asyncCreateClientEvent(); + } + + 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. + try (EventServiceClient eventServiceClient = EventServiceClient.create()) { + CreateClientEventRequest request = + CreateClientEventRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setClientEvent(ClientEvent.newBuilder().build()) + .build(); + ApiFuture future = + eventServiceClient.createClientEventCallable().futureCall(request); + // Do something. + ClientEvent response = future.get(); + } + } +} +// [END talent_v4_generated_eventserviceclient_createclientevent_async] 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 new file mode 100644 index 00000000000..7f2bc2d6a84 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/createclientevent/SyncCreateClientEvent.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_eventserviceclient_createclientevent_sync] +import com.google.cloud.talent.v4.ClientEvent; +import com.google.cloud.talent.v4.CreateClientEventRequest; +import com.google.cloud.talent.v4.EventServiceClient; +import com.google.cloud.talent.v4.TenantName; + +public class SyncCreateClientEvent { + + public static void main(String[] args) throws Exception { + syncCreateClientEvent(); + } + + 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. + try (EventServiceClient eventServiceClient = EventServiceClient.create()) { + CreateClientEventRequest request = + CreateClientEventRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setClientEvent(ClientEvent.newBuilder().build()) + .build(); + ClientEvent response = eventServiceClient.createClientEvent(request); + } + } +} +// [END talent_v4_generated_eventserviceclient_createclientevent_sync] 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 new file mode 100644 index 00000000000..43f9f59f949 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/createclientevent/SyncCreateClientEventStringClientevent.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_eventserviceclient_createclientevent_stringclientevent_sync] +import com.google.cloud.talent.v4.ClientEvent; +import com.google.cloud.talent.v4.EventServiceClient; +import com.google.cloud.talent.v4.TenantName; + +public class SyncCreateClientEventStringClientevent { + + public static void main(String[] args) throws Exception { + syncCreateClientEventStringClientevent(); + } + + 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. + try (EventServiceClient eventServiceClient = EventServiceClient.create()) { + String parent = TenantName.of("[PROJECT]", "[TENANT]").toString(); + ClientEvent clientEvent = ClientEvent.newBuilder().build(); + ClientEvent response = eventServiceClient.createClientEvent(parent, clientEvent); + } + } +} +// [END talent_v4_generated_eventserviceclient_createclientevent_stringclientevent_sync] 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 new file mode 100644 index 00000000000..d76a042025d --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/eventserviceclient/createclientevent/SyncCreateClientEventTenantnameClientevent.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_eventserviceclient_createclientevent_tenantnameclientevent_sync] +import com.google.cloud.talent.v4.ClientEvent; +import com.google.cloud.talent.v4.EventServiceClient; +import com.google.cloud.talent.v4.TenantName; + +public class SyncCreateClientEventTenantnameClientevent { + + public static void main(String[] args) throws Exception { + syncCreateClientEventTenantnameClientevent(); + } + + 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. + try (EventServiceClient eventServiceClient = EventServiceClient.create()) { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + ClientEvent clientEvent = ClientEvent.newBuilder().build(); + ClientEvent response = eventServiceClient.createClientEvent(parent, clientEvent); + } + } +} +// [END talent_v4_generated_eventserviceclient_createclientevent_tenantnameclientevent_sync] 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 new file mode 100644 index 00000000000..0022a6b4976 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/eventservicesettings/createclientevent/SyncCreateClientEvent.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_eventservicesettings_createclientevent_sync] +import com.google.cloud.talent.v4.EventServiceSettings; +import java.time.Duration; + +public class SyncCreateClientEvent { + + public static void main(String[] args) throws Exception { + syncCreateClientEvent(); + } + + 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. + EventServiceSettings.Builder eventServiceSettingsBuilder = EventServiceSettings.newBuilder(); + eventServiceSettingsBuilder + .createClientEventSettings() + .setRetrySettings( + eventServiceSettingsBuilder + .createClientEventSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + EventServiceSettings eventServiceSettings = eventServiceSettingsBuilder.build(); + } +} +// [END talent_v4_generated_eventservicesettings_createclientevent_sync] 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 new file mode 100644 index 00000000000..a6b9474d164 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchcreatejobs/AsyncBatchCreateJobs.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_batchcreatejobs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4.BatchCreateJobsRequest; +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.TenantName; +import com.google.longrunning.Operation; +import java.util.ArrayList; + +public class AsyncBatchCreateJobs { + + public static void main(String[] args) throws Exception { + asyncBatchCreateJobs(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + BatchCreateJobsRequest request = + BatchCreateJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .addAllJobs(new ArrayList()) + .build(); + ApiFuture future = jobServiceClient.batchCreateJobsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END talent_v4_generated_jobserviceclient_batchcreatejobs_async] 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 new file mode 100644 index 00000000000..6ceff52dffa --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchcreatejobs/AsyncBatchCreateJobsLRO.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_batchcreatejobs_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.talent.v4.BatchCreateJobsRequest; +import com.google.cloud.talent.v4.BatchCreateJobsResponse; +import com.google.cloud.talent.v4.BatchOperationMetadata; +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.TenantName; +import java.util.ArrayList; + +public class AsyncBatchCreateJobsLRO { + + public static void main(String[] args) throws Exception { + asyncBatchCreateJobsLRO(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + BatchCreateJobsRequest request = + BatchCreateJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .addAllJobs(new ArrayList()) + .build(); + OperationFuture future = + jobServiceClient.batchCreateJobsOperationCallable().futureCall(request); + // Do something. + BatchCreateJobsResponse response = future.get(); + } + } +} +// [END talent_v4_generated_jobserviceclient_batchcreatejobs_lro_async] 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 new file mode 100644 index 00000000000..fcdae4743ab --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchcreatejobs/SyncBatchCreateJobs.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_batchcreatejobs_sync] +import com.google.cloud.talent.v4.BatchCreateJobsRequest; +import com.google.cloud.talent.v4.BatchCreateJobsResponse; +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.TenantName; +import java.util.ArrayList; + +public class SyncBatchCreateJobs { + + public static void main(String[] args) throws Exception { + syncBatchCreateJobs(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + BatchCreateJobsRequest request = + BatchCreateJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .addAllJobs(new ArrayList()) + .build(); + BatchCreateJobsResponse response = jobServiceClient.batchCreateJobsAsync(request).get(); + } + } +} +// [END talent_v4_generated_jobserviceclient_batchcreatejobs_sync] 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 new file mode 100644 index 00000000000..3b086a83191 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchcreatejobs/SyncBatchCreateJobsStringListjob.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_batchcreatejobs_stringlistjob_sync] +import com.google.cloud.talent.v4.BatchCreateJobsResponse; +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.TenantName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchCreateJobsStringListjob { + + public static void main(String[] args) throws Exception { + syncBatchCreateJobsStringListjob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + String parent = TenantName.of("[PROJECT]", "[TENANT]").toString(); + List jobs = new ArrayList<>(); + BatchCreateJobsResponse response = jobServiceClient.batchCreateJobsAsync(parent, jobs).get(); + } + } +} +// [END talent_v4_generated_jobserviceclient_batchcreatejobs_stringlistjob_sync] 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 new file mode 100644 index 00000000000..fa6358fa845 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchcreatejobs/SyncBatchCreateJobsTenantnameListjob.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_batchcreatejobs_tenantnamelistjob_sync] +import com.google.cloud.talent.v4.BatchCreateJobsResponse; +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.TenantName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchCreateJobsTenantnameListjob { + + public static void main(String[] args) throws Exception { + syncBatchCreateJobsTenantnameListjob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + List jobs = new ArrayList<>(); + BatchCreateJobsResponse response = jobServiceClient.batchCreateJobsAsync(parent, jobs).get(); + } + } +} +// [END talent_v4_generated_jobserviceclient_batchcreatejobs_tenantnamelistjob_sync] 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 new file mode 100644 index 00000000000..7ef3560a5cf --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchdeletejobs/AsyncBatchDeleteJobs.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_batchdeletejobs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4.BatchDeleteJobsRequest; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.TenantName; +import com.google.longrunning.Operation; +import java.util.ArrayList; + +public class AsyncBatchDeleteJobs { + + public static void main(String[] args) throws Exception { + asyncBatchDeleteJobs(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + BatchDeleteJobsRequest request = + BatchDeleteJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .addAllNames(new ArrayList()) + .build(); + ApiFuture future = jobServiceClient.batchDeleteJobsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END talent_v4_generated_jobserviceclient_batchdeletejobs_async] 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 new file mode 100644 index 00000000000..574a095f2e3 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchdeletejobs/AsyncBatchDeleteJobsLRO.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_batchdeletejobs_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.talent.v4.BatchDeleteJobsRequest; +import com.google.cloud.talent.v4.BatchDeleteJobsResponse; +import com.google.cloud.talent.v4.BatchOperationMetadata; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.TenantName; +import java.util.ArrayList; + +public class AsyncBatchDeleteJobsLRO { + + public static void main(String[] args) throws Exception { + asyncBatchDeleteJobsLRO(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + BatchDeleteJobsRequest request = + BatchDeleteJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .addAllNames(new ArrayList()) + .build(); + OperationFuture future = + jobServiceClient.batchDeleteJobsOperationCallable().futureCall(request); + // Do something. + BatchDeleteJobsResponse response = future.get(); + } + } +} +// [END talent_v4_generated_jobserviceclient_batchdeletejobs_lro_async] 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 new file mode 100644 index 00000000000..2e93832ed57 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobs.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_batchdeletejobs_sync] +import com.google.cloud.talent.v4.BatchDeleteJobsRequest; +import com.google.cloud.talent.v4.BatchDeleteJobsResponse; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.TenantName; +import java.util.ArrayList; + +public class SyncBatchDeleteJobs { + + public static void main(String[] args) throws Exception { + syncBatchDeleteJobs(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + BatchDeleteJobsRequest request = + BatchDeleteJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .addAllNames(new ArrayList()) + .build(); + BatchDeleteJobsResponse response = jobServiceClient.batchDeleteJobsAsync(request).get(); + } + } +} +// [END talent_v4_generated_jobserviceclient_batchdeletejobs_sync] 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 new file mode 100644 index 00000000000..7c9ed9e5783 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobsStringListstring.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_batchdeletejobs_stringliststring_sync] +import com.google.cloud.talent.v4.BatchDeleteJobsResponse; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.TenantName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchDeleteJobsStringListstring { + + public static void main(String[] args) throws Exception { + syncBatchDeleteJobsStringListstring(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + String parent = TenantName.of("[PROJECT]", "[TENANT]").toString(); + List names = new ArrayList<>(); + BatchDeleteJobsResponse response = jobServiceClient.batchDeleteJobsAsync(parent, names).get(); + } + } +} +// [END talent_v4_generated_jobserviceclient_batchdeletejobs_stringliststring_sync] 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 new file mode 100644 index 00000000000..92c2d4f94be --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobsTenantnameListstring.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_batchdeletejobs_tenantnameliststring_sync] +import com.google.cloud.talent.v4.BatchDeleteJobsResponse; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.TenantName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchDeleteJobsTenantnameListstring { + + public static void main(String[] args) throws Exception { + syncBatchDeleteJobsTenantnameListstring(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + List names = new ArrayList<>(); + BatchDeleteJobsResponse response = jobServiceClient.batchDeleteJobsAsync(parent, names).get(); + } + } +} +// [END talent_v4_generated_jobserviceclient_batchdeletejobs_tenantnameliststring_sync] 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 new file mode 100644 index 00000000000..cbc54000a04 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchupdatejobs/AsyncBatchUpdateJobs.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_batchupdatejobs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4.BatchUpdateJobsRequest; +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.TenantName; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; +import java.util.ArrayList; + +public class AsyncBatchUpdateJobs { + + public static void main(String[] args) throws Exception { + asyncBatchUpdateJobs(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + BatchUpdateJobsRequest request = + BatchUpdateJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .addAllJobs(new ArrayList()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = jobServiceClient.batchUpdateJobsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END talent_v4_generated_jobserviceclient_batchupdatejobs_async] 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 new file mode 100644 index 00000000000..844986edc6a --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchupdatejobs/AsyncBatchUpdateJobsLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_batchupdatejobs_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.talent.v4.BatchOperationMetadata; +import com.google.cloud.talent.v4.BatchUpdateJobsRequest; +import com.google.cloud.talent.v4.BatchUpdateJobsResponse; +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.TenantName; +import com.google.protobuf.FieldMask; +import java.util.ArrayList; + +public class AsyncBatchUpdateJobsLRO { + + public static void main(String[] args) throws Exception { + asyncBatchUpdateJobsLRO(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + BatchUpdateJobsRequest request = + BatchUpdateJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .addAllJobs(new ArrayList()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + jobServiceClient.batchUpdateJobsOperationCallable().futureCall(request); + // Do something. + BatchUpdateJobsResponse response = future.get(); + } + } +} +// [END talent_v4_generated_jobserviceclient_batchupdatejobs_lro_async] 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 new file mode 100644 index 00000000000..dc1aa2686b1 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobs.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_batchupdatejobs_sync] +import com.google.cloud.talent.v4.BatchUpdateJobsRequest; +import com.google.cloud.talent.v4.BatchUpdateJobsResponse; +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.TenantName; +import com.google.protobuf.FieldMask; +import java.util.ArrayList; + +public class SyncBatchUpdateJobs { + + public static void main(String[] args) throws Exception { + syncBatchUpdateJobs(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + BatchUpdateJobsRequest request = + BatchUpdateJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .addAllJobs(new ArrayList()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + BatchUpdateJobsResponse response = jobServiceClient.batchUpdateJobsAsync(request).get(); + } + } +} +// [END talent_v4_generated_jobserviceclient_batchupdatejobs_sync] 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 new file mode 100644 index 00000000000..f025ae1665b --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobsStringListjob.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_batchupdatejobs_stringlistjob_sync] +import com.google.cloud.talent.v4.BatchUpdateJobsResponse; +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.TenantName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchUpdateJobsStringListjob { + + public static void main(String[] args) throws Exception { + syncBatchUpdateJobsStringListjob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + String parent = TenantName.of("[PROJECT]", "[TENANT]").toString(); + List jobs = new ArrayList<>(); + BatchUpdateJobsResponse response = jobServiceClient.batchUpdateJobsAsync(parent, jobs).get(); + } + } +} +// [END talent_v4_generated_jobserviceclient_batchupdatejobs_stringlistjob_sync] 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 new file mode 100644 index 00000000000..2d21df1858a --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobsTenantnameListjob.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_batchupdatejobs_tenantnamelistjob_sync] +import com.google.cloud.talent.v4.BatchUpdateJobsResponse; +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.TenantName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchUpdateJobsTenantnameListjob { + + public static void main(String[] args) throws Exception { + syncBatchUpdateJobsTenantnameListjob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + List jobs = new ArrayList<>(); + BatchUpdateJobsResponse response = jobServiceClient.batchUpdateJobsAsync(parent, jobs).get(); + } + } +} +// [END talent_v4_generated_jobserviceclient_batchupdatejobs_tenantnamelistjob_sync] 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 new file mode 100644 index 00000000000..89b60a06a74 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.JobServiceSettings; +import com.google.cloud.talent.v4.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + 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. + JobServiceSettings jobServiceSettings = + JobServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + JobServiceClient jobServiceClient = JobServiceClient.create(jobServiceSettings); + } +} +// [END talent_v4_generated_jobserviceclient_create_setcredentialsprovider_sync] 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 new file mode 100644 index 00000000000..60974386880 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_create_setcredentialsprovider1_sync] +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.JobServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + 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. + JobServiceSettings jobServiceSettings = + JobServiceSettings.newBuilder() + .setTransportChannelProvider( + JobServiceSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + JobServiceClient jobServiceClient = JobServiceClient.create(jobServiceSettings); + } +} +// [END talent_v4_generated_jobserviceclient_create_setcredentialsprovider1_sync] 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 new file mode 100644 index 00000000000..3568e2755df --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_create_setendpoint_sync] +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.JobServiceSettings; +import com.google.cloud.talent.v4.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + 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. + JobServiceSettings jobServiceSettings = + JobServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + JobServiceClient jobServiceClient = JobServiceClient.create(jobServiceSettings); + } +} +// [END talent_v4_generated_jobserviceclient_create_setendpoint_sync] 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 new file mode 100644 index 00000000000..4b0f2e2182d --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/createjob/AsyncCreateJob.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_createjob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4.CreateJobRequest; +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.TenantName; + +public class AsyncCreateJob { + + public static void main(String[] args) throws Exception { + asyncCreateJob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + CreateJobRequest request = + CreateJobRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setJob(Job.newBuilder().build()) + .build(); + ApiFuture future = jobServiceClient.createJobCallable().futureCall(request); + // Do something. + Job response = future.get(); + } + } +} +// [END talent_v4_generated_jobserviceclient_createjob_async] 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 new file mode 100644 index 00000000000..42a04b6f502 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/createjob/SyncCreateJob.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_createjob_sync] +import com.google.cloud.talent.v4.CreateJobRequest; +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.TenantName; + +public class SyncCreateJob { + + public static void main(String[] args) throws Exception { + syncCreateJob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + CreateJobRequest request = + CreateJobRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setJob(Job.newBuilder().build()) + .build(); + Job response = jobServiceClient.createJob(request); + } + } +} +// [END talent_v4_generated_jobserviceclient_createjob_sync] 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 new file mode 100644 index 00000000000..3b0db141c02 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/createjob/SyncCreateJobStringJob.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_createjob_stringjob_sync] +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.TenantName; + +public class SyncCreateJobStringJob { + + public static void main(String[] args) throws Exception { + syncCreateJobStringJob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + String parent = TenantName.of("[PROJECT]", "[TENANT]").toString(); + Job job = Job.newBuilder().build(); + Job response = jobServiceClient.createJob(parent, job); + } + } +} +// [END talent_v4_generated_jobserviceclient_createjob_stringjob_sync] 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 new file mode 100644 index 00000000000..5ba7932951b --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/createjob/SyncCreateJobTenantnameJob.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_createjob_tenantnamejob_sync] +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.TenantName; + +public class SyncCreateJobTenantnameJob { + + public static void main(String[] args) throws Exception { + syncCreateJobTenantnameJob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + Job job = Job.newBuilder().build(); + Job response = jobServiceClient.createJob(parent, job); + } + } +} +// [END talent_v4_generated_jobserviceclient_createjob_tenantnamejob_sync] 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 new file mode 100644 index 00000000000..1691af82fbe --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/deletejob/AsyncDeleteJob.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_deletejob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4.DeleteJobRequest; +import com.google.cloud.talent.v4.JobName; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteJob { + + public static void main(String[] args) throws Exception { + asyncDeleteJob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + DeleteJobRequest request = + DeleteJobRequest.newBuilder() + .setName(JobName.of("[PROJECT]", "[TENANT]", "[JOB]").toString()) + .build(); + ApiFuture future = jobServiceClient.deleteJobCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END talent_v4_generated_jobserviceclient_deletejob_async] 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 new file mode 100644 index 00000000000..0a3b6476227 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/deletejob/SyncDeleteJob.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_deletejob_sync] +import com.google.cloud.talent.v4.DeleteJobRequest; +import com.google.cloud.talent.v4.JobName; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteJob { + + public static void main(String[] args) throws Exception { + syncDeleteJob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + DeleteJobRequest request = + DeleteJobRequest.newBuilder() + .setName(JobName.of("[PROJECT]", "[TENANT]", "[JOB]").toString()) + .build(); + jobServiceClient.deleteJob(request); + } + } +} +// [END talent_v4_generated_jobserviceclient_deletejob_sync] 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 new file mode 100644 index 00000000000..60949736023 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/deletejob/SyncDeleteJobJobname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_deletejob_jobname_sync] +import com.google.cloud.talent.v4.JobName; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteJobJobname { + + public static void main(String[] args) throws Exception { + syncDeleteJobJobname(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + JobName name = JobName.of("[PROJECT]", "[TENANT]", "[JOB]"); + jobServiceClient.deleteJob(name); + } + } +} +// [END talent_v4_generated_jobserviceclient_deletejob_jobname_sync] 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 new file mode 100644 index 00000000000..4430c55898e --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/deletejob/SyncDeleteJobString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_deletejob_string_sync] +import com.google.cloud.talent.v4.JobName; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteJobString { + + public static void main(String[] args) throws Exception { + syncDeleteJobString(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + String name = JobName.of("[PROJECT]", "[TENANT]", "[JOB]").toString(); + jobServiceClient.deleteJob(name); + } + } +} +// [END talent_v4_generated_jobserviceclient_deletejob_string_sync] 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 new file mode 100644 index 00000000000..9fa4c5474b9 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/getjob/AsyncGetJob.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_getjob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4.GetJobRequest; +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobName; +import com.google.cloud.talent.v4.JobServiceClient; + +public class AsyncGetJob { + + public static void main(String[] args) throws Exception { + asyncGetJob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + GetJobRequest request = + GetJobRequest.newBuilder() + .setName(JobName.of("[PROJECT]", "[TENANT]", "[JOB]").toString()) + .build(); + ApiFuture future = jobServiceClient.getJobCallable().futureCall(request); + // Do something. + Job response = future.get(); + } + } +} +// [END talent_v4_generated_jobserviceclient_getjob_async] 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 new file mode 100644 index 00000000000..ecb8b152d23 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/getjob/SyncGetJob.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_getjob_sync] +import com.google.cloud.talent.v4.GetJobRequest; +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobName; +import com.google.cloud.talent.v4.JobServiceClient; + +public class SyncGetJob { + + public static void main(String[] args) throws Exception { + syncGetJob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + GetJobRequest request = + GetJobRequest.newBuilder() + .setName(JobName.of("[PROJECT]", "[TENANT]", "[JOB]").toString()) + .build(); + Job response = jobServiceClient.getJob(request); + } + } +} +// [END talent_v4_generated_jobserviceclient_getjob_sync] 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 new file mode 100644 index 00000000000..cdb32877756 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/getjob/SyncGetJobJobname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_getjob_jobname_sync] +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobName; +import com.google.cloud.talent.v4.JobServiceClient; + +public class SyncGetJobJobname { + + public static void main(String[] args) throws Exception { + syncGetJobJobname(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + JobName name = JobName.of("[PROJECT]", "[TENANT]", "[JOB]"); + Job response = jobServiceClient.getJob(name); + } + } +} +// [END talent_v4_generated_jobserviceclient_getjob_jobname_sync] 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 new file mode 100644 index 00000000000..081b4558d06 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/getjob/SyncGetJobString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_getjob_string_sync] +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobName; +import com.google.cloud.talent.v4.JobServiceClient; + +public class SyncGetJobString { + + public static void main(String[] args) throws Exception { + syncGetJobString(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + String name = JobName.of("[PROJECT]", "[TENANT]", "[JOB]").toString(); + Job response = jobServiceClient.getJob(name); + } + } +} +// [END talent_v4_generated_jobserviceclient_getjob_string_sync] 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 new file mode 100644 index 00000000000..15b9b63c729 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/listjobs/AsyncListJobs.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_listjobs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.JobView; +import com.google.cloud.talent.v4.ListJobsRequest; +import com.google.cloud.talent.v4.TenantName; + +public class AsyncListJobs { + + public static void main(String[] args) throws Exception { + asyncListJobs(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + ListJobsRequest request = + ListJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setFilter("filter-1274492040") + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .setJobView(JobView.forNumber(0)) + .build(); + ApiFuture future = jobServiceClient.listJobsPagedCallable().futureCall(request); + // Do something. + for (Job element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END talent_v4_generated_jobserviceclient_listjobs_async] 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 new file mode 100644 index 00000000000..f86a0c31fbe --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/listjobs/AsyncListJobsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_listjobs_paged_async] +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.JobView; +import com.google.cloud.talent.v4.ListJobsRequest; +import com.google.cloud.talent.v4.ListJobsResponse; +import com.google.cloud.talent.v4.TenantName; +import com.google.common.base.Strings; + +public class AsyncListJobsPaged { + + public static void main(String[] args) throws Exception { + asyncListJobsPaged(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + ListJobsRequest request = + ListJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setFilter("filter-1274492040") + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .setJobView(JobView.forNumber(0)) + .build(); + while (true) { + ListJobsResponse response = jobServiceClient.listJobsCallable().call(request); + for (Job element : response.getJobsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END talent_v4_generated_jobserviceclient_listjobs_paged_async] 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 new file mode 100644 index 00000000000..92655ffee51 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/listjobs/SyncListJobs.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_listjobs_sync] +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.JobView; +import com.google.cloud.talent.v4.ListJobsRequest; +import com.google.cloud.talent.v4.TenantName; + +public class SyncListJobs { + + public static void main(String[] args) throws Exception { + syncListJobs(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + ListJobsRequest request = + ListJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setFilter("filter-1274492040") + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .setJobView(JobView.forNumber(0)) + .build(); + for (Job element : jobServiceClient.listJobs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END talent_v4_generated_jobserviceclient_listjobs_sync] 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 new file mode 100644 index 00000000000..0da73117af8 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/listjobs/SyncListJobsStringString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_listjobs_stringstring_sync] +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.TenantName; + +public class SyncListJobsStringString { + + public static void main(String[] args) throws Exception { + syncListJobsStringString(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + String parent = TenantName.of("[PROJECT]", "[TENANT]").toString(); + String filter = "filter-1274492040"; + for (Job element : jobServiceClient.listJobs(parent, filter).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END talent_v4_generated_jobserviceclient_listjobs_stringstring_sync] 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 new file mode 100644 index 00000000000..f97f6a0efee --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/listjobs/SyncListJobsTenantnameString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_listjobs_tenantnamestring_sync] +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.TenantName; + +public class SyncListJobsTenantnameString { + + public static void main(String[] args) throws Exception { + syncListJobsTenantnameString(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + String filter = "filter-1274492040"; + for (Job element : jobServiceClient.listJobs(parent, filter).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END talent_v4_generated_jobserviceclient_listjobs_tenantnamestring_sync] 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 new file mode 100644 index 00000000000..87fdc7ead63 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/searchjobs/AsyncSearchJobs.java @@ -0,0 +1,63 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_searchjobs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4.HistogramQuery; +import com.google.cloud.talent.v4.JobQuery; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.JobView; +import com.google.cloud.talent.v4.RequestMetadata; +import com.google.cloud.talent.v4.SearchJobsRequest; +import com.google.cloud.talent.v4.SearchJobsResponse; +import com.google.cloud.talent.v4.TenantName; +import java.util.ArrayList; + +public class AsyncSearchJobs { + + public static void main(String[] args) throws Exception { + asyncSearchJobs(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + SearchJobsRequest request = + SearchJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setRequestMetadata(RequestMetadata.newBuilder().build()) + .setJobQuery(JobQuery.newBuilder().build()) + .setEnableBroadening(true) + .addAllHistogramQueries(new ArrayList()) + .setJobView(JobView.forNumber(0)) + .setOffset(-1019779949) + .setMaxPageSize(524069526) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setCustomRankingInfo(SearchJobsRequest.CustomRankingInfo.newBuilder().build()) + .setDisableKeywordMatch(true) + .build(); + ApiFuture future = + jobServiceClient.searchJobsCallable().futureCall(request); + // Do something. + SearchJobsResponse response = future.get(); + } + } +} +// [END talent_v4_generated_jobserviceclient_searchjobs_async] 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 new file mode 100644 index 00000000000..d7a3f7bbfd1 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/searchjobs/SyncSearchJobs.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_searchjobs_sync] +import com.google.cloud.talent.v4.HistogramQuery; +import com.google.cloud.talent.v4.JobQuery; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.JobView; +import com.google.cloud.talent.v4.RequestMetadata; +import com.google.cloud.talent.v4.SearchJobsRequest; +import com.google.cloud.talent.v4.SearchJobsResponse; +import com.google.cloud.talent.v4.TenantName; +import java.util.ArrayList; + +public class SyncSearchJobs { + + public static void main(String[] args) throws Exception { + syncSearchJobs(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + SearchJobsRequest request = + SearchJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setRequestMetadata(RequestMetadata.newBuilder().build()) + .setJobQuery(JobQuery.newBuilder().build()) + .setEnableBroadening(true) + .addAllHistogramQueries(new ArrayList()) + .setJobView(JobView.forNumber(0)) + .setOffset(-1019779949) + .setMaxPageSize(524069526) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setCustomRankingInfo(SearchJobsRequest.CustomRankingInfo.newBuilder().build()) + .setDisableKeywordMatch(true) + .build(); + SearchJobsResponse response = jobServiceClient.searchJobs(request); + } + } +} +// [END talent_v4_generated_jobserviceclient_searchjobs_sync] 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 new file mode 100644 index 00000000000..396c7730bde --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/searchjobsforalert/AsyncSearchJobsForAlert.java @@ -0,0 +1,63 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_searchjobsforalert_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4.HistogramQuery; +import com.google.cloud.talent.v4.JobQuery; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.JobView; +import com.google.cloud.talent.v4.RequestMetadata; +import com.google.cloud.talent.v4.SearchJobsRequest; +import com.google.cloud.talent.v4.SearchJobsResponse; +import com.google.cloud.talent.v4.TenantName; +import java.util.ArrayList; + +public class AsyncSearchJobsForAlert { + + public static void main(String[] args) throws Exception { + asyncSearchJobsForAlert(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + SearchJobsRequest request = + SearchJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setRequestMetadata(RequestMetadata.newBuilder().build()) + .setJobQuery(JobQuery.newBuilder().build()) + .setEnableBroadening(true) + .addAllHistogramQueries(new ArrayList()) + .setJobView(JobView.forNumber(0)) + .setOffset(-1019779949) + .setMaxPageSize(524069526) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setCustomRankingInfo(SearchJobsRequest.CustomRankingInfo.newBuilder().build()) + .setDisableKeywordMatch(true) + .build(); + ApiFuture future = + jobServiceClient.searchJobsForAlertCallable().futureCall(request); + // Do something. + SearchJobsResponse response = future.get(); + } + } +} +// [END talent_v4_generated_jobserviceclient_searchjobsforalert_async] 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 new file mode 100644 index 00000000000..935885856c4 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/searchjobsforalert/SyncSearchJobsForAlert.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_searchjobsforalert_sync] +import com.google.cloud.talent.v4.HistogramQuery; +import com.google.cloud.talent.v4.JobQuery; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.JobView; +import com.google.cloud.talent.v4.RequestMetadata; +import com.google.cloud.talent.v4.SearchJobsRequest; +import com.google.cloud.talent.v4.SearchJobsResponse; +import com.google.cloud.talent.v4.TenantName; +import java.util.ArrayList; + +public class SyncSearchJobsForAlert { + + public static void main(String[] args) throws Exception { + syncSearchJobsForAlert(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + SearchJobsRequest request = + SearchJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setRequestMetadata(RequestMetadata.newBuilder().build()) + .setJobQuery(JobQuery.newBuilder().build()) + .setEnableBroadening(true) + .addAllHistogramQueries(new ArrayList()) + .setJobView(JobView.forNumber(0)) + .setOffset(-1019779949) + .setMaxPageSize(524069526) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setCustomRankingInfo(SearchJobsRequest.CustomRankingInfo.newBuilder().build()) + .setDisableKeywordMatch(true) + .build(); + SearchJobsResponse response = jobServiceClient.searchJobsForAlert(request); + } + } +} +// [END talent_v4_generated_jobserviceclient_searchjobsforalert_sync] 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 new file mode 100644 index 00000000000..6b266188d3c --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/updatejob/AsyncUpdateJob.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_updatejob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.UpdateJobRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateJob { + + public static void main(String[] args) throws Exception { + asyncUpdateJob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + UpdateJobRequest request = + UpdateJobRequest.newBuilder() + .setJob(Job.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = jobServiceClient.updateJobCallable().futureCall(request); + // Do something. + Job response = future.get(); + } + } +} +// [END talent_v4_generated_jobserviceclient_updatejob_async] 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 new file mode 100644 index 00000000000..0bd0ebf6fbc --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/updatejob/SyncUpdateJob.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_updatejob_sync] +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.cloud.talent.v4.UpdateJobRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateJob { + + public static void main(String[] args) throws Exception { + syncUpdateJob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + UpdateJobRequest request = + UpdateJobRequest.newBuilder() + .setJob(Job.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Job response = jobServiceClient.updateJob(request); + } + } +} +// [END talent_v4_generated_jobserviceclient_updatejob_sync] 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 new file mode 100644 index 00000000000..5cb15013d0e --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobserviceclient/updatejob/SyncUpdateJobJobFieldmask.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobserviceclient_updatejob_jobfieldmask_sync] +import com.google.cloud.talent.v4.Job; +import com.google.cloud.talent.v4.JobServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateJobJobFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateJobJobFieldmask(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + Job job = Job.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Job response = jobServiceClient.updateJob(job, updateMask); + } + } +} +// [END talent_v4_generated_jobserviceclient_updatejob_jobfieldmask_sync] 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 new file mode 100644 index 00000000000..75ceb424943 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/jobservicesettings/createjob/SyncCreateJob.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_jobservicesettings_createjob_sync] +import com.google.cloud.talent.v4.JobServiceSettings; +import java.time.Duration; + +public class SyncCreateJob { + + public static void main(String[] args) throws Exception { + syncCreateJob(); + } + + 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. + JobServiceSettings.Builder jobServiceSettingsBuilder = JobServiceSettings.newBuilder(); + jobServiceSettingsBuilder + .createJobSettings() + .setRetrySettings( + jobServiceSettingsBuilder + .createJobSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + JobServiceSettings jobServiceSettings = jobServiceSettingsBuilder.build(); + } +} +// [END talent_v4_generated_jobservicesettings_createjob_sync] 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 new file mode 100644 index 00000000000..0530a27dee3 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/stub/companyservicestubsettings/createcompany/SyncCreateCompany.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.stub.samples; + +// [START talent_v4_generated_companyservicestubsettings_createcompany_sync] +import com.google.cloud.talent.v4.stub.CompanyServiceStubSettings; +import java.time.Duration; + +public class SyncCreateCompany { + + public static void main(String[] args) throws Exception { + syncCreateCompany(); + } + + 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. + CompanyServiceStubSettings.Builder companyServiceSettingsBuilder = + CompanyServiceStubSettings.newBuilder(); + companyServiceSettingsBuilder + .createCompanySettings() + .setRetrySettings( + companyServiceSettingsBuilder + .createCompanySettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + CompanyServiceStubSettings companyServiceSettings = companyServiceSettingsBuilder.build(); + } +} +// [END talent_v4_generated_companyservicestubsettings_createcompany_sync] 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 new file mode 100644 index 00000000000..dd05da2bb01 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/stub/completionstubsettings/completequery/SyncCompleteQuery.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.stub.samples; + +// [START talent_v4_generated_completionstubsettings_completequery_sync] +import com.google.cloud.talent.v4.stub.CompletionStubSettings; +import java.time.Duration; + +public class SyncCompleteQuery { + + public static void main(String[] args) throws Exception { + syncCompleteQuery(); + } + + 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. + CompletionStubSettings.Builder completionSettingsBuilder = CompletionStubSettings.newBuilder(); + completionSettingsBuilder + .completeQuerySettings() + .setRetrySettings( + completionSettingsBuilder + .completeQuerySettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + CompletionStubSettings completionSettings = completionSettingsBuilder.build(); + } +} +// [END talent_v4_generated_completionstubsettings_completequery_sync] 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 new file mode 100644 index 00000000000..8ec0da3f0a7 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/stub/eventservicestubsettings/createclientevent/SyncCreateClientEvent.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.stub.samples; + +// [START talent_v4_generated_eventservicestubsettings_createclientevent_sync] +import com.google.cloud.talent.v4.stub.EventServiceStubSettings; +import java.time.Duration; + +public class SyncCreateClientEvent { + + public static void main(String[] args) throws Exception { + syncCreateClientEvent(); + } + + 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. + EventServiceStubSettings.Builder eventServiceSettingsBuilder = + EventServiceStubSettings.newBuilder(); + eventServiceSettingsBuilder + .createClientEventSettings() + .setRetrySettings( + eventServiceSettingsBuilder + .createClientEventSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + EventServiceStubSettings eventServiceSettings = eventServiceSettingsBuilder.build(); + } +} +// [END talent_v4_generated_eventservicestubsettings_createclientevent_sync] 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 new file mode 100644 index 00000000000..5807b548b92 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/stub/jobservicestubsettings/createjob/SyncCreateJob.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.stub.samples; + +// [START talent_v4_generated_jobservicestubsettings_createjob_sync] +import com.google.cloud.talent.v4.stub.JobServiceStubSettings; +import java.time.Duration; + +public class SyncCreateJob { + + public static void main(String[] args) throws Exception { + syncCreateJob(); + } + + 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. + JobServiceStubSettings.Builder jobServiceSettingsBuilder = JobServiceStubSettings.newBuilder(); + jobServiceSettingsBuilder + .createJobSettings() + .setRetrySettings( + jobServiceSettingsBuilder + .createJobSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + JobServiceStubSettings jobServiceSettings = jobServiceSettingsBuilder.build(); + } +} +// [END talent_v4_generated_jobservicestubsettings_createjob_sync] 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 new file mode 100644 index 00000000000..11189a0ad59 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/stub/tenantservicestubsettings/createtenant/SyncCreateTenant.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.stub.samples; + +// [START talent_v4_generated_tenantservicestubsettings_createtenant_sync] +import com.google.cloud.talent.v4.stub.TenantServiceStubSettings; +import java.time.Duration; + +public class SyncCreateTenant { + + public static void main(String[] args) throws Exception { + syncCreateTenant(); + } + + 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. + TenantServiceStubSettings.Builder tenantServiceSettingsBuilder = + TenantServiceStubSettings.newBuilder(); + tenantServiceSettingsBuilder + .createTenantSettings() + .setRetrySettings( + tenantServiceSettingsBuilder + .createTenantSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + TenantServiceStubSettings tenantServiceSettings = tenantServiceSettingsBuilder.build(); + } +} +// [END talent_v4_generated_tenantservicestubsettings_createtenant_sync] 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 new file mode 100644 index 00000000000..d16170143ab --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_tenantserviceclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.talent.v4.TenantServiceClient; +import com.google.cloud.talent.v4.TenantServiceSettings; +import com.google.cloud.talent.v4.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + 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. + TenantServiceSettings tenantServiceSettings = + TenantServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + TenantServiceClient tenantServiceClient = TenantServiceClient.create(tenantServiceSettings); + } +} +// [END talent_v4_generated_tenantserviceclient_create_setcredentialsprovider_sync] 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 new file mode 100644 index 00000000000..094c519a4fb --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_tenantserviceclient_create_setcredentialsprovider1_sync] +import com.google.cloud.talent.v4.TenantServiceClient; +import com.google.cloud.talent.v4.TenantServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + 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. + TenantServiceSettings tenantServiceSettings = + TenantServiceSettings.newBuilder() + .setTransportChannelProvider( + TenantServiceSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + TenantServiceClient tenantServiceClient = TenantServiceClient.create(tenantServiceSettings); + } +} +// [END talent_v4_generated_tenantserviceclient_create_setcredentialsprovider1_sync] 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 new file mode 100644 index 00000000000..3e65bcd3761 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_tenantserviceclient_create_setendpoint_sync] +import com.google.cloud.talent.v4.TenantServiceClient; +import com.google.cloud.talent.v4.TenantServiceSettings; +import com.google.cloud.talent.v4.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + 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. + TenantServiceSettings tenantServiceSettings = + TenantServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + TenantServiceClient tenantServiceClient = TenantServiceClient.create(tenantServiceSettings); + } +} +// [END talent_v4_generated_tenantserviceclient_create_setendpoint_sync] 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 new file mode 100644 index 00000000000..4f2d9c9a066 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/createtenant/AsyncCreateTenant.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_tenantserviceclient_createtenant_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4.CreateTenantRequest; +import com.google.cloud.talent.v4.ProjectName; +import com.google.cloud.talent.v4.Tenant; +import com.google.cloud.talent.v4.TenantServiceClient; + +public class AsyncCreateTenant { + + public static void main(String[] args) throws Exception { + asyncCreateTenant(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + CreateTenantRequest request = + CreateTenantRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setTenant(Tenant.newBuilder().build()) + .build(); + ApiFuture future = tenantServiceClient.createTenantCallable().futureCall(request); + // Do something. + Tenant response = future.get(); + } + } +} +// [END talent_v4_generated_tenantserviceclient_createtenant_async] 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 new file mode 100644 index 00000000000..a926d50db2b --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/createtenant/SyncCreateTenant.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_tenantserviceclient_createtenant_sync] +import com.google.cloud.talent.v4.CreateTenantRequest; +import com.google.cloud.talent.v4.ProjectName; +import com.google.cloud.talent.v4.Tenant; +import com.google.cloud.talent.v4.TenantServiceClient; + +public class SyncCreateTenant { + + public static void main(String[] args) throws Exception { + syncCreateTenant(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + CreateTenantRequest request = + CreateTenantRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setTenant(Tenant.newBuilder().build()) + .build(); + Tenant response = tenantServiceClient.createTenant(request); + } + } +} +// [END talent_v4_generated_tenantserviceclient_createtenant_sync] 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 new file mode 100644 index 00000000000..f377d60f079 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/createtenant/SyncCreateTenantProjectnameTenant.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_tenantserviceclient_createtenant_projectnametenant_sync] +import com.google.cloud.talent.v4.ProjectName; +import com.google.cloud.talent.v4.Tenant; +import com.google.cloud.talent.v4.TenantServiceClient; + +public class SyncCreateTenantProjectnameTenant { + + public static void main(String[] args) throws Exception { + syncCreateTenantProjectnameTenant(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + Tenant tenant = Tenant.newBuilder().build(); + Tenant response = tenantServiceClient.createTenant(parent, tenant); + } + } +} +// [END talent_v4_generated_tenantserviceclient_createtenant_projectnametenant_sync] 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 new file mode 100644 index 00000000000..39bf2197dc6 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/createtenant/SyncCreateTenantStringTenant.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_tenantserviceclient_createtenant_stringtenant_sync] +import com.google.cloud.talent.v4.ProjectName; +import com.google.cloud.talent.v4.Tenant; +import com.google.cloud.talent.v4.TenantServiceClient; + +public class SyncCreateTenantStringTenant { + + public static void main(String[] args) throws Exception { + syncCreateTenantStringTenant(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + String parent = ProjectName.of("[PROJECT]").toString(); + Tenant tenant = Tenant.newBuilder().build(); + Tenant response = tenantServiceClient.createTenant(parent, tenant); + } + } +} +// [END talent_v4_generated_tenantserviceclient_createtenant_stringtenant_sync] 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 new file mode 100644 index 00000000000..b073274ae0f --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/deletetenant/AsyncDeleteTenant.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_tenantserviceclient_deletetenant_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4.DeleteTenantRequest; +import com.google.cloud.talent.v4.TenantName; +import com.google.cloud.talent.v4.TenantServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteTenant { + + public static void main(String[] args) throws Exception { + asyncDeleteTenant(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + DeleteTenantRequest request = + DeleteTenantRequest.newBuilder() + .setName(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .build(); + ApiFuture future = tenantServiceClient.deleteTenantCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END talent_v4_generated_tenantserviceclient_deletetenant_async] 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 new file mode 100644 index 00000000000..5f9b9d90af5 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/deletetenant/SyncDeleteTenant.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_tenantserviceclient_deletetenant_sync] +import com.google.cloud.talent.v4.DeleteTenantRequest; +import com.google.cloud.talent.v4.TenantName; +import com.google.cloud.talent.v4.TenantServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteTenant { + + public static void main(String[] args) throws Exception { + syncDeleteTenant(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + DeleteTenantRequest request = + DeleteTenantRequest.newBuilder() + .setName(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .build(); + tenantServiceClient.deleteTenant(request); + } + } +} +// [END talent_v4_generated_tenantserviceclient_deletetenant_sync] 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 new file mode 100644 index 00000000000..085b8052381 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/deletetenant/SyncDeleteTenantString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_tenantserviceclient_deletetenant_string_sync] +import com.google.cloud.talent.v4.TenantName; +import com.google.cloud.talent.v4.TenantServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteTenantString { + + public static void main(String[] args) throws Exception { + syncDeleteTenantString(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + String name = TenantName.of("[PROJECT]", "[TENANT]").toString(); + tenantServiceClient.deleteTenant(name); + } + } +} +// [END talent_v4_generated_tenantserviceclient_deletetenant_string_sync] 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 new file mode 100644 index 00000000000..cd84f58bc44 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/deletetenant/SyncDeleteTenantTenantname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_tenantserviceclient_deletetenant_tenantname_sync] +import com.google.cloud.talent.v4.TenantName; +import com.google.cloud.talent.v4.TenantServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteTenantTenantname { + + public static void main(String[] args) throws Exception { + syncDeleteTenantTenantname(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); + tenantServiceClient.deleteTenant(name); + } + } +} +// [END talent_v4_generated_tenantserviceclient_deletetenant_tenantname_sync] 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 new file mode 100644 index 00000000000..10428ad5814 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/gettenant/AsyncGetTenant.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_tenantserviceclient_gettenant_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4.GetTenantRequest; +import com.google.cloud.talent.v4.Tenant; +import com.google.cloud.talent.v4.TenantName; +import com.google.cloud.talent.v4.TenantServiceClient; + +public class AsyncGetTenant { + + public static void main(String[] args) throws Exception { + asyncGetTenant(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + GetTenantRequest request = + GetTenantRequest.newBuilder() + .setName(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .build(); + ApiFuture future = tenantServiceClient.getTenantCallable().futureCall(request); + // Do something. + Tenant response = future.get(); + } + } +} +// [END talent_v4_generated_tenantserviceclient_gettenant_async] 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 new file mode 100644 index 00000000000..de3a59bb098 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/gettenant/SyncGetTenant.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_tenantserviceclient_gettenant_sync] +import com.google.cloud.talent.v4.GetTenantRequest; +import com.google.cloud.talent.v4.Tenant; +import com.google.cloud.talent.v4.TenantName; +import com.google.cloud.talent.v4.TenantServiceClient; + +public class SyncGetTenant { + + public static void main(String[] args) throws Exception { + syncGetTenant(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + GetTenantRequest request = + GetTenantRequest.newBuilder() + .setName(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .build(); + Tenant response = tenantServiceClient.getTenant(request); + } + } +} +// [END talent_v4_generated_tenantserviceclient_gettenant_sync] 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 new file mode 100644 index 00000000000..509522611b1 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/gettenant/SyncGetTenantString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_tenantserviceclient_gettenant_string_sync] +import com.google.cloud.talent.v4.Tenant; +import com.google.cloud.talent.v4.TenantName; +import com.google.cloud.talent.v4.TenantServiceClient; + +public class SyncGetTenantString { + + public static void main(String[] args) throws Exception { + syncGetTenantString(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + String name = TenantName.of("[PROJECT]", "[TENANT]").toString(); + Tenant response = tenantServiceClient.getTenant(name); + } + } +} +// [END talent_v4_generated_tenantserviceclient_gettenant_string_sync] 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 new file mode 100644 index 00000000000..8373586c9f2 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/gettenant/SyncGetTenantTenantname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_tenantserviceclient_gettenant_tenantname_sync] +import com.google.cloud.talent.v4.Tenant; +import com.google.cloud.talent.v4.TenantName; +import com.google.cloud.talent.v4.TenantServiceClient; + +public class SyncGetTenantTenantname { + + public static void main(String[] args) throws Exception { + syncGetTenantTenantname(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); + Tenant response = tenantServiceClient.getTenant(name); + } + } +} +// [END talent_v4_generated_tenantserviceclient_gettenant_tenantname_sync] 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 new file mode 100644 index 00000000000..a8dc68b20d2 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/listtenants/AsyncListTenants.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_tenantserviceclient_listtenants_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4.ListTenantsRequest; +import com.google.cloud.talent.v4.ProjectName; +import com.google.cloud.talent.v4.Tenant; +import com.google.cloud.talent.v4.TenantServiceClient; + +public class AsyncListTenants { + + public static void main(String[] args) throws Exception { + asyncListTenants(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + ListTenantsRequest request = + ListTenantsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + ApiFuture future = tenantServiceClient.listTenantsPagedCallable().futureCall(request); + // Do something. + for (Tenant element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END talent_v4_generated_tenantserviceclient_listtenants_async] 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 new file mode 100644 index 00000000000..765abc34d4c --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/listtenants/AsyncListTenantsPaged.java @@ -0,0 +1,58 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_tenantserviceclient_listtenants_paged_async] +import com.google.cloud.talent.v4.ListTenantsRequest; +import com.google.cloud.talent.v4.ListTenantsResponse; +import com.google.cloud.talent.v4.ProjectName; +import com.google.cloud.talent.v4.Tenant; +import com.google.cloud.talent.v4.TenantServiceClient; +import com.google.common.base.Strings; + +public class AsyncListTenantsPaged { + + public static void main(String[] args) throws Exception { + asyncListTenantsPaged(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + ListTenantsRequest request = + ListTenantsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + while (true) { + ListTenantsResponse response = tenantServiceClient.listTenantsCallable().call(request); + for (Tenant element : response.getTenantsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END talent_v4_generated_tenantserviceclient_listtenants_paged_async] 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 new file mode 100644 index 00000000000..fd48d5ef82a --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/listtenants/SyncListTenants.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_tenantserviceclient_listtenants_sync] +import com.google.cloud.talent.v4.ListTenantsRequest; +import com.google.cloud.talent.v4.ProjectName; +import com.google.cloud.talent.v4.Tenant; +import com.google.cloud.talent.v4.TenantServiceClient; + +public class SyncListTenants { + + public static void main(String[] args) throws Exception { + syncListTenants(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + ListTenantsRequest request = + ListTenantsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + for (Tenant element : tenantServiceClient.listTenants(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END talent_v4_generated_tenantserviceclient_listtenants_sync] 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 new file mode 100644 index 00000000000..ea6fa06ab1e --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/listtenants/SyncListTenantsProjectname.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_tenantserviceclient_listtenants_projectname_sync] +import com.google.cloud.talent.v4.ProjectName; +import com.google.cloud.talent.v4.Tenant; +import com.google.cloud.talent.v4.TenantServiceClient; + +public class SyncListTenantsProjectname { + + public static void main(String[] args) throws Exception { + syncListTenantsProjectname(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + for (Tenant element : tenantServiceClient.listTenants(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END talent_v4_generated_tenantserviceclient_listtenants_projectname_sync] 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 new file mode 100644 index 00000000000..f0e48be0510 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/listtenants/SyncListTenantsString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_tenantserviceclient_listtenants_string_sync] +import com.google.cloud.talent.v4.ProjectName; +import com.google.cloud.talent.v4.Tenant; +import com.google.cloud.talent.v4.TenantServiceClient; + +public class SyncListTenantsString { + + public static void main(String[] args) throws Exception { + syncListTenantsString(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + String parent = ProjectName.of("[PROJECT]").toString(); + for (Tenant element : tenantServiceClient.listTenants(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END talent_v4_generated_tenantserviceclient_listtenants_string_sync] 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 new file mode 100644 index 00000000000..d61ee9bd91d --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/updatetenant/AsyncUpdateTenant.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_tenantserviceclient_updatetenant_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4.Tenant; +import com.google.cloud.talent.v4.TenantServiceClient; +import com.google.cloud.talent.v4.UpdateTenantRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateTenant { + + public static void main(String[] args) throws Exception { + asyncUpdateTenant(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + UpdateTenantRequest request = + UpdateTenantRequest.newBuilder() + .setTenant(Tenant.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = tenantServiceClient.updateTenantCallable().futureCall(request); + // Do something. + Tenant response = future.get(); + } + } +} +// [END talent_v4_generated_tenantserviceclient_updatetenant_async] 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 new file mode 100644 index 00000000000..07be25a202b --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/updatetenant/SyncUpdateTenant.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_tenantserviceclient_updatetenant_sync] +import com.google.cloud.talent.v4.Tenant; +import com.google.cloud.talent.v4.TenantServiceClient; +import com.google.cloud.talent.v4.UpdateTenantRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateTenant { + + public static void main(String[] args) throws Exception { + syncUpdateTenant(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + UpdateTenantRequest request = + UpdateTenantRequest.newBuilder() + .setTenant(Tenant.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Tenant response = tenantServiceClient.updateTenant(request); + } + } +} +// [END talent_v4_generated_tenantserviceclient_updatetenant_sync] 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 new file mode 100644 index 00000000000..d1a3d59bb30 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantserviceclient/updatetenant/SyncUpdateTenantTenantFieldmask.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_tenantserviceclient_updatetenant_tenantfieldmask_sync] +import com.google.cloud.talent.v4.Tenant; +import com.google.cloud.talent.v4.TenantServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateTenantTenantFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateTenantTenantFieldmask(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + Tenant tenant = Tenant.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + Tenant response = tenantServiceClient.updateTenant(tenant, updateMask); + } + } +} +// [END talent_v4_generated_tenantserviceclient_updatetenant_tenantfieldmask_sync] 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 new file mode 100644 index 00000000000..1150a2e00a0 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4/tenantservicesettings/createtenant/SyncCreateTenant.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4.samples; + +// [START talent_v4_generated_tenantservicesettings_createtenant_sync] +import com.google.cloud.talent.v4.TenantServiceSettings; +import java.time.Duration; + +public class SyncCreateTenant { + + public static void main(String[] args) throws Exception { + syncCreateTenant(); + } + + 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. + TenantServiceSettings.Builder tenantServiceSettingsBuilder = TenantServiceSettings.newBuilder(); + tenantServiceSettingsBuilder + .createTenantSettings() + .setRetrySettings( + tenantServiceSettingsBuilder + .createTenantSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + TenantServiceSettings tenantServiceSettings = tenantServiceSettingsBuilder.build(); + } +} +// [END talent_v4_generated_tenantservicesettings_createtenant_sync] 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 new file mode 100644 index 00000000000..f058bcbd134 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_companyserviceclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.talent.v4beta1.CompanyServiceClient; +import com.google.cloud.talent.v4beta1.CompanyServiceSettings; +import com.google.cloud.talent.v4beta1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + 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. + CompanyServiceSettings companyServiceSettings = + CompanyServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + CompanyServiceClient companyServiceClient = CompanyServiceClient.create(companyServiceSettings); + } +} +// [END talent_v4beta1_generated_companyserviceclient_create_setcredentialsprovider_sync] 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 new file mode 100644 index 00000000000..d34706f9b08 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_companyserviceclient_create_setcredentialsprovider1_sync] +import com.google.cloud.talent.v4beta1.CompanyServiceClient; +import com.google.cloud.talent.v4beta1.CompanyServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + 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. + CompanyServiceSettings companyServiceSettings = + CompanyServiceSettings.newBuilder() + .setTransportChannelProvider( + CompanyServiceSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + CompanyServiceClient companyServiceClient = CompanyServiceClient.create(companyServiceSettings); + } +} +// [END talent_v4beta1_generated_companyserviceclient_create_setcredentialsprovider1_sync] 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 new file mode 100644 index 00000000000..2155eaa8c65 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_companyserviceclient_create_setendpoint_sync] +import com.google.cloud.talent.v4beta1.CompanyServiceClient; +import com.google.cloud.talent.v4beta1.CompanyServiceSettings; +import com.google.cloud.talent.v4beta1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + 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. + CompanyServiceSettings companyServiceSettings = + CompanyServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + CompanyServiceClient companyServiceClient = CompanyServiceClient.create(companyServiceSettings); + } +} +// [END talent_v4beta1_generated_companyserviceclient_create_setendpoint_sync] 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 new file mode 100644 index 00000000000..0f6a9d6cd8e --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/createcompany/AsyncCreateCompany.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_companyserviceclient_createcompany_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4beta1.Company; +import com.google.cloud.talent.v4beta1.CompanyServiceClient; +import com.google.cloud.talent.v4beta1.CreateCompanyRequest; +import com.google.cloud.talent.v4beta1.TenantName; + +public class AsyncCreateCompany { + + public static void main(String[] args) throws Exception { + asyncCreateCompany(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + CreateCompanyRequest request = + CreateCompanyRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setCompany(Company.newBuilder().build()) + .build(); + ApiFuture future = companyServiceClient.createCompanyCallable().futureCall(request); + // Do something. + Company response = future.get(); + } + } +} +// [END talent_v4beta1_generated_companyserviceclient_createcompany_async] 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 new file mode 100644 index 00000000000..8c410362774 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/createcompany/SyncCreateCompany.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_companyserviceclient_createcompany_sync] +import com.google.cloud.talent.v4beta1.Company; +import com.google.cloud.talent.v4beta1.CompanyServiceClient; +import com.google.cloud.talent.v4beta1.CreateCompanyRequest; +import com.google.cloud.talent.v4beta1.TenantName; + +public class SyncCreateCompany { + + public static void main(String[] args) throws Exception { + syncCreateCompany(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + CreateCompanyRequest request = + CreateCompanyRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setCompany(Company.newBuilder().build()) + .build(); + Company response = companyServiceClient.createCompany(request); + } + } +} +// [END talent_v4beta1_generated_companyserviceclient_createcompany_sync] 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 new file mode 100644 index 00000000000..de4ad5686bb --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/createcompany/SyncCreateCompanyProjectnameCompany.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_companyserviceclient_createcompany_projectnamecompany_sync] +import com.google.cloud.talent.v4beta1.Company; +import com.google.cloud.talent.v4beta1.CompanyServiceClient; +import com.google.cloud.talent.v4beta1.ProjectName; + +public class SyncCreateCompanyProjectnameCompany { + + public static void main(String[] args) throws Exception { + syncCreateCompanyProjectnameCompany(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + Company company = Company.newBuilder().build(); + Company response = companyServiceClient.createCompany(parent, company); + } + } +} +// [END talent_v4beta1_generated_companyserviceclient_createcompany_projectnamecompany_sync] 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 new file mode 100644 index 00000000000..eb259db4417 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/createcompany/SyncCreateCompanyStringCompany.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_companyserviceclient_createcompany_stringcompany_sync] +import com.google.cloud.talent.v4beta1.Company; +import com.google.cloud.talent.v4beta1.CompanyServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; + +public class SyncCreateCompanyStringCompany { + + public static void main(String[] args) throws Exception { + syncCreateCompanyStringCompany(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + String parent = TenantName.of("[PROJECT]", "[TENANT]").toString(); + Company company = Company.newBuilder().build(); + Company response = companyServiceClient.createCompany(parent, company); + } + } +} +// [END talent_v4beta1_generated_companyserviceclient_createcompany_stringcompany_sync] 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 new file mode 100644 index 00000000000..0a5e781dcca --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/createcompany/SyncCreateCompanyTenantnameCompany.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_companyserviceclient_createcompany_tenantnamecompany_sync] +import com.google.cloud.talent.v4beta1.Company; +import com.google.cloud.talent.v4beta1.CompanyServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; + +public class SyncCreateCompanyTenantnameCompany { + + public static void main(String[] args) throws Exception { + syncCreateCompanyTenantnameCompany(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + Company company = Company.newBuilder().build(); + Company response = companyServiceClient.createCompany(parent, company); + } + } +} +// [END talent_v4beta1_generated_companyserviceclient_createcompany_tenantnamecompany_sync] 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 new file mode 100644 index 00000000000..06ac4571cb7 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/deletecompany/AsyncDeleteCompany.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_companyserviceclient_deletecompany_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4beta1.CompanyName; +import com.google.cloud.talent.v4beta1.CompanyServiceClient; +import com.google.cloud.talent.v4beta1.DeleteCompanyRequest; +import com.google.protobuf.Empty; + +public class AsyncDeleteCompany { + + public static void main(String[] args) throws Exception { + asyncDeleteCompany(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + DeleteCompanyRequest request = + DeleteCompanyRequest.newBuilder() + .setName( + CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]") + .toString()) + .build(); + ApiFuture future = companyServiceClient.deleteCompanyCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END talent_v4beta1_generated_companyserviceclient_deletecompany_async] 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 new file mode 100644 index 00000000000..87663f8faeb --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/deletecompany/SyncDeleteCompany.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_companyserviceclient_deletecompany_sync] +import com.google.cloud.talent.v4beta1.CompanyName; +import com.google.cloud.talent.v4beta1.CompanyServiceClient; +import com.google.cloud.talent.v4beta1.DeleteCompanyRequest; +import com.google.protobuf.Empty; + +public class SyncDeleteCompany { + + public static void main(String[] args) throws Exception { + syncDeleteCompany(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + DeleteCompanyRequest request = + DeleteCompanyRequest.newBuilder() + .setName( + CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]") + .toString()) + .build(); + companyServiceClient.deleteCompany(request); + } + } +} +// [END talent_v4beta1_generated_companyserviceclient_deletecompany_sync] 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 new file mode 100644 index 00000000000..77eaf0dc57d --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/deletecompany/SyncDeleteCompanyCompanyname.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_companyserviceclient_deletecompany_companyname_sync] +import com.google.cloud.talent.v4beta1.CompanyName; +import com.google.cloud.talent.v4beta1.CompanyServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCompanyCompanyname { + + public static void main(String[] args) throws Exception { + syncDeleteCompanyCompanyname(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + CompanyName name = + CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]"); + companyServiceClient.deleteCompany(name); + } + } +} +// [END talent_v4beta1_generated_companyserviceclient_deletecompany_companyname_sync] 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 new file mode 100644 index 00000000000..64a4992e7ba --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/deletecompany/SyncDeleteCompanyString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_companyserviceclient_deletecompany_string_sync] +import com.google.cloud.talent.v4beta1.CompanyName; +import com.google.cloud.talent.v4beta1.CompanyServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteCompanyString { + + public static void main(String[] args) throws Exception { + syncDeleteCompanyString(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + String name = + CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]").toString(); + companyServiceClient.deleteCompany(name); + } + } +} +// [END talent_v4beta1_generated_companyserviceclient_deletecompany_string_sync] 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 new file mode 100644 index 00000000000..b327e80d715 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/getcompany/AsyncGetCompany.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_companyserviceclient_getcompany_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4beta1.Company; +import com.google.cloud.talent.v4beta1.CompanyName; +import com.google.cloud.talent.v4beta1.CompanyServiceClient; +import com.google.cloud.talent.v4beta1.GetCompanyRequest; + +public class AsyncGetCompany { + + public static void main(String[] args) throws Exception { + asyncGetCompany(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + GetCompanyRequest request = + GetCompanyRequest.newBuilder() + .setName( + CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]") + .toString()) + .build(); + ApiFuture future = companyServiceClient.getCompanyCallable().futureCall(request); + // Do something. + Company response = future.get(); + } + } +} +// [END talent_v4beta1_generated_companyserviceclient_getcompany_async] 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 new file mode 100644 index 00000000000..cd281e9e2a9 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/getcompany/SyncGetCompany.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_companyserviceclient_getcompany_sync] +import com.google.cloud.talent.v4beta1.Company; +import com.google.cloud.talent.v4beta1.CompanyName; +import com.google.cloud.talent.v4beta1.CompanyServiceClient; +import com.google.cloud.talent.v4beta1.GetCompanyRequest; + +public class SyncGetCompany { + + public static void main(String[] args) throws Exception { + syncGetCompany(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + GetCompanyRequest request = + GetCompanyRequest.newBuilder() + .setName( + CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]") + .toString()) + .build(); + Company response = companyServiceClient.getCompany(request); + } + } +} +// [END talent_v4beta1_generated_companyserviceclient_getcompany_sync] 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 new file mode 100644 index 00000000000..9cd6c5fddf7 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/getcompany/SyncGetCompanyCompanyname.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_companyserviceclient_getcompany_companyname_sync] +import com.google.cloud.talent.v4beta1.Company; +import com.google.cloud.talent.v4beta1.CompanyName; +import com.google.cloud.talent.v4beta1.CompanyServiceClient; + +public class SyncGetCompanyCompanyname { + + public static void main(String[] args) throws Exception { + syncGetCompanyCompanyname(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + CompanyName name = + CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]"); + Company response = companyServiceClient.getCompany(name); + } + } +} +// [END talent_v4beta1_generated_companyserviceclient_getcompany_companyname_sync] 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 new file mode 100644 index 00000000000..009758ad18e --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/getcompany/SyncGetCompanyString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_companyserviceclient_getcompany_string_sync] +import com.google.cloud.talent.v4beta1.Company; +import com.google.cloud.talent.v4beta1.CompanyName; +import com.google.cloud.talent.v4beta1.CompanyServiceClient; + +public class SyncGetCompanyString { + + public static void main(String[] args) throws Exception { + syncGetCompanyString(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + String name = + CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]").toString(); + Company response = companyServiceClient.getCompany(name); + } + } +} +// [END talent_v4beta1_generated_companyserviceclient_getcompany_string_sync] 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 new file mode 100644 index 00000000000..ce24628e857 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/AsyncListCompanies.java @@ -0,0 +1,52 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_companyserviceclient_listcompanies_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4beta1.Company; +import com.google.cloud.talent.v4beta1.CompanyServiceClient; +import com.google.cloud.talent.v4beta1.ListCompaniesRequest; +import com.google.cloud.talent.v4beta1.TenantName; + +public class AsyncListCompanies { + + public static void main(String[] args) throws Exception { + asyncListCompanies(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + ListCompaniesRequest request = + ListCompaniesRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .setRequireOpenJobs(true) + .build(); + ApiFuture future = + companyServiceClient.listCompaniesPagedCallable().futureCall(request); + // Do something. + for (Company element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END talent_v4beta1_generated_companyserviceclient_listcompanies_async] 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 new file mode 100644 index 00000000000..be6efecbae5 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/AsyncListCompaniesPaged.java @@ -0,0 +1,59 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_companyserviceclient_listcompanies_paged_async] +import com.google.cloud.talent.v4beta1.Company; +import com.google.cloud.talent.v4beta1.CompanyServiceClient; +import com.google.cloud.talent.v4beta1.ListCompaniesRequest; +import com.google.cloud.talent.v4beta1.ListCompaniesResponse; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.common.base.Strings; + +public class AsyncListCompaniesPaged { + + public static void main(String[] args) throws Exception { + asyncListCompaniesPaged(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + ListCompaniesRequest request = + ListCompaniesRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .setRequireOpenJobs(true) + .build(); + while (true) { + ListCompaniesResponse response = companyServiceClient.listCompaniesCallable().call(request); + for (Company element : response.getCompaniesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END talent_v4beta1_generated_companyserviceclient_listcompanies_paged_async] 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 new file mode 100644 index 00000000000..207c608112a --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/SyncListCompanies.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_companyserviceclient_listcompanies_sync] +import com.google.cloud.talent.v4beta1.Company; +import com.google.cloud.talent.v4beta1.CompanyServiceClient; +import com.google.cloud.talent.v4beta1.ListCompaniesRequest; +import com.google.cloud.talent.v4beta1.TenantName; + +public class SyncListCompanies { + + public static void main(String[] args) throws Exception { + syncListCompanies(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + ListCompaniesRequest request = + ListCompaniesRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .setRequireOpenJobs(true) + .build(); + for (Company element : companyServiceClient.listCompanies(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END talent_v4beta1_generated_companyserviceclient_listcompanies_sync] 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 new file mode 100644 index 00000000000..6e437f74599 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/SyncListCompaniesProjectname.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_companyserviceclient_listcompanies_projectname_sync] +import com.google.cloud.talent.v4beta1.Company; +import com.google.cloud.talent.v4beta1.CompanyServiceClient; +import com.google.cloud.talent.v4beta1.ProjectName; + +public class SyncListCompaniesProjectname { + + public static void main(String[] args) throws Exception { + syncListCompaniesProjectname(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + for (Company element : companyServiceClient.listCompanies(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END talent_v4beta1_generated_companyserviceclient_listcompanies_projectname_sync] 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 new file mode 100644 index 00000000000..aa3937984dd --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/SyncListCompaniesString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_companyserviceclient_listcompanies_string_sync] +import com.google.cloud.talent.v4beta1.Company; +import com.google.cloud.talent.v4beta1.CompanyServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; + +public class SyncListCompaniesString { + + public static void main(String[] args) throws Exception { + syncListCompaniesString(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + String parent = TenantName.of("[PROJECT]", "[TENANT]").toString(); + for (Company element : companyServiceClient.listCompanies(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END talent_v4beta1_generated_companyserviceclient_listcompanies_string_sync] 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 new file mode 100644 index 00000000000..bdc3196c4de --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/listcompanies/SyncListCompaniesTenantname.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_companyserviceclient_listcompanies_tenantname_sync] +import com.google.cloud.talent.v4beta1.Company; +import com.google.cloud.talent.v4beta1.CompanyServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; + +public class SyncListCompaniesTenantname { + + public static void main(String[] args) throws Exception { + syncListCompaniesTenantname(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + for (Company element : companyServiceClient.listCompanies(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END talent_v4beta1_generated_companyserviceclient_listcompanies_tenantname_sync] 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 new file mode 100644 index 00000000000..d2653c2afe3 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/updatecompany/AsyncUpdateCompany.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_companyserviceclient_updatecompany_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4beta1.Company; +import com.google.cloud.talent.v4beta1.CompanyServiceClient; +import com.google.cloud.talent.v4beta1.UpdateCompanyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateCompany { + + public static void main(String[] args) throws Exception { + asyncUpdateCompany(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + UpdateCompanyRequest request = + UpdateCompanyRequest.newBuilder() + .setCompany(Company.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = companyServiceClient.updateCompanyCallable().futureCall(request); + // Do something. + Company response = future.get(); + } + } +} +// [END talent_v4beta1_generated_companyserviceclient_updatecompany_async] 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 new file mode 100644 index 00000000000..eb62d5c1885 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/updatecompany/SyncUpdateCompany.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_companyserviceclient_updatecompany_sync] +import com.google.cloud.talent.v4beta1.Company; +import com.google.cloud.talent.v4beta1.CompanyServiceClient; +import com.google.cloud.talent.v4beta1.UpdateCompanyRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateCompany { + + public static void main(String[] args) throws Exception { + syncUpdateCompany(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + UpdateCompanyRequest request = + UpdateCompanyRequest.newBuilder() + .setCompany(Company.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Company response = companyServiceClient.updateCompany(request); + } + } +} +// [END talent_v4beta1_generated_companyserviceclient_updatecompany_sync] 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 new file mode 100644 index 00000000000..042de15dfbc --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyserviceclient/updatecompany/SyncUpdateCompanyCompany.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_companyserviceclient_updatecompany_company_sync] +import com.google.cloud.talent.v4beta1.Company; +import com.google.cloud.talent.v4beta1.CompanyServiceClient; + +public class SyncUpdateCompanyCompany { + + public static void main(String[] args) throws Exception { + syncUpdateCompanyCompany(); + } + + 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. + try (CompanyServiceClient companyServiceClient = CompanyServiceClient.create()) { + Company company = Company.newBuilder().build(); + Company response = companyServiceClient.updateCompany(company); + } + } +} +// [END talent_v4beta1_generated_companyserviceclient_updatecompany_company_sync] 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 new file mode 100644 index 00000000000..c1352fb2e4b --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/companyservicesettings/createcompany/SyncCreateCompany.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_companyservicesettings_createcompany_sync] +import com.google.cloud.talent.v4beta1.CompanyServiceSettings; +import java.time.Duration; + +public class SyncCreateCompany { + + public static void main(String[] args) throws Exception { + syncCreateCompany(); + } + + 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. + CompanyServiceSettings.Builder companyServiceSettingsBuilder = + CompanyServiceSettings.newBuilder(); + companyServiceSettingsBuilder + .createCompanySettings() + .setRetrySettings( + companyServiceSettingsBuilder + .createCompanySettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + CompanyServiceSettings companyServiceSettings = companyServiceSettingsBuilder.build(); + } +} +// [END talent_v4beta1_generated_companyservicesettings_createcompany_sync] 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 new file mode 100644 index 00000000000..daf79b85bc8 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/completionclient/completequery/AsyncCompleteQuery.java @@ -0,0 +1,55 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_completionclient_completequery_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4beta1.CompanyName; +import com.google.cloud.talent.v4beta1.CompleteQueryRequest; +import com.google.cloud.talent.v4beta1.CompleteQueryResponse; +import com.google.cloud.talent.v4beta1.CompletionClient; +import com.google.cloud.talent.v4beta1.TenantName; +import java.util.ArrayList; + +public class AsyncCompleteQuery { + + public static void main(String[] args) throws Exception { + asyncCompleteQuery(); + } + + 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. + try (CompletionClient completionClient = CompletionClient.create()) { + CompleteQueryRequest request = + CompleteQueryRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setQuery("query107944136") + .addAllLanguageCodes(new ArrayList()) + .setPageSize(883849137) + .setCompany( + CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]") + .toString()) + .build(); + ApiFuture future = + completionClient.completeQueryCallable().futureCall(request); + // Do something. + CompleteQueryResponse response = future.get(); + } + } +} +// [END talent_v4beta1_generated_completionclient_completequery_async] 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 new file mode 100644 index 00000000000..6ac31707b38 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/completionclient/completequery/SyncCompleteQuery.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_completionclient_completequery_sync] +import com.google.cloud.talent.v4beta1.CompanyName; +import com.google.cloud.talent.v4beta1.CompleteQueryRequest; +import com.google.cloud.talent.v4beta1.CompleteQueryResponse; +import com.google.cloud.talent.v4beta1.CompletionClient; +import com.google.cloud.talent.v4beta1.TenantName; +import java.util.ArrayList; + +public class SyncCompleteQuery { + + public static void main(String[] args) throws Exception { + syncCompleteQuery(); + } + + 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. + try (CompletionClient completionClient = CompletionClient.create()) { + CompleteQueryRequest request = + CompleteQueryRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setQuery("query107944136") + .addAllLanguageCodes(new ArrayList()) + .setPageSize(883849137) + .setCompany( + CompanyName.ofProjectTenantCompanyName("[PROJECT]", "[TENANT]", "[COMPANY]") + .toString()) + .build(); + CompleteQueryResponse response = completionClient.completeQuery(request); + } + } +} +// [END talent_v4beta1_generated_completionclient_completequery_sync] 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 new file mode 100644 index 00000000000..67cd0a0674c --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/completionclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_completionclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.talent.v4beta1.CompletionClient; +import com.google.cloud.talent.v4beta1.CompletionSettings; +import com.google.cloud.talent.v4beta1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + 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. + CompletionSettings completionSettings = + CompletionSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + CompletionClient completionClient = CompletionClient.create(completionSettings); + } +} +// [END talent_v4beta1_generated_completionclient_create_setcredentialsprovider_sync] 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 new file mode 100644 index 00000000000..06c6c1fdfbd --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/completionclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_completionclient_create_setcredentialsprovider1_sync] +import com.google.cloud.talent.v4beta1.CompletionClient; +import com.google.cloud.talent.v4beta1.CompletionSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + 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. + CompletionSettings completionSettings = + CompletionSettings.newBuilder() + .setTransportChannelProvider( + CompletionSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + CompletionClient completionClient = CompletionClient.create(completionSettings); + } +} +// [END talent_v4beta1_generated_completionclient_create_setcredentialsprovider1_sync] 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 new file mode 100644 index 00000000000..7ed54e50d77 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/completionclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_completionclient_create_setendpoint_sync] +import com.google.cloud.talent.v4beta1.CompletionClient; +import com.google.cloud.talent.v4beta1.CompletionSettings; +import com.google.cloud.talent.v4beta1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + 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. + CompletionSettings completionSettings = + CompletionSettings.newBuilder().setEndpoint(myEndpoint).build(); + CompletionClient completionClient = CompletionClient.create(completionSettings); + } +} +// [END talent_v4beta1_generated_completionclient_create_setendpoint_sync] 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 new file mode 100644 index 00000000000..73ca5d2a386 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/completionsettings/completequery/SyncCompleteQuery.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_completionsettings_completequery_sync] +import com.google.cloud.talent.v4beta1.CompletionSettings; +import java.time.Duration; + +public class SyncCompleteQuery { + + public static void main(String[] args) throws Exception { + syncCompleteQuery(); + } + + 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. + CompletionSettings.Builder completionSettingsBuilder = CompletionSettings.newBuilder(); + completionSettingsBuilder + .completeQuerySettings() + .setRetrySettings( + completionSettingsBuilder + .completeQuerySettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + CompletionSettings completionSettings = completionSettingsBuilder.build(); + } +} +// [END talent_v4beta1_generated_completionsettings_completequery_sync] 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 new file mode 100644 index 00000000000..8b6ad4d7d77 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_eventserviceclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.talent.v4beta1.EventServiceClient; +import com.google.cloud.talent.v4beta1.EventServiceSettings; +import com.google.cloud.talent.v4beta1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + 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. + EventServiceSettings eventServiceSettings = + EventServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + EventServiceClient eventServiceClient = EventServiceClient.create(eventServiceSettings); + } +} +// [END talent_v4beta1_generated_eventserviceclient_create_setcredentialsprovider_sync] 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 new file mode 100644 index 00000000000..55b436b0fdb --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_eventserviceclient_create_setcredentialsprovider1_sync] +import com.google.cloud.talent.v4beta1.EventServiceClient; +import com.google.cloud.talent.v4beta1.EventServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + 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. + EventServiceSettings eventServiceSettings = + EventServiceSettings.newBuilder() + .setTransportChannelProvider( + EventServiceSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + EventServiceClient eventServiceClient = EventServiceClient.create(eventServiceSettings); + } +} +// [END talent_v4beta1_generated_eventserviceclient_create_setcredentialsprovider1_sync] 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 new file mode 100644 index 00000000000..d8710a90624 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_eventserviceclient_create_setendpoint_sync] +import com.google.cloud.talent.v4beta1.EventServiceClient; +import com.google.cloud.talent.v4beta1.EventServiceSettings; +import com.google.cloud.talent.v4beta1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + 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. + EventServiceSettings eventServiceSettings = + EventServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + EventServiceClient eventServiceClient = EventServiceClient.create(eventServiceSettings); + } +} +// [END talent_v4beta1_generated_eventserviceclient_create_setendpoint_sync] 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 new file mode 100644 index 00000000000..9b7b93a0a15 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/createclientevent/AsyncCreateClientEvent.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_eventserviceclient_createclientevent_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4beta1.ClientEvent; +import com.google.cloud.talent.v4beta1.CreateClientEventRequest; +import com.google.cloud.talent.v4beta1.EventServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; + +public class AsyncCreateClientEvent { + + public static void main(String[] args) throws Exception { + asyncCreateClientEvent(); + } + + 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. + try (EventServiceClient eventServiceClient = EventServiceClient.create()) { + CreateClientEventRequest request = + CreateClientEventRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setClientEvent(ClientEvent.newBuilder().build()) + .build(); + ApiFuture future = + eventServiceClient.createClientEventCallable().futureCall(request); + // Do something. + ClientEvent response = future.get(); + } + } +} +// [END talent_v4beta1_generated_eventserviceclient_createclientevent_async] 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 new file mode 100644 index 00000000000..84bcab03cdc --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/createclientevent/SyncCreateClientEvent.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_eventserviceclient_createclientevent_sync] +import com.google.cloud.talent.v4beta1.ClientEvent; +import com.google.cloud.talent.v4beta1.CreateClientEventRequest; +import com.google.cloud.talent.v4beta1.EventServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; + +public class SyncCreateClientEvent { + + public static void main(String[] args) throws Exception { + syncCreateClientEvent(); + } + + 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. + try (EventServiceClient eventServiceClient = EventServiceClient.create()) { + CreateClientEventRequest request = + CreateClientEventRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setClientEvent(ClientEvent.newBuilder().build()) + .build(); + ClientEvent response = eventServiceClient.createClientEvent(request); + } + } +} +// [END talent_v4beta1_generated_eventserviceclient_createclientevent_sync] 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 new file mode 100644 index 00000000000..9f74e94d579 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/createclientevent/SyncCreateClientEventProjectnameClientevent.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_eventserviceclient_createclientevent_projectnameclientevent_sync] +import com.google.cloud.talent.v4beta1.ClientEvent; +import com.google.cloud.talent.v4beta1.EventServiceClient; +import com.google.cloud.talent.v4beta1.ProjectName; + +public class SyncCreateClientEventProjectnameClientevent { + + public static void main(String[] args) throws Exception { + syncCreateClientEventProjectnameClientevent(); + } + + 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. + try (EventServiceClient eventServiceClient = EventServiceClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + ClientEvent clientEvent = ClientEvent.newBuilder().build(); + ClientEvent response = eventServiceClient.createClientEvent(parent, clientEvent); + } + } +} +// [END talent_v4beta1_generated_eventserviceclient_createclientevent_projectnameclientevent_sync] 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 new file mode 100644 index 00000000000..416ab7b500a --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/createclientevent/SyncCreateClientEventStringClientevent.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_eventserviceclient_createclientevent_stringclientevent_sync] +import com.google.cloud.talent.v4beta1.ClientEvent; +import com.google.cloud.talent.v4beta1.EventServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; + +public class SyncCreateClientEventStringClientevent { + + public static void main(String[] args) throws Exception { + syncCreateClientEventStringClientevent(); + } + + 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. + try (EventServiceClient eventServiceClient = EventServiceClient.create()) { + String parent = TenantName.of("[PROJECT]", "[TENANT]").toString(); + ClientEvent clientEvent = ClientEvent.newBuilder().build(); + ClientEvent response = eventServiceClient.createClientEvent(parent, clientEvent); + } + } +} +// [END talent_v4beta1_generated_eventserviceclient_createclientevent_stringclientevent_sync] 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 new file mode 100644 index 00000000000..55a728021db --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventserviceclient/createclientevent/SyncCreateClientEventTenantnameClientevent.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_eventserviceclient_createclientevent_tenantnameclientevent_sync] +import com.google.cloud.talent.v4beta1.ClientEvent; +import com.google.cloud.talent.v4beta1.EventServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; + +public class SyncCreateClientEventTenantnameClientevent { + + public static void main(String[] args) throws Exception { + syncCreateClientEventTenantnameClientevent(); + } + + 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. + try (EventServiceClient eventServiceClient = EventServiceClient.create()) { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + ClientEvent clientEvent = ClientEvent.newBuilder().build(); + ClientEvent response = eventServiceClient.createClientEvent(parent, clientEvent); + } + } +} +// [END talent_v4beta1_generated_eventserviceclient_createclientevent_tenantnameclientevent_sync] 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 new file mode 100644 index 00000000000..52c32c0b12c --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/eventservicesettings/createclientevent/SyncCreateClientEvent.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_eventservicesettings_createclientevent_sync] +import com.google.cloud.talent.v4beta1.EventServiceSettings; +import java.time.Duration; + +public class SyncCreateClientEvent { + + public static void main(String[] args) throws Exception { + syncCreateClientEvent(); + } + + 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. + EventServiceSettings.Builder eventServiceSettingsBuilder = EventServiceSettings.newBuilder(); + eventServiceSettingsBuilder + .createClientEventSettings() + .setRetrySettings( + eventServiceSettingsBuilder + .createClientEventSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + EventServiceSettings eventServiceSettings = eventServiceSettingsBuilder.build(); + } +} +// [END talent_v4beta1_generated_eventservicesettings_createclientevent_sync] 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 new file mode 100644 index 00000000000..2d8f3b2766b --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/AsyncBatchCreateJobs.java @@ -0,0 +1,49 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_batchcreatejobs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4beta1.BatchCreateJobsRequest; +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.longrunning.Operation; +import java.util.ArrayList; + +public class AsyncBatchCreateJobs { + + public static void main(String[] args) throws Exception { + asyncBatchCreateJobs(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + BatchCreateJobsRequest request = + BatchCreateJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .addAllJobs(new ArrayList()) + .build(); + ApiFuture future = jobServiceClient.batchCreateJobsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_batchcreatejobs_async] 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 new file mode 100644 index 00000000000..4c21977a4cb --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/AsyncBatchCreateJobsLRO.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_batchcreatejobs_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.talent.v4beta1.BatchCreateJobsRequest; +import com.google.cloud.talent.v4beta1.BatchOperationMetadata; +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobOperationResult; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; +import java.util.ArrayList; + +public class AsyncBatchCreateJobsLRO { + + public static void main(String[] args) throws Exception { + asyncBatchCreateJobsLRO(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + BatchCreateJobsRequest request = + BatchCreateJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .addAllJobs(new ArrayList()) + .build(); + OperationFuture future = + jobServiceClient.batchCreateJobsOperationCallable().futureCall(request); + // Do something. + JobOperationResult response = future.get(); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_batchcreatejobs_lro_async] 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 new file mode 100644 index 00000000000..82f68ccc51f --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/SyncBatchCreateJobs.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_batchcreatejobs_sync] +import com.google.cloud.talent.v4beta1.BatchCreateJobsRequest; +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobOperationResult; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; +import java.util.ArrayList; + +public class SyncBatchCreateJobs { + + public static void main(String[] args) throws Exception { + syncBatchCreateJobs(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + BatchCreateJobsRequest request = + BatchCreateJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .addAllJobs(new ArrayList()) + .build(); + JobOperationResult response = jobServiceClient.batchCreateJobsAsync(request).get(); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_batchcreatejobs_sync] 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 new file mode 100644 index 00000000000..c7b81dccd6d --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/SyncBatchCreateJobsProjectnameListjob.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_batchcreatejobs_projectnamelistjob_sync] +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobOperationResult; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.ProjectName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchCreateJobsProjectnameListjob { + + public static void main(String[] args) throws Exception { + syncBatchCreateJobsProjectnameListjob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + List jobs = new ArrayList<>(); + JobOperationResult response = jobServiceClient.batchCreateJobsAsync(parent, jobs).get(); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_batchcreatejobs_projectnamelistjob_sync] 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 new file mode 100644 index 00000000000..bbf7ab1e470 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/SyncBatchCreateJobsStringListjob.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_batchcreatejobs_stringlistjob_sync] +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobOperationResult; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchCreateJobsStringListjob { + + public static void main(String[] args) throws Exception { + syncBatchCreateJobsStringListjob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + String parent = TenantName.of("[PROJECT]", "[TENANT]").toString(); + List jobs = new ArrayList<>(); + JobOperationResult response = jobServiceClient.batchCreateJobsAsync(parent, jobs).get(); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_batchcreatejobs_stringlistjob_sync] 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 new file mode 100644 index 00000000000..de5218b748e --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchcreatejobs/SyncBatchCreateJobsTenantnameListjob.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_batchcreatejobs_tenantnamelistjob_sync] +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobOperationResult; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchCreateJobsTenantnameListjob { + + public static void main(String[] args) throws Exception { + syncBatchCreateJobsTenantnameListjob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + List jobs = new ArrayList<>(); + JobOperationResult response = jobServiceClient.batchCreateJobsAsync(parent, jobs).get(); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_batchcreatejobs_tenantnamelistjob_sync] 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 new file mode 100644 index 00000000000..a2f931c1b89 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchdeletejobs/AsyncBatchDeleteJobs.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_batchdeletejobs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.protobuf.Empty; + +public class AsyncBatchDeleteJobs { + + public static void main(String[] args) throws Exception { + asyncBatchDeleteJobs(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + BatchDeleteJobsRequest request = + BatchDeleteJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setFilter("filter-1274492040") + .build(); + ApiFuture future = jobServiceClient.batchDeleteJobsCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_batchdeletejobs_async] 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 new file mode 100644 index 00000000000..7de803974b4 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobs.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_batchdeletejobs_sync] +import com.google.cloud.talent.v4beta1.BatchDeleteJobsRequest; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.protobuf.Empty; + +public class SyncBatchDeleteJobs { + + public static void main(String[] args) throws Exception { + syncBatchDeleteJobs(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + BatchDeleteJobsRequest request = + BatchDeleteJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setFilter("filter-1274492040") + .build(); + jobServiceClient.batchDeleteJobs(request); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_batchdeletejobs_sync] 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 new file mode 100644 index 00000000000..4b577f8e1ed --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobsProjectnameString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_batchdeletejobs_projectnamestring_sync] +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.ProjectName; +import com.google.protobuf.Empty; + +public class SyncBatchDeleteJobsProjectnameString { + + public static void main(String[] args) throws Exception { + syncBatchDeleteJobsProjectnameString(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + String filter = "filter-1274492040"; + jobServiceClient.batchDeleteJobs(parent, filter); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_batchdeletejobs_projectnamestring_sync] 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 new file mode 100644 index 00000000000..e717bbf6b3b --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobsStringString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_batchdeletejobs_stringstring_sync] +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.protobuf.Empty; + +public class SyncBatchDeleteJobsStringString { + + public static void main(String[] args) throws Exception { + syncBatchDeleteJobsStringString(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + String parent = TenantName.of("[PROJECT]", "[TENANT]").toString(); + String filter = "filter-1274492040"; + jobServiceClient.batchDeleteJobs(parent, filter); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_batchdeletejobs_stringstring_sync] 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 new file mode 100644 index 00000000000..e1ddc2f47f3 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchdeletejobs/SyncBatchDeleteJobsTenantnameString.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_batchdeletejobs_tenantnamestring_sync] +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.protobuf.Empty; + +public class SyncBatchDeleteJobsTenantnameString { + + public static void main(String[] args) throws Exception { + syncBatchDeleteJobsTenantnameString(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + String filter = "filter-1274492040"; + jobServiceClient.batchDeleteJobs(parent, filter); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_batchdeletejobs_tenantnamestring_sync] 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 new file mode 100644 index 00000000000..f12f6874c5d --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/AsyncBatchUpdateJobs.java @@ -0,0 +1,51 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_batchupdatejobs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4beta1.BatchUpdateJobsRequest; +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; +import java.util.ArrayList; + +public class AsyncBatchUpdateJobs { + + public static void main(String[] args) throws Exception { + asyncBatchUpdateJobs(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + BatchUpdateJobsRequest request = + BatchUpdateJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .addAllJobs(new ArrayList()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = jobServiceClient.batchUpdateJobsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_batchupdatejobs_async] 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 new file mode 100644 index 00000000000..3cb720bfc88 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/AsyncBatchUpdateJobsLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_batchupdatejobs_lro_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.talent.v4beta1.BatchOperationMetadata; +import com.google.cloud.talent.v4beta1.BatchUpdateJobsRequest; +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobOperationResult; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.protobuf.FieldMask; +import java.util.ArrayList; + +public class AsyncBatchUpdateJobsLRO { + + public static void main(String[] args) throws Exception { + asyncBatchUpdateJobsLRO(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + BatchUpdateJobsRequest request = + BatchUpdateJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .addAllJobs(new ArrayList()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + jobServiceClient.batchUpdateJobsOperationCallable().futureCall(request); + // Do something. + JobOperationResult response = future.get(); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_batchupdatejobs_lro_async] 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 new file mode 100644 index 00000000000..d3d042efb21 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobs.java @@ -0,0 +1,48 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_batchupdatejobs_sync] +import com.google.cloud.talent.v4beta1.BatchUpdateJobsRequest; +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobOperationResult; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.protobuf.FieldMask; +import java.util.ArrayList; + +public class SyncBatchUpdateJobs { + + public static void main(String[] args) throws Exception { + syncBatchUpdateJobs(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + BatchUpdateJobsRequest request = + BatchUpdateJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .addAllJobs(new ArrayList()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + JobOperationResult response = jobServiceClient.batchUpdateJobsAsync(request).get(); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_batchupdatejobs_sync] 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 new file mode 100644 index 00000000000..0dc51283b90 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobsProjectnameListjob.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_batchupdatejobs_projectnamelistjob_sync] +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobOperationResult; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.ProjectName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchUpdateJobsProjectnameListjob { + + public static void main(String[] args) throws Exception { + syncBatchUpdateJobsProjectnameListjob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + List jobs = new ArrayList<>(); + JobOperationResult response = jobServiceClient.batchUpdateJobsAsync(parent, jobs).get(); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_batchupdatejobs_projectnamelistjob_sync] 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 new file mode 100644 index 00000000000..a9714d0f18b --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobsStringListjob.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_batchupdatejobs_stringlistjob_sync] +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobOperationResult; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchUpdateJobsStringListjob { + + public static void main(String[] args) throws Exception { + syncBatchUpdateJobsStringListjob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + String parent = TenantName.of("[PROJECT]", "[TENANT]").toString(); + List jobs = new ArrayList<>(); + JobOperationResult response = jobServiceClient.batchUpdateJobsAsync(parent, jobs).get(); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_batchupdatejobs_stringlistjob_sync] 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 new file mode 100644 index 00000000000..f1443802655 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/batchupdatejobs/SyncBatchUpdateJobsTenantnameListjob.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_batchupdatejobs_tenantnamelistjob_sync] +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobOperationResult; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; +import java.util.ArrayList; +import java.util.List; + +public class SyncBatchUpdateJobsTenantnameListjob { + + public static void main(String[] args) throws Exception { + syncBatchUpdateJobsTenantnameListjob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + List jobs = new ArrayList<>(); + JobOperationResult response = jobServiceClient.batchUpdateJobsAsync(parent, jobs).get(); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_batchupdatejobs_tenantnamelistjob_sync] 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 new file mode 100644 index 00000000000..b379026aa71 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.JobServiceSettings; +import com.google.cloud.talent.v4beta1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + 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. + JobServiceSettings jobServiceSettings = + JobServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + JobServiceClient jobServiceClient = JobServiceClient.create(jobServiceSettings); + } +} +// [END talent_v4beta1_generated_jobserviceclient_create_setcredentialsprovider_sync] 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 new file mode 100644 index 00000000000..d0b40a7bc07 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_create_setcredentialsprovider1_sync] +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.JobServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + 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. + JobServiceSettings jobServiceSettings = + JobServiceSettings.newBuilder() + .setTransportChannelProvider( + JobServiceSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + JobServiceClient jobServiceClient = JobServiceClient.create(jobServiceSettings); + } +} +// [END talent_v4beta1_generated_jobserviceclient_create_setcredentialsprovider1_sync] 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 new file mode 100644 index 00000000000..63e50d21512 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_create_setendpoint_sync] +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.JobServiceSettings; +import com.google.cloud.talent.v4beta1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + 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. + JobServiceSettings jobServiceSettings = + JobServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + JobServiceClient jobServiceClient = JobServiceClient.create(jobServiceSettings); + } +} +// [END talent_v4beta1_generated_jobserviceclient_create_setendpoint_sync] 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 new file mode 100644 index 00000000000..0fc51076080 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/createjob/AsyncCreateJob.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_createjob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4beta1.CreateJobRequest; +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; + +public class AsyncCreateJob { + + public static void main(String[] args) throws Exception { + asyncCreateJob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + CreateJobRequest request = + CreateJobRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setJob(Job.newBuilder().build()) + .build(); + ApiFuture future = jobServiceClient.createJobCallable().futureCall(request); + // Do something. + Job response = future.get(); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_createjob_async] 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 new file mode 100644 index 00000000000..b343929a883 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/createjob/SyncCreateJob.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_createjob_sync] +import com.google.cloud.talent.v4beta1.CreateJobRequest; +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; + +public class SyncCreateJob { + + public static void main(String[] args) throws Exception { + syncCreateJob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + CreateJobRequest request = + CreateJobRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setJob(Job.newBuilder().build()) + .build(); + Job response = jobServiceClient.createJob(request); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_createjob_sync] 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 new file mode 100644 index 00000000000..1449a868792 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/createjob/SyncCreateJobProjectnameJob.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_createjob_projectnamejob_sync] +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.ProjectName; + +public class SyncCreateJobProjectnameJob { + + public static void main(String[] args) throws Exception { + syncCreateJobProjectnameJob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + Job job = Job.newBuilder().build(); + Job response = jobServiceClient.createJob(parent, job); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_createjob_projectnamejob_sync] 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 new file mode 100644 index 00000000000..33c97ed86b2 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/createjob/SyncCreateJobStringJob.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_createjob_stringjob_sync] +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; + +public class SyncCreateJobStringJob { + + public static void main(String[] args) throws Exception { + syncCreateJobStringJob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + String parent = TenantName.of("[PROJECT]", "[TENANT]").toString(); + Job job = Job.newBuilder().build(); + Job response = jobServiceClient.createJob(parent, job); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_createjob_stringjob_sync] 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 new file mode 100644 index 00000000000..99730213907 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/createjob/SyncCreateJobTenantnameJob.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_createjob_tenantnamejob_sync] +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; + +public class SyncCreateJobTenantnameJob { + + public static void main(String[] args) throws Exception { + syncCreateJobTenantnameJob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + Job job = Job.newBuilder().build(); + Job response = jobServiceClient.createJob(parent, job); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_createjob_tenantnamejob_sync] 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 new file mode 100644 index 00000000000..efbe20addd6 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/deletejob/AsyncDeleteJob.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_deletejob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4beta1.DeleteJobRequest; +import com.google.cloud.talent.v4beta1.JobName; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteJob { + + public static void main(String[] args) throws Exception { + asyncDeleteJob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + DeleteJobRequest request = + DeleteJobRequest.newBuilder() + .setName(JobName.ofProjectTenantJobName("[PROJECT]", "[TENANT]", "[JOB]").toString()) + .build(); + ApiFuture future = jobServiceClient.deleteJobCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_deletejob_async] 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 new file mode 100644 index 00000000000..7869a980bf3 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/deletejob/SyncDeleteJob.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_deletejob_sync] +import com.google.cloud.talent.v4beta1.DeleteJobRequest; +import com.google.cloud.talent.v4beta1.JobName; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteJob { + + public static void main(String[] args) throws Exception { + syncDeleteJob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + DeleteJobRequest request = + DeleteJobRequest.newBuilder() + .setName(JobName.ofProjectTenantJobName("[PROJECT]", "[TENANT]", "[JOB]").toString()) + .build(); + jobServiceClient.deleteJob(request); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_deletejob_sync] 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 new file mode 100644 index 00000000000..c21797d3030 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/deletejob/SyncDeleteJobJobname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_deletejob_jobname_sync] +import com.google.cloud.talent.v4beta1.JobName; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteJobJobname { + + public static void main(String[] args) throws Exception { + syncDeleteJobJobname(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + JobName name = JobName.ofProjectTenantJobName("[PROJECT]", "[TENANT]", "[JOB]"); + jobServiceClient.deleteJob(name); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_deletejob_jobname_sync] 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 new file mode 100644 index 00000000000..5fca8bc17d7 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/deletejob/SyncDeleteJobString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_deletejob_string_sync] +import com.google.cloud.talent.v4beta1.JobName; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteJobString { + + public static void main(String[] args) throws Exception { + syncDeleteJobString(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + String name = JobName.ofProjectTenantJobName("[PROJECT]", "[TENANT]", "[JOB]").toString(); + jobServiceClient.deleteJob(name); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_deletejob_string_sync] 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 new file mode 100644 index 00000000000..a38a5ed21ae --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/getjob/AsyncGetJob.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_getjob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4beta1.GetJobRequest; +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobName; +import com.google.cloud.talent.v4beta1.JobServiceClient; + +public class AsyncGetJob { + + public static void main(String[] args) throws Exception { + asyncGetJob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + GetJobRequest request = + GetJobRequest.newBuilder() + .setName(JobName.ofProjectTenantJobName("[PROJECT]", "[TENANT]", "[JOB]").toString()) + .build(); + ApiFuture future = jobServiceClient.getJobCallable().futureCall(request); + // Do something. + Job response = future.get(); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_getjob_async] 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 new file mode 100644 index 00000000000..769bb8885ed --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/getjob/SyncGetJob.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_getjob_sync] +import com.google.cloud.talent.v4beta1.GetJobRequest; +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobName; +import com.google.cloud.talent.v4beta1.JobServiceClient; + +public class SyncGetJob { + + public static void main(String[] args) throws Exception { + syncGetJob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + GetJobRequest request = + GetJobRequest.newBuilder() + .setName(JobName.ofProjectTenantJobName("[PROJECT]", "[TENANT]", "[JOB]").toString()) + .build(); + Job response = jobServiceClient.getJob(request); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_getjob_sync] 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 new file mode 100644 index 00000000000..e4c3d088b82 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/getjob/SyncGetJobJobname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_getjob_jobname_sync] +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobName; +import com.google.cloud.talent.v4beta1.JobServiceClient; + +public class SyncGetJobJobname { + + public static void main(String[] args) throws Exception { + syncGetJobJobname(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + JobName name = JobName.ofProjectTenantJobName("[PROJECT]", "[TENANT]", "[JOB]"); + Job response = jobServiceClient.getJob(name); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_getjob_jobname_sync] 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 new file mode 100644 index 00000000000..92a1d4cb2a5 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/getjob/SyncGetJobString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_getjob_string_sync] +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobName; +import com.google.cloud.talent.v4beta1.JobServiceClient; + +public class SyncGetJobString { + + public static void main(String[] args) throws Exception { + syncGetJobString(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + String name = JobName.ofProjectTenantJobName("[PROJECT]", "[TENANT]", "[JOB]").toString(); + Job response = jobServiceClient.getJob(name); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_getjob_string_sync] 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 new file mode 100644 index 00000000000..c05fc175e77 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/AsyncListJobs.java @@ -0,0 +1,53 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_listjobs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.JobView; +import com.google.cloud.talent.v4beta1.ListJobsRequest; +import com.google.cloud.talent.v4beta1.TenantName; + +public class AsyncListJobs { + + public static void main(String[] args) throws Exception { + asyncListJobs(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + ListJobsRequest request = + ListJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setFilter("filter-1274492040") + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .setJobView(JobView.forNumber(0)) + .build(); + ApiFuture future = jobServiceClient.listJobsPagedCallable().futureCall(request); + // Do something. + for (Job element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_listjobs_async] 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 new file mode 100644 index 00000000000..8282f637d38 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/AsyncListJobsPaged.java @@ -0,0 +1,61 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_listjobs_paged_async] +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.JobView; +import com.google.cloud.talent.v4beta1.ListJobsRequest; +import com.google.cloud.talent.v4beta1.ListJobsResponse; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.common.base.Strings; + +public class AsyncListJobsPaged { + + public static void main(String[] args) throws Exception { + asyncListJobsPaged(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + ListJobsRequest request = + ListJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setFilter("filter-1274492040") + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .setJobView(JobView.forNumber(0)) + .build(); + while (true) { + ListJobsResponse response = jobServiceClient.listJobsCallable().call(request); + for (Job element : response.getJobsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_listjobs_paged_async] 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 new file mode 100644 index 00000000000..bc29d4ffae8 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/SyncListJobs.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_listjobs_sync] +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.JobView; +import com.google.cloud.talent.v4beta1.ListJobsRequest; +import com.google.cloud.talent.v4beta1.TenantName; + +public class SyncListJobs { + + public static void main(String[] args) throws Exception { + syncListJobs(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + ListJobsRequest request = + ListJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setFilter("filter-1274492040") + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .setJobView(JobView.forNumber(0)) + .build(); + for (Job element : jobServiceClient.listJobs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_listjobs_sync] 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 new file mode 100644 index 00000000000..ae5e87fa8bb --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/SyncListJobsProjectnameString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_listjobs_projectnamestring_sync] +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.ProjectName; + +public class SyncListJobsProjectnameString { + + public static void main(String[] args) throws Exception { + syncListJobsProjectnameString(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + String filter = "filter-1274492040"; + for (Job element : jobServiceClient.listJobs(parent, filter).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_listjobs_projectnamestring_sync] 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 new file mode 100644 index 00000000000..e9fb6c9fcbf --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/SyncListJobsStringString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_listjobs_stringstring_sync] +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; + +public class SyncListJobsStringString { + + public static void main(String[] args) throws Exception { + syncListJobsStringString(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + String parent = TenantName.of("[PROJECT]", "[TENANT]").toString(); + String filter = "filter-1274492040"; + for (Job element : jobServiceClient.listJobs(parent, filter).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_listjobs_stringstring_sync] 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 new file mode 100644 index 00000000000..2729f8568b4 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/listjobs/SyncListJobsTenantnameString.java @@ -0,0 +1,42 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_listjobs_tenantnamestring_sync] +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.TenantName; + +public class SyncListJobsTenantnameString { + + public static void main(String[] args) throws Exception { + syncListJobsTenantnameString(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + TenantName parent = TenantName.of("[PROJECT]", "[TENANT]"); + String filter = "filter-1274492040"; + for (Job element : jobServiceClient.listJobs(parent, filter).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_listjobs_tenantnamestring_sync] 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 new file mode 100644 index 00000000000..af33b12a475 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobs/AsyncSearchJobs.java @@ -0,0 +1,66 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_searchjobs_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4beta1.HistogramQuery; +import com.google.cloud.talent.v4beta1.JobQuery; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.JobView; +import com.google.cloud.talent.v4beta1.RequestMetadata; +import com.google.cloud.talent.v4beta1.SearchJobsRequest; +import com.google.cloud.talent.v4beta1.SearchJobsResponse; +import com.google.cloud.talent.v4beta1.TenantName; +import java.util.ArrayList; + +public class AsyncSearchJobs { + + public static void main(String[] args) throws Exception { + asyncSearchJobs(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + SearchJobsRequest request = + SearchJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setRequestMetadata(RequestMetadata.newBuilder().build()) + .setJobQuery(JobQuery.newBuilder().build()) + .setEnableBroadening(true) + .setRequirePreciseResultSize(true) + .addAllHistogramQueries(new ArrayList()) + .setJobView(JobView.forNumber(0)) + .setOffset(-1019779949) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setCustomRankingInfo(SearchJobsRequest.CustomRankingInfo.newBuilder().build()) + .setDisableKeywordMatch(true) + .build(); + ApiFuture future = + jobServiceClient.searchJobsPagedCallable().futureCall(request); + // Do something. + for (SearchJobsResponse.MatchingJob element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_searchjobs_async] 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 new file mode 100644 index 00000000000..077376200d8 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobs/AsyncSearchJobsPaged.java @@ -0,0 +1,72 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_searchjobs_paged_async] +import com.google.cloud.talent.v4beta1.HistogramQuery; +import com.google.cloud.talent.v4beta1.JobQuery; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.JobView; +import com.google.cloud.talent.v4beta1.RequestMetadata; +import com.google.cloud.talent.v4beta1.SearchJobsRequest; +import com.google.cloud.talent.v4beta1.SearchJobsResponse; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.common.base.Strings; +import java.util.ArrayList; + +public class AsyncSearchJobsPaged { + + public static void main(String[] args) throws Exception { + asyncSearchJobsPaged(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + SearchJobsRequest request = + SearchJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setRequestMetadata(RequestMetadata.newBuilder().build()) + .setJobQuery(JobQuery.newBuilder().build()) + .setEnableBroadening(true) + .setRequirePreciseResultSize(true) + .addAllHistogramQueries(new ArrayList()) + .setJobView(JobView.forNumber(0)) + .setOffset(-1019779949) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setCustomRankingInfo(SearchJobsRequest.CustomRankingInfo.newBuilder().build()) + .setDisableKeywordMatch(true) + .build(); + while (true) { + SearchJobsResponse response = jobServiceClient.searchJobsCallable().call(request); + for (SearchJobsResponse.MatchingJob element : response.getMatchingJobsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_searchjobs_paged_async] 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 new file mode 100644 index 00000000000..e2935ec08e6 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobs/SyncSearchJobs.java @@ -0,0 +1,63 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_searchjobs_sync] +import com.google.cloud.talent.v4beta1.HistogramQuery; +import com.google.cloud.talent.v4beta1.JobQuery; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.JobView; +import com.google.cloud.talent.v4beta1.RequestMetadata; +import com.google.cloud.talent.v4beta1.SearchJobsRequest; +import com.google.cloud.talent.v4beta1.SearchJobsResponse; +import com.google.cloud.talent.v4beta1.TenantName; +import java.util.ArrayList; + +public class SyncSearchJobs { + + public static void main(String[] args) throws Exception { + syncSearchJobs(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + SearchJobsRequest request = + SearchJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setRequestMetadata(RequestMetadata.newBuilder().build()) + .setJobQuery(JobQuery.newBuilder().build()) + .setEnableBroadening(true) + .setRequirePreciseResultSize(true) + .addAllHistogramQueries(new ArrayList()) + .setJobView(JobView.forNumber(0)) + .setOffset(-1019779949) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setCustomRankingInfo(SearchJobsRequest.CustomRankingInfo.newBuilder().build()) + .setDisableKeywordMatch(true) + .build(); + for (SearchJobsResponse.MatchingJob element : + jobServiceClient.searchJobs(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_searchjobs_sync] 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 new file mode 100644 index 00000000000..d0f8f7a7262 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobsforalert/AsyncSearchJobsForAlert.java @@ -0,0 +1,66 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_searchjobsforalert_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4beta1.HistogramQuery; +import com.google.cloud.talent.v4beta1.JobQuery; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.JobView; +import com.google.cloud.talent.v4beta1.RequestMetadata; +import com.google.cloud.talent.v4beta1.SearchJobsRequest; +import com.google.cloud.talent.v4beta1.SearchJobsResponse; +import com.google.cloud.talent.v4beta1.TenantName; +import java.util.ArrayList; + +public class AsyncSearchJobsForAlert { + + public static void main(String[] args) throws Exception { + asyncSearchJobsForAlert(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + SearchJobsRequest request = + SearchJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setRequestMetadata(RequestMetadata.newBuilder().build()) + .setJobQuery(JobQuery.newBuilder().build()) + .setEnableBroadening(true) + .setRequirePreciseResultSize(true) + .addAllHistogramQueries(new ArrayList()) + .setJobView(JobView.forNumber(0)) + .setOffset(-1019779949) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setCustomRankingInfo(SearchJobsRequest.CustomRankingInfo.newBuilder().build()) + .setDisableKeywordMatch(true) + .build(); + ApiFuture future = + jobServiceClient.searchJobsForAlertPagedCallable().futureCall(request); + // Do something. + for (SearchJobsResponse.MatchingJob element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_searchjobsforalert_async] 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 new file mode 100644 index 00000000000..ec17ff11fe8 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobsforalert/AsyncSearchJobsForAlertPaged.java @@ -0,0 +1,72 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_searchjobsforalert_paged_async] +import com.google.cloud.talent.v4beta1.HistogramQuery; +import com.google.cloud.talent.v4beta1.JobQuery; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.JobView; +import com.google.cloud.talent.v4beta1.RequestMetadata; +import com.google.cloud.talent.v4beta1.SearchJobsRequest; +import com.google.cloud.talent.v4beta1.SearchJobsResponse; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.common.base.Strings; +import java.util.ArrayList; + +public class AsyncSearchJobsForAlertPaged { + + public static void main(String[] args) throws Exception { + asyncSearchJobsForAlertPaged(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + SearchJobsRequest request = + SearchJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setRequestMetadata(RequestMetadata.newBuilder().build()) + .setJobQuery(JobQuery.newBuilder().build()) + .setEnableBroadening(true) + .setRequirePreciseResultSize(true) + .addAllHistogramQueries(new ArrayList()) + .setJobView(JobView.forNumber(0)) + .setOffset(-1019779949) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setCustomRankingInfo(SearchJobsRequest.CustomRankingInfo.newBuilder().build()) + .setDisableKeywordMatch(true) + .build(); + while (true) { + SearchJobsResponse response = jobServiceClient.searchJobsForAlertCallable().call(request); + for (SearchJobsResponse.MatchingJob element : response.getMatchingJobsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_searchjobsforalert_paged_async] 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 new file mode 100644 index 00000000000..9d2adc648c2 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/searchjobsforalert/SyncSearchJobsForAlert.java @@ -0,0 +1,63 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_searchjobsforalert_sync] +import com.google.cloud.talent.v4beta1.HistogramQuery; +import com.google.cloud.talent.v4beta1.JobQuery; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.JobView; +import com.google.cloud.talent.v4beta1.RequestMetadata; +import com.google.cloud.talent.v4beta1.SearchJobsRequest; +import com.google.cloud.talent.v4beta1.SearchJobsResponse; +import com.google.cloud.talent.v4beta1.TenantName; +import java.util.ArrayList; + +public class SyncSearchJobsForAlert { + + public static void main(String[] args) throws Exception { + syncSearchJobsForAlert(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + SearchJobsRequest request = + SearchJobsRequest.newBuilder() + .setParent(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .setRequestMetadata(RequestMetadata.newBuilder().build()) + .setJobQuery(JobQuery.newBuilder().build()) + .setEnableBroadening(true) + .setRequirePreciseResultSize(true) + .addAllHistogramQueries(new ArrayList()) + .setJobView(JobView.forNumber(0)) + .setOffset(-1019779949) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setOrderBy("orderBy-1207110587") + .setCustomRankingInfo(SearchJobsRequest.CustomRankingInfo.newBuilder().build()) + .setDisableKeywordMatch(true) + .build(); + for (SearchJobsResponse.MatchingJob element : + jobServiceClient.searchJobsForAlert(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_searchjobsforalert_sync] 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 new file mode 100644 index 00000000000..6014f2845cc --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/updatejob/AsyncUpdateJob.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_updatejob_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.UpdateJobRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateJob { + + public static void main(String[] args) throws Exception { + asyncUpdateJob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + UpdateJobRequest request = + UpdateJobRequest.newBuilder() + .setJob(Job.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = jobServiceClient.updateJobCallable().futureCall(request); + // Do something. + Job response = future.get(); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_updatejob_async] 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 new file mode 100644 index 00000000000..a267c506add --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/updatejob/SyncUpdateJob.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_updatejob_sync] +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobServiceClient; +import com.google.cloud.talent.v4beta1.UpdateJobRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateJob { + + public static void main(String[] args) throws Exception { + syncUpdateJob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + UpdateJobRequest request = + UpdateJobRequest.newBuilder() + .setJob(Job.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Job response = jobServiceClient.updateJob(request); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_updatejob_sync] 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 new file mode 100644 index 00000000000..5d0d61b5a59 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobserviceclient/updatejob/SyncUpdateJobJob.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobserviceclient_updatejob_job_sync] +import com.google.cloud.talent.v4beta1.Job; +import com.google.cloud.talent.v4beta1.JobServiceClient; + +public class SyncUpdateJobJob { + + public static void main(String[] args) throws Exception { + syncUpdateJobJob(); + } + + 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. + try (JobServiceClient jobServiceClient = JobServiceClient.create()) { + Job job = Job.newBuilder().build(); + Job response = jobServiceClient.updateJob(job); + } + } +} +// [END talent_v4beta1_generated_jobserviceclient_updatejob_job_sync] 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 new file mode 100644 index 00000000000..d2ebfab5198 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/jobservicesettings/createjob/SyncCreateJob.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_jobservicesettings_createjob_sync] +import com.google.cloud.talent.v4beta1.JobServiceSettings; +import java.time.Duration; + +public class SyncCreateJob { + + public static void main(String[] args) throws Exception { + syncCreateJob(); + } + + 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. + JobServiceSettings.Builder jobServiceSettingsBuilder = JobServiceSettings.newBuilder(); + jobServiceSettingsBuilder + .createJobSettings() + .setRetrySettings( + jobServiceSettingsBuilder + .createJobSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + JobServiceSettings jobServiceSettings = jobServiceSettingsBuilder.build(); + } +} +// [END talent_v4beta1_generated_jobservicesettings_createjob_sync] 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 new file mode 100644 index 00000000000..908f13d7245 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/stub/companyservicestubsettings/createcompany/SyncCreateCompany.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.stub.samples; + +// [START talent_v4beta1_generated_companyservicestubsettings_createcompany_sync] +import com.google.cloud.talent.v4beta1.stub.CompanyServiceStubSettings; +import java.time.Duration; + +public class SyncCreateCompany { + + public static void main(String[] args) throws Exception { + syncCreateCompany(); + } + + 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. + CompanyServiceStubSettings.Builder companyServiceSettingsBuilder = + CompanyServiceStubSettings.newBuilder(); + companyServiceSettingsBuilder + .createCompanySettings() + .setRetrySettings( + companyServiceSettingsBuilder + .createCompanySettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + CompanyServiceStubSettings companyServiceSettings = companyServiceSettingsBuilder.build(); + } +} +// [END talent_v4beta1_generated_companyservicestubsettings_createcompany_sync] 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 new file mode 100644 index 00000000000..8757e549083 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/stub/completionstubsettings/completequery/SyncCompleteQuery.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.stub.samples; + +// [START talent_v4beta1_generated_completionstubsettings_completequery_sync] +import com.google.cloud.talent.v4beta1.stub.CompletionStubSettings; +import java.time.Duration; + +public class SyncCompleteQuery { + + public static void main(String[] args) throws Exception { + syncCompleteQuery(); + } + + 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. + CompletionStubSettings.Builder completionSettingsBuilder = CompletionStubSettings.newBuilder(); + completionSettingsBuilder + .completeQuerySettings() + .setRetrySettings( + completionSettingsBuilder + .completeQuerySettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + CompletionStubSettings completionSettings = completionSettingsBuilder.build(); + } +} +// [END talent_v4beta1_generated_completionstubsettings_completequery_sync] 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 new file mode 100644 index 00000000000..a6ab4e2cd06 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/stub/eventservicestubsettings/createclientevent/SyncCreateClientEvent.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.stub.samples; + +// [START talent_v4beta1_generated_eventservicestubsettings_createclientevent_sync] +import com.google.cloud.talent.v4beta1.stub.EventServiceStubSettings; +import java.time.Duration; + +public class SyncCreateClientEvent { + + public static void main(String[] args) throws Exception { + syncCreateClientEvent(); + } + + 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. + EventServiceStubSettings.Builder eventServiceSettingsBuilder = + EventServiceStubSettings.newBuilder(); + eventServiceSettingsBuilder + .createClientEventSettings() + .setRetrySettings( + eventServiceSettingsBuilder + .createClientEventSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + EventServiceStubSettings eventServiceSettings = eventServiceSettingsBuilder.build(); + } +} +// [END talent_v4beta1_generated_eventservicestubsettings_createclientevent_sync] 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 new file mode 100644 index 00000000000..69ff5839670 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/stub/jobservicestubsettings/createjob/SyncCreateJob.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.stub.samples; + +// [START talent_v4beta1_generated_jobservicestubsettings_createjob_sync] +import com.google.cloud.talent.v4beta1.stub.JobServiceStubSettings; +import java.time.Duration; + +public class SyncCreateJob { + + public static void main(String[] args) throws Exception { + syncCreateJob(); + } + + 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. + JobServiceStubSettings.Builder jobServiceSettingsBuilder = JobServiceStubSettings.newBuilder(); + jobServiceSettingsBuilder + .createJobSettings() + .setRetrySettings( + jobServiceSettingsBuilder + .createJobSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + JobServiceStubSettings jobServiceSettings = jobServiceSettingsBuilder.build(); + } +} +// [END talent_v4beta1_generated_jobservicestubsettings_createjob_sync] 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 new file mode 100644 index 00000000000..58d2c7d7e37 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/stub/tenantservicestubsettings/createtenant/SyncCreateTenant.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.stub.samples; + +// [START talent_v4beta1_generated_tenantservicestubsettings_createtenant_sync] +import com.google.cloud.talent.v4beta1.stub.TenantServiceStubSettings; +import java.time.Duration; + +public class SyncCreateTenant { + + public static void main(String[] args) throws Exception { + syncCreateTenant(); + } + + 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. + TenantServiceStubSettings.Builder tenantServiceSettingsBuilder = + TenantServiceStubSettings.newBuilder(); + tenantServiceSettingsBuilder + .createTenantSettings() + .setRetrySettings( + tenantServiceSettingsBuilder + .createTenantSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + TenantServiceStubSettings tenantServiceSettings = tenantServiceSettingsBuilder.build(); + } +} +// [END talent_v4beta1_generated_tenantservicestubsettings_createtenant_sync] 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 new file mode 100644 index 00000000000..0a943788791 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_tenantserviceclient_create_setcredentialsprovider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.talent.v4beta1.TenantServiceClient; +import com.google.cloud.talent.v4beta1.TenantServiceSettings; +import com.google.cloud.talent.v4beta1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + 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. + TenantServiceSettings tenantServiceSettings = + TenantServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + TenantServiceClient tenantServiceClient = TenantServiceClient.create(tenantServiceSettings); + } +} +// [END talent_v4beta1_generated_tenantserviceclient_create_setcredentialsprovider_sync] 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 new file mode 100644 index 00000000000..d3c730119e2 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/create/SyncCreateSetCredentialsProvider1.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_tenantserviceclient_create_setcredentialsprovider1_sync] +import com.google.cloud.talent.v4beta1.TenantServiceClient; +import com.google.cloud.talent.v4beta1.TenantServiceSettings; + +public class SyncCreateSetCredentialsProvider1 { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider1(); + } + + 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. + TenantServiceSettings tenantServiceSettings = + TenantServiceSettings.newBuilder() + .setTransportChannelProvider( + TenantServiceSettings.defaultHttpJsonTransportProviderBuilder().build()) + .build(); + TenantServiceClient tenantServiceClient = TenantServiceClient.create(tenantServiceSettings); + } +} +// [END talent_v4beta1_generated_tenantserviceclient_create_setcredentialsprovider1_sync] 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 new file mode 100644 index 00000000000..e7b2bbfc5b4 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/create/SyncCreateSetEndpoint.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_tenantserviceclient_create_setendpoint_sync] +import com.google.cloud.talent.v4beta1.TenantServiceClient; +import com.google.cloud.talent.v4beta1.TenantServiceSettings; +import com.google.cloud.talent.v4beta1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + 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. + TenantServiceSettings tenantServiceSettings = + TenantServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + TenantServiceClient tenantServiceClient = TenantServiceClient.create(tenantServiceSettings); + } +} +// [END talent_v4beta1_generated_tenantserviceclient_create_setendpoint_sync] 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 new file mode 100644 index 00000000000..aea74d50bb6 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/createtenant/AsyncCreateTenant.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_tenantserviceclient_createtenant_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4beta1.CreateTenantRequest; +import com.google.cloud.talent.v4beta1.ProjectName; +import com.google.cloud.talent.v4beta1.Tenant; +import com.google.cloud.talent.v4beta1.TenantServiceClient; + +public class AsyncCreateTenant { + + public static void main(String[] args) throws Exception { + asyncCreateTenant(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + CreateTenantRequest request = + CreateTenantRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setTenant(Tenant.newBuilder().build()) + .build(); + ApiFuture future = tenantServiceClient.createTenantCallable().futureCall(request); + // Do something. + Tenant response = future.get(); + } + } +} +// [END talent_v4beta1_generated_tenantserviceclient_createtenant_async] 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 new file mode 100644 index 00000000000..7135a821f76 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/createtenant/SyncCreateTenant.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_tenantserviceclient_createtenant_sync] +import com.google.cloud.talent.v4beta1.CreateTenantRequest; +import com.google.cloud.talent.v4beta1.ProjectName; +import com.google.cloud.talent.v4beta1.Tenant; +import com.google.cloud.talent.v4beta1.TenantServiceClient; + +public class SyncCreateTenant { + + public static void main(String[] args) throws Exception { + syncCreateTenant(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + CreateTenantRequest request = + CreateTenantRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setTenant(Tenant.newBuilder().build()) + .build(); + Tenant response = tenantServiceClient.createTenant(request); + } + } +} +// [END talent_v4beta1_generated_tenantserviceclient_createtenant_sync] 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 new file mode 100644 index 00000000000..0e515957c0d --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/createtenant/SyncCreateTenantProjectnameTenant.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_tenantserviceclient_createtenant_projectnametenant_sync] +import com.google.cloud.talent.v4beta1.ProjectName; +import com.google.cloud.talent.v4beta1.Tenant; +import com.google.cloud.talent.v4beta1.TenantServiceClient; + +public class SyncCreateTenantProjectnameTenant { + + public static void main(String[] args) throws Exception { + syncCreateTenantProjectnameTenant(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + Tenant tenant = Tenant.newBuilder().build(); + Tenant response = tenantServiceClient.createTenant(parent, tenant); + } + } +} +// [END talent_v4beta1_generated_tenantserviceclient_createtenant_projectnametenant_sync] 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 new file mode 100644 index 00000000000..a97fa9f9b1c --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/createtenant/SyncCreateTenantStringTenant.java @@ -0,0 +1,40 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_tenantserviceclient_createtenant_stringtenant_sync] +import com.google.cloud.talent.v4beta1.ProjectName; +import com.google.cloud.talent.v4beta1.Tenant; +import com.google.cloud.talent.v4beta1.TenantServiceClient; + +public class SyncCreateTenantStringTenant { + + public static void main(String[] args) throws Exception { + syncCreateTenantStringTenant(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + String parent = ProjectName.of("[PROJECT]").toString(); + Tenant tenant = Tenant.newBuilder().build(); + Tenant response = tenantServiceClient.createTenant(parent, tenant); + } + } +} +// [END talent_v4beta1_generated_tenantserviceclient_createtenant_stringtenant_sync] 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 new file mode 100644 index 00000000000..6e01d958d8c --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/deletetenant/AsyncDeleteTenant.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_tenantserviceclient_deletetenant_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4beta1.DeleteTenantRequest; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.cloud.talent.v4beta1.TenantServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteTenant { + + public static void main(String[] args) throws Exception { + asyncDeleteTenant(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + DeleteTenantRequest request = + DeleteTenantRequest.newBuilder() + .setName(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .build(); + ApiFuture future = tenantServiceClient.deleteTenantCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END talent_v4beta1_generated_tenantserviceclient_deletetenant_async] 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 new file mode 100644 index 00000000000..24d217cdc12 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/deletetenant/SyncDeleteTenant.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_tenantserviceclient_deletetenant_sync] +import com.google.cloud.talent.v4beta1.DeleteTenantRequest; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.cloud.talent.v4beta1.TenantServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteTenant { + + public static void main(String[] args) throws Exception { + syncDeleteTenant(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + DeleteTenantRequest request = + DeleteTenantRequest.newBuilder() + .setName(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .build(); + tenantServiceClient.deleteTenant(request); + } + } +} +// [END talent_v4beta1_generated_tenantserviceclient_deletetenant_sync] 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 new file mode 100644 index 00000000000..4c47f182f93 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/deletetenant/SyncDeleteTenantString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_tenantserviceclient_deletetenant_string_sync] +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.cloud.talent.v4beta1.TenantServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteTenantString { + + public static void main(String[] args) throws Exception { + syncDeleteTenantString(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + String name = TenantName.of("[PROJECT]", "[TENANT]").toString(); + tenantServiceClient.deleteTenant(name); + } + } +} +// [END talent_v4beta1_generated_tenantserviceclient_deletetenant_string_sync] 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 new file mode 100644 index 00000000000..bcdbe723cb7 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/deletetenant/SyncDeleteTenantTenantname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_tenantserviceclient_deletetenant_tenantname_sync] +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.cloud.talent.v4beta1.TenantServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteTenantTenantname { + + public static void main(String[] args) throws Exception { + syncDeleteTenantTenantname(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); + tenantServiceClient.deleteTenant(name); + } + } +} +// [END talent_v4beta1_generated_tenantserviceclient_deletetenant_tenantname_sync] 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 new file mode 100644 index 00000000000..cc24ad80f9c --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/gettenant/AsyncGetTenant.java @@ -0,0 +1,46 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_tenantserviceclient_gettenant_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4beta1.GetTenantRequest; +import com.google.cloud.talent.v4beta1.Tenant; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.cloud.talent.v4beta1.TenantServiceClient; + +public class AsyncGetTenant { + + public static void main(String[] args) throws Exception { + asyncGetTenant(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + GetTenantRequest request = + GetTenantRequest.newBuilder() + .setName(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .build(); + ApiFuture future = tenantServiceClient.getTenantCallable().futureCall(request); + // Do something. + Tenant response = future.get(); + } + } +} +// [END talent_v4beta1_generated_tenantserviceclient_gettenant_async] 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 new file mode 100644 index 00000000000..d280744e9d1 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/gettenant/SyncGetTenant.java @@ -0,0 +1,43 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_tenantserviceclient_gettenant_sync] +import com.google.cloud.talent.v4beta1.GetTenantRequest; +import com.google.cloud.talent.v4beta1.Tenant; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.cloud.talent.v4beta1.TenantServiceClient; + +public class SyncGetTenant { + + public static void main(String[] args) throws Exception { + syncGetTenant(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + GetTenantRequest request = + GetTenantRequest.newBuilder() + .setName(TenantName.of("[PROJECT]", "[TENANT]").toString()) + .build(); + Tenant response = tenantServiceClient.getTenant(request); + } + } +} +// [END talent_v4beta1_generated_tenantserviceclient_gettenant_sync] 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 new file mode 100644 index 00000000000..d5075a441bc --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/gettenant/SyncGetTenantString.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_tenantserviceclient_gettenant_string_sync] +import com.google.cloud.talent.v4beta1.Tenant; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.cloud.talent.v4beta1.TenantServiceClient; + +public class SyncGetTenantString { + + public static void main(String[] args) throws Exception { + syncGetTenantString(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + String name = TenantName.of("[PROJECT]", "[TENANT]").toString(); + Tenant response = tenantServiceClient.getTenant(name); + } + } +} +// [END talent_v4beta1_generated_tenantserviceclient_gettenant_string_sync] 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 new file mode 100644 index 00000000000..40700c52ade --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/gettenant/SyncGetTenantTenantname.java @@ -0,0 +1,39 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_tenantserviceclient_gettenant_tenantname_sync] +import com.google.cloud.talent.v4beta1.Tenant; +import com.google.cloud.talent.v4beta1.TenantName; +import com.google.cloud.talent.v4beta1.TenantServiceClient; + +public class SyncGetTenantTenantname { + + public static void main(String[] args) throws Exception { + syncGetTenantTenantname(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + TenantName name = TenantName.of("[PROJECT]", "[TENANT]"); + Tenant response = tenantServiceClient.getTenant(name); + } + } +} +// [END talent_v4beta1_generated_tenantserviceclient_gettenant_tenantname_sync] 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 new file mode 100644 index 00000000000..8ef2016e68c --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/listtenants/AsyncListTenants.java @@ -0,0 +1,50 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_tenantserviceclient_listtenants_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4beta1.ListTenantsRequest; +import com.google.cloud.talent.v4beta1.ProjectName; +import com.google.cloud.talent.v4beta1.Tenant; +import com.google.cloud.talent.v4beta1.TenantServiceClient; + +public class AsyncListTenants { + + public static void main(String[] args) throws Exception { + asyncListTenants(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + ListTenantsRequest request = + ListTenantsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + ApiFuture future = tenantServiceClient.listTenantsPagedCallable().futureCall(request); + // Do something. + for (Tenant element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END talent_v4beta1_generated_tenantserviceclient_listtenants_async] 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 new file mode 100644 index 00000000000..c504197238e --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/listtenants/AsyncListTenantsPaged.java @@ -0,0 +1,58 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_tenantserviceclient_listtenants_paged_async] +import com.google.cloud.talent.v4beta1.ListTenantsRequest; +import com.google.cloud.talent.v4beta1.ListTenantsResponse; +import com.google.cloud.talent.v4beta1.ProjectName; +import com.google.cloud.talent.v4beta1.Tenant; +import com.google.cloud.talent.v4beta1.TenantServiceClient; +import com.google.common.base.Strings; + +public class AsyncListTenantsPaged { + + public static void main(String[] args) throws Exception { + asyncListTenantsPaged(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + ListTenantsRequest request = + ListTenantsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + while (true) { + ListTenantsResponse response = tenantServiceClient.listTenantsCallable().call(request); + for (Tenant element : response.getTenantsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END talent_v4beta1_generated_tenantserviceclient_listtenants_paged_async] 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 new file mode 100644 index 00000000000..93ba0be0a5f --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/listtenants/SyncListTenants.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_tenantserviceclient_listtenants_sync] +import com.google.cloud.talent.v4beta1.ListTenantsRequest; +import com.google.cloud.talent.v4beta1.ProjectName; +import com.google.cloud.talent.v4beta1.Tenant; +import com.google.cloud.talent.v4beta1.TenantServiceClient; + +public class SyncListTenants { + + public static void main(String[] args) throws Exception { + syncListTenants(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + ListTenantsRequest request = + ListTenantsRequest.newBuilder() + .setParent(ProjectName.of("[PROJECT]").toString()) + .setPageToken("pageToken873572522") + .setPageSize(883849137) + .build(); + for (Tenant element : tenantServiceClient.listTenants(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END talent_v4beta1_generated_tenantserviceclient_listtenants_sync] 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 new file mode 100644 index 00000000000..3c66852e068 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/listtenants/SyncListTenantsProjectname.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_tenantserviceclient_listtenants_projectname_sync] +import com.google.cloud.talent.v4beta1.ProjectName; +import com.google.cloud.talent.v4beta1.Tenant; +import com.google.cloud.talent.v4beta1.TenantServiceClient; + +public class SyncListTenantsProjectname { + + public static void main(String[] args) throws Exception { + syncListTenantsProjectname(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + ProjectName parent = ProjectName.of("[PROJECT]"); + for (Tenant element : tenantServiceClient.listTenants(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END talent_v4beta1_generated_tenantserviceclient_listtenants_projectname_sync] 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 new file mode 100644 index 00000000000..f04b7f4c61e --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/listtenants/SyncListTenantsString.java @@ -0,0 +1,41 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_tenantserviceclient_listtenants_string_sync] +import com.google.cloud.talent.v4beta1.ProjectName; +import com.google.cloud.talent.v4beta1.Tenant; +import com.google.cloud.talent.v4beta1.TenantServiceClient; + +public class SyncListTenantsString { + + public static void main(String[] args) throws Exception { + syncListTenantsString(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + String parent = ProjectName.of("[PROJECT]").toString(); + for (Tenant element : tenantServiceClient.listTenants(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END talent_v4beta1_generated_tenantserviceclient_listtenants_string_sync] 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 new file mode 100644 index 00000000000..8eebf6af813 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/updatetenant/AsyncUpdateTenant.java @@ -0,0 +1,47 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_tenantserviceclient_updatetenant_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.talent.v4beta1.Tenant; +import com.google.cloud.talent.v4beta1.TenantServiceClient; +import com.google.cloud.talent.v4beta1.UpdateTenantRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateTenant { + + public static void main(String[] args) throws Exception { + asyncUpdateTenant(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + UpdateTenantRequest request = + UpdateTenantRequest.newBuilder() + .setTenant(Tenant.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = tenantServiceClient.updateTenantCallable().futureCall(request); + // Do something. + Tenant response = future.get(); + } + } +} +// [END talent_v4beta1_generated_tenantserviceclient_updatetenant_async] 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 new file mode 100644 index 00000000000..f0ed73c0e68 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/updatetenant/SyncUpdateTenant.java @@ -0,0 +1,44 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_tenantserviceclient_updatetenant_sync] +import com.google.cloud.talent.v4beta1.Tenant; +import com.google.cloud.talent.v4beta1.TenantServiceClient; +import com.google.cloud.talent.v4beta1.UpdateTenantRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateTenant { + + public static void main(String[] args) throws Exception { + syncUpdateTenant(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + UpdateTenantRequest request = + UpdateTenantRequest.newBuilder() + .setTenant(Tenant.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Tenant response = tenantServiceClient.updateTenant(request); + } + } +} +// [END talent_v4beta1_generated_tenantserviceclient_updatetenant_sync] 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 new file mode 100644 index 00000000000..3f7000fbab6 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantserviceclient/updatetenant/SyncUpdateTenantTenant.java @@ -0,0 +1,38 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_tenantserviceclient_updatetenant_tenant_sync] +import com.google.cloud.talent.v4beta1.Tenant; +import com.google.cloud.talent.v4beta1.TenantServiceClient; + +public class SyncUpdateTenantTenant { + + public static void main(String[] args) throws Exception { + syncUpdateTenantTenant(); + } + + 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. + try (TenantServiceClient tenantServiceClient = TenantServiceClient.create()) { + Tenant tenant = Tenant.newBuilder().build(); + Tenant response = tenantServiceClient.updateTenant(tenant); + } + } +} +// [END talent_v4beta1_generated_tenantserviceclient_updatetenant_tenant_sync] 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 new file mode 100644 index 00000000000..184ec944e17 --- /dev/null +++ b/talent/snippets/generated/com/google/cloud/talent/v4beta1/tenantservicesettings/createtenant/SyncCreateTenant.java @@ -0,0 +1,45 @@ +/* + * Copyright 2022 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.talent.v4beta1.samples; + +// [START talent_v4beta1_generated_tenantservicesettings_createtenant_sync] +import com.google.cloud.talent.v4beta1.TenantServiceSettings; +import java.time.Duration; + +public class SyncCreateTenant { + + public static void main(String[] args) throws Exception { + syncCreateTenant(); + } + + 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. + TenantServiceSettings.Builder tenantServiceSettingsBuilder = TenantServiceSettings.newBuilder(); + tenantServiceSettingsBuilder + .createTenantSettings() + .setRetrySettings( + tenantServiceSettingsBuilder + .createTenantSettings() + .getRetrySettings() + .toBuilder() + .setTotalTimeout(Duration.ofSeconds(30)) + .build()); + TenantServiceSettings tenantServiceSettings = tenantServiceSettingsBuilder.build(); + } +} +// [END talent_v4beta1_generated_tenantservicesettings_createtenant_sync] From 22ae57d89e7a9ee1cd621e98561667b130ec01b1 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 11 Jul 2022 22:48:46 +0200 Subject: [PATCH 86/92] chore(deps): update dependency com.google.cloud:libraries-bom to v26 (#808) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * chore(deps): update dependency com.google.cloud:libraries-bom to v26 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index bc75f0547a9..678cdca391a 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 25.4.0 + 26.0.0 pom import From 5e80e816fa4c319c7b12278b3b1123774a7ae2c4 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Aug 2022 17:42:22 +0200 Subject: [PATCH 87/92] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.0 (#822) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.0.0` -> `26.1.0` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/compatibility-slim/26.0.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.0/confidence-slim/26.0.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 678cdca391a..08ed059442f 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 26.0.0 + 26.1.0 pom import From 6727e46766adc77e3b655cff9c4d91c8635844ac Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 31 Aug 2022 22:44:11 +0200 Subject: [PATCH 88/92] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.1 (#825) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.1.0` -> `26.1.1` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/compatibility-slim/26.1.0)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.1/confidence-slim/26.1.0)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 08ed059442f..9cee8a51afc 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 26.1.0 + 26.1.1 pom import From eb7408fe51f0f8a7f29c28a532c56ffb9947c75a Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Fri, 9 Sep 2022 16:40:16 +0000 Subject: [PATCH 89/92] chore(bazel): Update WORKSPACE files for rules_gapic, gax_java, generator_java versions (#826) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 472750037 Source-Link: https://github.com/googleapis/googleapis/commit/88f2ea3f53b9712f2e04f28f06210f6f77fa7e24 Source-Link: https://github.com/googleapis/googleapis-gen/commit/230a5588306aae18fe8f2a57f14d4039ad72c901 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjMwYTU1ODgzMDZhYWUxOGZlOGYyYTU3ZjE0ZDQwMzlhZDcyYzkwMSJ9 --- .../create/SyncCreateSetCredentialsProvider.java | 7 +++++-- .../create/SyncCreateSetCredentialsProvider1.java | 7 +++++-- .../create/SyncCreateSetEndpoint.java | 7 +++++-- .../createcompany/AsyncCreateCompany.java | 7 +++++-- .../createcompany/SyncCreateCompany.java | 7 +++++-- .../SyncCreateCompanyStringCompany.java | 7 +++++-- .../SyncCreateCompanyTenantnameCompany.java | 7 +++++-- .../deletecompany/AsyncDeleteCompany.java | 7 +++++-- .../deletecompany/SyncDeleteCompany.java | 7 +++++-- .../deletecompany/SyncDeleteCompanyCompanyname.java | 7 +++++-- .../deletecompany/SyncDeleteCompanyString.java | 7 +++++-- .../getcompany/AsyncGetCompany.java | 7 +++++-- .../getcompany/SyncGetCompany.java | 7 +++++-- .../getcompany/SyncGetCompanyCompanyname.java | 7 +++++-- .../getcompany/SyncGetCompanyString.java | 7 +++++-- .../listcompanies/AsyncListCompanies.java | 7 +++++-- .../listcompanies/AsyncListCompaniesPaged.java | 7 +++++-- .../listcompanies/SyncListCompanies.java | 7 +++++-- .../listcompanies/SyncListCompaniesString.java | 7 +++++-- .../listcompanies/SyncListCompaniesTenantname.java | 7 +++++-- .../updatecompany/AsyncUpdateCompany.java | 7 +++++-- .../updatecompany/SyncUpdateCompany.java | 7 +++++-- .../SyncUpdateCompanyCompanyFieldmask.java | 7 +++++-- .../createcompany/SyncCreateCompany.java | 12 ++++++------ .../completequery/AsyncCompleteQuery.java | 7 +++++-- .../completequery/SyncCompleteQuery.java | 7 +++++-- .../create/SyncCreateSetCredentialsProvider.java | 7 +++++-- .../create/SyncCreateSetCredentialsProvider1.java | 7 +++++-- .../create/SyncCreateSetEndpoint.java | 7 +++++-- .../completequery/SyncCompleteQuery.java | 12 ++++++------ .../create/SyncCreateSetCredentialsProvider.java | 7 +++++-- .../create/SyncCreateSetCredentialsProvider1.java | 7 +++++-- .../create/SyncCreateSetEndpoint.java | 7 +++++-- .../createclientevent/AsyncCreateClientEvent.java | 7 +++++-- .../createclientevent/SyncCreateClientEvent.java | 7 +++++-- .../SyncCreateClientEventStringClientevent.java | 7 +++++-- .../SyncCreateClientEventTenantnameClientevent.java | 7 +++++-- .../createclientevent/SyncCreateClientEvent.java | 12 ++++++------ .../batchcreatejobs/AsyncBatchCreateJobs.java | 7 +++++-- .../batchcreatejobs/AsyncBatchCreateJobsLRO.java | 7 +++++-- .../batchcreatejobs/SyncBatchCreateJobs.java | 7 +++++-- .../SyncBatchCreateJobsStringListjob.java | 7 +++++-- .../SyncBatchCreateJobsTenantnameListjob.java | 7 +++++-- .../batchdeletejobs/AsyncBatchDeleteJobs.java | 7 +++++-- .../batchdeletejobs/AsyncBatchDeleteJobsLRO.java | 7 +++++-- .../batchdeletejobs/SyncBatchDeleteJobs.java | 7 +++++-- .../SyncBatchDeleteJobsStringListstring.java | 7 +++++-- .../SyncBatchDeleteJobsTenantnameListstring.java | 7 +++++-- .../batchupdatejobs/AsyncBatchUpdateJobs.java | 7 +++++-- .../batchupdatejobs/AsyncBatchUpdateJobsLRO.java | 7 +++++-- .../batchupdatejobs/SyncBatchUpdateJobs.java | 7 +++++-- .../SyncBatchUpdateJobsStringListjob.java | 7 +++++-- .../SyncBatchUpdateJobsTenantnameListjob.java | 7 +++++-- .../create/SyncCreateSetCredentialsProvider.java | 7 +++++-- .../create/SyncCreateSetCredentialsProvider1.java | 7 +++++-- .../create/SyncCreateSetEndpoint.java | 7 +++++-- .../jobserviceclient/createjob/AsyncCreateJob.java | 7 +++++-- .../v4/jobserviceclient/createjob/SyncCreateJob.java | 7 +++++-- .../createjob/SyncCreateJobStringJob.java | 7 +++++-- .../createjob/SyncCreateJobTenantnameJob.java | 7 +++++-- .../jobserviceclient/deletejob/AsyncDeleteJob.java | 7 +++++-- .../v4/jobserviceclient/deletejob/SyncDeleteJob.java | 7 +++++-- .../deletejob/SyncDeleteJobJobname.java | 7 +++++-- .../deletejob/SyncDeleteJobString.java | 7 +++++-- .../v4/jobserviceclient/getjob/AsyncGetJob.java | 7 +++++-- .../v4/jobserviceclient/getjob/SyncGetJob.java | 7 +++++-- .../jobserviceclient/getjob/SyncGetJobJobname.java | 7 +++++-- .../v4/jobserviceclient/getjob/SyncGetJobString.java | 7 +++++-- .../v4/jobserviceclient/listjobs/AsyncListJobs.java | 7 +++++-- .../listjobs/AsyncListJobsPaged.java | 7 +++++-- .../v4/jobserviceclient/listjobs/SyncListJobs.java | 7 +++++-- .../listjobs/SyncListJobsStringString.java | 7 +++++-- .../listjobs/SyncListJobsTenantnameString.java | 7 +++++-- .../jobserviceclient/searchjobs/AsyncSearchJobs.java | 7 +++++-- .../jobserviceclient/searchjobs/SyncSearchJobs.java | 7 +++++-- .../searchjobsforalert/AsyncSearchJobsForAlert.java | 7 +++++-- .../searchjobsforalert/SyncSearchJobsForAlert.java | 7 +++++-- .../jobserviceclient/updatejob/AsyncUpdateJob.java | 7 +++++-- .../v4/jobserviceclient/updatejob/SyncUpdateJob.java | 7 +++++-- .../updatejob/SyncUpdateJobJobFieldmask.java | 7 +++++-- .../jobservicesettings/createjob/SyncCreateJob.java | 12 ++++++------ .../createcompany/SyncCreateCompany.java | 12 ++++++------ .../completequery/SyncCompleteQuery.java | 12 ++++++------ .../createclientevent/SyncCreateClientEvent.java | 12 ++++++------ .../createjob/SyncCreateJob.java | 12 ++++++------ .../createtenant/SyncCreateTenant.java | 12 ++++++------ .../create/SyncCreateSetCredentialsProvider.java | 7 +++++-- .../create/SyncCreateSetCredentialsProvider1.java | 7 +++++-- .../create/SyncCreateSetEndpoint.java | 7 +++++-- .../createtenant/AsyncCreateTenant.java | 7 +++++-- .../createtenant/SyncCreateTenant.java | 7 +++++-- .../SyncCreateTenantProjectnameTenant.java | 7 +++++-- .../createtenant/SyncCreateTenantStringTenant.java | 7 +++++-- .../deletetenant/AsyncDeleteTenant.java | 7 +++++-- .../deletetenant/SyncDeleteTenant.java | 7 +++++-- .../deletetenant/SyncDeleteTenantString.java | 7 +++++-- .../deletetenant/SyncDeleteTenantTenantname.java | 7 +++++-- .../gettenant/AsyncGetTenant.java | 7 +++++-- .../tenantserviceclient/gettenant/SyncGetTenant.java | 7 +++++-- .../gettenant/SyncGetTenantString.java | 7 +++++-- .../gettenant/SyncGetTenantTenantname.java | 7 +++++-- .../listtenants/AsyncListTenants.java | 7 +++++-- .../listtenants/AsyncListTenantsPaged.java | 7 +++++-- .../listtenants/SyncListTenants.java | 7 +++++-- .../listtenants/SyncListTenantsProjectname.java | 7 +++++-- .../listtenants/SyncListTenantsString.java | 7 +++++-- .../updatetenant/AsyncUpdateTenant.java | 7 +++++-- .../updatetenant/SyncUpdateTenant.java | 7 +++++-- .../SyncUpdateTenantTenantFieldmask.java | 7 +++++-- .../createtenant/SyncCreateTenant.java | 12 ++++++------ .../create/SyncCreateSetCredentialsProvider.java | 7 +++++-- .../create/SyncCreateSetCredentialsProvider1.java | 7 +++++-- .../create/SyncCreateSetEndpoint.java | 7 +++++-- .../createcompany/AsyncCreateCompany.java | 7 +++++-- .../createcompany/SyncCreateCompany.java | 7 +++++-- .../SyncCreateCompanyProjectnameCompany.java | 7 +++++-- .../SyncCreateCompanyStringCompany.java | 7 +++++-- .../SyncCreateCompanyTenantnameCompany.java | 7 +++++-- .../deletecompany/AsyncDeleteCompany.java | 7 +++++-- .../deletecompany/SyncDeleteCompany.java | 7 +++++-- .../deletecompany/SyncDeleteCompanyCompanyname.java | 7 +++++-- .../deletecompany/SyncDeleteCompanyString.java | 7 +++++-- .../getcompany/AsyncGetCompany.java | 7 +++++-- .../getcompany/SyncGetCompany.java | 7 +++++-- .../getcompany/SyncGetCompanyCompanyname.java | 7 +++++-- .../getcompany/SyncGetCompanyString.java | 7 +++++-- .../listcompanies/AsyncListCompanies.java | 7 +++++-- .../listcompanies/AsyncListCompaniesPaged.java | 7 +++++-- .../listcompanies/SyncListCompanies.java | 7 +++++-- .../listcompanies/SyncListCompaniesProjectname.java | 7 +++++-- .../listcompanies/SyncListCompaniesString.java | 7 +++++-- .../listcompanies/SyncListCompaniesTenantname.java | 7 +++++-- .../updatecompany/AsyncUpdateCompany.java | 7 +++++-- .../updatecompany/SyncUpdateCompany.java | 7 +++++-- .../updatecompany/SyncUpdateCompanyCompany.java | 7 +++++-- .../createcompany/SyncCreateCompany.java | 12 ++++++------ .../completequery/AsyncCompleteQuery.java | 7 +++++-- .../completequery/SyncCompleteQuery.java | 7 +++++-- .../create/SyncCreateSetCredentialsProvider.java | 7 +++++-- .../create/SyncCreateSetCredentialsProvider1.java | 7 +++++-- .../create/SyncCreateSetEndpoint.java | 7 +++++-- .../completequery/SyncCompleteQuery.java | 12 ++++++------ .../create/SyncCreateSetCredentialsProvider.java | 7 +++++-- .../create/SyncCreateSetCredentialsProvider1.java | 7 +++++-- .../create/SyncCreateSetEndpoint.java | 7 +++++-- .../createclientevent/AsyncCreateClientEvent.java | 7 +++++-- .../createclientevent/SyncCreateClientEvent.java | 7 +++++-- .../SyncCreateClientEventProjectnameClientevent.java | 7 +++++-- .../SyncCreateClientEventStringClientevent.java | 7 +++++-- .../SyncCreateClientEventTenantnameClientevent.java | 7 +++++-- .../createclientevent/SyncCreateClientEvent.java | 12 ++++++------ .../batchcreatejobs/AsyncBatchCreateJobs.java | 7 +++++-- .../batchcreatejobs/AsyncBatchCreateJobsLRO.java | 7 +++++-- .../batchcreatejobs/SyncBatchCreateJobs.java | 7 +++++-- .../SyncBatchCreateJobsProjectnameListjob.java | 7 +++++-- .../SyncBatchCreateJobsStringListjob.java | 7 +++++-- .../SyncBatchCreateJobsTenantnameListjob.java | 7 +++++-- .../batchdeletejobs/AsyncBatchDeleteJobs.java | 7 +++++-- .../batchdeletejobs/SyncBatchDeleteJobs.java | 7 +++++-- .../SyncBatchDeleteJobsProjectnameString.java | 7 +++++-- .../SyncBatchDeleteJobsStringString.java | 7 +++++-- .../SyncBatchDeleteJobsTenantnameString.java | 7 +++++-- .../batchupdatejobs/AsyncBatchUpdateJobs.java | 7 +++++-- .../batchupdatejobs/AsyncBatchUpdateJobsLRO.java | 7 +++++-- .../batchupdatejobs/SyncBatchUpdateJobs.java | 7 +++++-- .../SyncBatchUpdateJobsProjectnameListjob.java | 7 +++++-- .../SyncBatchUpdateJobsStringListjob.java | 7 +++++-- .../SyncBatchUpdateJobsTenantnameListjob.java | 7 +++++-- .../create/SyncCreateSetCredentialsProvider.java | 7 +++++-- .../create/SyncCreateSetCredentialsProvider1.java | 7 +++++-- .../create/SyncCreateSetEndpoint.java | 7 +++++-- .../jobserviceclient/createjob/AsyncCreateJob.java | 7 +++++-- .../jobserviceclient/createjob/SyncCreateJob.java | 7 +++++-- .../createjob/SyncCreateJobProjectnameJob.java | 7 +++++-- .../createjob/SyncCreateJobStringJob.java | 7 +++++-- .../createjob/SyncCreateJobTenantnameJob.java | 7 +++++-- .../jobserviceclient/deletejob/AsyncDeleteJob.java | 7 +++++-- .../jobserviceclient/deletejob/SyncDeleteJob.java | 7 +++++-- .../deletejob/SyncDeleteJobJobname.java | 7 +++++-- .../deletejob/SyncDeleteJobString.java | 7 +++++-- .../v4beta1/jobserviceclient/getjob/AsyncGetJob.java | 7 +++++-- .../v4beta1/jobserviceclient/getjob/SyncGetJob.java | 7 +++++-- .../jobserviceclient/getjob/SyncGetJobJobname.java | 7 +++++-- .../jobserviceclient/getjob/SyncGetJobString.java | 7 +++++-- .../jobserviceclient/listjobs/AsyncListJobs.java | 7 +++++-- .../listjobs/AsyncListJobsPaged.java | 7 +++++-- .../jobserviceclient/listjobs/SyncListJobs.java | 7 +++++-- .../listjobs/SyncListJobsProjectnameString.java | 7 +++++-- .../listjobs/SyncListJobsStringString.java | 7 +++++-- .../listjobs/SyncListJobsTenantnameString.java | 7 +++++-- .../jobserviceclient/searchjobs/AsyncSearchJobs.java | 7 +++++-- .../searchjobs/AsyncSearchJobsPaged.java | 7 +++++-- .../jobserviceclient/searchjobs/SyncSearchJobs.java | 7 +++++-- .../searchjobsforalert/AsyncSearchJobsForAlert.java | 7 +++++-- .../AsyncSearchJobsForAlertPaged.java | 7 +++++-- .../searchjobsforalert/SyncSearchJobsForAlert.java | 7 +++++-- .../jobserviceclient/updatejob/AsyncUpdateJob.java | 7 +++++-- .../jobserviceclient/updatejob/SyncUpdateJob.java | 7 +++++-- .../jobserviceclient/updatejob/SyncUpdateJobJob.java | 7 +++++-- .../jobservicesettings/createjob/SyncCreateJob.java | 12 ++++++------ .../createcompany/SyncCreateCompany.java | 12 ++++++------ .../completequery/SyncCompleteQuery.java | 12 ++++++------ .../createclientevent/SyncCreateClientEvent.java | 12 ++++++------ .../createjob/SyncCreateJob.java | 12 ++++++------ .../createtenant/SyncCreateTenant.java | 12 ++++++------ .../create/SyncCreateSetCredentialsProvider.java | 7 +++++-- .../create/SyncCreateSetCredentialsProvider1.java | 7 +++++-- .../create/SyncCreateSetEndpoint.java | 7 +++++-- .../createtenant/AsyncCreateTenant.java | 7 +++++-- .../createtenant/SyncCreateTenant.java | 7 +++++-- .../SyncCreateTenantProjectnameTenant.java | 7 +++++-- .../createtenant/SyncCreateTenantStringTenant.java | 7 +++++-- .../deletetenant/AsyncDeleteTenant.java | 7 +++++-- .../deletetenant/SyncDeleteTenant.java | 7 +++++-- .../deletetenant/SyncDeleteTenantString.java | 7 +++++-- .../deletetenant/SyncDeleteTenantTenantname.java | 7 +++++-- .../gettenant/AsyncGetTenant.java | 7 +++++-- .../tenantserviceclient/gettenant/SyncGetTenant.java | 7 +++++-- .../gettenant/SyncGetTenantString.java | 7 +++++-- .../gettenant/SyncGetTenantTenantname.java | 7 +++++-- .../listtenants/AsyncListTenants.java | 7 +++++-- .../listtenants/AsyncListTenantsPaged.java | 7 +++++-- .../listtenants/SyncListTenants.java | 7 +++++-- .../listtenants/SyncListTenantsProjectname.java | 7 +++++-- .../listtenants/SyncListTenantsString.java | 7 +++++-- .../updatetenant/AsyncUpdateTenant.java | 7 +++++-- .../updatetenant/SyncUpdateTenant.java | 7 +++++-- .../updatetenant/SyncUpdateTenantTenant.java | 7 +++++-- .../createtenant/SyncCreateTenant.java | 12 ++++++------ 229 files changed, 1165 insertions(+), 538 deletions(-) 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(); From 907c0edf5fdeb681c2c1f46932fda114c70bb5c6 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Sep 2022 17:42:32 +0200 Subject: [PATCH 90/92] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.2 (#838) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.1.1` -> `26.1.2` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/compatibility-slim/26.1.1)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.2/confidence-slim/26.1.1)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. ⚠ **Warning**: custom changes will be lost. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 9cee8a51afc..1969fc1d3c7 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 26.1.1 + 26.1.2 pom import From 2ea8771e02199f886b4ab287891441d023dac65c Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 7 Oct 2022 20:00:20 +0200 Subject: [PATCH 91/92] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.3 (#874) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.1.2` -> `26.1.3` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/compatibility-slim/26.1.2)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.3/confidence-slim/26.1.2)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, click this checkbox. --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 1969fc1d3c7..26b2a9ff8b5 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 26.1.2 + 26.1.3 pom import From cbce55a64d11f0822801900d14723997fea8804d Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 8 Nov 2022 17:46:30 +0100 Subject: [PATCH 92/92] chore(deps): update dependency com.google.cloud:libraries-bom to v26.1.4 (#890) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com) This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [com.google.cloud:libraries-bom](https://cloud.google.com/java/docs/bom) ([source](https://togithub.com/googleapis/java-cloud-bom)) | `26.1.3` -> `26.1.4` | [![age](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.4/age-slim)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.4/adoption-slim)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.4/compatibility-slim/26.1.3)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://badges.renovateapi.com/packages/maven/com.google.cloud:libraries-bom/26.1.4/confidence-slim/26.1.3)](https://docs.renovatebot.com/merge-confidence/) | --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Renovate will not automatically rebase this PR, because other commits have been found. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] If you want to rebase/retry this PR, check this box --- This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://app.renovatebot.com/dashboard#github/googleapis/java-talent). --- talent/snippets/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 26b2a9ff8b5..595ff8afa73 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -30,7 +30,7 @@ com.google.cloud libraries-bom - 26.1.3 + 26.1.4 pom import