diff --git a/packages/google-cloud-talent/linkinator.config.json b/packages/google-cloud-talent/linkinator.config.json index 29a223b6db6..0121dfa684f 100644 --- a/packages/google-cloud-talent/linkinator.config.json +++ b/packages/google-cloud-talent/linkinator.config.json @@ -6,5 +6,5 @@ "img.shields.io" ], "silent": true, - "concurrency": 10 + "concurrency": 5 } diff --git a/packages/google-cloud-talent/samples/generated/v4/company_service.create_company.js b/packages/google-cloud-talent/samples/generated/v4/company_service.create_company.js index af5b4dfda2b..4a2463b7574 100644 --- a/packages/google-cloud-talent/samples/generated/v4/company_service.create_company.js +++ b/packages/google-cloud-talent/samples/generated/v4/company_service.create_company.js @@ -28,7 +28,7 @@ function main(parent, company) { /** * Required. The company to be created. */ - // const company = '' + // const company = {} // Imports the Talent library const {CompanyServiceClient} = require('@google-cloud/talent').v4; @@ -36,7 +36,7 @@ function main(parent, company) { // Instantiates a client const talentClient = new CompanyServiceClient(); - async function createCompany() { + async function callCreateCompany() { // Construct request const request = { parent, @@ -48,7 +48,7 @@ function main(parent, company) { console.log(response); } - createCompany(); + callCreateCompany(); // [END jobs_v4_generated_CompanyService_CreateCompany_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4/company_service.delete_company.js b/packages/google-cloud-talent/samples/generated/v4/company_service.delete_company.js index 39b8927c270..77beae2f822 100644 --- a/packages/google-cloud-talent/samples/generated/v4/company_service.delete_company.js +++ b/packages/google-cloud-talent/samples/generated/v4/company_service.delete_company.js @@ -33,7 +33,7 @@ function main(name) { // Instantiates a client const talentClient = new CompanyServiceClient(); - async function deleteCompany() { + async function callDeleteCompany() { // Construct request const request = { name, @@ -44,7 +44,7 @@ function main(name) { console.log(response); } - deleteCompany(); + callDeleteCompany(); // [END jobs_v4_generated_CompanyService_DeleteCompany_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4/company_service.get_company.js b/packages/google-cloud-talent/samples/generated/v4/company_service.get_company.js index 2c68be8a243..3acc403f410 100644 --- a/packages/google-cloud-talent/samples/generated/v4/company_service.get_company.js +++ b/packages/google-cloud-talent/samples/generated/v4/company_service.get_company.js @@ -33,7 +33,7 @@ function main(name) { // Instantiates a client const talentClient = new CompanyServiceClient(); - async function getCompany() { + async function callGetCompany() { // Construct request const request = { name, @@ -44,7 +44,7 @@ function main(name) { console.log(response); } - getCompany(); + callGetCompany(); // [END jobs_v4_generated_CompanyService_GetCompany_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4/company_service.list_companies.js b/packages/google-cloud-talent/samples/generated/v4/company_service.list_companies.js index 2bb65ad49bb..c73c55037f4 100644 --- a/packages/google-cloud-talent/samples/generated/v4/company_service.list_companies.js +++ b/packages/google-cloud-talent/samples/generated/v4/company_service.list_companies.js @@ -37,7 +37,7 @@ function main(parent) { /** * Set to true if the companies requested must have open jobs. * Defaults to false. - * If true, at most [page_size][google.cloud.talent.v4.ListCompaniesRequest.page_size] of companies are fetched, among which + * If true, at most page_size google.cloud.talent.v4.ListCompaniesRequest.page_size of companies are fetched, among which * only those with open jobs are returned. */ // const requireOpenJobs = true @@ -48,7 +48,7 @@ function main(parent) { // Instantiates a client const talentClient = new CompanyServiceClient(); - async function listCompanies() { + async function callListCompanies() { // Construct request const request = { parent, @@ -61,7 +61,7 @@ function main(parent) { } } - listCompanies(); + callListCompanies(); // [END jobs_v4_generated_CompanyService_ListCompanies_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4/company_service.update_company.js b/packages/google-cloud-talent/samples/generated/v4/company_service.update_company.js index fef48e20e2e..9a5b4c36fbb 100644 --- a/packages/google-cloud-talent/samples/generated/v4/company_service.update_company.js +++ b/packages/google-cloud-talent/samples/generated/v4/company_service.update_company.js @@ -22,15 +22,15 @@ function main(company) { /** * Required. The company resource to replace the current resource in the system. */ - // const company = '' + // const company = {} /** * Strongly recommended for the best service experience. - * If [update_mask][google.cloud.talent.v4.UpdateCompanyRequest.update_mask] is provided, only the specified fields in - * [company][google.cloud.talent.v4.UpdateCompanyRequest.company] are updated. Otherwise all the fields are updated. + * If update_mask google.cloud.talent.v4.UpdateCompanyRequest.update_mask is provided, only the specified fields in + * company google.cloud.talent.v4.UpdateCompanyRequest.company are updated. Otherwise all the fields are updated. * A field mask to specify the company fields to be updated. Only - * top level fields of [Company][google.cloud.talent.v4.Company] are supported. + * top level fields of Company google.cloud.talent.v4.Company are supported. */ - // const updateMask = '' + // const updateMask = {} // Imports the Talent library const {CompanyServiceClient} = require('@google-cloud/talent').v4; @@ -38,7 +38,7 @@ function main(company) { // Instantiates a client const talentClient = new CompanyServiceClient(); - async function updateCompany() { + async function callUpdateCompany() { // Construct request const request = { company, @@ -49,7 +49,7 @@ function main(company) { console.log(response); } - updateCompany(); + callUpdateCompany(); // [END jobs_v4_generated_CompanyService_UpdateCompany_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4/completion.complete_query.js b/packages/google-cloud-talent/samples/generated/v4/completion.complete_query.js index 182087c2a38..15efc8c7ccb 100644 --- a/packages/google-cloud-talent/samples/generated/v4/completion.complete_query.js +++ b/packages/google-cloud-talent/samples/generated/v4/completion.complete_query.js @@ -34,7 +34,7 @@ function main(tenant, query, pageSize) { * The list of languages of the query. This is * the BCP-47 language code, such as "en-US" or "sr-Latn". * For more information, see - * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). + * Tags for Identifying Languages (https://tools.ietf.org/html/bcp47). * The maximum number of allowed characters is 255. */ // const languageCodes = 'abc123' @@ -51,13 +51,13 @@ function main(tenant, query, pageSize) { */ // const company = 'abc123' /** - * The scope of the completion. The defaults is [CompletionScope.PUBLIC][google.cloud.talent.v4.CompleteQueryRequest.CompletionScope.PUBLIC]. + * The scope of the completion. The defaults is CompletionScope.PUBLIC google.cloud.talent.v4.CompleteQueryRequest.CompletionScope.PUBLIC. */ - // const scope = '' + // const scope = {} /** - * The completion topic. The default is [CompletionType.COMBINED][google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMBINED]. + * The completion topic. The default is CompletionType.COMBINED google.cloud.talent.v4.CompleteQueryRequest.CompletionType.COMBINED. */ - // const type = '' + // const type = {} // Imports the Talent library const {CompletionClient} = require('@google-cloud/talent').v4; @@ -65,7 +65,7 @@ function main(tenant, query, pageSize) { // Instantiates a client const talentClient = new CompletionClient(); - async function completeQuery() { + async function callCompleteQuery() { // Construct request const request = { tenant, @@ -78,7 +78,7 @@ function main(tenant, query, pageSize) { console.log(response); } - completeQuery(); + callCompleteQuery(); // [END jobs_v4_generated_Completion_CompleteQuery_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4/event_service.create_client_event.js b/packages/google-cloud-talent/samples/generated/v4/event_service.create_client_event.js index 87ce5a09261..77b22e8842d 100644 --- a/packages/google-cloud-talent/samples/generated/v4/event_service.create_client_event.js +++ b/packages/google-cloud-talent/samples/generated/v4/event_service.create_client_event.js @@ -29,7 +29,7 @@ function main(parent, clientEvent) { * Required. Events issued when end user interacts with customer's application that * uses Cloud Talent Solution. */ - // const clientEvent = '' + // const clientEvent = {} // Imports the Talent library const {EventServiceClient} = require('@google-cloud/talent').v4; @@ -37,7 +37,7 @@ function main(parent, clientEvent) { // Instantiates a client const talentClient = new EventServiceClient(); - async function createClientEvent() { + async function callCreateClientEvent() { // Construct request const request = { parent, @@ -49,7 +49,7 @@ function main(parent, clientEvent) { console.log(response); } - createClientEvent(); + callCreateClientEvent(); // [END jobs_v4_generated_EventService_CreateClientEvent_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4/job_service.batch_create_jobs.js b/packages/google-cloud-talent/samples/generated/v4/job_service.batch_create_jobs.js index 392164600e5..035f5b3bbde 100644 --- a/packages/google-cloud-talent/samples/generated/v4/job_service.batch_create_jobs.js +++ b/packages/google-cloud-talent/samples/generated/v4/job_service.batch_create_jobs.js @@ -37,7 +37,7 @@ function main(parent, jobs) { // Instantiates a client const talentClient = new JobServiceClient(); - async function batchCreateJobs() { + async function callBatchCreateJobs() { // Construct request const request = { parent, @@ -50,7 +50,7 @@ function main(parent, jobs) { console.log(response); } - batchCreateJobs(); + callBatchCreateJobs(); // [END jobs_v4_generated_JobService_BatchCreateJobs_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4/job_service.batch_delete_jobs.js b/packages/google-cloud-talent/samples/generated/v4/job_service.batch_delete_jobs.js index f55603df643..edf84b6b0aa 100644 --- a/packages/google-cloud-talent/samples/generated/v4/job_service.batch_delete_jobs.js +++ b/packages/google-cloud-talent/samples/generated/v4/job_service.batch_delete_jobs.js @@ -40,7 +40,7 @@ function main(parent) { // Instantiates a client const talentClient = new JobServiceClient(); - async function batchDeleteJobs() { + async function callBatchDeleteJobs() { // Construct request const request = { parent, @@ -52,7 +52,7 @@ function main(parent) { console.log(response); } - batchDeleteJobs(); + callBatchDeleteJobs(); // [END jobs_v4_generated_JobService_BatchDeleteJobs_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4/job_service.batch_update_jobs.js b/packages/google-cloud-talent/samples/generated/v4/job_service.batch_update_jobs.js index 7ed1a4ecfa9..7bd263f9210 100644 --- a/packages/google-cloud-talent/samples/generated/v4/job_service.batch_update_jobs.js +++ b/packages/google-cloud-talent/samples/generated/v4/job_service.batch_update_jobs.js @@ -33,17 +33,17 @@ function main(parent, jobs) { /** * Strongly recommended for the best service experience. Be aware that it will * also increase latency when checking the status of a batch operation. - * If [update_mask][google.cloud.talent.v4.BatchUpdateJobsRequest.update_mask] is provided, only the specified fields in - * [Job][google.cloud.talent.v4.Job] are updated. Otherwise all the fields are updated. + * If update_mask google.cloud.talent.v4.BatchUpdateJobsRequest.update_mask is provided, only the specified fields in + * Job google.cloud.talent.v4.Job are updated. Otherwise all the fields are updated. * A field mask to restrict the fields that are updated. Only - * top level fields of [Job][google.cloud.talent.v4.Job] are supported. - * If [update_mask][google.cloud.talent.v4.BatchUpdateJobsRequest.update_mask] is provided, The [Job][google.cloud.talent.v4.Job] inside - * [JobResult][JobOperationResult.JobResult] + * top level fields of Job google.cloud.talent.v4.Job are supported. + * If update_mask google.cloud.talent.v4.BatchUpdateJobsRequest.update_mask is provided, The Job google.cloud.talent.v4.Job inside + * JobResult JobOperationResult.JobResult * will only contains fields that is updated, plus the Id of the Job. - * Otherwise, [Job][google.cloud.talent.v4.Job] will include all fields, which can yield a very + * Otherwise, Job google.cloud.talent.v4.Job will include all fields, which can yield a very * large response. */ - // const updateMask = '' + // const updateMask = {} // Imports the Talent library const {JobServiceClient} = require('@google-cloud/talent').v4; @@ -51,7 +51,7 @@ function main(parent, jobs) { // Instantiates a client const talentClient = new JobServiceClient(); - async function batchUpdateJobs() { + async function callBatchUpdateJobs() { // Construct request const request = { parent, @@ -64,7 +64,7 @@ function main(parent, jobs) { console.log(response); } - batchUpdateJobs(); + callBatchUpdateJobs(); // [END jobs_v4_generated_JobService_BatchUpdateJobs_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4/job_service.create_job.js b/packages/google-cloud-talent/samples/generated/v4/job_service.create_job.js index 68b73938bd6..02800dc5af3 100644 --- a/packages/google-cloud-talent/samples/generated/v4/job_service.create_job.js +++ b/packages/google-cloud-talent/samples/generated/v4/job_service.create_job.js @@ -28,7 +28,7 @@ function main(parent, job) { /** * Required. The Job to be created. */ - // const job = '' + // const job = {} // Imports the Talent library const {JobServiceClient} = require('@google-cloud/talent').v4; @@ -36,7 +36,7 @@ function main(parent, job) { // Instantiates a client const talentClient = new JobServiceClient(); - async function createJob() { + async function callCreateJob() { // Construct request const request = { parent, @@ -48,7 +48,7 @@ function main(parent, job) { console.log(response); } - createJob(); + callCreateJob(); // [END jobs_v4_generated_JobService_CreateJob_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4/job_service.delete_job.js b/packages/google-cloud-talent/samples/generated/v4/job_service.delete_job.js index fa29f610b40..a21db9a795c 100644 --- a/packages/google-cloud-talent/samples/generated/v4/job_service.delete_job.js +++ b/packages/google-cloud-talent/samples/generated/v4/job_service.delete_job.js @@ -33,7 +33,7 @@ function main(name) { // Instantiates a client const talentClient = new JobServiceClient(); - async function deleteJob() { + async function callDeleteJob() { // Construct request const request = { name, @@ -44,7 +44,7 @@ function main(name) { console.log(response); } - deleteJob(); + callDeleteJob(); // [END jobs_v4_generated_JobService_DeleteJob_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4/job_service.get_job.js b/packages/google-cloud-talent/samples/generated/v4/job_service.get_job.js index 958214b456d..4bf36c32b0a 100644 --- a/packages/google-cloud-talent/samples/generated/v4/job_service.get_job.js +++ b/packages/google-cloud-talent/samples/generated/v4/job_service.get_job.js @@ -33,7 +33,7 @@ function main(name) { // Instantiates a client const talentClient = new JobServiceClient(); - async function getJob() { + async function callGetJob() { // Construct request const request = { name, @@ -44,7 +44,7 @@ function main(name) { console.log(response); } - getJob(); + callGetJob(); // [END jobs_v4_generated_JobService_GetJob_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4/job_service.list_jobs.js b/packages/google-cloud-talent/samples/generated/v4/job_service.list_jobs.js index a23566599c8..a3307dc5d7e 100644 --- a/packages/google-cloud-talent/samples/generated/v4/job_service.list_jobs.js +++ b/packages/google-cloud-talent/samples/generated/v4/job_service.list_jobs.js @@ -51,17 +51,17 @@ function main(parent, filter) { // const pageToken = 'abc123' /** * The maximum number of jobs to be returned per page of results. - * If [job_view][google.cloud.talent.v4.ListJobsRequest.job_view] is set to [JobView.JOB_VIEW_ID_ONLY][google.cloud.talent.v4.JobView.JOB_VIEW_ID_ONLY], the maximum allowed + * If job_view google.cloud.talent.v4.ListJobsRequest.job_view is set to JobView.JOB_VIEW_ID_ONLY google.cloud.talent.v4.JobView.JOB_VIEW_ID_ONLY, the maximum allowed * page size is 1000. Otherwise, the maximum allowed page size is 100. * Default is 100 if empty or a number < 1 is specified. */ // const pageSize = 1234 /** * The desired job attributes returned for jobs in the - * search response. Defaults to [JobView.JOB_VIEW_FULL][google.cloud.talent.v4.JobView.JOB_VIEW_FULL] if no value is + * search response. Defaults to JobView.JOB_VIEW_FULL google.cloud.talent.v4.JobView.JOB_VIEW_FULL if no value is * specified. */ - // const jobView = '' + // const jobView = {} // Imports the Talent library const {JobServiceClient} = require('@google-cloud/talent').v4; @@ -69,7 +69,7 @@ function main(parent, filter) { // Instantiates a client const talentClient = new JobServiceClient(); - async function listJobs() { + async function callListJobs() { // Construct request const request = { parent, @@ -83,7 +83,7 @@ function main(parent, filter) { } } - listJobs(); + callListJobs(); // [END jobs_v4_generated_JobService_ListJobs_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4/job_service.search_jobs.js b/packages/google-cloud-talent/samples/generated/v4/job_service.search_jobs.js index be4e805178f..70d7ecefb72 100644 --- a/packages/google-cloud-talent/samples/generated/v4/job_service.search_jobs.js +++ b/packages/google-cloud-talent/samples/generated/v4/job_service.search_jobs.js @@ -27,19 +27,19 @@ function main(parent, requestMetadata) { // const parent = 'abc123' /** * Mode of a search. - * Defaults to [SearchMode.JOB_SEARCH][google.cloud.talent.v4.SearchJobsRequest.SearchMode.JOB_SEARCH]. + * Defaults to SearchMode.JOB_SEARCH google.cloud.talent.v4.SearchJobsRequest.SearchMode.JOB_SEARCH. */ - // const searchMode = '' + // const searchMode = {} /** * Required. The meta information collected about the job searcher, used to improve the * search quality of the service. The identifiers (such as `user_id`) are * provided by users, and must be unique and consistent. */ - // const requestMetadata = '' + // const requestMetadata = {} /** * Query used to search against jobs, such as keyword, location filters, etc. */ - // const jobQuery = '' + // const jobQuery = {} /** * Controls whether to broaden the search when it produces sparse results. * Broadened queries append results to the end of the matching results @@ -61,32 +61,32 @@ function main(parent, requestMetadata) { * * String: string like "any string with backslash escape for quote(\")." * * Number: whole number and floating point number like 10, -1 and -0.01. * * List: list of elements with comma(,) separator surrounded by square - * brackets, for example, [1, 2, 3] and ["one", "two", "three"]. + * brackets, for example, 1, 2, 3 and "one", "two", "three". * Built-in constants: * * MIN (minimum number similar to java Double.MIN_VALUE) * * MAX (maximum number similar to java Double.MAX_VALUE) * Built-in functions: - * * bucket(start, end[, label]): bucket built-in function creates a bucket - * with range of [start, end). Note that the end is exclusive, for example, + * * bucket(start, end, label): bucket built-in function creates a bucket + * with range of start, end). Note that the end is exclusive, for example, * bucket(1, MAX, "positive number") or bucket(1, 10). * Job histogram facets: - * * company_display_name: histogram by [Job.company_display_name][google.cloud.talent.v4.Job.company_display_name]. - * * employment_type: histogram by [Job.employment_types][google.cloud.talent.v4.Job.employment_types], for example, + * * company_display_name: histogram by Job.company_display_name google.cloud.talent.v4.Job.company_display_name. + * * employment_type: histogram by Job.employment_types google.cloud.talent.v4.Job.employment_types, for example, * "FULL_TIME", "PART_TIME". - * * company_size: histogram by [CompanySize][google.cloud.talent.v4.CompanySize], for example, "SMALL", + * * company_size: histogram by CompanySize google.cloud.talent.v4.CompanySize, for example, "SMALL", * "MEDIUM", "BIG". - * * publish_time_in_day: histogram by the [Job.posting_publish_time][google.cloud.talent.v4.Job.posting_publish_time] + * * publish_time_in_day: histogram by the Job.posting_publish_time google.cloud.talent.v4.Job.posting_publish_time * in days. * Must specify list of numeric buckets in spec. - * * publish_time_in_month: histogram by the [Job.posting_publish_time][google.cloud.talent.v4.Job.posting_publish_time] + * * publish_time_in_month: histogram by the Job.posting_publish_time google.cloud.talent.v4.Job.posting_publish_time * in months. * Must specify list of numeric buckets in spec. - * * publish_time_in_year: histogram by the [Job.posting_publish_time][google.cloud.talent.v4.Job.posting_publish_time] + * * publish_time_in_year: histogram by the Job.posting_publish_time google.cloud.talent.v4.Job.posting_publish_time * in years. * Must specify list of numeric buckets in spec. - * * degree_types: histogram by the [Job.degree_types][google.cloud.talent.v4.Job.degree_types], for example, + * * degree_types: histogram by the Job.degree_types google.cloud.talent.v4.Job.degree_types, for example, * "Bachelors", "Masters". - * * job_level: histogram by the [Job.job_level][google.cloud.talent.v4.Job.job_level], for example, "Entry + * * job_level: histogram by the Job.job_level google.cloud.talent.v4.Job.job_level, for example, "Entry * Level". * * country: histogram by the country code of jobs, for example, "US", "FR". * * admin1: histogram by the admin1 code of jobs, which is a global @@ -101,14 +101,14 @@ function main(parent, requestMetadata) { * and longitude), for example, 37.4038522,-122.0987765. Since the * coordinates of a city center can change, customers may need to refresh * them periodically. - * * locale: histogram by the [Job.language_code][google.cloud.talent.v4.Job.language_code], for example, "en-US", + * * locale: histogram by the Job.language_code google.cloud.talent.v4.Job.language_code, for example, "en-US", * "fr-FR". - * * language: histogram by the language subtag of the [Job.language_code][google.cloud.talent.v4.Job.language_code], + * * language: histogram by the language subtag of the Job.language_code google.cloud.talent.v4.Job.language_code, * for example, "en", "fr". - * * category: histogram by the [JobCategory][google.cloud.talent.v4.JobCategory], for example, + * * category: histogram by the JobCategory google.cloud.talent.v4.JobCategory, for example, * "COMPUTER_AND_IT", "HEALTHCARE". * * base_compensation_unit: histogram by the - * [CompensationInfo.CompensationUnit][google.cloud.talent.v4.CompensationInfo.CompensationUnit] of base + * CompensationInfo.CompensationUnit google.cloud.talent.v4.CompensationInfo.CompensationUnit of base * salary, for example, "WEEKLY", "MONTHLY". * * base_compensation: histogram by the base salary. Must specify list of * numeric buckets to group results by. @@ -116,31 +116,31 @@ function main(parent, requestMetadata) { * Must specify list of numeric buckets to group results by. * * annualized_total_compensation: histogram by the total annualized salary. * Must specify list of numeric buckets to group results by. - * * string_custom_attribute: histogram by string [Job.custom_attributes][google.cloud.talent.v4.Job.custom_attributes]. + * * string_custom_attribute: histogram by string Job.custom_attributes google.cloud.talent.v4.Job.custom_attributes. * Values can be accessed via square bracket notations like - * string_custom_attribute["key1"]. - * * numeric_custom_attribute: histogram by numeric [Job.custom_attributes][google.cloud.talent.v4.Job.custom_attributes]. + * string_custom_attribute"key1". + * * numeric_custom_attribute: histogram by numeric Job.custom_attributes google.cloud.talent.v4.Job.custom_attributes. * Values can be accessed via square bracket notations like - * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to + * numeric_custom_attribute"key1". Must specify list of numeric buckets to * group results by. * Example expressions: * * `count(admin1)` - * * `count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000), - * bucket(100000, MAX)])` - * * `count(string_custom_attribute["some-string-custom-attribute"])` - * * `count(numeric_custom_attribute["some-numeric-custom-attribute"], - * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])` + * * `count(base_compensation, bucket(1000, 10000), bucket(10000, 100000), + * bucket(100000, MAX))` + * * `count(string_custom_attribute"some-string-custom-attribute")` + * * `count(numeric_custom_attribute"some-numeric-custom-attribute", + * bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"))` */ // const histogramQueries = 1234 /** * The desired job attributes returned for jobs in the search response. - * Defaults to [JobView.JOB_VIEW_SMALL][google.cloud.talent.v4.JobView.JOB_VIEW_SMALL] if no value is specified. + * Defaults to JobView.JOB_VIEW_SMALL google.cloud.talent.v4.JobView.JOB_VIEW_SMALL if no value is specified. */ - // const jobView = '' + // const jobView = {} /** * An integer that specifies the current offset (that is, starting result * location, amongst the jobs deemed by the API as relevant) in search - * results. This field is only considered if [page_token][google.cloud.talent.v4.SearchJobsRequest.page_token] is unset. + * results. This field is only considered if page_token google.cloud.talent.v4.SearchJobsRequest.page_token is unset. * The maximum allowed value is 5000. Otherwise an error is thrown. * For example, 0 means to return results starting from the first matching * job, and 10 means to return from the 11th job. This can be used for @@ -156,7 +156,7 @@ function main(parent, requestMetadata) { // const maxPageSize = 1234 /** * The token specifying the current offset within - * search results. See [SearchJobsResponse.next_page_token][google.cloud.talent.v4.SearchJobsResponse.next_page_token] for + * search results. See SearchJobsResponse.next_page_token google.cloud.talent.v4.SearchJobsResponse.next_page_token for * an explanation of how to obtain the next set of query results. */ // const pageToken = 'abc123' @@ -167,32 +167,32 @@ function main(parent, requestMetadata) { * * `"relevance desc"`: By relevance descending, as determined by the API * algorithms. Relevance thresholding of query results is only available * with this ordering. - * * `"posting_publish_time desc"`: By [Job.posting_publish_time][google.cloud.talent.v4.Job.posting_publish_time] + * * `"posting_publish_time desc"`: By Job.posting_publish_time google.cloud.talent.v4.Job.posting_publish_time * descending. - * * `"posting_update_time desc"`: By [Job.posting_update_time][google.cloud.talent.v4.Job.posting_update_time] + * * `"posting_update_time desc"`: By Job.posting_update_time google.cloud.talent.v4.Job.posting_update_time * descending. - * * `"title"`: By [Job.title][google.cloud.talent.v4.Job.title] ascending. - * * `"title desc"`: By [Job.title][google.cloud.talent.v4.Job.title] descending. + * * `"title"`: By Job.title google.cloud.talent.v4.Job.title ascending. + * * `"title desc"`: By Job.title google.cloud.talent.v4.Job.title descending. * * `"annualized_base_compensation"`: By job's - * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4.CompensationInfo.annualized_base_compensation_range] ascending. Jobs + * CompensationInfo.annualized_base_compensation_range google.cloud.talent.v4.CompensationInfo.annualized_base_compensation_range ascending. Jobs * whose annualized base compensation is unspecified are put at the end of * search results. * * `"annualized_base_compensation desc"`: By job's - * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4.CompensationInfo.annualized_base_compensation_range] descending. Jobs + * CompensationInfo.annualized_base_compensation_range google.cloud.talent.v4.CompensationInfo.annualized_base_compensation_range descending. Jobs * whose annualized base compensation is unspecified are put at the end of * search results. * * `"annualized_total_compensation"`: By job's - * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4.CompensationInfo.annualized_total_compensation_range] ascending. Jobs + * CompensationInfo.annualized_total_compensation_range google.cloud.talent.v4.CompensationInfo.annualized_total_compensation_range ascending. Jobs * whose annualized base compensation is unspecified are put at the end of * search results. * * `"annualized_total_compensation desc"`: By job's - * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4.CompensationInfo.annualized_total_compensation_range] descending. Jobs + * CompensationInfo.annualized_total_compensation_range google.cloud.talent.v4.CompensationInfo.annualized_total_compensation_range descending. Jobs * whose annualized base compensation is unspecified are put at the end of * search results. * * `"custom_ranking desc"`: By the relevance score adjusted to the - * [SearchJobsRequest.CustomRankingInfo.ranking_expression][google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo.ranking_expression] with weight + * SearchJobsRequest.CustomRankingInfo.ranking_expression google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo.ranking_expression with weight * factor assigned by - * [SearchJobsRequest.CustomRankingInfo.importance_level][google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo.importance_level] in descending + * SearchJobsRequest.CustomRankingInfo.importance_level google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo.importance_level in descending * order. * * Location sorting: Use the special syntax to order jobs by distance:
* `"distance_from('Hawaii')"`: Order by distance from Hawaii.
@@ -208,7 +208,7 @@ function main(parent, requestMetadata) { * don't have locations will be ranked at the bottom. Distance is calculated * with a precision of 11.3 meters (37.4 feet). Diversification strategy is * still applied unless explicitly disabled in - * [diversification_level][google.cloud.talent.v4.SearchJobsRequest.diversification_level]. + * diversification_level google.cloud.talent.v4.SearchJobsRequest.diversification_level. */ // const orderBy = 'abc123' /** @@ -218,25 +218,25 @@ function main(parent, requestMetadata) { * clustered so that only one representative job of the cluster is * displayed to the job seeker higher up in the results, with the other jobs * being displayed lower down in the results. - * Defaults to [DiversificationLevel.SIMPLE][google.cloud.talent.v4.SearchJobsRequest.DiversificationLevel.SIMPLE] if no value + * Defaults to DiversificationLevel.SIMPLE google.cloud.talent.v4.SearchJobsRequest.DiversificationLevel.SIMPLE if no value * is specified. */ - // const diversificationLevel = '' + // const diversificationLevel = {} /** * Controls over how job documents get ranked on top of existing relevance * score (determined by API algorithm). */ - // const customRankingInfo = '' + // const customRankingInfo = {} /** * This field is deprecated. Please use - * [SearchJobsRequest.keyword_match_mode][google.cloud.talent.v4.SearchJobsRequest.keyword_match_mode] going forward. + * SearchJobsRequest.keyword_match_mode google.cloud.talent.v4.SearchJobsRequest.keyword_match_mode going forward. * To migrate, disable_keyword_match set to false maps to - * [KeywordMatchMode.KEYWORD_MATCH_ALL][google.cloud.talent.v4.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL], and disable_keyword_match set to - * true maps to [KeywordMatchMode.KEYWORD_MATCH_DISABLED][google.cloud.talent.v4.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_DISABLED]. If - * [SearchJobsRequest.keyword_match_mode][google.cloud.talent.v4.SearchJobsRequest.keyword_match_mode] is set, this field is ignored. - * Controls whether to disable exact keyword match on [Job.title][google.cloud.talent.v4.Job.title], - * [Job.description][google.cloud.talent.v4.Job.description], [Job.company_display_name][google.cloud.talent.v4.Job.company_display_name], [Job.addresses][google.cloud.talent.v4.Job.addresses], - * [Job.qualifications][google.cloud.talent.v4.Job.qualifications]. When disable keyword match is turned off, a + * KeywordMatchMode.KEYWORD_MATCH_ALL google.cloud.talent.v4.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL, and disable_keyword_match set to + * true maps to KeywordMatchMode.KEYWORD_MATCH_DISABLED google.cloud.talent.v4.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_DISABLED. If + * SearchJobsRequest.keyword_match_mode google.cloud.talent.v4.SearchJobsRequest.keyword_match_mode is set, this field is ignored. + * Controls whether to disable exact keyword match on Job.title google.cloud.talent.v4.Job.title, + * Job.description google.cloud.talent.v4.Job.description, Job.company_display_name google.cloud.talent.v4.Job.company_display_name, Job.addresses google.cloud.talent.v4.Job.addresses, + * Job.qualifications google.cloud.talent.v4.Job.qualifications. When disable keyword match is turned off, a * keyword match returns jobs that do not match given category filters when * there are matching keywords. For example, for the query "program manager," * a result is returned even if the job posting has the title "software @@ -245,7 +245,7 @@ function main(parent, requestMetadata) { * For queries like "cloud" that don't contain title or * location specific ontology, jobs with "cloud" keyword matches are returned * regardless of this flag's value. - * Use [Company.keyword_searchable_job_custom_attributes][google.cloud.talent.v4.Company.keyword_searchable_job_custom_attributes] if + * Use Company.keyword_searchable_job_custom_attributes google.cloud.talent.v4.Company.keyword_searchable_job_custom_attributes if * company-specific globally matched custom field/attribute string values are * needed. Enabling keyword match improves recall of subsequent search * requests. @@ -255,10 +255,10 @@ function main(parent, requestMetadata) { /** * Controls what keyword match options to use. If both keyword_match_mode and * disable_keyword_match are set, keyword_match_mode will take precedence. - * Defaults to [KeywordMatchMode.KEYWORD_MATCH_ALL][google.cloud.talent.v4.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL] if no value + * Defaults to KeywordMatchMode.KEYWORD_MATCH_ALL google.cloud.talent.v4.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL if no value * is specified. */ - // const keywordMatchMode = '' + // const keywordMatchMode = {} // Imports the Talent library const {JobServiceClient} = require('@google-cloud/talent').v4; @@ -266,7 +266,7 @@ function main(parent, requestMetadata) { // Instantiates a client const talentClient = new JobServiceClient(); - async function searchJobs() { + async function callSearchJobs() { // Construct request const request = { parent, @@ -278,7 +278,7 @@ function main(parent, requestMetadata) { console.log(response); } - searchJobs(); + callSearchJobs(); // [END jobs_v4_generated_JobService_SearchJobs_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4/job_service.search_jobs_for_alert.js b/packages/google-cloud-talent/samples/generated/v4/job_service.search_jobs_for_alert.js index 9b5bc409164..52eafe813f9 100644 --- a/packages/google-cloud-talent/samples/generated/v4/job_service.search_jobs_for_alert.js +++ b/packages/google-cloud-talent/samples/generated/v4/job_service.search_jobs_for_alert.js @@ -27,19 +27,19 @@ function main(parent, requestMetadata) { // const parent = 'abc123' /** * Mode of a search. - * Defaults to [SearchMode.JOB_SEARCH][google.cloud.talent.v4.SearchJobsRequest.SearchMode.JOB_SEARCH]. + * Defaults to SearchMode.JOB_SEARCH google.cloud.talent.v4.SearchJobsRequest.SearchMode.JOB_SEARCH. */ - // const searchMode = '' + // const searchMode = {} /** * Required. The meta information collected about the job searcher, used to improve the * search quality of the service. The identifiers (such as `user_id`) are * provided by users, and must be unique and consistent. */ - // const requestMetadata = '' + // const requestMetadata = {} /** * Query used to search against jobs, such as keyword, location filters, etc. */ - // const jobQuery = '' + // const jobQuery = {} /** * Controls whether to broaden the search when it produces sparse results. * Broadened queries append results to the end of the matching results @@ -61,32 +61,32 @@ function main(parent, requestMetadata) { * * String: string like "any string with backslash escape for quote(\")." * * Number: whole number and floating point number like 10, -1 and -0.01. * * List: list of elements with comma(,) separator surrounded by square - * brackets, for example, [1, 2, 3] and ["one", "two", "three"]. + * brackets, for example, 1, 2, 3 and "one", "two", "three". * Built-in constants: * * MIN (minimum number similar to java Double.MIN_VALUE) * * MAX (maximum number similar to java Double.MAX_VALUE) * Built-in functions: - * * bucket(start, end[, label]): bucket built-in function creates a bucket - * with range of [start, end). Note that the end is exclusive, for example, + * * bucket(start, end, label): bucket built-in function creates a bucket + * with range of start, end). Note that the end is exclusive, for example, * bucket(1, MAX, "positive number") or bucket(1, 10). * Job histogram facets: - * * company_display_name: histogram by [Job.company_display_name][google.cloud.talent.v4.Job.company_display_name]. - * * employment_type: histogram by [Job.employment_types][google.cloud.talent.v4.Job.employment_types], for example, + * * company_display_name: histogram by Job.company_display_name google.cloud.talent.v4.Job.company_display_name. + * * employment_type: histogram by Job.employment_types google.cloud.talent.v4.Job.employment_types, for example, * "FULL_TIME", "PART_TIME". - * * company_size: histogram by [CompanySize][google.cloud.talent.v4.CompanySize], for example, "SMALL", + * * company_size: histogram by CompanySize google.cloud.talent.v4.CompanySize, for example, "SMALL", * "MEDIUM", "BIG". - * * publish_time_in_day: histogram by the [Job.posting_publish_time][google.cloud.talent.v4.Job.posting_publish_time] + * * publish_time_in_day: histogram by the Job.posting_publish_time google.cloud.talent.v4.Job.posting_publish_time * in days. * Must specify list of numeric buckets in spec. - * * publish_time_in_month: histogram by the [Job.posting_publish_time][google.cloud.talent.v4.Job.posting_publish_time] + * * publish_time_in_month: histogram by the Job.posting_publish_time google.cloud.talent.v4.Job.posting_publish_time * in months. * Must specify list of numeric buckets in spec. - * * publish_time_in_year: histogram by the [Job.posting_publish_time][google.cloud.talent.v4.Job.posting_publish_time] + * * publish_time_in_year: histogram by the Job.posting_publish_time google.cloud.talent.v4.Job.posting_publish_time * in years. * Must specify list of numeric buckets in spec. - * * degree_types: histogram by the [Job.degree_types][google.cloud.talent.v4.Job.degree_types], for example, + * * degree_types: histogram by the Job.degree_types google.cloud.talent.v4.Job.degree_types, for example, * "Bachelors", "Masters". - * * job_level: histogram by the [Job.job_level][google.cloud.talent.v4.Job.job_level], for example, "Entry + * * job_level: histogram by the Job.job_level google.cloud.talent.v4.Job.job_level, for example, "Entry * Level". * * country: histogram by the country code of jobs, for example, "US", "FR". * * admin1: histogram by the admin1 code of jobs, which is a global @@ -101,14 +101,14 @@ function main(parent, requestMetadata) { * and longitude), for example, 37.4038522,-122.0987765. Since the * coordinates of a city center can change, customers may need to refresh * them periodically. - * * locale: histogram by the [Job.language_code][google.cloud.talent.v4.Job.language_code], for example, "en-US", + * * locale: histogram by the Job.language_code google.cloud.talent.v4.Job.language_code, for example, "en-US", * "fr-FR". - * * language: histogram by the language subtag of the [Job.language_code][google.cloud.talent.v4.Job.language_code], + * * language: histogram by the language subtag of the Job.language_code google.cloud.talent.v4.Job.language_code, * for example, "en", "fr". - * * category: histogram by the [JobCategory][google.cloud.talent.v4.JobCategory], for example, + * * category: histogram by the JobCategory google.cloud.talent.v4.JobCategory, for example, * "COMPUTER_AND_IT", "HEALTHCARE". * * base_compensation_unit: histogram by the - * [CompensationInfo.CompensationUnit][google.cloud.talent.v4.CompensationInfo.CompensationUnit] of base + * CompensationInfo.CompensationUnit google.cloud.talent.v4.CompensationInfo.CompensationUnit of base * salary, for example, "WEEKLY", "MONTHLY". * * base_compensation: histogram by the base salary. Must specify list of * numeric buckets to group results by. @@ -116,31 +116,31 @@ function main(parent, requestMetadata) { * Must specify list of numeric buckets to group results by. * * annualized_total_compensation: histogram by the total annualized salary. * Must specify list of numeric buckets to group results by. - * * string_custom_attribute: histogram by string [Job.custom_attributes][google.cloud.talent.v4.Job.custom_attributes]. + * * string_custom_attribute: histogram by string Job.custom_attributes google.cloud.talent.v4.Job.custom_attributes. * Values can be accessed via square bracket notations like - * string_custom_attribute["key1"]. - * * numeric_custom_attribute: histogram by numeric [Job.custom_attributes][google.cloud.talent.v4.Job.custom_attributes]. + * string_custom_attribute"key1". + * * numeric_custom_attribute: histogram by numeric Job.custom_attributes google.cloud.talent.v4.Job.custom_attributes. * Values can be accessed via square bracket notations like - * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to + * numeric_custom_attribute"key1". Must specify list of numeric buckets to * group results by. * Example expressions: * * `count(admin1)` - * * `count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000), - * bucket(100000, MAX)])` - * * `count(string_custom_attribute["some-string-custom-attribute"])` - * * `count(numeric_custom_attribute["some-numeric-custom-attribute"], - * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")])` + * * `count(base_compensation, bucket(1000, 10000), bucket(10000, 100000), + * bucket(100000, MAX))` + * * `count(string_custom_attribute"some-string-custom-attribute")` + * * `count(numeric_custom_attribute"some-numeric-custom-attribute", + * bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"))` */ // const histogramQueries = 1234 /** * The desired job attributes returned for jobs in the search response. - * Defaults to [JobView.JOB_VIEW_SMALL][google.cloud.talent.v4.JobView.JOB_VIEW_SMALL] if no value is specified. + * Defaults to JobView.JOB_VIEW_SMALL google.cloud.talent.v4.JobView.JOB_VIEW_SMALL if no value is specified. */ - // const jobView = '' + // const jobView = {} /** * An integer that specifies the current offset (that is, starting result * location, amongst the jobs deemed by the API as relevant) in search - * results. This field is only considered if [page_token][google.cloud.talent.v4.SearchJobsRequest.page_token] is unset. + * results. This field is only considered if page_token google.cloud.talent.v4.SearchJobsRequest.page_token is unset. * The maximum allowed value is 5000. Otherwise an error is thrown. * For example, 0 means to return results starting from the first matching * job, and 10 means to return from the 11th job. This can be used for @@ -156,7 +156,7 @@ function main(parent, requestMetadata) { // const maxPageSize = 1234 /** * The token specifying the current offset within - * search results. See [SearchJobsResponse.next_page_token][google.cloud.talent.v4.SearchJobsResponse.next_page_token] for + * search results. See SearchJobsResponse.next_page_token google.cloud.talent.v4.SearchJobsResponse.next_page_token for * an explanation of how to obtain the next set of query results. */ // const pageToken = 'abc123' @@ -167,32 +167,32 @@ function main(parent, requestMetadata) { * * `"relevance desc"`: By relevance descending, as determined by the API * algorithms. Relevance thresholding of query results is only available * with this ordering. - * * `"posting_publish_time desc"`: By [Job.posting_publish_time][google.cloud.talent.v4.Job.posting_publish_time] + * * `"posting_publish_time desc"`: By Job.posting_publish_time google.cloud.talent.v4.Job.posting_publish_time * descending. - * * `"posting_update_time desc"`: By [Job.posting_update_time][google.cloud.talent.v4.Job.posting_update_time] + * * `"posting_update_time desc"`: By Job.posting_update_time google.cloud.talent.v4.Job.posting_update_time * descending. - * * `"title"`: By [Job.title][google.cloud.talent.v4.Job.title] ascending. - * * `"title desc"`: By [Job.title][google.cloud.talent.v4.Job.title] descending. + * * `"title"`: By Job.title google.cloud.talent.v4.Job.title ascending. + * * `"title desc"`: By Job.title google.cloud.talent.v4.Job.title descending. * * `"annualized_base_compensation"`: By job's - * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4.CompensationInfo.annualized_base_compensation_range] ascending. Jobs + * CompensationInfo.annualized_base_compensation_range google.cloud.talent.v4.CompensationInfo.annualized_base_compensation_range ascending. Jobs * whose annualized base compensation is unspecified are put at the end of * search results. * * `"annualized_base_compensation desc"`: By job's - * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4.CompensationInfo.annualized_base_compensation_range] descending. Jobs + * CompensationInfo.annualized_base_compensation_range google.cloud.talent.v4.CompensationInfo.annualized_base_compensation_range descending. Jobs * whose annualized base compensation is unspecified are put at the end of * search results. * * `"annualized_total_compensation"`: By job's - * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4.CompensationInfo.annualized_total_compensation_range] ascending. Jobs + * CompensationInfo.annualized_total_compensation_range google.cloud.talent.v4.CompensationInfo.annualized_total_compensation_range ascending. Jobs * whose annualized base compensation is unspecified are put at the end of * search results. * * `"annualized_total_compensation desc"`: By job's - * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4.CompensationInfo.annualized_total_compensation_range] descending. Jobs + * CompensationInfo.annualized_total_compensation_range google.cloud.talent.v4.CompensationInfo.annualized_total_compensation_range descending. Jobs * whose annualized base compensation is unspecified are put at the end of * search results. * * `"custom_ranking desc"`: By the relevance score adjusted to the - * [SearchJobsRequest.CustomRankingInfo.ranking_expression][google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo.ranking_expression] with weight + * SearchJobsRequest.CustomRankingInfo.ranking_expression google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo.ranking_expression with weight * factor assigned by - * [SearchJobsRequest.CustomRankingInfo.importance_level][google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo.importance_level] in descending + * SearchJobsRequest.CustomRankingInfo.importance_level google.cloud.talent.v4.SearchJobsRequest.CustomRankingInfo.importance_level in descending * order. * * Location sorting: Use the special syntax to order jobs by distance:
* `"distance_from('Hawaii')"`: Order by distance from Hawaii.
@@ -208,7 +208,7 @@ function main(parent, requestMetadata) { * don't have locations will be ranked at the bottom. Distance is calculated * with a precision of 11.3 meters (37.4 feet). Diversification strategy is * still applied unless explicitly disabled in - * [diversification_level][google.cloud.talent.v4.SearchJobsRequest.diversification_level]. + * diversification_level google.cloud.talent.v4.SearchJobsRequest.diversification_level. */ // const orderBy = 'abc123' /** @@ -218,25 +218,25 @@ function main(parent, requestMetadata) { * clustered so that only one representative job of the cluster is * displayed to the job seeker higher up in the results, with the other jobs * being displayed lower down in the results. - * Defaults to [DiversificationLevel.SIMPLE][google.cloud.talent.v4.SearchJobsRequest.DiversificationLevel.SIMPLE] if no value + * Defaults to DiversificationLevel.SIMPLE google.cloud.talent.v4.SearchJobsRequest.DiversificationLevel.SIMPLE if no value * is specified. */ - // const diversificationLevel = '' + // const diversificationLevel = {} /** * Controls over how job documents get ranked on top of existing relevance * score (determined by API algorithm). */ - // const customRankingInfo = '' + // const customRankingInfo = {} /** * This field is deprecated. Please use - * [SearchJobsRequest.keyword_match_mode][google.cloud.talent.v4.SearchJobsRequest.keyword_match_mode] going forward. + * SearchJobsRequest.keyword_match_mode google.cloud.talent.v4.SearchJobsRequest.keyword_match_mode going forward. * To migrate, disable_keyword_match set to false maps to - * [KeywordMatchMode.KEYWORD_MATCH_ALL][google.cloud.talent.v4.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL], and disable_keyword_match set to - * true maps to [KeywordMatchMode.KEYWORD_MATCH_DISABLED][google.cloud.talent.v4.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_DISABLED]. If - * [SearchJobsRequest.keyword_match_mode][google.cloud.talent.v4.SearchJobsRequest.keyword_match_mode] is set, this field is ignored. - * Controls whether to disable exact keyword match on [Job.title][google.cloud.talent.v4.Job.title], - * [Job.description][google.cloud.talent.v4.Job.description], [Job.company_display_name][google.cloud.talent.v4.Job.company_display_name], [Job.addresses][google.cloud.talent.v4.Job.addresses], - * [Job.qualifications][google.cloud.talent.v4.Job.qualifications]. When disable keyword match is turned off, a + * KeywordMatchMode.KEYWORD_MATCH_ALL google.cloud.talent.v4.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL, and disable_keyword_match set to + * true maps to KeywordMatchMode.KEYWORD_MATCH_DISABLED google.cloud.talent.v4.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_DISABLED. If + * SearchJobsRequest.keyword_match_mode google.cloud.talent.v4.SearchJobsRequest.keyword_match_mode is set, this field is ignored. + * Controls whether to disable exact keyword match on Job.title google.cloud.talent.v4.Job.title, + * Job.description google.cloud.talent.v4.Job.description, Job.company_display_name google.cloud.talent.v4.Job.company_display_name, Job.addresses google.cloud.talent.v4.Job.addresses, + * Job.qualifications google.cloud.talent.v4.Job.qualifications. When disable keyword match is turned off, a * keyword match returns jobs that do not match given category filters when * there are matching keywords. For example, for the query "program manager," * a result is returned even if the job posting has the title "software @@ -245,7 +245,7 @@ function main(parent, requestMetadata) { * For queries like "cloud" that don't contain title or * location specific ontology, jobs with "cloud" keyword matches are returned * regardless of this flag's value. - * Use [Company.keyword_searchable_job_custom_attributes][google.cloud.talent.v4.Company.keyword_searchable_job_custom_attributes] if + * Use Company.keyword_searchable_job_custom_attributes google.cloud.talent.v4.Company.keyword_searchable_job_custom_attributes if * company-specific globally matched custom field/attribute string values are * needed. Enabling keyword match improves recall of subsequent search * requests. @@ -255,10 +255,10 @@ function main(parent, requestMetadata) { /** * Controls what keyword match options to use. If both keyword_match_mode and * disable_keyword_match are set, keyword_match_mode will take precedence. - * Defaults to [KeywordMatchMode.KEYWORD_MATCH_ALL][google.cloud.talent.v4.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL] if no value + * Defaults to KeywordMatchMode.KEYWORD_MATCH_ALL google.cloud.talent.v4.SearchJobsRequest.KeywordMatchMode.KEYWORD_MATCH_ALL if no value * is specified. */ - // const keywordMatchMode = '' + // const keywordMatchMode = {} // Imports the Talent library const {JobServiceClient} = require('@google-cloud/talent').v4; @@ -266,7 +266,7 @@ function main(parent, requestMetadata) { // Instantiates a client const talentClient = new JobServiceClient(); - async function searchJobsForAlert() { + async function callSearchJobsForAlert() { // Construct request const request = { parent, @@ -278,7 +278,7 @@ function main(parent, requestMetadata) { console.log(response); } - searchJobsForAlert(); + callSearchJobsForAlert(); // [END jobs_v4_generated_JobService_SearchJobsForAlert_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4/job_service.update_job.js b/packages/google-cloud-talent/samples/generated/v4/job_service.update_job.js index 4221bd5dfb2..0f091bbd28e 100644 --- a/packages/google-cloud-talent/samples/generated/v4/job_service.update_job.js +++ b/packages/google-cloud-talent/samples/generated/v4/job_service.update_job.js @@ -22,15 +22,15 @@ function main(job) { /** * Required. The Job to be updated. */ - // const job = '' + // const job = {} /** * Strongly recommended for the best service experience. - * If [update_mask][google.cloud.talent.v4.UpdateJobRequest.update_mask] is provided, only the specified fields in - * [job][google.cloud.talent.v4.UpdateJobRequest.job] are updated. Otherwise all the fields are updated. + * If update_mask google.cloud.talent.v4.UpdateJobRequest.update_mask is provided, only the specified fields in + * job google.cloud.talent.v4.UpdateJobRequest.job are updated. Otherwise all the fields are updated. * A field mask to restrict the fields that are updated. Only - * top level fields of [Job][google.cloud.talent.v4.Job] are supported. + * top level fields of Job google.cloud.talent.v4.Job are supported. */ - // const updateMask = '' + // const updateMask = {} // Imports the Talent library const {JobServiceClient} = require('@google-cloud/talent').v4; @@ -38,7 +38,7 @@ function main(job) { // Instantiates a client const talentClient = new JobServiceClient(); - async function updateJob() { + async function callUpdateJob() { // Construct request const request = { job, @@ -49,7 +49,7 @@ function main(job) { console.log(response); } - updateJob(); + callUpdateJob(); // [END jobs_v4_generated_JobService_UpdateJob_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4/tenant_service.create_tenant.js b/packages/google-cloud-talent/samples/generated/v4/tenant_service.create_tenant.js index db599db36da..3ebef8c89fb 100644 --- a/packages/google-cloud-talent/samples/generated/v4/tenant_service.create_tenant.js +++ b/packages/google-cloud-talent/samples/generated/v4/tenant_service.create_tenant.js @@ -28,7 +28,7 @@ function main(parent, tenant) { /** * Required. The tenant to be created. */ - // const tenant = '' + // const tenant = {} // Imports the Talent library const {TenantServiceClient} = require('@google-cloud/talent').v4; @@ -36,7 +36,7 @@ function main(parent, tenant) { // Instantiates a client const talentClient = new TenantServiceClient(); - async function createTenant() { + async function callCreateTenant() { // Construct request const request = { parent, @@ -48,7 +48,7 @@ function main(parent, tenant) { console.log(response); } - createTenant(); + callCreateTenant(); // [END jobs_v4_generated_TenantService_CreateTenant_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4/tenant_service.delete_tenant.js b/packages/google-cloud-talent/samples/generated/v4/tenant_service.delete_tenant.js index 2ae35067870..be836cf8548 100644 --- a/packages/google-cloud-talent/samples/generated/v4/tenant_service.delete_tenant.js +++ b/packages/google-cloud-talent/samples/generated/v4/tenant_service.delete_tenant.js @@ -32,7 +32,7 @@ function main(name) { // Instantiates a client const talentClient = new TenantServiceClient(); - async function deleteTenant() { + async function callDeleteTenant() { // Construct request const request = { name, @@ -43,7 +43,7 @@ function main(name) { console.log(response); } - deleteTenant(); + callDeleteTenant(); // [END jobs_v4_generated_TenantService_DeleteTenant_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4/tenant_service.get_tenant.js b/packages/google-cloud-talent/samples/generated/v4/tenant_service.get_tenant.js index e0424fb6c5a..a22ee668a88 100644 --- a/packages/google-cloud-talent/samples/generated/v4/tenant_service.get_tenant.js +++ b/packages/google-cloud-talent/samples/generated/v4/tenant_service.get_tenant.js @@ -32,7 +32,7 @@ function main(name) { // Instantiates a client const talentClient = new TenantServiceClient(); - async function getTenant() { + async function callGetTenant() { // Construct request const request = { name, @@ -43,7 +43,7 @@ function main(name) { console.log(response); } - getTenant(); + callGetTenant(); // [END jobs_v4_generated_TenantService_GetTenant_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4/tenant_service.list_tenants.js b/packages/google-cloud-talent/samples/generated/v4/tenant_service.list_tenants.js index 143303f720d..078fe7d5c44 100644 --- a/packages/google-cloud-talent/samples/generated/v4/tenant_service.list_tenants.js +++ b/packages/google-cloud-talent/samples/generated/v4/tenant_service.list_tenants.js @@ -41,7 +41,7 @@ function main(parent) { // Instantiates a client const talentClient = new TenantServiceClient(); - async function listTenants() { + async function callListTenants() { // Construct request const request = { parent, @@ -54,7 +54,7 @@ function main(parent) { } } - listTenants(); + callListTenants(); // [END jobs_v4_generated_TenantService_ListTenants_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4/tenant_service.update_tenant.js b/packages/google-cloud-talent/samples/generated/v4/tenant_service.update_tenant.js index c1a3207a0f0..972d3b860ef 100644 --- a/packages/google-cloud-talent/samples/generated/v4/tenant_service.update_tenant.js +++ b/packages/google-cloud-talent/samples/generated/v4/tenant_service.update_tenant.js @@ -22,15 +22,15 @@ function main(tenant) { /** * Required. The tenant resource to replace the current resource in the system. */ - // const tenant = '' + // const tenant = {} /** * Strongly recommended for the best service experience. - * If [update_mask][google.cloud.talent.v4.UpdateTenantRequest.update_mask] is provided, only the specified fields in - * [tenant][google.cloud.talent.v4.UpdateTenantRequest.tenant] are updated. Otherwise all the fields are updated. + * If update_mask google.cloud.talent.v4.UpdateTenantRequest.update_mask is provided, only the specified fields in + * tenant google.cloud.talent.v4.UpdateTenantRequest.tenant are updated. Otherwise all the fields are updated. * A field mask to specify the tenant fields to be updated. Only - * top level fields of [Tenant][google.cloud.talent.v4.Tenant] are supported. + * top level fields of Tenant google.cloud.talent.v4.Tenant are supported. */ - // const updateMask = '' + // const updateMask = {} // Imports the Talent library const {TenantServiceClient} = require('@google-cloud/talent').v4; @@ -38,7 +38,7 @@ function main(tenant) { // Instantiates a client const talentClient = new TenantServiceClient(); - async function updateTenant() { + async function callUpdateTenant() { // Construct request const request = { tenant, @@ -49,7 +49,7 @@ function main(tenant) { console.log(response); } - updateTenant(); + callUpdateTenant(); // [END jobs_v4_generated_TenantService_UpdateTenant_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/application_service.create_application.js b/packages/google-cloud-talent/samples/generated/v4beta1/application_service.create_application.js index cbdcffeaba4..b74a2dd75f1 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/application_service.create_application.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/application_service.create_application.js @@ -29,7 +29,7 @@ function main(parent, application) { /** * Required. The application to be created. */ - // const application = '' + // const application = {} // Imports the Talent library const {ApplicationServiceClient} = require('@google-cloud/talent').v4beta1; @@ -37,7 +37,7 @@ function main(parent, application) { // Instantiates a client const talentClient = new ApplicationServiceClient(); - async function createApplication() { + async function callCreateApplication() { // Construct request const request = { parent, @@ -49,7 +49,7 @@ function main(parent, application) { console.log(response); } - createApplication(); + callCreateApplication(); // [END jobs_v4beta1_generated_ApplicationService_CreateApplication_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/application_service.delete_application.js b/packages/google-cloud-talent/samples/generated/v4beta1/application_service.delete_application.js index 8ad4a1b8b05..f4b5c10ce16 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/application_service.delete_application.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/application_service.delete_application.js @@ -33,7 +33,7 @@ function main(name) { // Instantiates a client const talentClient = new ApplicationServiceClient(); - async function deleteApplication() { + async function callDeleteApplication() { // Construct request const request = { name, @@ -44,7 +44,7 @@ function main(name) { console.log(response); } - deleteApplication(); + callDeleteApplication(); // [END jobs_v4beta1_generated_ApplicationService_DeleteApplication_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/application_service.get_application.js b/packages/google-cloud-talent/samples/generated/v4beta1/application_service.get_application.js index 1d69e085ab3..5e04fc8f3b5 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/application_service.get_application.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/application_service.get_application.js @@ -33,7 +33,7 @@ function main(name) { // Instantiates a client const talentClient = new ApplicationServiceClient(); - async function getApplication() { + async function callGetApplication() { // Construct request const request = { name, @@ -44,7 +44,7 @@ function main(name) { console.log(response); } - getApplication(); + callGetApplication(); // [END jobs_v4beta1_generated_ApplicationService_GetApplication_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/application_service.list_applications.js b/packages/google-cloud-talent/samples/generated/v4beta1/application_service.list_applications.js index 8b70537a8ad..ce0cbee4c82 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/application_service.list_applications.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/application_service.list_applications.js @@ -42,7 +42,7 @@ function main(parent) { // Instantiates a client const talentClient = new ApplicationServiceClient(); - async function listApplications() { + async function callListApplications() { // Construct request const request = { parent, @@ -55,7 +55,7 @@ function main(parent) { } } - listApplications(); + callListApplications(); // [END jobs_v4beta1_generated_ApplicationService_ListApplications_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/application_service.update_application.js b/packages/google-cloud-talent/samples/generated/v4beta1/application_service.update_application.js index 267221c3bf1..8213d3be9b7 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/application_service.update_application.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/application_service.update_application.js @@ -22,15 +22,15 @@ function main(application) { /** * Required. The application resource to replace the current resource in the system. */ - // const application = '' + // const application = {} /** * Strongly recommended for the best service experience. - * If [update_mask][google.cloud.talent.v4beta1.UpdateApplicationRequest.update_mask] is provided, only the specified fields in - * [application][google.cloud.talent.v4beta1.UpdateApplicationRequest.application] are updated. Otherwise all the fields are updated. + * If update_mask google.cloud.talent.v4beta1.UpdateApplicationRequest.update_mask is provided, only the specified fields in + * application google.cloud.talent.v4beta1.UpdateApplicationRequest.application are updated. Otherwise all the fields are updated. * A field mask to specify the application fields to be updated. Only - * top level fields of [Application][google.cloud.talent.v4beta1.Application] are supported. + * top level fields of Application google.cloud.talent.v4beta1.Application are supported. */ - // const updateMask = '' + // const updateMask = {} // Imports the Talent library const {ApplicationServiceClient} = require('@google-cloud/talent').v4beta1; @@ -38,7 +38,7 @@ function main(application) { // Instantiates a client const talentClient = new ApplicationServiceClient(); - async function updateApplication() { + async function callUpdateApplication() { // Construct request const request = { application, @@ -49,7 +49,7 @@ function main(application) { console.log(response); } - updateApplication(); + callUpdateApplication(); // [END jobs_v4beta1_generated_ApplicationService_UpdateApplication_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/company_service.create_company.js b/packages/google-cloud-talent/samples/generated/v4beta1/company_service.create_company.js index a22a05bbbd6..c3437afe4c9 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/company_service.create_company.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/company_service.create_company.js @@ -29,7 +29,7 @@ function main(parent, company) { /** * Required. The company to be created. */ - // const company = '' + // const company = {} // Imports the Talent library const {CompanyServiceClient} = require('@google-cloud/talent').v4beta1; @@ -37,7 +37,7 @@ function main(parent, company) { // Instantiates a client const talentClient = new CompanyServiceClient(); - async function createCompany() { + async function callCreateCompany() { // Construct request const request = { parent, @@ -49,7 +49,7 @@ function main(parent, company) { console.log(response); } - createCompany(); + callCreateCompany(); // [END jobs_v4beta1_generated_CompanyService_CreateCompany_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/company_service.delete_company.js b/packages/google-cloud-talent/samples/generated/v4beta1/company_service.delete_company.js index df824868ce1..5f2dcfc2112 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/company_service.delete_company.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/company_service.delete_company.js @@ -35,7 +35,7 @@ function main(name) { // Instantiates a client const talentClient = new CompanyServiceClient(); - async function deleteCompany() { + async function callDeleteCompany() { // Construct request const request = { name, @@ -46,7 +46,7 @@ function main(name) { console.log(response); } - deleteCompany(); + callDeleteCompany(); // [END jobs_v4beta1_generated_CompanyService_DeleteCompany_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/company_service.get_company.js b/packages/google-cloud-talent/samples/generated/v4beta1/company_service.get_company.js index e255454d3c5..98c67664800 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/company_service.get_company.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/company_service.get_company.js @@ -35,7 +35,7 @@ function main(name) { // Instantiates a client const talentClient = new CompanyServiceClient(); - async function getCompany() { + async function callGetCompany() { // Construct request const request = { name, @@ -46,7 +46,7 @@ function main(name) { console.log(response); } - getCompany(); + callGetCompany(); // [END jobs_v4beta1_generated_CompanyService_GetCompany_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/company_service.list_companies.js b/packages/google-cloud-talent/samples/generated/v4beta1/company_service.list_companies.js index 021b99923aa..118363d39d7 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/company_service.list_companies.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/company_service.list_companies.js @@ -39,7 +39,7 @@ function main(parent) { /** * Set to true if the companies requested must have open jobs. * Defaults to false. - * If true, at most [page_size][google.cloud.talent.v4beta1.ListCompaniesRequest.page_size] of companies are fetched, among which + * If true, at most page_size google.cloud.talent.v4beta1.ListCompaniesRequest.page_size of companies are fetched, among which * only those with open jobs are returned. */ // const requireOpenJobs = true @@ -50,7 +50,7 @@ function main(parent) { // Instantiates a client const talentClient = new CompanyServiceClient(); - async function listCompanies() { + async function callListCompanies() { // Construct request const request = { parent, @@ -63,7 +63,7 @@ function main(parent) { } } - listCompanies(); + callListCompanies(); // [END jobs_v4beta1_generated_CompanyService_ListCompanies_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/company_service.update_company.js b/packages/google-cloud-talent/samples/generated/v4beta1/company_service.update_company.js index afb3ee0cc47..521c51b780f 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/company_service.update_company.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/company_service.update_company.js @@ -22,15 +22,15 @@ function main(company) { /** * Required. The company resource to replace the current resource in the system. */ - // const company = '' + // const company = {} /** * Strongly recommended for the best service experience. - * If [update_mask][google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask] is provided, only the specified fields in - * [company][google.cloud.talent.v4beta1.UpdateCompanyRequest.company] are updated. Otherwise all the fields are updated. + * If update_mask google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask is provided, only the specified fields in + * company google.cloud.talent.v4beta1.UpdateCompanyRequest.company are updated. Otherwise all the fields are updated. * A field mask to specify the company fields to be updated. Only - * top level fields of [Company][google.cloud.talent.v4beta1.Company] are supported. + * top level fields of Company google.cloud.talent.v4beta1.Company are supported. */ - // const updateMask = '' + // const updateMask = {} // Imports the Talent library const {CompanyServiceClient} = require('@google-cloud/talent').v4beta1; @@ -38,7 +38,7 @@ function main(company) { // Instantiates a client const talentClient = new CompanyServiceClient(); - async function updateCompany() { + async function callUpdateCompany() { // Construct request const request = { company, @@ -49,7 +49,7 @@ function main(company) { console.log(response); } - updateCompany(); + callUpdateCompany(); // [END jobs_v4beta1_generated_CompanyService_UpdateCompany_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/completion.complete_query.js b/packages/google-cloud-talent/samples/generated/v4beta1/completion.complete_query.js index a8dd5115d32..f7112a7075f 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/completion.complete_query.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/completion.complete_query.js @@ -36,7 +36,7 @@ function main(parent, query, pageSize) { * The list of languages of the query. This is * the BCP-47 language code, such as "en-US" or "sr-Latn". * For more information, see - * [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47). + * Tags for Identifying Languages (https://tools.ietf.org/html/bcp47). * The maximum number of allowed characters is 255. */ // const languageCodes = 'abc123' @@ -55,13 +55,13 @@ function main(parent, query, pageSize) { */ // const company = 'abc123' /** - * The scope of the completion. The defaults is [CompletionScope.PUBLIC][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC]. + * The scope of the completion. The defaults is CompletionScope.PUBLIC google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionScope.PUBLIC. */ - // const scope = '' + // const scope = {} /** - * The completion topic. The default is [CompletionType.COMBINED][google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED]. + * The completion topic. The default is CompletionType.COMBINED google.cloud.talent.v4beta1.CompleteQueryRequest.CompletionType.COMBINED. */ - // const type = '' + // const type = {} // Imports the Talent library const {CompletionClient} = require('@google-cloud/talent').v4beta1; @@ -69,7 +69,7 @@ function main(parent, query, pageSize) { // Instantiates a client const talentClient = new CompletionClient(); - async function completeQuery() { + async function callCompleteQuery() { // Construct request const request = { parent, @@ -82,7 +82,7 @@ function main(parent, query, pageSize) { console.log(response); } - completeQuery(); + callCompleteQuery(); // [END jobs_v4beta1_generated_Completion_CompleteQuery_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/event_service.create_client_event.js b/packages/google-cloud-talent/samples/generated/v4beta1/event_service.create_client_event.js index 22c7a17f83a..0d8cd0da4c7 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/event_service.create_client_event.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/event_service.create_client_event.js @@ -30,7 +30,7 @@ function main(parent, clientEvent) { * Required. Events issued when end user interacts with customer's application that * uses Cloud Talent Solution. */ - // const clientEvent = '' + // const clientEvent = {} // Imports the Talent library const {EventServiceClient} = require('@google-cloud/talent').v4beta1; @@ -38,7 +38,7 @@ function main(parent, clientEvent) { // Instantiates a client const talentClient = new EventServiceClient(); - async function createClientEvent() { + async function callCreateClientEvent() { // Construct request const request = { parent, @@ -50,7 +50,7 @@ function main(parent, clientEvent) { console.log(response); } - createClientEvent(); + callCreateClientEvent(); // [END jobs_v4beta1_generated_EventService_CreateClientEvent_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/job_service.batch_create_jobs.js b/packages/google-cloud-talent/samples/generated/v4beta1/job_service.batch_create_jobs.js index 076b2522ae2..80ea6d78912 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/job_service.batch_create_jobs.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/job_service.batch_create_jobs.js @@ -37,7 +37,7 @@ function main(parent, jobs) { // Instantiates a client const talentClient = new JobServiceClient(); - async function batchCreateJobs() { + async function callBatchCreateJobs() { // Construct request const request = { parent, @@ -50,7 +50,7 @@ function main(parent, jobs) { console.log(response); } - batchCreateJobs(); + callBatchCreateJobs(); // [END jobs_v4beta1_generated_JobService_BatchCreateJobs_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/job_service.batch_delete_jobs.js b/packages/google-cloud-talent/samples/generated/v4beta1/job_service.batch_delete_jobs.js index 8c2ff991563..446dff383e9 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/job_service.batch_delete_jobs.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/job_service.batch_delete_jobs.js @@ -43,7 +43,7 @@ function main(parent, filter) { // Instantiates a client const talentClient = new JobServiceClient(); - async function batchDeleteJobs() { + async function callBatchDeleteJobs() { // Construct request const request = { parent, @@ -55,7 +55,7 @@ function main(parent, filter) { console.log(response); } - batchDeleteJobs(); + callBatchDeleteJobs(); // [END jobs_v4beta1_generated_JobService_BatchDeleteJobs_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/job_service.batch_update_jobs.js b/packages/google-cloud-talent/samples/generated/v4beta1/job_service.batch_update_jobs.js index fde1a647b5f..1d648674029 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/job_service.batch_update_jobs.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/job_service.batch_update_jobs.js @@ -33,17 +33,17 @@ function main(parent, jobs) { /** * Strongly recommended for the best service experience. Be aware that it will * also increase latency when checking the status of a batch operation. - * If [update_mask][google.cloud.talent.v4beta1.BatchUpdateJobsRequest.update_mask] is provided, only the specified fields in - * [Job][google.cloud.talent.v4beta1.Job] are updated. Otherwise all the fields are updated. + * If update_mask google.cloud.talent.v4beta1.BatchUpdateJobsRequest.update_mask is provided, only the specified fields in + * Job google.cloud.talent.v4beta1.Job are updated. Otherwise all the fields are updated. * A field mask to restrict the fields that are updated. Only - * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported. - * If [update_mask][google.cloud.talent.v4beta1.BatchUpdateJobsRequest.update_mask] is provided, The [Job][google.cloud.talent.v4beta1.Job] inside - * [JobResult][google.cloud.talent.v4beta1.JobOperationResult.JobResult] + * top level fields of Job google.cloud.talent.v4beta1.Job are supported. + * If update_mask google.cloud.talent.v4beta1.BatchUpdateJobsRequest.update_mask is provided, The Job google.cloud.talent.v4beta1.Job inside + * JobResult google.cloud.talent.v4beta1.JobOperationResult.JobResult * will only contains fields that is updated, plus the Id of the Job. - * Otherwise, [Job][google.cloud.talent.v4beta1.Job] will include all fields, which can yield a very + * Otherwise, Job google.cloud.talent.v4beta1.Job will include all fields, which can yield a very * large response. */ - // const updateMask = '' + // const updateMask = {} // Imports the Talent library const {JobServiceClient} = require('@google-cloud/talent').v4beta1; @@ -51,7 +51,7 @@ function main(parent, jobs) { // Instantiates a client const talentClient = new JobServiceClient(); - async function batchUpdateJobs() { + async function callBatchUpdateJobs() { // Construct request const request = { parent, @@ -64,7 +64,7 @@ function main(parent, jobs) { console.log(response); } - batchUpdateJobs(); + callBatchUpdateJobs(); // [END jobs_v4beta1_generated_JobService_BatchUpdateJobs_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/job_service.create_job.js b/packages/google-cloud-talent/samples/generated/v4beta1/job_service.create_job.js index 9b0d97b323e..18bfa2add5a 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/job_service.create_job.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/job_service.create_job.js @@ -29,7 +29,7 @@ function main(parent, job) { /** * Required. The Job to be created. */ - // const job = '' + // const job = {} // Imports the Talent library const {JobServiceClient} = require('@google-cloud/talent').v4beta1; @@ -37,7 +37,7 @@ function main(parent, job) { // Instantiates a client const talentClient = new JobServiceClient(); - async function createJob() { + async function callCreateJob() { // Construct request const request = { parent, @@ -49,7 +49,7 @@ function main(parent, job) { console.log(response); } - createJob(); + callCreateJob(); // [END jobs_v4beta1_generated_JobService_CreateJob_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/job_service.delete_job.js b/packages/google-cloud-talent/samples/generated/v4beta1/job_service.delete_job.js index 011fb8a9ad7..5ab45f2dc0b 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/job_service.delete_job.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/job_service.delete_job.js @@ -35,7 +35,7 @@ function main(name) { // Instantiates a client const talentClient = new JobServiceClient(); - async function deleteJob() { + async function callDeleteJob() { // Construct request const request = { name, @@ -46,7 +46,7 @@ function main(name) { console.log(response); } - deleteJob(); + callDeleteJob(); // [END jobs_v4beta1_generated_JobService_DeleteJob_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/job_service.get_job.js b/packages/google-cloud-talent/samples/generated/v4beta1/job_service.get_job.js index 5972ce17d93..7e892e0483c 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/job_service.get_job.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/job_service.get_job.js @@ -35,7 +35,7 @@ function main(name) { // Instantiates a client const talentClient = new JobServiceClient(); - async function getJob() { + async function callGetJob() { // Construct request const request = { name, @@ -46,7 +46,7 @@ function main(name) { console.log(response); } - getJob(); + callGetJob(); // [END jobs_v4beta1_generated_JobService_GetJob_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/job_service.list_jobs.js b/packages/google-cloud-talent/samples/generated/v4beta1/job_service.list_jobs.js index b560cbd0993..16b3b4989f2 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/job_service.list_jobs.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/job_service.list_jobs.js @@ -48,17 +48,17 @@ function main(parent, filter) { // const pageToken = 'abc123' /** * The maximum number of jobs to be returned per page of results. - * If [job_view][google.cloud.talent.v4beta1.ListJobsRequest.job_view] is set to [JobView.JOB_VIEW_ID_ONLY][google.cloud.talent.v4beta1.JobView.JOB_VIEW_ID_ONLY], the maximum allowed + * If job_view google.cloud.talent.v4beta1.ListJobsRequest.job_view is set to JobView.JOB_VIEW_ID_ONLY google.cloud.talent.v4beta1.JobView.JOB_VIEW_ID_ONLY, the maximum allowed * page size is 1000. Otherwise, the maximum allowed page size is 100. * Default is 100 if empty or a number < 1 is specified. */ // const pageSize = 1234 /** * The desired job attributes returned for jobs in the - * search response. Defaults to [JobView.JOB_VIEW_FULL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL] if no value is + * search response. Defaults to JobView.JOB_VIEW_FULL google.cloud.talent.v4beta1.JobView.JOB_VIEW_FULL if no value is * specified. */ - // const jobView = '' + // const jobView = {} // Imports the Talent library const {JobServiceClient} = require('@google-cloud/talent').v4beta1; @@ -66,7 +66,7 @@ function main(parent, filter) { // Instantiates a client const talentClient = new JobServiceClient(); - async function listJobs() { + async function callListJobs() { // Construct request const request = { parent, @@ -80,7 +80,7 @@ function main(parent, filter) { } } - listJobs(); + callListJobs(); // [END jobs_v4beta1_generated_JobService_ListJobs_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/job_service.search_jobs.js b/packages/google-cloud-talent/samples/generated/v4beta1/job_service.search_jobs.js index e3a90cc1715..290f9ddab26 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/job_service.search_jobs.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/job_service.search_jobs.js @@ -28,19 +28,19 @@ function main(parent, requestMetadata) { // const parent = 'abc123' /** * Mode of a search. - * Defaults to [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH]. + * Defaults to SearchMode.JOB_SEARCH google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH. */ - // const searchMode = '' + // const searchMode = {} /** * Required. The meta information collected about the job searcher, used to improve the * search quality of the service. The identifiers (such as `user_id`) are * provided by users, and must be unique and consistent. */ - // const requestMetadata = '' + // const requestMetadata = {} /** * Query used to search against jobs, such as keyword, location filters, etc. */ - // const jobQuery = '' + // const jobQuery = {} /** * Controls whether to broaden the search when it produces sparse results. * Broadened queries append results to the end of the matching results @@ -72,29 +72,29 @@ function main(parent, requestMetadata) { * * String: string like "any string with backslash escape for quote(\")." * * Number: whole number and floating point number like 10, -1 and -0.01. * * List: list of elements with comma(,) separator surrounded by square - * brackets, for example, [1, 2, 3] and ["one", "two", "three"]. + * brackets, for example, 1, 2, 3 and "one", "two", "three". * Built-in constants: * * MIN (minimum number similar to java Double.MIN_VALUE) * * MAX (maximum number similar to java Double.MAX_VALUE) * Built-in functions: - * * bucket(start, end[, label]): bucket built-in function creates a bucket - * with range of [start, end). Note that the end is exclusive, for example, + * * bucket(start, end, label): bucket built-in function creates a bucket + * with range of start, end). Note that the end is exclusive, for example, * bucket(1, MAX, "positive number") or bucket(1, 10). * Job histogram facets: - * * company_display_name: histogram by [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name]. - * * employment_type: histogram by [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types], for example, + * * company_display_name: histogram by Job.company_display_name google.cloud.talent.v4beta1.Job.company_display_name. + * * employment_type: histogram by Job.employment_types google.cloud.talent.v4beta1.Job.employment_types, for example, * "FULL_TIME", "PART_TIME". - * * company_size: histogram by [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example, "SMALL", + * * company_size: histogram by CompanySize google.cloud.talent.v4beta1.CompanySize, for example, "SMALL", * "MEDIUM", "BIG". - * * publish_time_in_month: histogram by the [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time] + * * publish_time_in_month: histogram by the Job.posting_publish_time google.cloud.talent.v4beta1.Job.posting_publish_time * in months. * Must specify list of numeric buckets in spec. - * * publish_time_in_year: histogram by the [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time] + * * publish_time_in_year: histogram by the Job.posting_publish_time google.cloud.talent.v4beta1.Job.posting_publish_time * in years. * Must specify list of numeric buckets in spec. - * * degree_types: histogram by the [Job.degree_types][google.cloud.talent.v4beta1.Job.degree_types], for example, + * * degree_types: histogram by the Job.degree_types google.cloud.talent.v4beta1.Job.degree_types, for example, * "Bachelors", "Masters". - * * job_level: histogram by the [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example, "Entry + * * job_level: histogram by the Job.job_level google.cloud.talent.v4beta1.Job.job_level, for example, "Entry * Level". * * country: histogram by the country code of jobs, for example, "US", "FR". * * admin1: histogram by the admin1 code of jobs, which is a global @@ -109,14 +109,14 @@ function main(parent, requestMetadata) { * and longitude), for example, 37.4038522,-122.0987765. Since the * coordinates of a city center can change, customers may need to refresh * them periodically. - * * locale: histogram by the [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for example, "en-US", + * * locale: histogram by the Job.language_code google.cloud.talent.v4beta1.Job.language_code, for example, "en-US", * "fr-FR". - * * language: histogram by the language subtag of the [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], + * * language: histogram by the language subtag of the Job.language_code google.cloud.talent.v4beta1.Job.language_code, * for example, "en", "fr". - * * category: histogram by the [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example, + * * category: histogram by the JobCategory google.cloud.talent.v4beta1.JobCategory, for example, * "COMPUTER_AND_IT", "HEALTHCARE". * * base_compensation_unit: histogram by the - * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit] of base + * CompensationInfo.CompensationUnit google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit of base * salary, for example, "WEEKLY", "MONTHLY". * * base_compensation: histogram by the base salary. Must specify list of * numeric buckets to group results by. @@ -124,31 +124,31 @@ function main(parent, requestMetadata) { * Must specify list of numeric buckets to group results by. * * annualized_total_compensation: histogram by the total annualized salary. * Must specify list of numeric buckets to group results by. - * * string_custom_attribute: histogram by string [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]. + * * string_custom_attribute: histogram by string Job.custom_attributes google.cloud.talent.v4beta1.Job.custom_attributes. * Values can be accessed via square bracket notations like - * string_custom_attribute["key1"]. - * * numeric_custom_attribute: histogram by numeric [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]. + * string_custom_attribute"key1". + * * numeric_custom_attribute: histogram by numeric Job.custom_attributes google.cloud.talent.v4beta1.Job.custom_attributes. * Values can be accessed via square bracket notations like - * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to + * numeric_custom_attribute"key1". Must specify list of numeric buckets to * group results by. * Example expressions: * * `count(admin1)` - * * `count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000), - * bucket(100000, MAX)])` - * * `count(string_custom_attribute["some-string-custom-attribute"])` - * * `count(numeric_custom_attribute["some-numeric-custom-attribute"], - * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])` + * * `count(base_compensation, bucket(1000, 10000), bucket(10000, 100000), + * bucket(100000, MAX))` + * * `count(string_custom_attribute"some-string-custom-attribute")` + * * `count(numeric_custom_attribute"some-numeric-custom-attribute", + * bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")` */ // const histogramQueries = 1234 /** * The desired job attributes returned for jobs in the search response. - * Defaults to [JobView.JOB_VIEW_SMALL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_SMALL] if no value is specified. + * Defaults to JobView.JOB_VIEW_SMALL google.cloud.talent.v4beta1.JobView.JOB_VIEW_SMALL if no value is specified. */ - // const jobView = '' + // const jobView = {} /** * An integer that specifies the current offset (that is, starting result * location, amongst the jobs deemed by the API as relevant) in search - * results. This field is only considered if [page_token][google.cloud.talent.v4beta1.SearchJobsRequest.page_token] is unset. + * results. This field is only considered if page_token google.cloud.talent.v4beta1.SearchJobsRequest.page_token is unset. * The maximum allowed value is 5000. Otherwise an error is thrown. * For example, 0 means to return results starting from the first matching * job, and 10 means to return from the 11th job. This can be used for @@ -164,7 +164,7 @@ function main(parent, requestMetadata) { // const pageSize = 1234 /** * The token specifying the current offset within - * search results. See [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token] for + * search results. See SearchJobsResponse.next_page_token google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token for * an explanation of how to obtain the next set of query results. */ // const pageToken = 'abc123' @@ -175,32 +175,32 @@ function main(parent, requestMetadata) { * * `"relevance desc"`: By relevance descending, as determined by the API * algorithms. Relevance thresholding of query results is only available * with this ordering. - * * `"posting_publish_time desc"`: By [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time] + * * `"posting_publish_time desc"`: By Job.posting_publish_time google.cloud.talent.v4beta1.Job.posting_publish_time * descending. - * * `"posting_update_time desc"`: By [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time] + * * `"posting_update_time desc"`: By Job.posting_update_time google.cloud.talent.v4beta1.Job.posting_update_time * descending. - * * `"title"`: By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending. - * * `"title desc"`: By [Job.title][google.cloud.talent.v4beta1.Job.title] descending. + * * `"title"`: By Job.title google.cloud.talent.v4beta1.Job.title ascending. + * * `"title desc"`: By Job.title google.cloud.talent.v4beta1.Job.title descending. * * `"annualized_base_compensation"`: By job's - * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range] ascending. Jobs + * CompensationInfo.annualized_base_compensation_range google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range ascending. Jobs * whose annualized base compensation is unspecified are put at the end of * search results. * * `"annualized_base_compensation desc"`: By job's - * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range] descending. Jobs + * CompensationInfo.annualized_base_compensation_range google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range descending. Jobs * whose annualized base compensation is unspecified are put at the end of * search results. * * `"annualized_total_compensation"`: By job's - * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range] ascending. Jobs + * CompensationInfo.annualized_total_compensation_range google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range ascending. Jobs * whose annualized base compensation is unspecified are put at the end of * search results. * * `"annualized_total_compensation desc"`: By job's - * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range] descending. Jobs + * CompensationInfo.annualized_total_compensation_range google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range descending. Jobs * whose annualized base compensation is unspecified are put at the end of * search results. * * `"custom_ranking desc"`: By the relevance score adjusted to the - * [SearchJobsRequest.CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression] with weight + * SearchJobsRequest.CustomRankingInfo.ranking_expression google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression with weight * factor assigned by - * [SearchJobsRequest.CustomRankingInfo.importance_level][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.importance_level] in descending + * SearchJobsRequest.CustomRankingInfo.importance_level google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.importance_level in descending * order. * * Location sorting: Use the special syntax to order jobs by distance:
* `"distance_from('Hawaii')"`: Order by distance from Hawaii.
@@ -216,7 +216,7 @@ function main(parent, requestMetadata) { * don't have locations will be ranked at the bottom. Distance is calculated * with a precision of 11.3 meters (37.4 feet). Diversification strategy is * still applied unless explicitly disabled in - * [diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level]. + * diversification_level google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level. */ // const orderBy = 'abc123' /** @@ -226,19 +226,19 @@ function main(parent, requestMetadata) { * clustered so that only one representative job of the cluster is * displayed to the job seeker higher up in the results, with the other jobs * being displayed lower down in the results. - * Defaults to [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE] if no value + * Defaults to DiversificationLevel.SIMPLE google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE if no value * is specified. */ - // const diversificationLevel = '' + // const diversificationLevel = {} /** * Controls over how job documents get ranked on top of existing relevance * score (determined by API algorithm). */ - // const customRankingInfo = '' + // const customRankingInfo = {} /** - * Controls whether to disable exact keyword match on [Job.title][google.cloud.talent.v4beta1.Job.title], - * [Job.description][google.cloud.talent.v4beta1.Job.description], [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name], [Job.addresses][google.cloud.talent.v4beta1.Job.addresses], - * [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications]. When disable keyword match is turned off, a + * Controls whether to disable exact keyword match on Job.title google.cloud.talent.v4beta1.Job.title, + * Job.description google.cloud.talent.v4beta1.Job.description, Job.company_display_name google.cloud.talent.v4beta1.Job.company_display_name, Job.addresses google.cloud.talent.v4beta1.Job.addresses, + * Job.qualifications google.cloud.talent.v4beta1.Job.qualifications. When disable keyword match is turned off, a * keyword match returns jobs that do not match given category filters when * there are matching keywords. For example, for the query "program manager," * a result is returned even if the job posting has the title "software @@ -247,7 +247,7 @@ function main(parent, requestMetadata) { * For queries like "cloud" that don't contain title or * location specific ontology, jobs with "cloud" keyword matches are returned * regardless of this flag's value. - * Use [Company.keyword_searchable_job_custom_attributes][google.cloud.talent.v4beta1.Company.keyword_searchable_job_custom_attributes] if + * Use Company.keyword_searchable_job_custom_attributes google.cloud.talent.v4beta1.Company.keyword_searchable_job_custom_attributes if * company-specific globally matched custom field/attribute string values are * needed. Enabling keyword match improves recall of subsequent search * requests. @@ -261,7 +261,7 @@ function main(parent, requestMetadata) { // Instantiates a client const talentClient = new JobServiceClient(); - async function searchJobs() { + async function callSearchJobs() { // Construct request const request = { parent, @@ -273,7 +273,7 @@ function main(parent, requestMetadata) { console.log(response); } - searchJobs(); + callSearchJobs(); // [END jobs_v4beta1_generated_JobService_SearchJobs_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/job_service.search_jobs_for_alert.js b/packages/google-cloud-talent/samples/generated/v4beta1/job_service.search_jobs_for_alert.js index ec50f262029..01dd0edc735 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/job_service.search_jobs_for_alert.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/job_service.search_jobs_for_alert.js @@ -28,19 +28,19 @@ function main(parent, requestMetadata) { // const parent = 'abc123' /** * Mode of a search. - * Defaults to [SearchMode.JOB_SEARCH][google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH]. + * Defaults to SearchMode.JOB_SEARCH google.cloud.talent.v4beta1.SearchJobsRequest.SearchMode.JOB_SEARCH. */ - // const searchMode = '' + // const searchMode = {} /** * Required. The meta information collected about the job searcher, used to improve the * search quality of the service. The identifiers (such as `user_id`) are * provided by users, and must be unique and consistent. */ - // const requestMetadata = '' + // const requestMetadata = {} /** * Query used to search against jobs, such as keyword, location filters, etc. */ - // const jobQuery = '' + // const jobQuery = {} /** * Controls whether to broaden the search when it produces sparse results. * Broadened queries append results to the end of the matching results @@ -72,29 +72,29 @@ function main(parent, requestMetadata) { * * String: string like "any string with backslash escape for quote(\")." * * Number: whole number and floating point number like 10, -1 and -0.01. * * List: list of elements with comma(,) separator surrounded by square - * brackets, for example, [1, 2, 3] and ["one", "two", "three"]. + * brackets, for example, 1, 2, 3 and "one", "two", "three". * Built-in constants: * * MIN (minimum number similar to java Double.MIN_VALUE) * * MAX (maximum number similar to java Double.MAX_VALUE) * Built-in functions: - * * bucket(start, end[, label]): bucket built-in function creates a bucket - * with range of [start, end). Note that the end is exclusive, for example, + * * bucket(start, end, label): bucket built-in function creates a bucket + * with range of start, end). Note that the end is exclusive, for example, * bucket(1, MAX, "positive number") or bucket(1, 10). * Job histogram facets: - * * company_display_name: histogram by [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name]. - * * employment_type: histogram by [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types], for example, + * * company_display_name: histogram by Job.company_display_name google.cloud.talent.v4beta1.Job.company_display_name. + * * employment_type: histogram by Job.employment_types google.cloud.talent.v4beta1.Job.employment_types, for example, * "FULL_TIME", "PART_TIME". - * * company_size: histogram by [CompanySize][google.cloud.talent.v4beta1.CompanySize], for example, "SMALL", + * * company_size: histogram by CompanySize google.cloud.talent.v4beta1.CompanySize, for example, "SMALL", * "MEDIUM", "BIG". - * * publish_time_in_month: histogram by the [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time] + * * publish_time_in_month: histogram by the Job.posting_publish_time google.cloud.talent.v4beta1.Job.posting_publish_time * in months. * Must specify list of numeric buckets in spec. - * * publish_time_in_year: histogram by the [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time] + * * publish_time_in_year: histogram by the Job.posting_publish_time google.cloud.talent.v4beta1.Job.posting_publish_time * in years. * Must specify list of numeric buckets in spec. - * * degree_types: histogram by the [Job.degree_types][google.cloud.talent.v4beta1.Job.degree_types], for example, + * * degree_types: histogram by the Job.degree_types google.cloud.talent.v4beta1.Job.degree_types, for example, * "Bachelors", "Masters". - * * job_level: histogram by the [Job.job_level][google.cloud.talent.v4beta1.Job.job_level], for example, "Entry + * * job_level: histogram by the Job.job_level google.cloud.talent.v4beta1.Job.job_level, for example, "Entry * Level". * * country: histogram by the country code of jobs, for example, "US", "FR". * * admin1: histogram by the admin1 code of jobs, which is a global @@ -109,14 +109,14 @@ function main(parent, requestMetadata) { * and longitude), for example, 37.4038522,-122.0987765. Since the * coordinates of a city center can change, customers may need to refresh * them periodically. - * * locale: histogram by the [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], for example, "en-US", + * * locale: histogram by the Job.language_code google.cloud.talent.v4beta1.Job.language_code, for example, "en-US", * "fr-FR". - * * language: histogram by the language subtag of the [Job.language_code][google.cloud.talent.v4beta1.Job.language_code], + * * language: histogram by the language subtag of the Job.language_code google.cloud.talent.v4beta1.Job.language_code, * for example, "en", "fr". - * * category: histogram by the [JobCategory][google.cloud.talent.v4beta1.JobCategory], for example, + * * category: histogram by the JobCategory google.cloud.talent.v4beta1.JobCategory, for example, * "COMPUTER_AND_IT", "HEALTHCARE". * * base_compensation_unit: histogram by the - * [CompensationInfo.CompensationUnit][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit] of base + * CompensationInfo.CompensationUnit google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit of base * salary, for example, "WEEKLY", "MONTHLY". * * base_compensation: histogram by the base salary. Must specify list of * numeric buckets to group results by. @@ -124,31 +124,31 @@ function main(parent, requestMetadata) { * Must specify list of numeric buckets to group results by. * * annualized_total_compensation: histogram by the total annualized salary. * Must specify list of numeric buckets to group results by. - * * string_custom_attribute: histogram by string [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]. + * * string_custom_attribute: histogram by string Job.custom_attributes google.cloud.talent.v4beta1.Job.custom_attributes. * Values can be accessed via square bracket notations like - * string_custom_attribute["key1"]. - * * numeric_custom_attribute: histogram by numeric [Job.custom_attributes][google.cloud.talent.v4beta1.Job.custom_attributes]. + * string_custom_attribute"key1". + * * numeric_custom_attribute: histogram by numeric Job.custom_attributes google.cloud.talent.v4beta1.Job.custom_attributes. * Values can be accessed via square bracket notations like - * numeric_custom_attribute["key1"]. Must specify list of numeric buckets to + * numeric_custom_attribute"key1". Must specify list of numeric buckets to * group results by. * Example expressions: * * `count(admin1)` - * * `count(base_compensation, [bucket(1000, 10000), bucket(10000, 100000), - * bucket(100000, MAX)])` - * * `count(string_custom_attribute["some-string-custom-attribute"])` - * * `count(numeric_custom_attribute["some-numeric-custom-attribute"], - * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative"])` + * * `count(base_compensation, bucket(1000, 10000), bucket(10000, 100000), + * bucket(100000, MAX))` + * * `count(string_custom_attribute"some-string-custom-attribute")` + * * `count(numeric_custom_attribute"some-numeric-custom-attribute", + * bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")` */ // const histogramQueries = 1234 /** * The desired job attributes returned for jobs in the search response. - * Defaults to [JobView.JOB_VIEW_SMALL][google.cloud.talent.v4beta1.JobView.JOB_VIEW_SMALL] if no value is specified. + * Defaults to JobView.JOB_VIEW_SMALL google.cloud.talent.v4beta1.JobView.JOB_VIEW_SMALL if no value is specified. */ - // const jobView = '' + // const jobView = {} /** * An integer that specifies the current offset (that is, starting result * location, amongst the jobs deemed by the API as relevant) in search - * results. This field is only considered if [page_token][google.cloud.talent.v4beta1.SearchJobsRequest.page_token] is unset. + * results. This field is only considered if page_token google.cloud.talent.v4beta1.SearchJobsRequest.page_token is unset. * The maximum allowed value is 5000. Otherwise an error is thrown. * For example, 0 means to return results starting from the first matching * job, and 10 means to return from the 11th job. This can be used for @@ -164,7 +164,7 @@ function main(parent, requestMetadata) { // const pageSize = 1234 /** * The token specifying the current offset within - * search results. See [SearchJobsResponse.next_page_token][google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token] for + * search results. See SearchJobsResponse.next_page_token google.cloud.talent.v4beta1.SearchJobsResponse.next_page_token for * an explanation of how to obtain the next set of query results. */ // const pageToken = 'abc123' @@ -175,32 +175,32 @@ function main(parent, requestMetadata) { * * `"relevance desc"`: By relevance descending, as determined by the API * algorithms. Relevance thresholding of query results is only available * with this ordering. - * * `"posting_publish_time desc"`: By [Job.posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time] + * * `"posting_publish_time desc"`: By Job.posting_publish_time google.cloud.talent.v4beta1.Job.posting_publish_time * descending. - * * `"posting_update_time desc"`: By [Job.posting_update_time][google.cloud.talent.v4beta1.Job.posting_update_time] + * * `"posting_update_time desc"`: By Job.posting_update_time google.cloud.talent.v4beta1.Job.posting_update_time * descending. - * * `"title"`: By [Job.title][google.cloud.talent.v4beta1.Job.title] ascending. - * * `"title desc"`: By [Job.title][google.cloud.talent.v4beta1.Job.title] descending. + * * `"title"`: By Job.title google.cloud.talent.v4beta1.Job.title ascending. + * * `"title desc"`: By Job.title google.cloud.talent.v4beta1.Job.title descending. * * `"annualized_base_compensation"`: By job's - * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range] ascending. Jobs + * CompensationInfo.annualized_base_compensation_range google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range ascending. Jobs * whose annualized base compensation is unspecified are put at the end of * search results. * * `"annualized_base_compensation desc"`: By job's - * [CompensationInfo.annualized_base_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range] descending. Jobs + * CompensationInfo.annualized_base_compensation_range google.cloud.talent.v4beta1.CompensationInfo.annualized_base_compensation_range descending. Jobs * whose annualized base compensation is unspecified are put at the end of * search results. * * `"annualized_total_compensation"`: By job's - * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range] ascending. Jobs + * CompensationInfo.annualized_total_compensation_range google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range ascending. Jobs * whose annualized base compensation is unspecified are put at the end of * search results. * * `"annualized_total_compensation desc"`: By job's - * [CompensationInfo.annualized_total_compensation_range][google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range] descending. Jobs + * CompensationInfo.annualized_total_compensation_range google.cloud.talent.v4beta1.CompensationInfo.annualized_total_compensation_range descending. Jobs * whose annualized base compensation is unspecified are put at the end of * search results. * * `"custom_ranking desc"`: By the relevance score adjusted to the - * [SearchJobsRequest.CustomRankingInfo.ranking_expression][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression] with weight + * SearchJobsRequest.CustomRankingInfo.ranking_expression google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.ranking_expression with weight * factor assigned by - * [SearchJobsRequest.CustomRankingInfo.importance_level][google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.importance_level] in descending + * SearchJobsRequest.CustomRankingInfo.importance_level google.cloud.talent.v4beta1.SearchJobsRequest.CustomRankingInfo.importance_level in descending * order. * * Location sorting: Use the special syntax to order jobs by distance:
* `"distance_from('Hawaii')"`: Order by distance from Hawaii.
@@ -216,7 +216,7 @@ function main(parent, requestMetadata) { * don't have locations will be ranked at the bottom. Distance is calculated * with a precision of 11.3 meters (37.4 feet). Diversification strategy is * still applied unless explicitly disabled in - * [diversification_level][google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level]. + * diversification_level google.cloud.talent.v4beta1.SearchJobsRequest.diversification_level. */ // const orderBy = 'abc123' /** @@ -226,19 +226,19 @@ function main(parent, requestMetadata) { * clustered so that only one representative job of the cluster is * displayed to the job seeker higher up in the results, with the other jobs * being displayed lower down in the results. - * Defaults to [DiversificationLevel.SIMPLE][google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE] if no value + * Defaults to DiversificationLevel.SIMPLE google.cloud.talent.v4beta1.SearchJobsRequest.DiversificationLevel.SIMPLE if no value * is specified. */ - // const diversificationLevel = '' + // const diversificationLevel = {} /** * Controls over how job documents get ranked on top of existing relevance * score (determined by API algorithm). */ - // const customRankingInfo = '' + // const customRankingInfo = {} /** - * Controls whether to disable exact keyword match on [Job.title][google.cloud.talent.v4beta1.Job.title], - * [Job.description][google.cloud.talent.v4beta1.Job.description], [Job.company_display_name][google.cloud.talent.v4beta1.Job.company_display_name], [Job.addresses][google.cloud.talent.v4beta1.Job.addresses], - * [Job.qualifications][google.cloud.talent.v4beta1.Job.qualifications]. When disable keyword match is turned off, a + * Controls whether to disable exact keyword match on Job.title google.cloud.talent.v4beta1.Job.title, + * Job.description google.cloud.talent.v4beta1.Job.description, Job.company_display_name google.cloud.talent.v4beta1.Job.company_display_name, Job.addresses google.cloud.talent.v4beta1.Job.addresses, + * Job.qualifications google.cloud.talent.v4beta1.Job.qualifications. When disable keyword match is turned off, a * keyword match returns jobs that do not match given category filters when * there are matching keywords. For example, for the query "program manager," * a result is returned even if the job posting has the title "software @@ -247,7 +247,7 @@ function main(parent, requestMetadata) { * For queries like "cloud" that don't contain title or * location specific ontology, jobs with "cloud" keyword matches are returned * regardless of this flag's value. - * Use [Company.keyword_searchable_job_custom_attributes][google.cloud.talent.v4beta1.Company.keyword_searchable_job_custom_attributes] if + * Use Company.keyword_searchable_job_custom_attributes google.cloud.talent.v4beta1.Company.keyword_searchable_job_custom_attributes if * company-specific globally matched custom field/attribute string values are * needed. Enabling keyword match improves recall of subsequent search * requests. @@ -261,7 +261,7 @@ function main(parent, requestMetadata) { // Instantiates a client const talentClient = new JobServiceClient(); - async function searchJobsForAlert() { + async function callSearchJobsForAlert() { // Construct request const request = { parent, @@ -273,7 +273,7 @@ function main(parent, requestMetadata) { console.log(response); } - searchJobsForAlert(); + callSearchJobsForAlert(); // [END jobs_v4beta1_generated_JobService_SearchJobsForAlert_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/job_service.update_job.js b/packages/google-cloud-talent/samples/generated/v4beta1/job_service.update_job.js index 25f38a7b05b..e15898cc8d5 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/job_service.update_job.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/job_service.update_job.js @@ -22,15 +22,15 @@ function main(job) { /** * Required. The Job to be updated. */ - // const job = '' + // const job = {} /** * Strongly recommended for the best service experience. - * If [update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask] is provided, only the specified fields in - * [job][google.cloud.talent.v4beta1.UpdateJobRequest.job] are updated. Otherwise all the fields are updated. + * If update_mask google.cloud.talent.v4beta1.UpdateJobRequest.update_mask is provided, only the specified fields in + * job google.cloud.talent.v4beta1.UpdateJobRequest.job are updated. Otherwise all the fields are updated. * A field mask to restrict the fields that are updated. Only - * top level fields of [Job][google.cloud.talent.v4beta1.Job] are supported. + * top level fields of Job google.cloud.talent.v4beta1.Job are supported. */ - // const updateMask = '' + // const updateMask = {} // Imports the Talent library const {JobServiceClient} = require('@google-cloud/talent').v4beta1; @@ -38,7 +38,7 @@ function main(job) { // Instantiates a client const talentClient = new JobServiceClient(); - async function updateJob() { + async function callUpdateJob() { // Construct request const request = { job, @@ -49,7 +49,7 @@ function main(job) { console.log(response); } - updateJob(); + callUpdateJob(); // [END jobs_v4beta1_generated_JobService_UpdateJob_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/profile_service.create_profile.js b/packages/google-cloud-talent/samples/generated/v4beta1/profile_service.create_profile.js index d435dd0a0e8..5b19595caa1 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/profile_service.create_profile.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/profile_service.create_profile.js @@ -28,7 +28,7 @@ function main(parent, profile) { /** * Required. The profile to be created. */ - // const profile = '' + // const profile = {} // Imports the Talent library const {ProfileServiceClient} = require('@google-cloud/talent').v4beta1; @@ -36,7 +36,7 @@ function main(parent, profile) { // Instantiates a client const talentClient = new ProfileServiceClient(); - async function createProfile() { + async function callCreateProfile() { // Construct request const request = { parent, @@ -48,7 +48,7 @@ function main(parent, profile) { console.log(response); } - createProfile(); + callCreateProfile(); // [END jobs_v4beta1_generated_ProfileService_CreateProfile_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/profile_service.delete_profile.js b/packages/google-cloud-talent/samples/generated/v4beta1/profile_service.delete_profile.js index cb9e836c81c..a8a54dfb299 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/profile_service.delete_profile.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/profile_service.delete_profile.js @@ -33,7 +33,7 @@ function main(name) { // Instantiates a client const talentClient = new ProfileServiceClient(); - async function deleteProfile() { + async function callDeleteProfile() { // Construct request const request = { name, @@ -44,7 +44,7 @@ function main(name) { console.log(response); } - deleteProfile(); + callDeleteProfile(); // [END jobs_v4beta1_generated_ProfileService_DeleteProfile_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/profile_service.get_profile.js b/packages/google-cloud-talent/samples/generated/v4beta1/profile_service.get_profile.js index b6d2e3c4e4b..c8281842648 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/profile_service.get_profile.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/profile_service.get_profile.js @@ -33,7 +33,7 @@ function main(name) { // Instantiates a client const talentClient = new ProfileServiceClient(); - async function getProfile() { + async function callGetProfile() { // Construct request const request = { name, @@ -44,7 +44,7 @@ function main(name) { console.log(response); } - getProfile(); + callGetProfile(); // [END jobs_v4beta1_generated_ProfileService_GetProfile_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/profile_service.list_profiles.js b/packages/google-cloud-talent/samples/generated/v4beta1/profile_service.list_profiles.js index dd750781885..9cb15f3284e 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/profile_service.list_profiles.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/profile_service.list_profiles.js @@ -41,7 +41,7 @@ function main(parent) { // const filter = 'abc123' /** * The token that specifies the current offset (that is, starting result). - * Please set the value to [ListProfilesResponse.next_page_token][google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token] to + * Please set the value to ListProfilesResponse.next_page_token google.cloud.talent.v4beta1.ListProfilesResponse.next_page_token to * continue the list. */ // const pageToken = 'abc123' @@ -56,7 +56,7 @@ function main(parent) { * Valid values are: * * name */ - // const readMask = '' + // const readMask = {} // Imports the Talent library const {ProfileServiceClient} = require('@google-cloud/talent').v4beta1; @@ -64,7 +64,7 @@ function main(parent) { // Instantiates a client const talentClient = new ProfileServiceClient(); - async function listProfiles() { + async function callListProfiles() { // Construct request const request = { parent, @@ -77,7 +77,7 @@ function main(parent) { } } - listProfiles(); + callListProfiles(); // [END jobs_v4beta1_generated_ProfileService_ListProfiles_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/profile_service.search_profiles.js b/packages/google-cloud-talent/samples/generated/v4beta1/profile_service.search_profiles.js index 1ca51f3310c..cbe5835d96b 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/profile_service.search_profiles.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/profile_service.search_profiles.js @@ -30,11 +30,11 @@ function main(parent, requestMetadata) { * to improve the search quality of the service. These values are provided by * users, and must be precise and consistent. */ - // const requestMetadata = '' + // const requestMetadata = {} /** - * Search query to execute. See [ProfileQuery][google.cloud.talent.v4beta1.ProfileQuery] for more details. + * Search query to execute. See ProfileQuery google.cloud.talent.v4beta1.ProfileQuery for more details. */ - // const profileQuery = '' + // const profileQuery = {} /** * A limit on the number of profiles returned in the search results. * A value above the default value 10 can increase search response time. @@ -45,7 +45,7 @@ function main(parent, requestMetadata) { * The pageToken, similar to offset enables users of the API to paginate * through the search results. To retrieve the first page of results, set the * pageToken to empty. The search response includes a - * [nextPageToken][google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token] field that can be + * nextPageToken google.cloud.talent.v4beta1.SearchProfilesResponse.next_page_token field that can be * used to populate the pageToken field for the next page of results. Using * pageToken instead of offset increases the performance of the API, * especially compared to larger offset values. @@ -53,7 +53,7 @@ function main(parent, requestMetadata) { // const pageToken = 'abc123' /** * An integer that specifies the current offset (that is, starting result) in - * search results. This field is only considered if [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token] is unset. + * search results. This field is only considered if page_token google.cloud.talent.v4beta1.SearchProfilesRequest.page_token is unset. * The maximum allowed value is 5000. Otherwise an error is thrown. * For example, 0 means to search from the first profile, and 10 means to * search from the 11th profile. This can be used for pagination, for example @@ -72,17 +72,17 @@ function main(parent, requestMetadata) { * Supported options are: * * "relevance desc": By descending relevance, as determined by the API * algorithms. - * * "update_date desc": Sort by [Profile.update_time][google.cloud.talent.v4beta1.Profile.update_time] in descending order + * * "update_date desc": Sort by Profile.update_time google.cloud.talent.v4beta1.Profile.update_time in descending order * (recently updated profiles first). - * * "create_date desc": Sort by [Profile.create_time][google.cloud.talent.v4beta1.Profile.create_time] in descending order + * * "create_date desc": Sort by Profile.create_time google.cloud.talent.v4beta1.Profile.create_time in descending order * (recently created profiles first). - * * "first_name": Sort by [PersonName.PersonStructuredName.given_name][google.cloud.talent.v4beta1.PersonName.PersonStructuredName.given_name] in + * * "first_name": Sort by PersonName.PersonStructuredName.given_name google.cloud.talent.v4beta1.PersonName.PersonStructuredName.given_name in * ascending order. - * * "first_name desc": Sort by [PersonName.PersonStructuredName.given_name][google.cloud.talent.v4beta1.PersonName.PersonStructuredName.given_name] + * * "first_name desc": Sort by PersonName.PersonStructuredName.given_name google.cloud.talent.v4beta1.PersonName.PersonStructuredName.given_name * in descending order. - * * "last_name": Sort by [PersonName.PersonStructuredName.family_name][google.cloud.talent.v4beta1.PersonName.PersonStructuredName.family_name] in + * * "last_name": Sort by PersonName.PersonStructuredName.family_name google.cloud.talent.v4beta1.PersonName.PersonStructuredName.family_name in * ascending order. - * * "last_name desc": Sort by [PersonName.PersonStructuredName.family_name][google.cloud.talent.v4beta1.PersonName.PersonStructuredName.family_name] + * * "last_name desc": Sort by PersonName.PersonStructuredName.family_name google.cloud.talent.v4beta1.PersonName.PersonStructuredName.family_name * in ascending order. */ // const orderBy = 'abc123' @@ -94,21 +94,21 @@ function main(parent, requestMetadata) { // const caseSensitiveSort = true /** * A list of expressions specifies histogram requests against matching - * profiles for [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest]. + * profiles for SearchProfilesRequest google.cloud.talent.v4beta1.SearchProfilesRequest. * The expression syntax looks like a function definition with parameters. - * Function syntax: function_name(histogram_facet[, list of buckets]) + * Function syntax: function_name(histogram_facet, list of buckets) * Data types: * * Histogram facet: facet names with format `[a-zA-Z][a-zA-Z0-9_]+`. * * String: string like "any string with backslash escape for quote(\")." * * Number: whole number and floating point number like 10, -1 and -0.01. * * List: list of elements with comma(,) separator surrounded by square - * brackets. For example, [1, 2, 3] and ["one", "two", "three"]. + * brackets. For example, 1, 2, 3 and "one", "two", "three". * Built-in constants: * * MIN (minimum number similar to java Double.MIN_VALUE) * * MAX (maximum number similar to java Double.MAX_VALUE) * Built-in functions: - * * bucket(start, end[, label]) - * Bucket build-in function creates a bucket with range of [start, end). Note + * * bucket(start, end, label) + * Bucket build-in function creates a bucket with range of start, end). Note * that the end is exclusive. * For example, bucket(1, MAX, "positive number") or bucket(1, 10). * Histogram Facets: @@ -136,44 +136,44 @@ function main(parent, requestMetadata) { * * experience_in_months: experience in months. 0 means 0 month to 1 month * (exclusive). * * application_date: The application date specifies application start dates. - * See [ApplicationDateFilter][google.cloud.talent.v4beta1.ApplicationDateFilter] for more details. + * See ApplicationDateFilter google.cloud.talent.v4beta1.ApplicationDateFilter for more details. * * application_outcome_notes: The application outcome reason specifies the * reasons behind the outcome of the job application. - * See [ApplicationOutcomeNotesFilter][google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter] for more details. + * See ApplicationOutcomeNotesFilter google.cloud.talent.v4beta1.ApplicationOutcomeNotesFilter for more details. * * application_job_title: The application job title specifies the job * applied for in the application. - * See [ApplicationJobFilter][google.cloud.talent.v4beta1.ApplicationJobFilter] for more details. + * See ApplicationJobFilter google.cloud.talent.v4beta1.ApplicationJobFilter for more details. * * hirable_status: Hirable status specifies the profile's hirable status. * * string_custom_attribute: String custom attributes. Values can be accessed - * via square bracket notation like string_custom_attribute["key1"]. + * via square bracket notation like string_custom_attribute"key1". * * numeric_custom_attribute: Numeric custom attributes. Values can be - * accessed via square bracket notation like numeric_custom_attribute["key1"]. + * accessed via square bracket notation like numeric_custom_attribute"key1". * Example expressions: * * count(admin1) - * * count(experience_in_months, [bucket(0, 12, "1 year"), - * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")]) - * * count(string_custom_attribute["assigned_recruiter"]) - * * count(numeric_custom_attribute["favorite_number"], - * [bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")]) + * * count(experience_in_months, bucket(0, 12, "1 year"), + * bucket(12, 36, "1-3 years"), bucket(36, MAX, "3+ years")) + * * count(string_custom_attribute"assigned_recruiter") + * * count(numeric_custom_attribute"favorite_number", + * bucket(MIN, 0, "negative"), bucket(0, MAX, "non-negative")) */ // const histogramQueries = 1234 /** * An id that uniquely identifies the result set of a - * [SearchProfiles][google.cloud.talent.v4beta1.ProfileService.SearchProfiles] call. The id should be + * SearchProfiles google.cloud.talent.v4beta1.ProfileService.SearchProfiles call. The id should be * retrieved from the - * [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse] message returned from a previous - * invocation of [SearchProfiles][google.cloud.talent.v4beta1.ProfileService.SearchProfiles]. + * SearchProfilesResponse google.cloud.talent.v4beta1.SearchProfilesResponse message returned from a previous + * invocation of SearchProfiles google.cloud.talent.v4beta1.ProfileService.SearchProfiles. * A result set is an ordered list of search results. * If this field is not set, a new result set is computed based on the - * [profile_query][google.cloud.talent.v4beta1.SearchProfilesRequest.profile_query]. A new [result_set_id][google.cloud.talent.v4beta1.SearchProfilesRequest.result_set_id] is returned as a handle to + * profile_query google.cloud.talent.v4beta1.SearchProfilesRequest.profile_query. A new result_set_id google.cloud.talent.v4beta1.SearchProfilesRequest.result_set_id is returned as a handle to * access this result set. * If this field is set, the service will ignore the resource and - * [profile_query][google.cloud.talent.v4beta1.SearchProfilesRequest.profile_query] values, and simply retrieve a page of results from the - * corresponding result set. In this case, one and only one of [page_token][google.cloud.talent.v4beta1.SearchProfilesRequest.page_token] - * or [offset][google.cloud.talent.v4beta1.SearchProfilesRequest.offset] must be set. - * A typical use case is to invoke [SearchProfilesRequest][google.cloud.talent.v4beta1.SearchProfilesRequest] without this - * field, then use the resulting [result_set_id][google.cloud.talent.v4beta1.SearchProfilesRequest.result_set_id] in - * [SearchProfilesResponse][google.cloud.talent.v4beta1.SearchProfilesResponse] to page through the results. + * profile_query google.cloud.talent.v4beta1.SearchProfilesRequest.profile_query values, and simply retrieve a page of results from the + * corresponding result set. In this case, one and only one of page_token google.cloud.talent.v4beta1.SearchProfilesRequest.page_token + * or offset google.cloud.talent.v4beta1.SearchProfilesRequest.offset must be set. + * A typical use case is to invoke SearchProfilesRequest google.cloud.talent.v4beta1.SearchProfilesRequest without this + * field, then use the resulting result_set_id google.cloud.talent.v4beta1.SearchProfilesRequest.result_set_id in + * SearchProfilesResponse google.cloud.talent.v4beta1.SearchProfilesResponse to page through the results. */ // const resultSetId = 'abc123' /** @@ -198,7 +198,7 @@ function main(parent, requestMetadata) { // Instantiates a client const talentClient = new ProfileServiceClient(); - async function searchProfiles() { + async function callSearchProfiles() { // Construct request const request = { parent, @@ -210,7 +210,7 @@ function main(parent, requestMetadata) { console.log(response); } - searchProfiles(); + callSearchProfiles(); // [END jobs_v4beta1_generated_ProfileService_SearchProfiles_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/profile_service.update_profile.js b/packages/google-cloud-talent/samples/generated/v4beta1/profile_service.update_profile.js index 384756676a1..0b94895ffd0 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/profile_service.update_profile.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/profile_service.update_profile.js @@ -22,12 +22,12 @@ function main(profile) { /** * Required. Profile to be updated. */ - // const profile = '' + // const profile = {} /** * A field mask to specify the profile fields to update. * A full update is performed if it is unset. */ - // const updateMask = '' + // const updateMask = {} // Imports the Talent library const {ProfileServiceClient} = require('@google-cloud/talent').v4beta1; @@ -35,7 +35,7 @@ function main(profile) { // Instantiates a client const talentClient = new ProfileServiceClient(); - async function updateProfile() { + async function callUpdateProfile() { // Construct request const request = { profile, @@ -46,7 +46,7 @@ function main(profile) { console.log(response); } - updateProfile(); + callUpdateProfile(); // [END jobs_v4beta1_generated_ProfileService_UpdateProfile_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/tenant_service.create_tenant.js b/packages/google-cloud-talent/samples/generated/v4beta1/tenant_service.create_tenant.js index ba350024b64..363f4900abc 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/tenant_service.create_tenant.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/tenant_service.create_tenant.js @@ -28,7 +28,7 @@ function main(parent, tenant) { /** * Required. The tenant to be created. */ - // const tenant = '' + // const tenant = {} // Imports the Talent library const {TenantServiceClient} = require('@google-cloud/talent').v4beta1; @@ -36,7 +36,7 @@ function main(parent, tenant) { // Instantiates a client const talentClient = new TenantServiceClient(); - async function createTenant() { + async function callCreateTenant() { // Construct request const request = { parent, @@ -48,7 +48,7 @@ function main(parent, tenant) { console.log(response); } - createTenant(); + callCreateTenant(); // [END jobs_v4beta1_generated_TenantService_CreateTenant_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/tenant_service.delete_tenant.js b/packages/google-cloud-talent/samples/generated/v4beta1/tenant_service.delete_tenant.js index 31c773ed709..9f573dbdc5e 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/tenant_service.delete_tenant.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/tenant_service.delete_tenant.js @@ -32,7 +32,7 @@ function main(name) { // Instantiates a client const talentClient = new TenantServiceClient(); - async function deleteTenant() { + async function callDeleteTenant() { // Construct request const request = { name, @@ -43,7 +43,7 @@ function main(name) { console.log(response); } - deleteTenant(); + callDeleteTenant(); // [END jobs_v4beta1_generated_TenantService_DeleteTenant_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/tenant_service.get_tenant.js b/packages/google-cloud-talent/samples/generated/v4beta1/tenant_service.get_tenant.js index cd3a8623952..e7b2d511c1d 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/tenant_service.get_tenant.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/tenant_service.get_tenant.js @@ -32,7 +32,7 @@ function main(name) { // Instantiates a client const talentClient = new TenantServiceClient(); - async function getTenant() { + async function callGetTenant() { // Construct request const request = { name, @@ -43,7 +43,7 @@ function main(name) { console.log(response); } - getTenant(); + callGetTenant(); // [END jobs_v4beta1_generated_TenantService_GetTenant_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/tenant_service.list_tenants.js b/packages/google-cloud-talent/samples/generated/v4beta1/tenant_service.list_tenants.js index 7bec495f3da..427b92b5a80 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/tenant_service.list_tenants.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/tenant_service.list_tenants.js @@ -41,7 +41,7 @@ function main(parent) { // Instantiates a client const talentClient = new TenantServiceClient(); - async function listTenants() { + async function callListTenants() { // Construct request const request = { parent, @@ -54,7 +54,7 @@ function main(parent) { } } - listTenants(); + callListTenants(); // [END jobs_v4beta1_generated_TenantService_ListTenants_async] } diff --git a/packages/google-cloud-talent/samples/generated/v4beta1/tenant_service.update_tenant.js b/packages/google-cloud-talent/samples/generated/v4beta1/tenant_service.update_tenant.js index 2d8b8f4f6cf..2913d28b99d 100644 --- a/packages/google-cloud-talent/samples/generated/v4beta1/tenant_service.update_tenant.js +++ b/packages/google-cloud-talent/samples/generated/v4beta1/tenant_service.update_tenant.js @@ -22,15 +22,15 @@ function main(tenant) { /** * Required. The tenant resource to replace the current resource in the system. */ - // const tenant = '' + // const tenant = {} /** * Strongly recommended for the best service experience. - * If [update_mask][google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask] is provided, only the specified fields in - * [tenant][google.cloud.talent.v4beta1.UpdateTenantRequest.tenant] are updated. Otherwise all the fields are updated. + * If update_mask google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask is provided, only the specified fields in + * tenant google.cloud.talent.v4beta1.UpdateTenantRequest.tenant are updated. Otherwise all the fields are updated. * A field mask to specify the tenant fields to be updated. Only - * top level fields of [Tenant][google.cloud.talent.v4beta1.Tenant] are supported. + * top level fields of Tenant google.cloud.talent.v4beta1.Tenant are supported. */ - // const updateMask = '' + // const updateMask = {} // Imports the Talent library const {TenantServiceClient} = require('@google-cloud/talent').v4beta1; @@ -38,7 +38,7 @@ function main(tenant) { // Instantiates a client const talentClient = new TenantServiceClient(); - async function updateTenant() { + async function callUpdateTenant() { // Construct request const request = { tenant, @@ -49,7 +49,7 @@ function main(tenant) { console.log(response); } - updateTenant(); + callUpdateTenant(); // [END jobs_v4beta1_generated_TenantService_UpdateTenant_async] } diff --git a/packages/google-cloud-talent/src/v4/company_service_client.ts b/packages/google-cloud-talent/src/v4/company_service_client.ts index 4b72a6b7f8a..7b50e96c5f9 100644 --- a/packages/google-cloud-talent/src/v4/company_service_client.ts +++ b/packages/google-cloud-talent/src/v4/company_service_client.ts @@ -326,6 +326,28 @@ export class CompanyServiceClient { // ------------------- // -- Service calls -- // ------------------- + /** + * Creates a new company entity. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Resource name of the tenant under which the company is created. + * + * The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/foo/tenants/bar". + * @param {google.cloud.talent.v4.Company} request.company + * Required. The company to be created. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Company]{@link google.cloud.talent.v4.Company}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4/company_service.create_company.js + * region_tag:jobs_v4_generated_CompanyService_CreateCompany_async + */ createCompany( request?: protos.google.cloud.talent.v4.ICreateCompanyRequest, options?: CallOptions @@ -353,28 +375,6 @@ export class CompanyServiceClient { {} | null | undefined > ): void; - /** - * Creates a new company entity. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. Resource name of the tenant under which the company is created. - * - * The format is "projects/{project_id}/tenants/{tenant_id}", for example, - * "projects/foo/tenants/bar". - * @param {google.cloud.talent.v4.Company} request.company - * Required. The company to be created. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Company]{@link google.cloud.talent.v4.Company}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.createCompany(request); - */ createCompany( request?: protos.google.cloud.talent.v4.ICreateCompanyRequest, optionsOrCallback?: @@ -416,6 +416,27 @@ export class CompanyServiceClient { this.initialize(); return this.innerApiCalls.createCompany(request, options, callback); } + /** + * Retrieves specified company. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the company to be retrieved. + * + * The format is + * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Company]{@link google.cloud.talent.v4.Company}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4/company_service.get_company.js + * region_tag:jobs_v4_generated_CompanyService_GetCompany_async + */ getCompany( request?: protos.google.cloud.talent.v4.IGetCompanyRequest, options?: CallOptions @@ -443,27 +464,6 @@ export class CompanyServiceClient { {} | null | undefined > ): void; - /** - * Retrieves specified company. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The resource name of the company to be retrieved. - * - * The format is - * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for - * example, "projects/api-test-project/tenants/foo/companies/bar". - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Company]{@link google.cloud.talent.v4.Company}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.getCompany(request); - */ getCompany( request?: protos.google.cloud.talent.v4.IGetCompanyRequest, optionsOrCallback?: @@ -503,6 +503,31 @@ export class CompanyServiceClient { this.initialize(); return this.innerApiCalls.getCompany(request, options, callback); } + /** + * Updates specified company. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.talent.v4.Company} request.company + * Required. The company resource to replace the current resource in the system. + * @param {google.protobuf.FieldMask} request.updateMask + * Strongly recommended for the best service experience. + * + * If {@link google.cloud.talent.v4.UpdateCompanyRequest.update_mask|update_mask} is provided, only the specified fields in + * {@link google.cloud.talent.v4.UpdateCompanyRequest.company|company} are updated. Otherwise all the fields are updated. + * + * A field mask to specify the company fields to be updated. Only + * top level fields of {@link google.cloud.talent.v4.Company|Company} are supported. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Company]{@link google.cloud.talent.v4.Company}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4/company_service.update_company.js + * region_tag:jobs_v4_generated_CompanyService_UpdateCompany_async + */ updateCompany( request?: protos.google.cloud.talent.v4.IUpdateCompanyRequest, options?: CallOptions @@ -530,31 +555,6 @@ export class CompanyServiceClient { {} | null | undefined > ): void; - /** - * Updates specified company. - * - * @param {Object} request - * The request object that will be sent. - * @param {google.cloud.talent.v4.Company} request.company - * Required. The company resource to replace the current resource in the system. - * @param {google.protobuf.FieldMask} request.updateMask - * Strongly recommended for the best service experience. - * - * If {@link google.cloud.talent.v4.UpdateCompanyRequest.update_mask|update_mask} is provided, only the specified fields in - * {@link google.cloud.talent.v4.UpdateCompanyRequest.company|company} are updated. Otherwise all the fields are updated. - * - * A field mask to specify the company fields to be updated. Only - * top level fields of {@link google.cloud.talent.v4.Company|Company} are supported. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Company]{@link google.cloud.talent.v4.Company}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.updateCompany(request); - */ updateCompany( request?: protos.google.cloud.talent.v4.IUpdateCompanyRequest, optionsOrCallback?: @@ -596,6 +596,28 @@ export class CompanyServiceClient { this.initialize(); return this.innerApiCalls.updateCompany(request, options, callback); } + /** + * Deletes specified company. + * Prerequisite: The company has no jobs associated with it. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the company to be deleted. + * + * The format is + * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/foo/tenants/bar/companies/baz". + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4/company_service.delete_company.js + * region_tag:jobs_v4_generated_CompanyService_DeleteCompany_async + */ deleteCompany( request?: protos.google.cloud.talent.v4.IDeleteCompanyRequest, options?: CallOptions @@ -623,28 +645,6 @@ export class CompanyServiceClient { {} | null | undefined > ): void; - /** - * Deletes specified company. - * Prerequisite: The company has no jobs associated with it. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The resource name of the company to be deleted. - * - * The format is - * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for - * example, "projects/foo/tenants/bar/companies/baz". - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.deleteCompany(request); - */ deleteCompany( request?: protos.google.cloud.talent.v4.IDeleteCompanyRequest, optionsOrCallback?: @@ -687,33 +687,6 @@ export class CompanyServiceClient { return this.innerApiCalls.deleteCompany(request, options, callback); } - listCompanies( - request?: protos.google.cloud.talent.v4.IListCompaniesRequest, - options?: CallOptions - ): Promise< - [ - protos.google.cloud.talent.v4.ICompany[], - protos.google.cloud.talent.v4.IListCompaniesRequest | null, - protos.google.cloud.talent.v4.IListCompaniesResponse - ] - >; - listCompanies( - request: protos.google.cloud.talent.v4.IListCompaniesRequest, - options: CallOptions, - callback: PaginationCallback< - protos.google.cloud.talent.v4.IListCompaniesRequest, - protos.google.cloud.talent.v4.IListCompaniesResponse | null | undefined, - protos.google.cloud.talent.v4.ICompany - > - ): void; - listCompanies( - request: protos.google.cloud.talent.v4.IListCompaniesRequest, - callback: PaginationCallback< - protos.google.cloud.talent.v4.IListCompaniesRequest, - protos.google.cloud.talent.v4.IListCompaniesResponse | null | undefined, - protos.google.cloud.talent.v4.ICompany - > - ): void; /** * Lists all companies associated with the project. * @@ -749,6 +722,33 @@ export class CompanyServiceClient { * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ + listCompanies( + request?: protos.google.cloud.talent.v4.IListCompaniesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.talent.v4.ICompany[], + protos.google.cloud.talent.v4.IListCompaniesRequest | null, + protos.google.cloud.talent.v4.IListCompaniesResponse + ] + >; + listCompanies( + request: protos.google.cloud.talent.v4.IListCompaniesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.talent.v4.IListCompaniesRequest, + protos.google.cloud.talent.v4.IListCompaniesResponse | null | undefined, + protos.google.cloud.talent.v4.ICompany + > + ): void; + listCompanies( + request: protos.google.cloud.talent.v4.IListCompaniesRequest, + callback: PaginationCallback< + protos.google.cloud.talent.v4.IListCompaniesRequest, + protos.google.cloud.talent.v4.IListCompaniesResponse | null | undefined, + protos.google.cloud.talent.v4.ICompany + > + ): void; listCompanies( request?: protos.google.cloud.talent.v4.IListCompaniesRequest, optionsOrCallback?: @@ -879,11 +879,8 @@ export class CompanyServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example - * const iterable = client.listCompaniesAsync(request); - * for await (const response of iterable) { - * // process response - * } + * @example include:samples/generated/v4/company_service.list_companies.js + * region_tag:jobs_v4_generated_CompanyService_ListCompanies_async */ listCompaniesAsync( request?: protos.google.cloud.talent.v4.IListCompaniesRequest, @@ -897,7 +894,6 @@ export class CompanyServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - options = options || {}; const defaultCallSettings = this._defaults['listCompanies']; const callSettings = defaultCallSettings.merge(options); this.initialize(); diff --git a/packages/google-cloud-talent/src/v4/completion_client.ts b/packages/google-cloud-talent/src/v4/completion_client.ts index 685ce5ea192..fe8f8656bee 100644 --- a/packages/google-cloud-talent/src/v4/completion_client.ts +++ b/packages/google-cloud-talent/src/v4/completion_client.ts @@ -300,33 +300,6 @@ export class CompletionClient { // ------------------- // -- Service calls -- // ------------------- - completeQuery( - request?: protos.google.cloud.talent.v4.ICompleteQueryRequest, - options?: CallOptions - ): Promise< - [ - protos.google.cloud.talent.v4.ICompleteQueryResponse, - protos.google.cloud.talent.v4.ICompleteQueryRequest | undefined, - {} | undefined - ] - >; - completeQuery( - request: protos.google.cloud.talent.v4.ICompleteQueryRequest, - options: CallOptions, - callback: Callback< - protos.google.cloud.talent.v4.ICompleteQueryResponse, - protos.google.cloud.talent.v4.ICompleteQueryRequest | null | undefined, - {} | null | undefined - > - ): void; - completeQuery( - request: protos.google.cloud.talent.v4.ICompleteQueryRequest, - callback: Callback< - protos.google.cloud.talent.v4.ICompleteQueryResponse, - protos.google.cloud.talent.v4.ICompleteQueryRequest | null | undefined, - {} | null | undefined - > - ): void; /** * Completes the specified prefix with keyword suggestions. * Intended for use by a job search auto-complete search box. @@ -370,9 +343,36 @@ export class CompletionClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.completeQuery(request); + * @example include:samples/generated/v4/completion.complete_query.js + * region_tag:jobs_v4_generated_Completion_CompleteQuery_async */ + completeQuery( + request?: protos.google.cloud.talent.v4.ICompleteQueryRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.talent.v4.ICompleteQueryResponse, + protos.google.cloud.talent.v4.ICompleteQueryRequest | undefined, + {} | undefined + ] + >; + completeQuery( + request: protos.google.cloud.talent.v4.ICompleteQueryRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.talent.v4.ICompleteQueryResponse, + protos.google.cloud.talent.v4.ICompleteQueryRequest | null | undefined, + {} | null | undefined + > + ): void; + completeQuery( + request: protos.google.cloud.talent.v4.ICompleteQueryRequest, + callback: Callback< + protos.google.cloud.talent.v4.ICompleteQueryResponse, + protos.google.cloud.talent.v4.ICompleteQueryRequest | null | undefined, + {} | null | undefined + > + ): void; completeQuery( request?: protos.google.cloud.talent.v4.ICompleteQueryRequest, optionsOrCallback?: diff --git a/packages/google-cloud-talent/src/v4/event_service_client.ts b/packages/google-cloud-talent/src/v4/event_service_client.ts index 3ca38173f24..c6bfae4a3d4 100644 --- a/packages/google-cloud-talent/src/v4/event_service_client.ts +++ b/packages/google-cloud-talent/src/v4/event_service_client.ts @@ -300,6 +300,35 @@ export class EventServiceClient { // ------------------- // -- Service calls -- // ------------------- + /** + * Report events issued when end user interacts with customer's application + * that uses Cloud Talent Solution. You may inspect the created events in + * [self service + * tools](https://console.cloud.google.com/talent-solution/overview). + * [Learn + * more](https://cloud.google.com/talent-solution/docs/management-tools) + * about self service tools. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Resource name of the tenant under which the event is created. + * + * The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/foo/tenants/bar". + * @param {google.cloud.talent.v4.ClientEvent} request.clientEvent + * Required. Events issued when end user interacts with customer's application that + * uses Cloud Talent Solution. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [ClientEvent]{@link google.cloud.talent.v4.ClientEvent}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4/event_service.create_client_event.js + * region_tag:jobs_v4_generated_EventService_CreateClientEvent_async + */ createClientEvent( request?: protos.google.cloud.talent.v4.ICreateClientEventRequest, options?: CallOptions @@ -331,35 +360,6 @@ export class EventServiceClient { {} | null | undefined > ): void; - /** - * Report events issued when end user interacts with customer's application - * that uses Cloud Talent Solution. You may inspect the created events in - * [self service - * tools](https://console.cloud.google.com/talent-solution/overview). - * [Learn - * more](https://cloud.google.com/talent-solution/docs/management-tools) - * about self service tools. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. Resource name of the tenant under which the event is created. - * - * The format is "projects/{project_id}/tenants/{tenant_id}", for example, - * "projects/foo/tenants/bar". - * @param {google.cloud.talent.v4.ClientEvent} request.clientEvent - * Required. Events issued when end user interacts with customer's application that - * uses Cloud Talent Solution. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [ClientEvent]{@link google.cloud.talent.v4.ClientEvent}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.createClientEvent(request); - */ createClientEvent( request?: protos.google.cloud.talent.v4.ICreateClientEventRequest, optionsOrCallback?: diff --git a/packages/google-cloud-talent/src/v4/job_service_client.ts b/packages/google-cloud-talent/src/v4/job_service_client.ts index 6aa1529dacb..20ae74a62fe 100644 --- a/packages/google-cloud-talent/src/v4/job_service_client.ts +++ b/packages/google-cloud-talent/src/v4/job_service_client.ts @@ -388,6 +388,31 @@ export class JobServiceClient { // ------------------- // -- Service calls -- // ------------------- + /** + * Creates a new job. + * + * Typically, the job becomes searchable within 10 seconds, but it may take + * up to 5 minutes. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the tenant under which the job is created. + * + * The format is "projects/{project_id}/tenants/{tenant_id}". For example, + * "projects/foo/tenants/bar". + * @param {google.cloud.talent.v4.Job} request.job + * Required. The Job to be created. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Job]{@link google.cloud.talent.v4.Job}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4/job_service.create_job.js + * region_tag:jobs_v4_generated_JobService_CreateJob_async + */ createJob( request?: protos.google.cloud.talent.v4.ICreateJobRequest, options?: CallOptions @@ -415,31 +440,6 @@ export class JobServiceClient { {} | null | undefined > ): void; - /** - * Creates a new job. - * - * Typically, the job becomes searchable within 10 seconds, but it may take - * up to 5 minutes. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. The resource name of the tenant under which the job is created. - * - * The format is "projects/{project_id}/tenants/{tenant_id}". For example, - * "projects/foo/tenants/bar". - * @param {google.cloud.talent.v4.Job} request.job - * Required. The Job to be created. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Job]{@link google.cloud.talent.v4.Job}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.createJob(request); - */ createJob( request?: protos.google.cloud.talent.v4.ICreateJobRequest, optionsOrCallback?: @@ -479,6 +479,28 @@ export class JobServiceClient { this.initialize(); return this.innerApiCalls.createJob(request, options, callback); } + /** + * Retrieves the specified job, whose status is OPEN or recently EXPIRED + * within the last 90 days. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the job to retrieve. + * + * The format is + * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For + * example, "projects/foo/tenants/bar/jobs/baz". + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Job]{@link google.cloud.talent.v4.Job}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4/job_service.get_job.js + * region_tag:jobs_v4_generated_JobService_GetJob_async + */ getJob( request?: protos.google.cloud.talent.v4.IGetJobRequest, options?: CallOptions @@ -506,28 +528,6 @@ export class JobServiceClient { {} | null | undefined > ): void; - /** - * Retrieves the specified job, whose status is OPEN or recently EXPIRED - * within the last 90 days. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The resource name of the job to retrieve. - * - * The format is - * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For - * example, "projects/foo/tenants/bar/jobs/baz". - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Job]{@link google.cloud.talent.v4.Job}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.getJob(request); - */ getJob( request?: protos.google.cloud.talent.v4.IGetJobRequest, optionsOrCallback?: @@ -567,6 +567,34 @@ export class JobServiceClient { this.initialize(); return this.innerApiCalls.getJob(request, options, callback); } + /** + * Updates specified job. + * + * Typically, updated contents become visible in search results within 10 + * seconds, but it may take up to 5 minutes. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.talent.v4.Job} request.job + * Required. The Job to be updated. + * @param {google.protobuf.FieldMask} request.updateMask + * Strongly recommended for the best service experience. + * + * If {@link google.cloud.talent.v4.UpdateJobRequest.update_mask|update_mask} is provided, only the specified fields in + * {@link google.cloud.talent.v4.UpdateJobRequest.job|job} are updated. Otherwise all the fields are updated. + * + * A field mask to restrict the fields that are updated. Only + * top level fields of {@link google.cloud.talent.v4.Job|Job} are supported. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Job]{@link google.cloud.talent.v4.Job}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4/job_service.update_job.js + * region_tag:jobs_v4_generated_JobService_UpdateJob_async + */ updateJob( request?: protos.google.cloud.talent.v4.IUpdateJobRequest, options?: CallOptions @@ -594,34 +622,6 @@ export class JobServiceClient { {} | null | undefined > ): void; - /** - * Updates specified job. - * - * Typically, updated contents become visible in search results within 10 - * seconds, but it may take up to 5 minutes. - * - * @param {Object} request - * The request object that will be sent. - * @param {google.cloud.talent.v4.Job} request.job - * Required. The Job to be updated. - * @param {google.protobuf.FieldMask} request.updateMask - * Strongly recommended for the best service experience. - * - * If {@link google.cloud.talent.v4.UpdateJobRequest.update_mask|update_mask} is provided, only the specified fields in - * {@link google.cloud.talent.v4.UpdateJobRequest.job|job} are updated. Otherwise all the fields are updated. - * - * A field mask to restrict the fields that are updated. Only - * top level fields of {@link google.cloud.talent.v4.Job|Job} are supported. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Job]{@link google.cloud.talent.v4.Job}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.updateJob(request); - */ updateJob( request?: protos.google.cloud.talent.v4.IUpdateJobRequest, optionsOrCallback?: @@ -661,6 +661,30 @@ export class JobServiceClient { this.initialize(); return this.innerApiCalls.updateJob(request, options, callback); } + /** + * Deletes the specified job. + * + * Typically, the job becomes unsearchable within 10 seconds, but it may take + * up to 5 minutes. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the job to be deleted. + * + * The format is + * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For + * example, "projects/foo/tenants/bar/jobs/baz". + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4/job_service.delete_job.js + * region_tag:jobs_v4_generated_JobService_DeleteJob_async + */ deleteJob( request?: protos.google.cloud.talent.v4.IDeleteJobRequest, options?: CallOptions @@ -688,30 +712,6 @@ export class JobServiceClient { {} | null | undefined > ): void; - /** - * Deletes the specified job. - * - * Typically, the job becomes unsearchable within 10 seconds, but it may take - * up to 5 minutes. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The resource name of the job to be deleted. - * - * The format is - * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For - * example, "projects/foo/tenants/bar/jobs/baz". - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.deleteJob(request); - */ deleteJob( request?: protos.google.cloud.talent.v4.IDeleteJobRequest, optionsOrCallback?: @@ -751,33 +751,6 @@ export class JobServiceClient { this.initialize(); return this.innerApiCalls.deleteJob(request, options, callback); } - searchJobs( - request?: protos.google.cloud.talent.v4.ISearchJobsRequest, - options?: CallOptions - ): Promise< - [ - protos.google.cloud.talent.v4.ISearchJobsResponse, - protos.google.cloud.talent.v4.ISearchJobsRequest | undefined, - {} | undefined - ] - >; - searchJobs( - request: protos.google.cloud.talent.v4.ISearchJobsRequest, - options: CallOptions, - callback: Callback< - protos.google.cloud.talent.v4.ISearchJobsResponse, - protos.google.cloud.talent.v4.ISearchJobsRequest | null | undefined, - {} | null | undefined - > - ): void; - searchJobs( - request: protos.google.cloud.talent.v4.ISearchJobsRequest, - callback: Callback< - protos.google.cloud.talent.v4.ISearchJobsResponse, - protos.google.cloud.talent.v4.ISearchJobsRequest | null | undefined, - {} | null | undefined - > - ): void; /** * Searches for jobs using the provided {@link google.cloud.talent.v4.SearchJobsRequest|SearchJobsRequest}. * @@ -1030,9 +1003,36 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.searchJobs(request); + * @example include:samples/generated/v4/job_service.search_jobs.js + * region_tag:jobs_v4_generated_JobService_SearchJobs_async */ + searchJobs( + request?: protos.google.cloud.talent.v4.ISearchJobsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.talent.v4.ISearchJobsResponse, + protos.google.cloud.talent.v4.ISearchJobsRequest | undefined, + {} | undefined + ] + >; + searchJobs( + request: protos.google.cloud.talent.v4.ISearchJobsRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.talent.v4.ISearchJobsResponse, + protos.google.cloud.talent.v4.ISearchJobsRequest | null | undefined, + {} | null | undefined + > + ): void; + searchJobs( + request: protos.google.cloud.talent.v4.ISearchJobsRequest, + callback: Callback< + protos.google.cloud.talent.v4.ISearchJobsResponse, + protos.google.cloud.talent.v4.ISearchJobsRequest | null | undefined, + {} | null | undefined + > + ): void; searchJobs( request?: protos.google.cloud.talent.v4.ISearchJobsRequest, optionsOrCallback?: @@ -1072,33 +1072,6 @@ export class JobServiceClient { this.initialize(); return this.innerApiCalls.searchJobs(request, options, callback); } - searchJobsForAlert( - request?: protos.google.cloud.talent.v4.ISearchJobsRequest, - options?: CallOptions - ): Promise< - [ - protos.google.cloud.talent.v4.ISearchJobsResponse, - protos.google.cloud.talent.v4.ISearchJobsRequest | undefined, - {} | undefined - ] - >; - searchJobsForAlert( - request: protos.google.cloud.talent.v4.ISearchJobsRequest, - options: CallOptions, - callback: Callback< - protos.google.cloud.talent.v4.ISearchJobsResponse, - protos.google.cloud.talent.v4.ISearchJobsRequest | null | undefined, - {} | null | undefined - > - ): void; - searchJobsForAlert( - request: protos.google.cloud.talent.v4.ISearchJobsRequest, - callback: Callback< - protos.google.cloud.talent.v4.ISearchJobsResponse, - protos.google.cloud.talent.v4.ISearchJobsRequest | null | undefined, - {} | null | undefined - > - ): void; /** * Searches for jobs using the provided {@link google.cloud.talent.v4.SearchJobsRequest|SearchJobsRequest}. * @@ -1356,9 +1329,36 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.searchJobsForAlert(request); + * @example include:samples/generated/v4/job_service.search_jobs_for_alert.js + * region_tag:jobs_v4_generated_JobService_SearchJobsForAlert_async */ + searchJobsForAlert( + request?: protos.google.cloud.talent.v4.ISearchJobsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.talent.v4.ISearchJobsResponse, + protos.google.cloud.talent.v4.ISearchJobsRequest | undefined, + {} | undefined + ] + >; + searchJobsForAlert( + request: protos.google.cloud.talent.v4.ISearchJobsRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.talent.v4.ISearchJobsResponse, + protos.google.cloud.talent.v4.ISearchJobsRequest | null | undefined, + {} | null | undefined + > + ): void; + searchJobsForAlert( + request: protos.google.cloud.talent.v4.ISearchJobsRequest, + callback: Callback< + protos.google.cloud.talent.v4.ISearchJobsResponse, + protos.google.cloud.talent.v4.ISearchJobsRequest | null | undefined, + {} | null | undefined + > + ): void; searchJobsForAlert( request?: protos.google.cloud.talent.v4.ISearchJobsRequest, optionsOrCallback?: @@ -1399,6 +1399,31 @@ export class JobServiceClient { return this.innerApiCalls.searchJobsForAlert(request, options, callback); } + /** + * Begins executing a batch create jobs operation. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the tenant under which the job is created. + * + * The format is "projects/{project_id}/tenants/{tenant_id}". For example, + * "projects/foo/tenants/bar". + * @param {number[]} request.jobs + * Required. The jobs to be created. + * A maximum of 200 jobs can be created in a batch. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v4/job_service.batch_create_jobs.js + * region_tag:jobs_v4_generated_JobService_BatchCreateJobs_async + */ batchCreateJobs( request?: protos.google.cloud.talent.v4.IBatchCreateJobsRequest, options?: CallOptions @@ -1435,32 +1460,6 @@ export class JobServiceClient { {} | null | undefined > ): void; - /** - * Begins executing a batch create jobs operation. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. The resource name of the tenant under which the job is created. - * - * The format is "projects/{project_id}/tenants/{tenant_id}". For example, - * "projects/foo/tenants/bar". - * @param {number[]} request.jobs - * Required. The jobs to be created. - * A maximum of 200 jobs can be created in a batch. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * a long running operation. Its `promise()` method returns a promise - * you can `await` for. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) - * for more details and examples. - * @example - * const [operation] = await client.batchCreateJobs(request); - * const [response] = await operation.promise(); - */ batchCreateJobs( request?: protos.google.cloud.talent.v4.IBatchCreateJobsRequest, optionsOrCallback?: @@ -1518,11 +1517,8 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) * for more details and examples. - * @example - * const decodedOperation = await checkBatchCreateJobsProgress(name); - * console.log(decodedOperation.result); - * console.log(decodedOperation.done); - * console.log(decodedOperation.metadata); + * @example include:samples/generated/v4/job_service.batch_create_jobs.js + * region_tag:jobs_v4_generated_JobService_BatchCreateJobs_async */ async checkBatchCreateJobsProgress( name: string @@ -1546,42 +1542,6 @@ export class JobServiceClient { protos.google.cloud.talent.v4.BatchOperationMetadata >; } - batchUpdateJobs( - request?: protos.google.cloud.talent.v4.IBatchUpdateJobsRequest, - options?: CallOptions - ): Promise< - [ - LROperation< - protos.google.cloud.talent.v4.IBatchUpdateJobsResponse, - protos.google.cloud.talent.v4.IBatchOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, - {} | undefined - ] - >; - batchUpdateJobs( - request: protos.google.cloud.talent.v4.IBatchUpdateJobsRequest, - options: CallOptions, - callback: Callback< - LROperation< - protos.google.cloud.talent.v4.IBatchUpdateJobsResponse, - protos.google.cloud.talent.v4.IBatchOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, - {} | null | undefined - > - ): void; - batchUpdateJobs( - request: protos.google.cloud.talent.v4.IBatchUpdateJobsRequest, - callback: Callback< - LROperation< - protos.google.cloud.talent.v4.IBatchUpdateJobsResponse, - protos.google.cloud.talent.v4.IBatchOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, - {} | null | undefined - > - ): void; /** * Begins executing a batch update jobs operation. * @@ -1619,10 +1579,45 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) * for more details and examples. - * @example - * const [operation] = await client.batchUpdateJobs(request); - * const [response] = await operation.promise(); + * @example include:samples/generated/v4/job_service.batch_update_jobs.js + * region_tag:jobs_v4_generated_JobService_BatchUpdateJobs_async */ + batchUpdateJobs( + request?: protos.google.cloud.talent.v4.IBatchUpdateJobsRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.talent.v4.IBatchUpdateJobsResponse, + protos.google.cloud.talent.v4.IBatchOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + batchUpdateJobs( + request: protos.google.cloud.talent.v4.IBatchUpdateJobsRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.talent.v4.IBatchUpdateJobsResponse, + protos.google.cloud.talent.v4.IBatchOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + batchUpdateJobs( + request: protos.google.cloud.talent.v4.IBatchUpdateJobsRequest, + callback: Callback< + LROperation< + protos.google.cloud.talent.v4.IBatchUpdateJobsResponse, + protos.google.cloud.talent.v4.IBatchOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; batchUpdateJobs( request?: protos.google.cloud.talent.v4.IBatchUpdateJobsRequest, optionsOrCallback?: @@ -1680,11 +1675,8 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) * for more details and examples. - * @example - * const decodedOperation = await checkBatchUpdateJobsProgress(name); - * console.log(decodedOperation.result); - * console.log(decodedOperation.done); - * console.log(decodedOperation.metadata); + * @example include:samples/generated/v4/job_service.batch_update_jobs.js + * region_tag:jobs_v4_generated_JobService_BatchUpdateJobs_async */ async checkBatchUpdateJobsProgress( name: string @@ -1708,6 +1700,37 @@ export class JobServiceClient { protos.google.cloud.talent.v4.BatchOperationMetadata >; } + /** + * Begins executing a batch delete jobs operation. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the tenant under which the job is created. + * + * The format is "projects/{project_id}/tenants/{tenant_id}". For example, + * "projects/foo/tenants/bar". + * + * The parent of all of the jobs specified in `names` must match this field. + * @param {string[]} request.names + * The names of the jobs to delete. + * + * The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". + * For example, "projects/foo/tenants/bar/jobs/baz". + * + * A maximum of 200 jobs can be deleted in a batch. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v4/job_service.batch_delete_jobs.js + * region_tag:jobs_v4_generated_JobService_BatchDeleteJobs_async + */ batchDeleteJobs( request?: protos.google.cloud.talent.v4.IBatchDeleteJobsRequest, options?: CallOptions @@ -1744,38 +1767,6 @@ export class JobServiceClient { {} | null | undefined > ): void; - /** - * Begins executing a batch delete jobs operation. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. The resource name of the tenant under which the job is created. - * - * The format is "projects/{project_id}/tenants/{tenant_id}". For example, - * "projects/foo/tenants/bar". - * - * The parent of all of the jobs specified in `names` must match this field. - * @param {string[]} request.names - * The names of the jobs to delete. - * - * The format is "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". - * For example, "projects/foo/tenants/bar/jobs/baz". - * - * A maximum of 200 jobs can be deleted in a batch. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * a long running operation. Its `promise()` method returns a promise - * you can `await` for. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) - * for more details and examples. - * @example - * const [operation] = await client.batchDeleteJobs(request); - * const [response] = await operation.promise(); - */ batchDeleteJobs( request?: protos.google.cloud.talent.v4.IBatchDeleteJobsRequest, optionsOrCallback?: @@ -1833,11 +1824,8 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) * for more details and examples. - * @example - * const decodedOperation = await checkBatchDeleteJobsProgress(name); - * console.log(decodedOperation.result); - * console.log(decodedOperation.done); - * console.log(decodedOperation.metadata); + * @example include:samples/generated/v4/job_service.batch_delete_jobs.js + * region_tag:jobs_v4_generated_JobService_BatchDeleteJobs_async */ async checkBatchDeleteJobsProgress( name: string @@ -1861,33 +1849,6 @@ export class JobServiceClient { protos.google.cloud.talent.v4.BatchOperationMetadata >; } - listJobs( - request?: protos.google.cloud.talent.v4.IListJobsRequest, - options?: CallOptions - ): Promise< - [ - protos.google.cloud.talent.v4.IJob[], - protos.google.cloud.talent.v4.IListJobsRequest | null, - protos.google.cloud.talent.v4.IListJobsResponse - ] - >; - listJobs( - request: protos.google.cloud.talent.v4.IListJobsRequest, - options: CallOptions, - callback: PaginationCallback< - protos.google.cloud.talent.v4.IListJobsRequest, - protos.google.cloud.talent.v4.IListJobsResponse | null | undefined, - protos.google.cloud.talent.v4.IJob - > - ): void; - listJobs( - request: protos.google.cloud.talent.v4.IListJobsRequest, - callback: PaginationCallback< - protos.google.cloud.talent.v4.IListJobsRequest, - protos.google.cloud.talent.v4.IListJobsResponse | null | undefined, - protos.google.cloud.talent.v4.IJob - > - ): void; /** * Lists jobs by filter. * @@ -1948,6 +1909,33 @@ export class JobServiceClient { * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ + listJobs( + request?: protos.google.cloud.talent.v4.IListJobsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.talent.v4.IJob[], + protos.google.cloud.talent.v4.IListJobsRequest | null, + protos.google.cloud.talent.v4.IListJobsResponse + ] + >; + listJobs( + request: protos.google.cloud.talent.v4.IListJobsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.talent.v4.IListJobsRequest, + protos.google.cloud.talent.v4.IListJobsResponse | null | undefined, + protos.google.cloud.talent.v4.IJob + > + ): void; + listJobs( + request: protos.google.cloud.talent.v4.IListJobsRequest, + callback: PaginationCallback< + protos.google.cloud.talent.v4.IListJobsRequest, + protos.google.cloud.talent.v4.IListJobsResponse | null | undefined, + protos.google.cloud.talent.v4.IJob + > + ): void; listJobs( request?: protos.google.cloud.talent.v4.IListJobsRequest, optionsOrCallback?: @@ -2126,11 +2114,8 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example - * const iterable = client.listJobsAsync(request); - * for await (const response of iterable) { - * // process response - * } + * @example include:samples/generated/v4/job_service.list_jobs.js + * region_tag:jobs_v4_generated_JobService_ListJobs_async */ listJobsAsync( request?: protos.google.cloud.talent.v4.IListJobsRequest, @@ -2144,7 +2129,6 @@ export class JobServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - options = options || {}; const defaultCallSettings = this._defaults['listJobs']; const callSettings = defaultCallSettings.merge(options); this.initialize(); diff --git a/packages/google-cloud-talent/src/v4/tenant_service_client.ts b/packages/google-cloud-talent/src/v4/tenant_service_client.ts index 2080a9c7000..172f79c371f 100644 --- a/packages/google-cloud-talent/src/v4/tenant_service_client.ts +++ b/packages/google-cloud-talent/src/v4/tenant_service_client.ts @@ -329,6 +329,28 @@ export class TenantServiceClient { // ------------------- // -- Service calls -- // ------------------- + /** + * Creates a new tenant entity. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Resource name of the project under which the tenant is created. + * + * The format is "projects/{project_id}", for example, + * "projects/foo". + * @param {google.cloud.talent.v4.Tenant} request.tenant + * Required. The tenant to be created. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Tenant]{@link google.cloud.talent.v4.Tenant}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4/tenant_service.create_tenant.js + * region_tag:jobs_v4_generated_TenantService_CreateTenant_async + */ createTenant( request?: protos.google.cloud.talent.v4.ICreateTenantRequest, options?: CallOptions @@ -356,28 +378,6 @@ export class TenantServiceClient { {} | null | undefined > ): void; - /** - * Creates a new tenant entity. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. Resource name of the project under which the tenant is created. - * - * The format is "projects/{project_id}", for example, - * "projects/foo". - * @param {google.cloud.talent.v4.Tenant} request.tenant - * Required. The tenant to be created. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Tenant]{@link google.cloud.talent.v4.Tenant}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.createTenant(request); - */ createTenant( request?: protos.google.cloud.talent.v4.ICreateTenantRequest, optionsOrCallback?: @@ -417,6 +417,26 @@ export class TenantServiceClient { this.initialize(); return this.innerApiCalls.createTenant(request, options, callback); } + /** + * Retrieves specified tenant. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the tenant to be retrieved. + * + * The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/foo/tenants/bar". + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Tenant]{@link google.cloud.talent.v4.Tenant}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4/tenant_service.get_tenant.js + * region_tag:jobs_v4_generated_TenantService_GetTenant_async + */ getTenant( request?: protos.google.cloud.talent.v4.IGetTenantRequest, options?: CallOptions @@ -444,26 +464,6 @@ export class TenantServiceClient { {} | null | undefined > ): void; - /** - * Retrieves specified tenant. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The resource name of the tenant to be retrieved. - * - * The format is "projects/{project_id}/tenants/{tenant_id}", for example, - * "projects/foo/tenants/bar". - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Tenant]{@link google.cloud.talent.v4.Tenant}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.getTenant(request); - */ getTenant( request?: protos.google.cloud.talent.v4.IGetTenantRequest, optionsOrCallback?: @@ -503,6 +503,31 @@ export class TenantServiceClient { this.initialize(); return this.innerApiCalls.getTenant(request, options, callback); } + /** + * Updates specified tenant. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.talent.v4.Tenant} request.tenant + * Required. The tenant resource to replace the current resource in the system. + * @param {google.protobuf.FieldMask} request.updateMask + * Strongly recommended for the best service experience. + * + * If {@link google.cloud.talent.v4.UpdateTenantRequest.update_mask|update_mask} is provided, only the specified fields in + * {@link google.cloud.talent.v4.UpdateTenantRequest.tenant|tenant} are updated. Otherwise all the fields are updated. + * + * A field mask to specify the tenant fields to be updated. Only + * top level fields of {@link google.cloud.talent.v4.Tenant|Tenant} are supported. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Tenant]{@link google.cloud.talent.v4.Tenant}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4/tenant_service.update_tenant.js + * region_tag:jobs_v4_generated_TenantService_UpdateTenant_async + */ updateTenant( request?: protos.google.cloud.talent.v4.IUpdateTenantRequest, options?: CallOptions @@ -530,31 +555,6 @@ export class TenantServiceClient { {} | null | undefined > ): void; - /** - * Updates specified tenant. - * - * @param {Object} request - * The request object that will be sent. - * @param {google.cloud.talent.v4.Tenant} request.tenant - * Required. The tenant resource to replace the current resource in the system. - * @param {google.protobuf.FieldMask} request.updateMask - * Strongly recommended for the best service experience. - * - * If {@link google.cloud.talent.v4.UpdateTenantRequest.update_mask|update_mask} is provided, only the specified fields in - * {@link google.cloud.talent.v4.UpdateTenantRequest.tenant|tenant} are updated. Otherwise all the fields are updated. - * - * A field mask to specify the tenant fields to be updated. Only - * top level fields of {@link google.cloud.talent.v4.Tenant|Tenant} are supported. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Tenant]{@link google.cloud.talent.v4.Tenant}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.updateTenant(request); - */ updateTenant( request?: protos.google.cloud.talent.v4.IUpdateTenantRequest, optionsOrCallback?: @@ -594,6 +594,26 @@ export class TenantServiceClient { this.initialize(); return this.innerApiCalls.updateTenant(request, options, callback); } + /** + * Deletes specified tenant. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the tenant to be deleted. + * + * The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/foo/tenants/bar". + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4/tenant_service.delete_tenant.js + * region_tag:jobs_v4_generated_TenantService_DeleteTenant_async + */ deleteTenant( request?: protos.google.cloud.talent.v4.IDeleteTenantRequest, options?: CallOptions @@ -621,26 +641,6 @@ export class TenantServiceClient { {} | null | undefined > ): void; - /** - * Deletes specified tenant. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The resource name of the tenant to be deleted. - * - * The format is "projects/{project_id}/tenants/{tenant_id}", for example, - * "projects/foo/tenants/bar". - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.deleteTenant(request); - */ deleteTenant( request?: protos.google.cloud.talent.v4.IDeleteTenantRequest, optionsOrCallback?: @@ -681,33 +681,6 @@ export class TenantServiceClient { return this.innerApiCalls.deleteTenant(request, options, callback); } - listTenants( - request?: protos.google.cloud.talent.v4.IListTenantsRequest, - options?: CallOptions - ): Promise< - [ - protos.google.cloud.talent.v4.ITenant[], - protos.google.cloud.talent.v4.IListTenantsRequest | null, - protos.google.cloud.talent.v4.IListTenantsResponse - ] - >; - listTenants( - request: protos.google.cloud.talent.v4.IListTenantsRequest, - options: CallOptions, - callback: PaginationCallback< - protos.google.cloud.talent.v4.IListTenantsRequest, - protos.google.cloud.talent.v4.IListTenantsResponse | null | undefined, - protos.google.cloud.talent.v4.ITenant - > - ): void; - listTenants( - request: protos.google.cloud.talent.v4.IListTenantsRequest, - callback: PaginationCallback< - protos.google.cloud.talent.v4.IListTenantsRequest, - protos.google.cloud.talent.v4.IListTenantsResponse | null | undefined, - protos.google.cloud.talent.v4.ITenant - > - ): void; /** * Lists all tenants associated with the project. * @@ -736,6 +709,33 @@ export class TenantServiceClient { * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ + listTenants( + request?: protos.google.cloud.talent.v4.IListTenantsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.talent.v4.ITenant[], + protos.google.cloud.talent.v4.IListTenantsRequest | null, + protos.google.cloud.talent.v4.IListTenantsResponse + ] + >; + listTenants( + request: protos.google.cloud.talent.v4.IListTenantsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.talent.v4.IListTenantsRequest, + protos.google.cloud.talent.v4.IListTenantsResponse | null | undefined, + protos.google.cloud.talent.v4.ITenant + > + ): void; + listTenants( + request: protos.google.cloud.talent.v4.IListTenantsRequest, + callback: PaginationCallback< + protos.google.cloud.talent.v4.IListTenantsRequest, + protos.google.cloud.talent.v4.IListTenantsResponse | null | undefined, + protos.google.cloud.talent.v4.ITenant + > + ): void; listTenants( request?: protos.google.cloud.talent.v4.IListTenantsRequest, optionsOrCallback?: @@ -850,11 +850,8 @@ export class TenantServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example - * const iterable = client.listTenantsAsync(request); - * for await (const response of iterable) { - * // process response - * } + * @example include:samples/generated/v4/tenant_service.list_tenants.js + * region_tag:jobs_v4_generated_TenantService_ListTenants_async */ listTenantsAsync( request?: protos.google.cloud.talent.v4.IListTenantsRequest, @@ -868,7 +865,6 @@ export class TenantServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - options = options || {}; const defaultCallSettings = this._defaults['listTenants']; const callSettings = defaultCallSettings.merge(options); this.initialize(); diff --git a/packages/google-cloud-talent/src/v4beta1/application_service_client.ts b/packages/google-cloud-talent/src/v4beta1/application_service_client.ts index 93b9c7660ff..17cdcf87ea0 100644 --- a/packages/google-cloud-talent/src/v4beta1/application_service_client.ts +++ b/packages/google-cloud-talent/src/v4beta1/application_service_client.ts @@ -339,6 +339,29 @@ export class ApplicationServiceClient { // ------------------- // -- Service calls -- // ------------------- + /** + * Creates a new application entity. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Resource name of the profile under which the application is created. + * + * The format is + * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". + * For example, "projects/foo/tenants/bar/profiles/baz". + * @param {google.cloud.talent.v4beta1.Application} request.application + * Required. The application to be created. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Application]{@link google.cloud.talent.v4beta1.Application}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4beta1/application_service.create_application.js + * region_tag:jobs_v4beta1_generated_ApplicationService_CreateApplication_async + */ createApplication( request?: protos.google.cloud.talent.v4beta1.ICreateApplicationRequest, options?: CallOptions @@ -370,29 +393,6 @@ export class ApplicationServiceClient { {} | null | undefined > ): void; - /** - * Creates a new application entity. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. Resource name of the profile under which the application is created. - * - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". - * For example, "projects/foo/tenants/bar/profiles/baz". - * @param {google.cloud.talent.v4beta1.Application} request.application - * Required. The application to be created. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Application]{@link google.cloud.talent.v4beta1.Application}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.createApplication(request); - */ createApplication( request?: protos.google.cloud.talent.v4beta1.ICreateApplicationRequest, optionsOrCallback?: @@ -436,6 +436,27 @@ export class ApplicationServiceClient { this.initialize(); return this.innerApiCalls.createApplication(request, options, callback); } + /** + * Retrieves specified application. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the application to be retrieved. + * + * The format is + * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". + * For example, "projects/foo/tenants/bar/profiles/baz/applications/qux". + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Application]{@link google.cloud.talent.v4beta1.Application}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4beta1/application_service.get_application.js + * region_tag:jobs_v4beta1_generated_ApplicationService_GetApplication_async + */ getApplication( request?: protos.google.cloud.talent.v4beta1.IGetApplicationRequest, options?: CallOptions @@ -467,27 +488,6 @@ export class ApplicationServiceClient { {} | null | undefined > ): void; - /** - * Retrieves specified application. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The resource name of the application to be retrieved. - * - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". - * For example, "projects/foo/tenants/bar/profiles/baz/applications/qux". - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Application]{@link google.cloud.talent.v4beta1.Application}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.getApplication(request); - */ getApplication( request?: protos.google.cloud.talent.v4beta1.IGetApplicationRequest, optionsOrCallback?: @@ -531,6 +531,31 @@ export class ApplicationServiceClient { this.initialize(); return this.innerApiCalls.getApplication(request, options, callback); } + /** + * Updates specified application. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.talent.v4beta1.Application} request.application + * Required. The application resource to replace the current resource in the system. + * @param {google.protobuf.FieldMask} request.updateMask + * Strongly recommended for the best service experience. + * + * If {@link google.cloud.talent.v4beta1.UpdateApplicationRequest.update_mask|update_mask} is provided, only the specified fields in + * {@link google.cloud.talent.v4beta1.UpdateApplicationRequest.application|application} are updated. Otherwise all the fields are updated. + * + * A field mask to specify the application fields to be updated. Only + * top level fields of {@link google.cloud.talent.v4beta1.Application|Application} are supported. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Application]{@link google.cloud.talent.v4beta1.Application}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4beta1/application_service.update_application.js + * region_tag:jobs_v4beta1_generated_ApplicationService_UpdateApplication_async + */ updateApplication( request?: protos.google.cloud.talent.v4beta1.IUpdateApplicationRequest, options?: CallOptions @@ -562,31 +587,6 @@ export class ApplicationServiceClient { {} | null | undefined > ): void; - /** - * Updates specified application. - * - * @param {Object} request - * The request object that will be sent. - * @param {google.cloud.talent.v4beta1.Application} request.application - * Required. The application resource to replace the current resource in the system. - * @param {google.protobuf.FieldMask} request.updateMask - * Strongly recommended for the best service experience. - * - * If {@link google.cloud.talent.v4beta1.UpdateApplicationRequest.update_mask|update_mask} is provided, only the specified fields in - * {@link google.cloud.talent.v4beta1.UpdateApplicationRequest.application|application} are updated. Otherwise all the fields are updated. - * - * A field mask to specify the application fields to be updated. Only - * top level fields of {@link google.cloud.talent.v4beta1.Application|Application} are supported. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Application]{@link google.cloud.talent.v4beta1.Application}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.updateApplication(request); - */ updateApplication( request?: protos.google.cloud.talent.v4beta1.IUpdateApplicationRequest, optionsOrCallback?: @@ -630,6 +630,27 @@ export class ApplicationServiceClient { this.initialize(); return this.innerApiCalls.updateApplication(request, options, callback); } + /** + * Deletes specified application. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the application to be deleted. + * + * The format is + * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". + * For example, "projects/foo/tenants/bar/profiles/baz/applications/qux". + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4beta1/application_service.delete_application.js + * region_tag:jobs_v4beta1_generated_ApplicationService_DeleteApplication_async + */ deleteApplication( request?: protos.google.cloud.talent.v4beta1.IDeleteApplicationRequest, options?: CallOptions @@ -661,27 +682,6 @@ export class ApplicationServiceClient { {} | null | undefined > ): void; - /** - * Deletes specified application. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The resource name of the application to be deleted. - * - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}/applications/{application_id}". - * For example, "projects/foo/tenants/bar/profiles/baz/applications/qux". - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.deleteApplication(request); - */ deleteApplication( request?: protos.google.cloud.talent.v4beta1.IDeleteApplicationRequest, optionsOrCallback?: @@ -726,6 +726,35 @@ export class ApplicationServiceClient { return this.innerApiCalls.deleteApplication(request, options, callback); } + /** + * Lists all applications associated with the profile. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Resource name of the profile under which the application is created. + * + * The format is + * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for + * example, "projects/foo/tenants/bar/profiles/baz". + * @param {string} request.pageToken + * The starting indicator from which to return results. + * @param {number} request.pageSize + * The maximum number of applications to be returned, at most 100. + * Default is 100 if a non-positive number is provided. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [Application]{@link google.cloud.talent.v4beta1.Application}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listApplicationsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ listApplications( request?: protos.google.cloud.talent.v4beta1.IListApplicationsRequest, options?: CallOptions @@ -757,35 +786,6 @@ export class ApplicationServiceClient { protos.google.cloud.talent.v4beta1.IApplication > ): void; - /** - * Lists all applications associated with the profile. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. Resource name of the profile under which the application is created. - * - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}", for - * example, "projects/foo/tenants/bar/profiles/baz". - * @param {string} request.pageToken - * The starting indicator from which to return results. - * @param {number} request.pageSize - * The maximum number of applications to be returned, at most 100. - * Default is 100 if a non-positive number is provided. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [Application]{@link google.cloud.talent.v4beta1.Application}. - * The client library will perform auto-pagination by default: it will call the API as many - * times as needed and will merge results from all the pages into this array. - * Note that it can affect your quota. - * We recommend using `listApplicationsAsync()` - * method described below for async iteration which you can stop as needed. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) - * for more details and examples. - */ listApplications( request?: protos.google.cloud.talent.v4beta1.IListApplicationsRequest, optionsOrCallback?: @@ -906,11 +906,8 @@ export class ApplicationServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example - * const iterable = client.listApplicationsAsync(request); - * for await (const response of iterable) { - * // process response - * } + * @example include:samples/generated/v4beta1/application_service.list_applications.js + * region_tag:jobs_v4beta1_generated_ApplicationService_ListApplications_async */ listApplicationsAsync( request?: protos.google.cloud.talent.v4beta1.IListApplicationsRequest, @@ -924,7 +921,6 @@ export class ApplicationServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - options = options || {}; const defaultCallSettings = this._defaults['listApplications']; const callSettings = defaultCallSettings.merge(options); this.initialize(); diff --git a/packages/google-cloud-talent/src/v4beta1/company_service_client.ts b/packages/google-cloud-talent/src/v4beta1/company_service_client.ts index c949292239a..39918431d93 100644 --- a/packages/google-cloud-talent/src/v4beta1/company_service_client.ts +++ b/packages/google-cloud-talent/src/v4beta1/company_service_client.ts @@ -341,6 +341,29 @@ export class CompanyServiceClient { // ------------------- // -- Service calls -- // ------------------- + /** + * Creates a new company entity. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Resource name of the tenant under which the company is created. + * + * The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant + * is created, for example, "projects/foo". + * @param {google.cloud.talent.v4beta1.Company} request.company + * Required. The company to be created. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Company]{@link google.cloud.talent.v4beta1.Company}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4beta1/company_service.create_company.js + * region_tag:jobs_v4beta1_generated_CompanyService_CreateCompany_async + */ createCompany( request?: protos.google.cloud.talent.v4beta1.ICreateCompanyRequest, options?: CallOptions @@ -372,29 +395,6 @@ export class CompanyServiceClient { {} | null | undefined > ): void; - /** - * Creates a new company entity. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. Resource name of the tenant under which the company is created. - * - * The format is "projects/{project_id}/tenants/{tenant_id}", for example, - * "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant - * is created, for example, "projects/foo". - * @param {google.cloud.talent.v4beta1.Company} request.company - * Required. The company to be created. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Company]{@link google.cloud.talent.v4beta1.Company}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.createCompany(request); - */ createCompany( request?: protos.google.cloud.talent.v4beta1.ICreateCompanyRequest, optionsOrCallback?: @@ -438,6 +438,30 @@ export class CompanyServiceClient { this.initialize(); return this.innerApiCalls.createCompany(request, options, callback); } + /** + * Retrieves specified company. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the company to be retrieved. + * + * The format is + * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/api-test-project/tenants/foo/companies/bar". + * + * If tenant id is unspecified, the default tenant is used, for + * example, "projects/api-test-project/companies/bar". + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Company]{@link google.cloud.talent.v4beta1.Company}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4beta1/company_service.get_company.js + * region_tag:jobs_v4beta1_generated_CompanyService_GetCompany_async + */ getCompany( request?: protos.google.cloud.talent.v4beta1.IGetCompanyRequest, options?: CallOptions @@ -465,30 +489,6 @@ export class CompanyServiceClient { {} | null | undefined > ): void; - /** - * Retrieves specified company. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The resource name of the company to be retrieved. - * - * The format is - * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for - * example, "projects/api-test-project/tenants/foo/companies/bar". - * - * If tenant id is unspecified, the default tenant is used, for - * example, "projects/api-test-project/companies/bar". - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Company]{@link google.cloud.talent.v4beta1.Company}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.getCompany(request); - */ getCompany( request?: protos.google.cloud.talent.v4beta1.IGetCompanyRequest, optionsOrCallback?: @@ -530,6 +530,31 @@ export class CompanyServiceClient { this.initialize(); return this.innerApiCalls.getCompany(request, options, callback); } + /** + * Updates specified company. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.talent.v4beta1.Company} request.company + * Required. The company resource to replace the current resource in the system. + * @param {google.protobuf.FieldMask} request.updateMask + * Strongly recommended for the best service experience. + * + * If {@link google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask|update_mask} is provided, only the specified fields in + * {@link google.cloud.talent.v4beta1.UpdateCompanyRequest.company|company} are updated. Otherwise all the fields are updated. + * + * A field mask to specify the company fields to be updated. Only + * top level fields of {@link google.cloud.talent.v4beta1.Company|Company} are supported. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Company]{@link google.cloud.talent.v4beta1.Company}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4beta1/company_service.update_company.js + * region_tag:jobs_v4beta1_generated_CompanyService_UpdateCompany_async + */ updateCompany( request?: protos.google.cloud.talent.v4beta1.IUpdateCompanyRequest, options?: CallOptions @@ -561,31 +586,6 @@ export class CompanyServiceClient { {} | null | undefined > ): void; - /** - * Updates specified company. - * - * @param {Object} request - * The request object that will be sent. - * @param {google.cloud.talent.v4beta1.Company} request.company - * Required. The company resource to replace the current resource in the system. - * @param {google.protobuf.FieldMask} request.updateMask - * Strongly recommended for the best service experience. - * - * If {@link google.cloud.talent.v4beta1.UpdateCompanyRequest.update_mask|update_mask} is provided, only the specified fields in - * {@link google.cloud.talent.v4beta1.UpdateCompanyRequest.company|company} are updated. Otherwise all the fields are updated. - * - * A field mask to specify the company fields to be updated. Only - * top level fields of {@link google.cloud.talent.v4beta1.Company|Company} are supported. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Company]{@link google.cloud.talent.v4beta1.Company}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.updateCompany(request); - */ updateCompany( request?: protos.google.cloud.talent.v4beta1.IUpdateCompanyRequest, optionsOrCallback?: @@ -629,6 +629,31 @@ export class CompanyServiceClient { this.initialize(); return this.innerApiCalls.updateCompany(request, options, callback); } + /** + * Deletes specified company. + * Prerequisite: The company has no jobs associated with it. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the company to be deleted. + * + * The format is + * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for + * example, "projects/foo/tenants/bar/companies/baz". + * + * If tenant id is unspecified, the default tenant is used, for + * example, "projects/foo/companies/bar". + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4beta1/company_service.delete_company.js + * region_tag:jobs_v4beta1_generated_CompanyService_DeleteCompany_async + */ deleteCompany( request?: protos.google.cloud.talent.v4beta1.IDeleteCompanyRequest, options?: CallOptions @@ -660,31 +685,6 @@ export class CompanyServiceClient { {} | null | undefined > ): void; - /** - * Deletes specified company. - * Prerequisite: The company has no jobs associated with it. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The resource name of the company to be deleted. - * - * The format is - * "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}", for - * example, "projects/foo/tenants/bar/companies/baz". - * - * If tenant id is unspecified, the default tenant is used, for - * example, "projects/foo/companies/bar". - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.deleteCompany(request); - */ deleteCompany( request?: protos.google.cloud.talent.v4beta1.IDeleteCompanyRequest, optionsOrCallback?: @@ -729,37 +729,6 @@ export class CompanyServiceClient { return this.innerApiCalls.deleteCompany(request, options, callback); } - listCompanies( - request?: protos.google.cloud.talent.v4beta1.IListCompaniesRequest, - options?: CallOptions - ): Promise< - [ - protos.google.cloud.talent.v4beta1.ICompany[], - protos.google.cloud.talent.v4beta1.IListCompaniesRequest | null, - protos.google.cloud.talent.v4beta1.IListCompaniesResponse - ] - >; - listCompanies( - request: protos.google.cloud.talent.v4beta1.IListCompaniesRequest, - options: CallOptions, - callback: PaginationCallback< - protos.google.cloud.talent.v4beta1.IListCompaniesRequest, - | protos.google.cloud.talent.v4beta1.IListCompaniesResponse - | null - | undefined, - protos.google.cloud.talent.v4beta1.ICompany - > - ): void; - listCompanies( - request: protos.google.cloud.talent.v4beta1.IListCompaniesRequest, - callback: PaginationCallback< - protos.google.cloud.talent.v4beta1.IListCompaniesRequest, - | protos.google.cloud.talent.v4beta1.IListCompaniesResponse - | null - | undefined, - protos.google.cloud.talent.v4beta1.ICompany - > - ): void; /** * Lists all companies associated with the project. * @@ -798,6 +767,37 @@ export class CompanyServiceClient { * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ + listCompanies( + request?: protos.google.cloud.talent.v4beta1.IListCompaniesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.talent.v4beta1.ICompany[], + protos.google.cloud.talent.v4beta1.IListCompaniesRequest | null, + protos.google.cloud.talent.v4beta1.IListCompaniesResponse + ] + >; + listCompanies( + request: protos.google.cloud.talent.v4beta1.IListCompaniesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.talent.v4beta1.IListCompaniesRequest, + | protos.google.cloud.talent.v4beta1.IListCompaniesResponse + | null + | undefined, + protos.google.cloud.talent.v4beta1.ICompany + > + ): void; + listCompanies( + request: protos.google.cloud.talent.v4beta1.IListCompaniesRequest, + callback: PaginationCallback< + protos.google.cloud.talent.v4beta1.IListCompaniesRequest, + | protos.google.cloud.talent.v4beta1.IListCompaniesResponse + | null + | undefined, + protos.google.cloud.talent.v4beta1.ICompany + > + ): void; listCompanies( request?: protos.google.cloud.talent.v4beta1.IListCompaniesRequest, optionsOrCallback?: @@ -936,11 +936,8 @@ export class CompanyServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example - * const iterable = client.listCompaniesAsync(request); - * for await (const response of iterable) { - * // process response - * } + * @example include:samples/generated/v4beta1/company_service.list_companies.js + * region_tag:jobs_v4beta1_generated_CompanyService_ListCompanies_async */ listCompaniesAsync( request?: protos.google.cloud.talent.v4beta1.IListCompaniesRequest, @@ -954,7 +951,6 @@ export class CompanyServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - options = options || {}; const defaultCallSettings = this._defaults['listCompanies']; const callSettings = defaultCallSettings.merge(options); this.initialize(); diff --git a/packages/google-cloud-talent/src/v4beta1/completion_client.ts b/packages/google-cloud-talent/src/v4beta1/completion_client.ts index 005d5b37d6a..66acdbcd5c8 100644 --- a/packages/google-cloud-talent/src/v4beta1/completion_client.ts +++ b/packages/google-cloud-talent/src/v4beta1/completion_client.ts @@ -315,37 +315,6 @@ export class CompletionClient { // ------------------- // -- Service calls -- // ------------------- - completeQuery( - request?: protos.google.cloud.talent.v4beta1.ICompleteQueryRequest, - options?: CallOptions - ): Promise< - [ - protos.google.cloud.talent.v4beta1.ICompleteQueryResponse, - protos.google.cloud.talent.v4beta1.ICompleteQueryRequest | undefined, - {} | undefined - ] - >; - completeQuery( - request: protos.google.cloud.talent.v4beta1.ICompleteQueryRequest, - options: CallOptions, - callback: Callback< - protos.google.cloud.talent.v4beta1.ICompleteQueryResponse, - | protos.google.cloud.talent.v4beta1.ICompleteQueryRequest - | null - | undefined, - {} | null | undefined - > - ): void; - completeQuery( - request: protos.google.cloud.talent.v4beta1.ICompleteQueryRequest, - callback: Callback< - protos.google.cloud.talent.v4beta1.ICompleteQueryResponse, - | protos.google.cloud.talent.v4beta1.ICompleteQueryRequest - | null - | undefined, - {} | null | undefined - > - ): void; /** * Completes the specified prefix with keyword suggestions. * Intended for use by a job search auto-complete search box. @@ -395,9 +364,40 @@ export class CompletionClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.completeQuery(request); + * @example include:samples/generated/v4beta1/completion.complete_query.js + * region_tag:jobs_v4beta1_generated_Completion_CompleteQuery_async */ + completeQuery( + request?: protos.google.cloud.talent.v4beta1.ICompleteQueryRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.talent.v4beta1.ICompleteQueryResponse, + protos.google.cloud.talent.v4beta1.ICompleteQueryRequest | undefined, + {} | undefined + ] + >; + completeQuery( + request: protos.google.cloud.talent.v4beta1.ICompleteQueryRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.talent.v4beta1.ICompleteQueryResponse, + | protos.google.cloud.talent.v4beta1.ICompleteQueryRequest + | null + | undefined, + {} | null | undefined + > + ): void; + completeQuery( + request: protos.google.cloud.talent.v4beta1.ICompleteQueryRequest, + callback: Callback< + protos.google.cloud.talent.v4beta1.ICompleteQueryResponse, + | protos.google.cloud.talent.v4beta1.ICompleteQueryRequest + | null + | undefined, + {} | null | undefined + > + ): void; completeQuery( request?: protos.google.cloud.talent.v4beta1.ICompleteQueryRequest, optionsOrCallback?: diff --git a/packages/google-cloud-talent/src/v4beta1/event_service_client.ts b/packages/google-cloud-talent/src/v4beta1/event_service_client.ts index 112f6a279cd..65a8151562a 100644 --- a/packages/google-cloud-talent/src/v4beta1/event_service_client.ts +++ b/packages/google-cloud-talent/src/v4beta1/event_service_client.ts @@ -315,6 +315,36 @@ export class EventServiceClient { // ------------------- // -- Service calls -- // ------------------- + /** + * Report events issued when end user interacts with customer's application + * that uses Cloud Talent Solution. You may inspect the created events in + * [self service + * tools](https://console.cloud.google.com/talent-solution/overview). + * [Learn + * more](https://cloud.google.com/talent-solution/docs/management-tools) + * about self service tools. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Resource name of the tenant under which the event is created. + * + * The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant + * is created, for example, "projects/foo". + * @param {google.cloud.talent.v4beta1.ClientEvent} request.clientEvent + * Required. Events issued when end user interacts with customer's application that + * uses Cloud Talent Solution. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [ClientEvent]{@link google.cloud.talent.v4beta1.ClientEvent}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4beta1/event_service.create_client_event.js + * region_tag:jobs_v4beta1_generated_EventService_CreateClientEvent_async + */ createClientEvent( request?: protos.google.cloud.talent.v4beta1.ICreateClientEventRequest, options?: CallOptions @@ -346,36 +376,6 @@ export class EventServiceClient { {} | null | undefined > ): void; - /** - * Report events issued when end user interacts with customer's application - * that uses Cloud Talent Solution. You may inspect the created events in - * [self service - * tools](https://console.cloud.google.com/talent-solution/overview). - * [Learn - * more](https://cloud.google.com/talent-solution/docs/management-tools) - * about self service tools. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. Resource name of the tenant under which the event is created. - * - * The format is "projects/{project_id}/tenants/{tenant_id}", for example, - * "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant - * is created, for example, "projects/foo". - * @param {google.cloud.talent.v4beta1.ClientEvent} request.clientEvent - * Required. Events issued when end user interacts with customer's application that - * uses Cloud Talent Solution. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [ClientEvent]{@link google.cloud.talent.v4beta1.ClientEvent}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.createClientEvent(request); - */ createClientEvent( request?: protos.google.cloud.talent.v4beta1.ICreateClientEventRequest, optionsOrCallback?: diff --git a/packages/google-cloud-talent/src/v4beta1/job_service_client.ts b/packages/google-cloud-talent/src/v4beta1/job_service_client.ts index e359afec201..b6e54da53ca 100644 --- a/packages/google-cloud-talent/src/v4beta1/job_service_client.ts +++ b/packages/google-cloud-talent/src/v4beta1/job_service_client.ts @@ -389,6 +389,32 @@ export class JobServiceClient { // ------------------- // -- Service calls -- // ------------------- + /** + * Creates a new job. + * + * Typically, the job becomes searchable within 10 seconds, but it may take + * up to 5 minutes. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the tenant under which the job is created. + * + * The format is "projects/{project_id}/tenants/{tenant_id}". For example, + * "projects/foo/tenant/bar". If tenant id is unspecified a default tenant + * is created. For example, "projects/foo". + * @param {google.cloud.talent.v4beta1.Job} request.job + * Required. The Job to be created. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Job]{@link google.cloud.talent.v4beta1.Job}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4beta1/job_service.create_job.js + * region_tag:jobs_v4beta1_generated_JobService_CreateJob_async + */ createJob( request?: protos.google.cloud.talent.v4beta1.ICreateJobRequest, options?: CallOptions @@ -416,32 +442,6 @@ export class JobServiceClient { {} | null | undefined > ): void; - /** - * Creates a new job. - * - * Typically, the job becomes searchable within 10 seconds, but it may take - * up to 5 minutes. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. The resource name of the tenant under which the job is created. - * - * The format is "projects/{project_id}/tenants/{tenant_id}". For example, - * "projects/foo/tenant/bar". If tenant id is unspecified a default tenant - * is created. For example, "projects/foo". - * @param {google.cloud.talent.v4beta1.Job} request.job - * Required. The Job to be created. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Job]{@link google.cloud.talent.v4beta1.Job}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.createJob(request); - */ createJob( request?: protos.google.cloud.talent.v4beta1.ICreateJobRequest, optionsOrCallback?: @@ -483,6 +483,31 @@ export class JobServiceClient { this.initialize(); return this.innerApiCalls.createJob(request, options, callback); } + /** + * Retrieves the specified job, whose status is OPEN or recently EXPIRED + * within the last 90 days. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the job to retrieve. + * + * The format is + * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For + * example, "projects/foo/tenants/bar/jobs/baz". + * + * If tenant id is unspecified, the default tenant is used. For + * example, "projects/foo/jobs/bar". + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Job]{@link google.cloud.talent.v4beta1.Job}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4beta1/job_service.get_job.js + * region_tag:jobs_v4beta1_generated_JobService_GetJob_async + */ getJob( request?: protos.google.cloud.talent.v4beta1.IGetJobRequest, options?: CallOptions @@ -510,31 +535,6 @@ export class JobServiceClient { {} | null | undefined > ): void; - /** - * Retrieves the specified job, whose status is OPEN or recently EXPIRED - * within the last 90 days. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The resource name of the job to retrieve. - * - * The format is - * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For - * example, "projects/foo/tenants/bar/jobs/baz". - * - * If tenant id is unspecified, the default tenant is used. For - * example, "projects/foo/jobs/bar". - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Job]{@link google.cloud.talent.v4beta1.Job}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.getJob(request); - */ getJob( request?: protos.google.cloud.talent.v4beta1.IGetJobRequest, optionsOrCallback?: @@ -574,6 +574,34 @@ export class JobServiceClient { this.initialize(); return this.innerApiCalls.getJob(request, options, callback); } + /** + * Updates specified job. + * + * Typically, updated contents become visible in search results within 10 + * seconds, but it may take up to 5 minutes. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.talent.v4beta1.Job} request.job + * Required. The Job to be updated. + * @param {google.protobuf.FieldMask} request.updateMask + * Strongly recommended for the best service experience. + * + * If {@link google.cloud.talent.v4beta1.UpdateJobRequest.update_mask|update_mask} is provided, only the specified fields in + * {@link google.cloud.talent.v4beta1.UpdateJobRequest.job|job} are updated. Otherwise all the fields are updated. + * + * A field mask to restrict the fields that are updated. Only + * top level fields of {@link google.cloud.talent.v4beta1.Job|Job} are supported. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Job]{@link google.cloud.talent.v4beta1.Job}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4beta1/job_service.update_job.js + * region_tag:jobs_v4beta1_generated_JobService_UpdateJob_async + */ updateJob( request?: protos.google.cloud.talent.v4beta1.IUpdateJobRequest, options?: CallOptions @@ -601,34 +629,6 @@ export class JobServiceClient { {} | null | undefined > ): void; - /** - * Updates specified job. - * - * Typically, updated contents become visible in search results within 10 - * seconds, but it may take up to 5 minutes. - * - * @param {Object} request - * The request object that will be sent. - * @param {google.cloud.talent.v4beta1.Job} request.job - * Required. The Job to be updated. - * @param {google.protobuf.FieldMask} request.updateMask - * Strongly recommended for the best service experience. - * - * If {@link google.cloud.talent.v4beta1.UpdateJobRequest.update_mask|update_mask} is provided, only the specified fields in - * {@link google.cloud.talent.v4beta1.UpdateJobRequest.job|job} are updated. Otherwise all the fields are updated. - * - * A field mask to restrict the fields that are updated. Only - * top level fields of {@link google.cloud.talent.v4beta1.Job|Job} are supported. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Job]{@link google.cloud.talent.v4beta1.Job}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.updateJob(request); - */ updateJob( request?: protos.google.cloud.talent.v4beta1.IUpdateJobRequest, optionsOrCallback?: @@ -670,6 +670,33 @@ export class JobServiceClient { this.initialize(); return this.innerApiCalls.updateJob(request, options, callback); } + /** + * Deletes the specified job. + * + * Typically, the job becomes unsearchable within 10 seconds, but it may take + * up to 5 minutes. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the job to be deleted. + * + * The format is + * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For + * example, "projects/foo/tenants/bar/jobs/baz". + * + * If tenant id is unspecified, the default tenant is used. For + * example, "projects/foo/jobs/bar". + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4beta1/job_service.delete_job.js + * region_tag:jobs_v4beta1_generated_JobService_DeleteJob_async + */ deleteJob( request?: protos.google.cloud.talent.v4beta1.IDeleteJobRequest, options?: CallOptions @@ -697,33 +724,6 @@ export class JobServiceClient { {} | null | undefined > ): void; - /** - * Deletes the specified job. - * - * Typically, the job becomes unsearchable within 10 seconds, but it may take - * up to 5 minutes. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The resource name of the job to be deleted. - * - * The format is - * "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For - * example, "projects/foo/tenants/bar/jobs/baz". - * - * If tenant id is unspecified, the default tenant is used. For - * example, "projects/foo/jobs/bar". - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.deleteJob(request); - */ deleteJob( request?: protos.google.cloud.talent.v4beta1.IDeleteJobRequest, optionsOrCallback?: @@ -765,37 +765,6 @@ export class JobServiceClient { this.initialize(); return this.innerApiCalls.deleteJob(request, options, callback); } - batchDeleteJobs( - request?: protos.google.cloud.talent.v4beta1.IBatchDeleteJobsRequest, - options?: CallOptions - ): Promise< - [ - protos.google.protobuf.IEmpty, - protos.google.cloud.talent.v4beta1.IBatchDeleteJobsRequest | undefined, - {} | undefined - ] - >; - batchDeleteJobs( - request: protos.google.cloud.talent.v4beta1.IBatchDeleteJobsRequest, - options: CallOptions, - callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.cloud.talent.v4beta1.IBatchDeleteJobsRequest - | null - | undefined, - {} | null | undefined - > - ): void; - batchDeleteJobs( - request: protos.google.cloud.talent.v4beta1.IBatchDeleteJobsRequest, - callback: Callback< - protos.google.protobuf.IEmpty, - | protos.google.cloud.talent.v4beta1.IBatchDeleteJobsRequest - | null - | undefined, - {} | null | undefined - > - ): void; /** * Deletes a list of {@link google.cloud.talent.v4beta1.Job|Job}s by filter. * @@ -826,9 +795,40 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.batchDeleteJobs(request); + * @example include:samples/generated/v4beta1/job_service.batch_delete_jobs.js + * region_tag:jobs_v4beta1_generated_JobService_BatchDeleteJobs_async */ + batchDeleteJobs( + request?: protos.google.cloud.talent.v4beta1.IBatchDeleteJobsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.protobuf.IEmpty, + protos.google.cloud.talent.v4beta1.IBatchDeleteJobsRequest | undefined, + {} | undefined + ] + >; + batchDeleteJobs( + request: protos.google.cloud.talent.v4beta1.IBatchDeleteJobsRequest, + options: CallOptions, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.talent.v4beta1.IBatchDeleteJobsRequest + | null + | undefined, + {} | null | undefined + > + ): void; + batchDeleteJobs( + request: protos.google.cloud.talent.v4beta1.IBatchDeleteJobsRequest, + callback: Callback< + protos.google.protobuf.IEmpty, + | protos.google.cloud.talent.v4beta1.IBatchDeleteJobsRequest + | null + | undefined, + {} | null | undefined + > + ): void; batchDeleteJobs( request?: protos.google.cloud.talent.v4beta1.IBatchDeleteJobsRequest, optionsOrCallback?: @@ -870,35 +870,8 @@ export class JobServiceClient { parent: request.parent || '', }); this.initialize(); - return this.innerApiCalls.batchDeleteJobs(request, options, callback); - } - searchJobs( - request?: protos.google.cloud.talent.v4beta1.ISearchJobsRequest, - options?: CallOptions - ): Promise< - [ - protos.google.cloud.talent.v4beta1.ISearchJobsResponse, - protos.google.cloud.talent.v4beta1.ISearchJobsRequest | undefined, - {} | undefined - ] - >; - searchJobs( - request: protos.google.cloud.talent.v4beta1.ISearchJobsRequest, - options: CallOptions, - callback: Callback< - protos.google.cloud.talent.v4beta1.ISearchJobsResponse, - protos.google.cloud.talent.v4beta1.ISearchJobsRequest | null | undefined, - {} | null | undefined - > - ): void; - searchJobs( - request: protos.google.cloud.talent.v4beta1.ISearchJobsRequest, - callback: Callback< - protos.google.cloud.talent.v4beta1.ISearchJobsResponse, - protos.google.cloud.talent.v4beta1.ISearchJobsRequest | null | undefined, - {} | null | undefined - > - ): void; + return this.innerApiCalls.batchDeleteJobs(request, options, callback); + } /** * Searches for jobs using the provided {@link google.cloud.talent.v4beta1.SearchJobsRequest|SearchJobsRequest}. * @@ -1145,9 +1118,36 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.searchJobs(request); + * @example include:samples/generated/v4beta1/job_service.search_jobs.js + * region_tag:jobs_v4beta1_generated_JobService_SearchJobs_async */ + searchJobs( + request?: protos.google.cloud.talent.v4beta1.ISearchJobsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.talent.v4beta1.ISearchJobsResponse, + protos.google.cloud.talent.v4beta1.ISearchJobsRequest | undefined, + {} | undefined + ] + >; + searchJobs( + request: protos.google.cloud.talent.v4beta1.ISearchJobsRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.talent.v4beta1.ISearchJobsResponse, + protos.google.cloud.talent.v4beta1.ISearchJobsRequest | null | undefined, + {} | null | undefined + > + ): void; + searchJobs( + request: protos.google.cloud.talent.v4beta1.ISearchJobsRequest, + callback: Callback< + protos.google.cloud.talent.v4beta1.ISearchJobsResponse, + protos.google.cloud.talent.v4beta1.ISearchJobsRequest | null | undefined, + {} | null | undefined + > + ): void; searchJobs( request?: protos.google.cloud.talent.v4beta1.ISearchJobsRequest, optionsOrCallback?: @@ -1189,33 +1189,6 @@ export class JobServiceClient { this.initialize(); return this.innerApiCalls.searchJobs(request, options, callback); } - searchJobsForAlert( - request?: protos.google.cloud.talent.v4beta1.ISearchJobsRequest, - options?: CallOptions - ): Promise< - [ - protos.google.cloud.talent.v4beta1.ISearchJobsResponse, - protos.google.cloud.talent.v4beta1.ISearchJobsRequest | undefined, - {} | undefined - ] - >; - searchJobsForAlert( - request: protos.google.cloud.talent.v4beta1.ISearchJobsRequest, - options: CallOptions, - callback: Callback< - protos.google.cloud.talent.v4beta1.ISearchJobsResponse, - protos.google.cloud.talent.v4beta1.ISearchJobsRequest | null | undefined, - {} | null | undefined - > - ): void; - searchJobsForAlert( - request: protos.google.cloud.talent.v4beta1.ISearchJobsRequest, - callback: Callback< - protos.google.cloud.talent.v4beta1.ISearchJobsResponse, - protos.google.cloud.talent.v4beta1.ISearchJobsRequest | null | undefined, - {} | null | undefined - > - ): void; /** * Searches for jobs using the provided {@link google.cloud.talent.v4beta1.SearchJobsRequest|SearchJobsRequest}. * @@ -1467,9 +1440,36 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.searchJobsForAlert(request); + * @example include:samples/generated/v4beta1/job_service.search_jobs_for_alert.js + * region_tag:jobs_v4beta1_generated_JobService_SearchJobsForAlert_async */ + searchJobsForAlert( + request?: protos.google.cloud.talent.v4beta1.ISearchJobsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.talent.v4beta1.ISearchJobsResponse, + protos.google.cloud.talent.v4beta1.ISearchJobsRequest | undefined, + {} | undefined + ] + >; + searchJobsForAlert( + request: protos.google.cloud.talent.v4beta1.ISearchJobsRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.talent.v4beta1.ISearchJobsResponse, + protos.google.cloud.talent.v4beta1.ISearchJobsRequest | null | undefined, + {} | null | undefined + > + ): void; + searchJobsForAlert( + request: protos.google.cloud.talent.v4beta1.ISearchJobsRequest, + callback: Callback< + protos.google.cloud.talent.v4beta1.ISearchJobsResponse, + protos.google.cloud.talent.v4beta1.ISearchJobsRequest | null | undefined, + {} | null | undefined + > + ): void; searchJobsForAlert( request?: protos.google.cloud.talent.v4beta1.ISearchJobsRequest, optionsOrCallback?: @@ -1512,6 +1512,31 @@ export class JobServiceClient { return this.innerApiCalls.searchJobsForAlert(request, options, callback); } + /** + * Begins executing a batch create jobs operation. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The resource name of the tenant under which the job is created. + * + * The format is "projects/{project_id}/tenants/{tenant_id}". For example, + * "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant + * is created. For example, "projects/foo". + * @param {number[]} request.jobs + * Required. The jobs to be created. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing + * a long running operation. Its `promise()` method returns a promise + * you can `await` for. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) + * for more details and examples. + * @example include:samples/generated/v4beta1/job_service.batch_create_jobs.js + * region_tag:jobs_v4beta1_generated_JobService_BatchCreateJobs_async + */ batchCreateJobs( request?: protos.google.cloud.talent.v4beta1.IBatchCreateJobsRequest, options?: CallOptions @@ -1548,32 +1573,6 @@ export class JobServiceClient { {} | null | undefined > ): void; - /** - * Begins executing a batch create jobs operation. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. The resource name of the tenant under which the job is created. - * - * The format is "projects/{project_id}/tenants/{tenant_id}". For example, - * "projects/foo/tenant/bar". If tenant id is unspecified, a default tenant - * is created. For example, "projects/foo". - * @param {number[]} request.jobs - * Required. The jobs to be created. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing - * a long running operation. Its `promise()` method returns a promise - * you can `await` for. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) - * for more details and examples. - * @example - * const [operation] = await client.batchCreateJobs(request); - * const [response] = await operation.promise(); - */ batchCreateJobs( request?: protos.google.cloud.talent.v4beta1.IBatchCreateJobsRequest, optionsOrCallback?: @@ -1631,11 +1630,8 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) * for more details and examples. - * @example - * const decodedOperation = await checkBatchCreateJobsProgress(name); - * console.log(decodedOperation.result); - * console.log(decodedOperation.done); - * console.log(decodedOperation.metadata); + * @example include:samples/generated/v4beta1/job_service.batch_create_jobs.js + * region_tag:jobs_v4beta1_generated_JobService_BatchCreateJobs_async */ async checkBatchCreateJobsProgress( name: string @@ -1659,42 +1655,6 @@ export class JobServiceClient { protos.google.cloud.talent.v4beta1.BatchOperationMetadata >; } - batchUpdateJobs( - request?: protos.google.cloud.talent.v4beta1.IBatchUpdateJobsRequest, - options?: CallOptions - ): Promise< - [ - LROperation< - protos.google.cloud.talent.v4beta1.IJobOperationResult, - protos.google.cloud.talent.v4beta1.IBatchOperationMetadata - >, - protos.google.longrunning.IOperation | undefined, - {} | undefined - ] - >; - batchUpdateJobs( - request: protos.google.cloud.talent.v4beta1.IBatchUpdateJobsRequest, - options: CallOptions, - callback: Callback< - LROperation< - protos.google.cloud.talent.v4beta1.IJobOperationResult, - protos.google.cloud.talent.v4beta1.IBatchOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, - {} | null | undefined - > - ): void; - batchUpdateJobs( - request: protos.google.cloud.talent.v4beta1.IBatchUpdateJobsRequest, - callback: Callback< - LROperation< - protos.google.cloud.talent.v4beta1.IJobOperationResult, - protos.google.cloud.talent.v4beta1.IBatchOperationMetadata - >, - protos.google.longrunning.IOperation | null | undefined, - {} | null | undefined - > - ): void; /** * Begins executing a batch update jobs operation. * @@ -1732,10 +1692,45 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) * for more details and examples. - * @example - * const [operation] = await client.batchUpdateJobs(request); - * const [response] = await operation.promise(); + * @example include:samples/generated/v4beta1/job_service.batch_update_jobs.js + * region_tag:jobs_v4beta1_generated_JobService_BatchUpdateJobs_async */ + batchUpdateJobs( + request?: protos.google.cloud.talent.v4beta1.IBatchUpdateJobsRequest, + options?: CallOptions + ): Promise< + [ + LROperation< + protos.google.cloud.talent.v4beta1.IJobOperationResult, + protos.google.cloud.talent.v4beta1.IBatchOperationMetadata + >, + protos.google.longrunning.IOperation | undefined, + {} | undefined + ] + >; + batchUpdateJobs( + request: protos.google.cloud.talent.v4beta1.IBatchUpdateJobsRequest, + options: CallOptions, + callback: Callback< + LROperation< + protos.google.cloud.talent.v4beta1.IJobOperationResult, + protos.google.cloud.talent.v4beta1.IBatchOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; + batchUpdateJobs( + request: protos.google.cloud.talent.v4beta1.IBatchUpdateJobsRequest, + callback: Callback< + LROperation< + protos.google.cloud.talent.v4beta1.IJobOperationResult, + protos.google.cloud.talent.v4beta1.IBatchOperationMetadata + >, + protos.google.longrunning.IOperation | null | undefined, + {} | null | undefined + > + ): void; batchUpdateJobs( request?: protos.google.cloud.talent.v4beta1.IBatchUpdateJobsRequest, optionsOrCallback?: @@ -1793,11 +1788,8 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#long-running-operations) * for more details and examples. - * @example - * const decodedOperation = await checkBatchUpdateJobsProgress(name); - * console.log(decodedOperation.result); - * console.log(decodedOperation.done); - * console.log(decodedOperation.metadata); + * @example include:samples/generated/v4beta1/job_service.batch_update_jobs.js + * region_tag:jobs_v4beta1_generated_JobService_BatchUpdateJobs_async */ async checkBatchUpdateJobsProgress( name: string @@ -1821,33 +1813,6 @@ export class JobServiceClient { protos.google.cloud.talent.v4beta1.BatchOperationMetadata >; } - listJobs( - request?: protos.google.cloud.talent.v4beta1.IListJobsRequest, - options?: CallOptions - ): Promise< - [ - protos.google.cloud.talent.v4beta1.IJob[], - protos.google.cloud.talent.v4beta1.IListJobsRequest | null, - protos.google.cloud.talent.v4beta1.IListJobsResponse - ] - >; - listJobs( - request: protos.google.cloud.talent.v4beta1.IListJobsRequest, - options: CallOptions, - callback: PaginationCallback< - protos.google.cloud.talent.v4beta1.IListJobsRequest, - protos.google.cloud.talent.v4beta1.IListJobsResponse | null | undefined, - protos.google.cloud.talent.v4beta1.IJob - > - ): void; - listJobs( - request: protos.google.cloud.talent.v4beta1.IListJobsRequest, - callback: PaginationCallback< - protos.google.cloud.talent.v4beta1.IListJobsRequest, - protos.google.cloud.talent.v4beta1.IListJobsResponse | null | undefined, - protos.google.cloud.talent.v4beta1.IJob - > - ): void; /** * Lists jobs by filter. * @@ -1904,6 +1869,33 @@ export class JobServiceClient { * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ + listJobs( + request?: protos.google.cloud.talent.v4beta1.IListJobsRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.talent.v4beta1.IJob[], + protos.google.cloud.talent.v4beta1.IListJobsRequest | null, + protos.google.cloud.talent.v4beta1.IListJobsResponse + ] + >; + listJobs( + request: protos.google.cloud.talent.v4beta1.IListJobsRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.talent.v4beta1.IListJobsRequest, + protos.google.cloud.talent.v4beta1.IListJobsResponse | null | undefined, + protos.google.cloud.talent.v4beta1.IJob + > + ): void; + listJobs( + request: protos.google.cloud.talent.v4beta1.IListJobsRequest, + callback: PaginationCallback< + protos.google.cloud.talent.v4beta1.IListJobsRequest, + protos.google.cloud.talent.v4beta1.IListJobsResponse | null | undefined, + protos.google.cloud.talent.v4beta1.IJob + > + ): void; listJobs( request?: protos.google.cloud.talent.v4beta1.IListJobsRequest, optionsOrCallback?: @@ -2076,11 +2068,8 @@ export class JobServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example - * const iterable = client.listJobsAsync(request); - * for await (const response of iterable) { - * // process response - * } + * @example include:samples/generated/v4beta1/job_service.list_jobs.js + * region_tag:jobs_v4beta1_generated_JobService_ListJobs_async */ listJobsAsync( request?: protos.google.cloud.talent.v4beta1.IListJobsRequest, @@ -2094,7 +2083,6 @@ export class JobServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - options = options || {}; const defaultCallSettings = this._defaults['listJobs']; const callSettings = defaultCallSettings.merge(options); this.initialize(); diff --git a/packages/google-cloud-talent/src/v4beta1/profile_service_client.ts b/packages/google-cloud-talent/src/v4beta1/profile_service_client.ts index 231e2e2ae5c..df4f9e8fe0f 100644 --- a/packages/google-cloud-talent/src/v4beta1/profile_service_client.ts +++ b/packages/google-cloud-talent/src/v4beta1/profile_service_client.ts @@ -343,6 +343,28 @@ export class ProfileServiceClient { // ------------------- // -- Service calls -- // ------------------- + /** + * Creates and returns a new profile. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. The name of the tenant this profile belongs to. + * + * The format is "projects/{project_id}/tenants/{tenant_id}". For example, + * "projects/foo/tenants/bar". + * @param {google.cloud.talent.v4beta1.Profile} request.profile + * Required. The profile to be created. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Profile]{@link google.cloud.talent.v4beta1.Profile}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4beta1/profile_service.create_profile.js + * region_tag:jobs_v4beta1_generated_ProfileService_CreateProfile_async + */ createProfile( request?: protos.google.cloud.talent.v4beta1.ICreateProfileRequest, options?: CallOptions @@ -374,28 +396,6 @@ export class ProfileServiceClient { {} | null | undefined > ): void; - /** - * Creates and returns a new profile. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. The name of the tenant this profile belongs to. - * - * The format is "projects/{project_id}/tenants/{tenant_id}". For example, - * "projects/foo/tenants/bar". - * @param {google.cloud.talent.v4beta1.Profile} request.profile - * Required. The profile to be created. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Profile]{@link google.cloud.talent.v4beta1.Profile}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.createProfile(request); - */ createProfile( request?: protos.google.cloud.talent.v4beta1.ICreateProfileRequest, optionsOrCallback?: @@ -439,6 +439,27 @@ export class ProfileServiceClient { this.initialize(); return this.innerApiCalls.createProfile(request, options, callback); } + /** + * Gets the specified profile. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Resource name of the profile to get. + * + * The format is + * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For + * example, "projects/foo/tenants/bar/profiles/baz". + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Profile]{@link google.cloud.talent.v4beta1.Profile}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4beta1/profile_service.get_profile.js + * region_tag:jobs_v4beta1_generated_ProfileService_GetProfile_async + */ getProfile( request?: protos.google.cloud.talent.v4beta1.IGetProfileRequest, options?: CallOptions @@ -466,27 +487,6 @@ export class ProfileServiceClient { {} | null | undefined > ): void; - /** - * Gets the specified profile. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. Resource name of the profile to get. - * - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For - * example, "projects/foo/tenants/bar/profiles/baz". - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Profile]{@link google.cloud.talent.v4beta1.Profile}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.getProfile(request); - */ getProfile( request?: protos.google.cloud.talent.v4beta1.IGetProfileRequest, optionsOrCallback?: @@ -528,6 +528,27 @@ export class ProfileServiceClient { this.initialize(); return this.innerApiCalls.getProfile(request, options, callback); } + /** + * Updates the specified profile and returns the updated result. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.talent.v4beta1.Profile} request.profile + * Required. Profile to be updated. + * @param {google.protobuf.FieldMask} request.updateMask + * A field mask to specify the profile fields to update. + * + * A full update is performed if it is unset. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Profile]{@link google.cloud.talent.v4beta1.Profile}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4beta1/profile_service.update_profile.js + * region_tag:jobs_v4beta1_generated_ProfileService_UpdateProfile_async + */ updateProfile( request?: protos.google.cloud.talent.v4beta1.IUpdateProfileRequest, options?: CallOptions @@ -559,27 +580,6 @@ export class ProfileServiceClient { {} | null | undefined > ): void; - /** - * Updates the specified profile and returns the updated result. - * - * @param {Object} request - * The request object that will be sent. - * @param {google.cloud.talent.v4beta1.Profile} request.profile - * Required. Profile to be updated. - * @param {google.protobuf.FieldMask} request.updateMask - * A field mask to specify the profile fields to update. - * - * A full update is performed if it is unset. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Profile]{@link google.cloud.talent.v4beta1.Profile}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.updateProfile(request); - */ updateProfile( request?: protos.google.cloud.talent.v4beta1.IUpdateProfileRequest, optionsOrCallback?: @@ -623,6 +623,29 @@ export class ProfileServiceClient { this.initialize(); return this.innerApiCalls.updateProfile(request, options, callback); } + /** + * Deletes the specified profile. + * Prerequisite: The profile has no associated applications or assignments + * associated. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. Resource name of the profile to be deleted. + * + * The format is + * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For + * example, "projects/foo/tenants/bar/profiles/baz". + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4beta1/profile_service.delete_profile.js + * region_tag:jobs_v4beta1_generated_ProfileService_DeleteProfile_async + */ deleteProfile( request?: protos.google.cloud.talent.v4beta1.IDeleteProfileRequest, options?: CallOptions @@ -654,29 +677,6 @@ export class ProfileServiceClient { {} | null | undefined > ): void; - /** - * Deletes the specified profile. - * Prerequisite: The profile has no associated applications or assignments - * associated. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. Resource name of the profile to be deleted. - * - * The format is - * "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}". For - * example, "projects/foo/tenants/bar/profiles/baz". - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.deleteProfile(request); - */ deleteProfile( request?: protos.google.cloud.talent.v4beta1.IDeleteProfileRequest, optionsOrCallback?: @@ -720,37 +720,6 @@ export class ProfileServiceClient { this.initialize(); return this.innerApiCalls.deleteProfile(request, options, callback); } - searchProfiles( - request?: protos.google.cloud.talent.v4beta1.ISearchProfilesRequest, - options?: CallOptions - ): Promise< - [ - protos.google.cloud.talent.v4beta1.ISearchProfilesResponse, - protos.google.cloud.talent.v4beta1.ISearchProfilesRequest | undefined, - {} | undefined - ] - >; - searchProfiles( - request: protos.google.cloud.talent.v4beta1.ISearchProfilesRequest, - options: CallOptions, - callback: Callback< - protos.google.cloud.talent.v4beta1.ISearchProfilesResponse, - | protos.google.cloud.talent.v4beta1.ISearchProfilesRequest - | null - | undefined, - {} | null | undefined - > - ): void; - searchProfiles( - request: protos.google.cloud.talent.v4beta1.ISearchProfilesRequest, - callback: Callback< - protos.google.cloud.talent.v4beta1.ISearchProfilesResponse, - | protos.google.cloud.talent.v4beta1.ISearchProfilesRequest - | null - | undefined, - {} | null | undefined - > - ): void; /** * Searches for profiles within a tenant. * @@ -940,9 +909,40 @@ export class ProfileServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) * for more details and examples. - * @example - * const [response] = await client.searchProfiles(request); + * @example include:samples/generated/v4beta1/profile_service.search_profiles.js + * region_tag:jobs_v4beta1_generated_ProfileService_SearchProfiles_async */ + searchProfiles( + request?: protos.google.cloud.talent.v4beta1.ISearchProfilesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.talent.v4beta1.ISearchProfilesResponse, + protos.google.cloud.talent.v4beta1.ISearchProfilesRequest | undefined, + {} | undefined + ] + >; + searchProfiles( + request: protos.google.cloud.talent.v4beta1.ISearchProfilesRequest, + options: CallOptions, + callback: Callback< + protos.google.cloud.talent.v4beta1.ISearchProfilesResponse, + | protos.google.cloud.talent.v4beta1.ISearchProfilesRequest + | null + | undefined, + {} | null | undefined + > + ): void; + searchProfiles( + request: protos.google.cloud.talent.v4beta1.ISearchProfilesRequest, + callback: Callback< + protos.google.cloud.talent.v4beta1.ISearchProfilesResponse, + | protos.google.cloud.talent.v4beta1.ISearchProfilesRequest + | null + | undefined, + {} | null | undefined + > + ): void; searchProfiles( request?: protos.google.cloud.talent.v4beta1.ISearchProfilesRequest, optionsOrCallback?: @@ -987,37 +987,6 @@ export class ProfileServiceClient { return this.innerApiCalls.searchProfiles(request, options, callback); } - listProfiles( - request?: protos.google.cloud.talent.v4beta1.IListProfilesRequest, - options?: CallOptions - ): Promise< - [ - protos.google.cloud.talent.v4beta1.IProfile[], - protos.google.cloud.talent.v4beta1.IListProfilesRequest | null, - protos.google.cloud.talent.v4beta1.IListProfilesResponse - ] - >; - listProfiles( - request: protos.google.cloud.talent.v4beta1.IListProfilesRequest, - options: CallOptions, - callback: PaginationCallback< - protos.google.cloud.talent.v4beta1.IListProfilesRequest, - | protos.google.cloud.talent.v4beta1.IListProfilesResponse - | null - | undefined, - protos.google.cloud.talent.v4beta1.IProfile - > - ): void; - listProfiles( - request: protos.google.cloud.talent.v4beta1.IListProfilesRequest, - callback: PaginationCallback< - protos.google.cloud.talent.v4beta1.IListProfilesRequest, - | protos.google.cloud.talent.v4beta1.IListProfilesResponse - | null - | undefined, - protos.google.cloud.talent.v4beta1.IProfile - > - ): void; /** * Lists profiles by filter. The order is unspecified. * @@ -1075,6 +1044,37 @@ export class ProfileServiceClient { * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. */ + listProfiles( + request?: protos.google.cloud.talent.v4beta1.IListProfilesRequest, + options?: CallOptions + ): Promise< + [ + protos.google.cloud.talent.v4beta1.IProfile[], + protos.google.cloud.talent.v4beta1.IListProfilesRequest | null, + protos.google.cloud.talent.v4beta1.IListProfilesResponse + ] + >; + listProfiles( + request: protos.google.cloud.talent.v4beta1.IListProfilesRequest, + options: CallOptions, + callback: PaginationCallback< + protos.google.cloud.talent.v4beta1.IListProfilesRequest, + | protos.google.cloud.talent.v4beta1.IListProfilesResponse + | null + | undefined, + protos.google.cloud.talent.v4beta1.IProfile + > + ): void; + listProfiles( + request: protos.google.cloud.talent.v4beta1.IListProfilesRequest, + callback: PaginationCallback< + protos.google.cloud.talent.v4beta1.IListProfilesRequest, + | protos.google.cloud.talent.v4beta1.IListProfilesResponse + | null + | undefined, + protos.google.cloud.talent.v4beta1.IProfile + > + ): void; listProfiles( request?: protos.google.cloud.talent.v4beta1.IListProfilesRequest, optionsOrCallback?: @@ -1251,11 +1251,8 @@ export class ProfileServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example - * const iterable = client.listProfilesAsync(request); - * for await (const response of iterable) { - * // process response - * } + * @example include:samples/generated/v4beta1/profile_service.list_profiles.js + * region_tag:jobs_v4beta1_generated_ProfileService_ListProfiles_async */ listProfilesAsync( request?: protos.google.cloud.talent.v4beta1.IListProfilesRequest, @@ -1269,7 +1266,6 @@ export class ProfileServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - options = options || {}; const defaultCallSettings = this._defaults['listProfiles']; const callSettings = defaultCallSettings.merge(options); this.initialize(); diff --git a/packages/google-cloud-talent/src/v4beta1/tenant_service_client.ts b/packages/google-cloud-talent/src/v4beta1/tenant_service_client.ts index 3f251a31a2b..2e041f031ac 100644 --- a/packages/google-cloud-talent/src/v4beta1/tenant_service_client.ts +++ b/packages/google-cloud-talent/src/v4beta1/tenant_service_client.ts @@ -341,6 +341,28 @@ export class TenantServiceClient { // ------------------- // -- Service calls -- // ------------------- + /** + * Creates a new tenant entity. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Resource name of the project under which the tenant is created. + * + * The format is "projects/{project_id}", for example, + * "projects/foo". + * @param {google.cloud.talent.v4beta1.Tenant} request.tenant + * Required. The tenant to be created. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Tenant]{@link google.cloud.talent.v4beta1.Tenant}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4beta1/tenant_service.create_tenant.js + * region_tag:jobs_v4beta1_generated_TenantService_CreateTenant_async + */ createTenant( request?: protos.google.cloud.talent.v4beta1.ICreateTenantRequest, options?: CallOptions @@ -372,28 +394,6 @@ export class TenantServiceClient { {} | null | undefined > ): void; - /** - * Creates a new tenant entity. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. Resource name of the project under which the tenant is created. - * - * The format is "projects/{project_id}", for example, - * "projects/foo". - * @param {google.cloud.talent.v4beta1.Tenant} request.tenant - * Required. The tenant to be created. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Tenant]{@link google.cloud.talent.v4beta1.Tenant}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.createTenant(request); - */ createTenant( request?: protos.google.cloud.talent.v4beta1.ICreateTenantRequest, optionsOrCallback?: @@ -437,6 +437,26 @@ export class TenantServiceClient { this.initialize(); return this.innerApiCalls.createTenant(request, options, callback); } + /** + * Retrieves specified tenant. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the tenant to be retrieved. + * + * The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/foo/tenants/bar". + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Tenant]{@link google.cloud.talent.v4beta1.Tenant}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4beta1/tenant_service.get_tenant.js + * region_tag:jobs_v4beta1_generated_TenantService_GetTenant_async + */ getTenant( request?: protos.google.cloud.talent.v4beta1.IGetTenantRequest, options?: CallOptions @@ -464,26 +484,6 @@ export class TenantServiceClient { {} | null | undefined > ): void; - /** - * Retrieves specified tenant. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The resource name of the tenant to be retrieved. - * - * The format is "projects/{project_id}/tenants/{tenant_id}", for example, - * "projects/foo/tenants/bar". - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Tenant]{@link google.cloud.talent.v4beta1.Tenant}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.getTenant(request); - */ getTenant( request?: protos.google.cloud.talent.v4beta1.IGetTenantRequest, optionsOrCallback?: @@ -525,6 +525,31 @@ export class TenantServiceClient { this.initialize(); return this.innerApiCalls.getTenant(request, options, callback); } + /** + * Updates specified tenant. + * + * @param {Object} request + * The request object that will be sent. + * @param {google.cloud.talent.v4beta1.Tenant} request.tenant + * Required. The tenant resource to replace the current resource in the system. + * @param {google.protobuf.FieldMask} request.updateMask + * Strongly recommended for the best service experience. + * + * If {@link google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask|update_mask} is provided, only the specified fields in + * {@link google.cloud.talent.v4beta1.UpdateTenantRequest.tenant|tenant} are updated. Otherwise all the fields are updated. + * + * A field mask to specify the tenant fields to be updated. Only + * top level fields of {@link google.cloud.talent.v4beta1.Tenant|Tenant} are supported. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Tenant]{@link google.cloud.talent.v4beta1.Tenant}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4beta1/tenant_service.update_tenant.js + * region_tag:jobs_v4beta1_generated_TenantService_UpdateTenant_async + */ updateTenant( request?: protos.google.cloud.talent.v4beta1.IUpdateTenantRequest, options?: CallOptions @@ -556,31 +581,6 @@ export class TenantServiceClient { {} | null | undefined > ): void; - /** - * Updates specified tenant. - * - * @param {Object} request - * The request object that will be sent. - * @param {google.cloud.talent.v4beta1.Tenant} request.tenant - * Required. The tenant resource to replace the current resource in the system. - * @param {google.protobuf.FieldMask} request.updateMask - * Strongly recommended for the best service experience. - * - * If {@link google.cloud.talent.v4beta1.UpdateTenantRequest.update_mask|update_mask} is provided, only the specified fields in - * {@link google.cloud.talent.v4beta1.UpdateTenantRequest.tenant|tenant} are updated. Otherwise all the fields are updated. - * - * A field mask to specify the tenant fields to be updated. Only - * top level fields of {@link google.cloud.talent.v4beta1.Tenant|Tenant} are supported. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Tenant]{@link google.cloud.talent.v4beta1.Tenant}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.updateTenant(request); - */ updateTenant( request?: protos.google.cloud.talent.v4beta1.IUpdateTenantRequest, optionsOrCallback?: @@ -624,6 +624,26 @@ export class TenantServiceClient { this.initialize(); return this.innerApiCalls.updateTenant(request, options, callback); } + /** + * Deletes specified tenant. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.name + * Required. The resource name of the tenant to be deleted. + * + * The format is "projects/{project_id}/tenants/{tenant_id}", for example, + * "projects/foo/tenants/bar". + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) + * for more details and examples. + * @example include:samples/generated/v4beta1/tenant_service.delete_tenant.js + * region_tag:jobs_v4beta1_generated_TenantService_DeleteTenant_async + */ deleteTenant( request?: protos.google.cloud.talent.v4beta1.IDeleteTenantRequest, options?: CallOptions @@ -655,26 +675,6 @@ export class TenantServiceClient { {} | null | undefined > ): void; - /** - * Deletes specified tenant. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.name - * Required. The resource name of the tenant to be deleted. - * - * The format is "projects/{project_id}/tenants/{tenant_id}", for example, - * "projects/foo/tenants/bar". - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is an object representing [Empty]{@link google.protobuf.Empty}. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#regular-methods) - * for more details and examples. - * @example - * const [response] = await client.deleteTenant(request); - */ deleteTenant( request?: protos.google.cloud.talent.v4beta1.IDeleteTenantRequest, optionsOrCallback?: @@ -719,6 +719,34 @@ export class TenantServiceClient { return this.innerApiCalls.deleteTenant(request, options, callback); } + /** + * Lists all tenants associated with the project. + * + * @param {Object} request + * The request object that will be sent. + * @param {string} request.parent + * Required. Resource name of the project under which the tenant is created. + * + * The format is "projects/{project_id}", for example, + * "projects/foo". + * @param {string} request.pageToken + * The starting indicator from which to return results. + * @param {number} request.pageSize + * The maximum number of tenants to be returned, at most 100. + * Default is 100 if a non-positive number is provided. + * @param {object} [options] + * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. + * @returns {Promise} - The promise which resolves to an array. + * The first element of the array is Array of [Tenant]{@link google.cloud.talent.v4beta1.Tenant}. + * The client library will perform auto-pagination by default: it will call the API as many + * times as needed and will merge results from all the pages into this array. + * Note that it can affect your quota. + * We recommend using `listTenantsAsync()` + * method described below for async iteration which you can stop as needed. + * Please see the + * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) + * for more details and examples. + */ listTenants( request?: protos.google.cloud.talent.v4beta1.IListTenantsRequest, options?: CallOptions @@ -750,34 +778,6 @@ export class TenantServiceClient { protos.google.cloud.talent.v4beta1.ITenant > ): void; - /** - * Lists all tenants associated with the project. - * - * @param {Object} request - * The request object that will be sent. - * @param {string} request.parent - * Required. Resource name of the project under which the tenant is created. - * - * The format is "projects/{project_id}", for example, - * "projects/foo". - * @param {string} request.pageToken - * The starting indicator from which to return results. - * @param {number} request.pageSize - * The maximum number of tenants to be returned, at most 100. - * Default is 100 if a non-positive number is provided. - * @param {object} [options] - * Call options. See {@link https://googleapis.dev/nodejs/google-gax/latest/interfaces/CallOptions.html|CallOptions} for more details. - * @returns {Promise} - The promise which resolves to an array. - * The first element of the array is Array of [Tenant]{@link google.cloud.talent.v4beta1.Tenant}. - * The client library will perform auto-pagination by default: it will call the API as many - * times as needed and will merge results from all the pages into this array. - * Note that it can affect your quota. - * We recommend using `listTenantsAsync()` - * method described below for async iteration which you can stop as needed. - * Please see the - * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) - * for more details and examples. - */ listTenants( request?: protos.google.cloud.talent.v4beta1.IListTenantsRequest, optionsOrCallback?: @@ -896,11 +896,8 @@ export class TenantServiceClient { * Please see the * [documentation](https://github.com/googleapis/gax-nodejs/blob/master/client-libraries.md#auto-pagination) * for more details and examples. - * @example - * const iterable = client.listTenantsAsync(request); - * for await (const response of iterable) { - * // process response - * } + * @example include:samples/generated/v4beta1/tenant_service.list_tenants.js + * region_tag:jobs_v4beta1_generated_TenantService_ListTenants_async */ listTenantsAsync( request?: protos.google.cloud.talent.v4beta1.IListTenantsRequest, @@ -914,7 +911,6 @@ export class TenantServiceClient { gax.routingHeader.fromParams({ parent: request.parent || '', }); - options = options || {}; const defaultCallSettings = this._defaults['listTenants']; const callSettings = defaultCallSettings.merge(options); this.initialize();