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 ee34a040bafb2d73727a945e8e0f404936795a39 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Mon, 11 Jul 2022 22:48:46 +0200 Subject: [PATCH 85/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 b4ad759557d8b9ad951d003cb7243af809ccbe90 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 16 Aug 2022 17:42:22 +0200 Subject: [PATCH 86/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 008ba0b824a07b82786364505bf850b7abfad788 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Wed, 31 Aug 2022 22:44:11 +0200 Subject: [PATCH 87/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 58332c4e3c6e58cc129717f95bb987c8ad9479fc Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Tue, 20 Sep 2022 17:42:32 +0200 Subject: [PATCH 88/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 ea056e89077f74dd434261d4ad5a665a7c37a378 Mon Sep 17 00:00:00 2001 From: WhiteSource Renovate Date: Fri, 7 Oct 2022 20:00:20 +0200 Subject: [PATCH 89/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 d9af863a39cae3d38ba24a66f3bcda2ca00adb97 Mon Sep 17 00:00:00 2001 From: Mend Renovate Date: Tue, 8 Nov 2022 17:46:30 +0100 Subject: [PATCH 90/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 From e86fcb2380d8f1378c5ffa413d7fc73717715173 Mon Sep 17 00:00:00 2001 From: Charlie Yu Date: Thu, 10 Nov 2022 11:46:47 -0500 Subject: [PATCH 91/92] Update JobSearchCreateClientEvent.java changed URL https://github.com/protocolbuffers/protobuf/blob/master/src/google/protobuf/timestamp.proto to https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/timestamp.proto --- .../main/java/com/example/jobs/JobSearchCreateClientEvent.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/talent/snippets/src/main/java/com/example/jobs/JobSearchCreateClientEvent.java b/talent/snippets/src/main/java/com/example/jobs/JobSearchCreateClientEvent.java index a8273ae5b1f..5de517e8b21 100644 --- a/talent/snippets/src/main/java/com/example/jobs/JobSearchCreateClientEvent.java +++ b/talent/snippets/src/main/java/com/example/jobs/JobSearchCreateClientEvent.java @@ -51,7 +51,7 @@ public static void createClientEvent( // 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 + // https://github.com/protocolbuffers/protobuf/blob/main/src/google/protobuf/timestamp.proto long seconds = 3L; Timestamp createTime = Timestamp.newBuilder().setSeconds(seconds).build(); From c1011f384c39101cf05fd8f405c93fd027d7a6f2 Mon Sep 17 00:00:00 2001 From: Charlie Yu Date: Thu, 10 Nov 2022 12:15:26 -0500 Subject: [PATCH 92/92] Update pom.xml removed talent_install_with_bom region tag --- talent/snippets/pom.xml | 2 -- 1 file changed, 2 deletions(-) diff --git a/talent/snippets/pom.xml b/talent/snippets/pom.xml index 595ff8afa73..684910bb9dd 100644 --- a/talent/snippets/pom.xml +++ b/talent/snippets/pom.xml @@ -24,7 +24,6 @@ - @@ -42,7 +41,6 @@ com.google.cloud google-cloud-talent - junit