/** Get Job */ function sampleGetJob(projectId, tenantId, jobId) { const client = new talent.JobServiceClient(); // const projectId = 'Your Google Cloud Project ID'; // const tenantId = 'Your Tenant ID (using tenancy is optional)'; // const jobId = 'Job ID'; const formattedName = client.jobPath(projectId, tenantId, jobId); client.getJob({name: formattedName}) .then(responses => { const response = responses[0]; console.log(`Job name: ${response.name}`); console.log(`Requisition ID: ${response.requisitionId}`); console.log(`Title: ${response.title}`); console.log(`Description: ${response.description}`); console.log(`Posting language: ${response.languageCode}`); for (const address of response.addresses) { console.log(`Address: ${address}`); } for (const email of response.applicationInfo.emails) { console.log(`Email: ${email}`); } for (const websiteUri of response.applicationInfo.uris) { console.log(`Website: ${websiteUri}`); } }) .catch(err => { console.error(err); }); }