job.proto 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348
  1. // Copyright 2022 Google LLC
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. syntax = "proto3";
  15. package google.cloud.talent.v4beta1;
  16. import "google/api/field_behavior.proto";
  17. import "google/api/resource.proto";
  18. import "google/cloud/talent/v4beta1/common.proto";
  19. import "google/protobuf/timestamp.proto";
  20. option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4beta1;talent";
  21. option java_multiple_files = true;
  22. option java_outer_classname = "JobResourceProto";
  23. option java_package = "com.google.cloud.talent.v4beta1";
  24. option objc_class_prefix = "CTS";
  25. // A Job resource represents a job posting (also referred to as a "job listing"
  26. // or "job requisition"). A job belongs to a [Company][google.cloud.talent.v4beta1.Company], which is the hiring
  27. // entity responsible for the job.
  28. message Job {
  29. option (google.api.resource) = {
  30. type: "jobs.googleapis.com/Job"
  31. pattern: "projects/{project}/tenants/{tenant}/jobs/{job}"
  32. pattern: "projects/{project}/jobs/{job}"
  33. };
  34. // Application related details of a job posting.
  35. message ApplicationInfo {
  36. // Use this field to specify email address(es) to which resumes or
  37. // applications can be sent.
  38. //
  39. // The maximum number of allowed characters for each entry is 255.
  40. repeated string emails = 1;
  41. // Use this field to provide instructions, such as "Mail your application
  42. // to ...", that a candidate can follow to apply for the job.
  43. //
  44. // This field accepts and sanitizes HTML input, and also accepts
  45. // bold, italic, ordered list, and unordered list markup tags.
  46. //
  47. // The maximum number of allowed characters is 3,000.
  48. string instruction = 2;
  49. // Use this URI field to direct an applicant to a website, for example to
  50. // link to an online application form.
  51. //
  52. // The maximum number of allowed characters for each entry is 2,000.
  53. repeated string uris = 3;
  54. }
  55. // Derived details about the job posting.
  56. message DerivedInfo {
  57. // Structured locations of the job, resolved from [Job.addresses][google.cloud.talent.v4beta1.Job.addresses].
  58. //
  59. // [locations][google.cloud.talent.v4beta1.Job.DerivedInfo.locations] are exactly matched to [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] in the same
  60. // order.
  61. repeated Location locations = 1;
  62. // Job categories derived from [Job.title][google.cloud.talent.v4beta1.Job.title] and [Job.description][google.cloud.talent.v4beta1.Job.description].
  63. repeated JobCategory job_categories = 3;
  64. }
  65. // Options for job processing.
  66. message ProcessingOptions {
  67. // If set to `true`, the service does not attempt to resolve a
  68. // more precise address for the job.
  69. bool disable_street_address_resolution = 1;
  70. // Option for job HTML content sanitization. Applied fields are:
  71. //
  72. // * description
  73. // * applicationInfo.instruction
  74. // * incentives
  75. // * qualifications
  76. // * responsibilities
  77. //
  78. // HTML tags in these fields may be stripped if sanitiazation isn't
  79. // disabled.
  80. //
  81. // Defaults to [HtmlSanitization.SIMPLE_FORMATTING_ONLY][google.cloud.talent.v4beta1.HtmlSanitization.SIMPLE_FORMATTING_ONLY].
  82. HtmlSanitization html_sanitization = 2;
  83. }
  84. // Required during job update.
  85. //
  86. // The resource name for the job. This is generated by the service when a
  87. // job is created.
  88. //
  89. // The format is
  90. // "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}". For
  91. // example, "projects/foo/tenants/bar/jobs/baz".
  92. //
  93. // If tenant id is unspecified, the default tenant is used. For
  94. // example, "projects/foo/jobs/bar".
  95. //
  96. // Use of this field in job queries and API calls is preferred over the use of
  97. // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] since this value is unique.
  98. string name = 1;
  99. // Required. The resource name of the company listing the job.
  100. //
  101. // The format is
  102. // "projects/{project_id}/tenants/{tenant_id}/companies/{company_id}". For
  103. // example, "projects/foo/tenants/bar/companies/baz".
  104. //
  105. // If tenant id is unspecified, the default tenant is used. For
  106. // example, "projects/foo/companies/bar".
  107. string company = 2 [
  108. (google.api.field_behavior) = REQUIRED,
  109. (google.api.resource_reference) = {
  110. type: "jobs.googleapis.com/Company"
  111. }
  112. ];
  113. // Required. The requisition ID, also referred to as the posting ID, is assigned by the
  114. // client to identify a job. This field is intended to be used by clients
  115. // for client identification and tracking of postings. A job isn't allowed
  116. // to be created if there is another job with the same [company][google.cloud.talent.v4beta1.Job.name],
  117. // [language_code][google.cloud.talent.v4beta1.Job.language_code] and [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
  118. //
  119. // The maximum number of allowed characters is 255.
  120. string requisition_id = 3 [(google.api.field_behavior) = REQUIRED];
  121. // Required. The title of the job, such as "Software Engineer"
  122. //
  123. // The maximum number of allowed characters is 500.
  124. string title = 4 [(google.api.field_behavior) = REQUIRED];
  125. // Required. The description of the job, which typically includes a multi-paragraph
  126. // description of the company and related information. Separate fields are
  127. // provided on the job object for [responsibilities][google.cloud.talent.v4beta1.Job.responsibilities],
  128. // [qualifications][google.cloud.talent.v4beta1.Job.qualifications], and other job characteristics. Use of
  129. // these separate job fields is recommended.
  130. //
  131. // This field accepts and sanitizes HTML input, and also accepts
  132. // bold, italic, ordered list, and unordered list markup tags.
  133. //
  134. // The maximum number of allowed characters is 100,000.
  135. string description = 5 [(google.api.field_behavior) = REQUIRED];
  136. // Strongly recommended for the best service experience.
  137. //
  138. // Location(s) where the employer is looking to hire for this job posting.
  139. //
  140. // Specifying the full street address(es) of the hiring location enables
  141. // better API results, especially job searches by commute time.
  142. //
  143. // At most 50 locations are allowed for best search performance. If a job has
  144. // more locations, it is suggested to split it into multiple jobs with unique
  145. // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id]s (e.g. 'ReqA' becomes 'ReqA-1', 'ReqA-2', and so on.) as
  146. // multiple jobs with the same [company][google.cloud.talent.v4beta1.Job.company], [language_code][google.cloud.talent.v4beta1.Job.language_code] and
  147. // [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] are not allowed. If the original [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id] must
  148. // be preserved, a custom field should be used for storage. It is also
  149. // suggested to group the locations that close to each other in the same job
  150. // for better search experience.
  151. //
  152. // The maximum number of allowed characters is 500.
  153. repeated string addresses = 6;
  154. // Job application information.
  155. ApplicationInfo application_info = 7;
  156. // The benefits included with the job.
  157. repeated JobBenefit job_benefits = 8;
  158. // Job compensation information (a.k.a. "pay rate") i.e., the compensation
  159. // that will paid to the employee.
  160. CompensationInfo compensation_info = 9;
  161. // A map of fields to hold both filterable and non-filterable custom job
  162. // attributes that are not covered by the provided structured fields.
  163. //
  164. // The keys of the map are strings up to 64 bytes and must match the
  165. // pattern: `[a-zA-Z][a-zA-Z0-9_]*`. For example, key0LikeThis or
  166. // KEY_1_LIKE_THIS.
  167. //
  168. // At most 100 filterable and at most 100 unfilterable keys are supported.
  169. // For filterable `string_values`, across all keys at most 200 values are
  170. // allowed, with each string no more than 255 characters. For unfilterable
  171. // `string_values`, the maximum total size of `string_values` across all keys
  172. // is 50KB.
  173. map<string, CustomAttribute> custom_attributes = 10;
  174. // The desired education degrees for the job, such as Bachelors, Masters.
  175. repeated DegreeType degree_types = 11;
  176. // The department or functional area within the company with the open
  177. // position.
  178. //
  179. // The maximum number of allowed characters is 255.
  180. string department = 12;
  181. // The employment type(s) of a job, for example,
  182. // [full time][google.cloud.talent.v4beta1.EmploymentType.FULL_TIME] or
  183. // [part time][google.cloud.talent.v4beta1.EmploymentType.PART_TIME].
  184. repeated EmploymentType employment_types = 13;
  185. // A description of bonus, commission, and other compensation
  186. // incentives associated with the job not including salary or pay.
  187. //
  188. // The maximum number of allowed characters is 10,000.
  189. string incentives = 14;
  190. // The language of the posting. This field is distinct from
  191. // any requirements for fluency that are associated with the job.
  192. //
  193. // Language codes must be in BCP-47 format, such as "en-US" or "sr-Latn".
  194. // For more information, see
  195. // [Tags for Identifying Languages](https://tools.ietf.org/html/bcp47){:
  196. // class="external" target="_blank" }.
  197. //
  198. // If this field is unspecified and [Job.description][google.cloud.talent.v4beta1.Job.description] is present, detected
  199. // language code based on [Job.description][google.cloud.talent.v4beta1.Job.description] is assigned, otherwise
  200. // defaults to 'en_US'.
  201. string language_code = 15;
  202. // The experience level associated with the job, such as "Entry Level".
  203. JobLevel job_level = 16;
  204. // A promotion value of the job, as determined by the client.
  205. // The value determines the sort order of the jobs returned when searching for
  206. // jobs using the featured jobs search call, with higher promotional values
  207. // being returned first and ties being resolved by relevance sort. Only the
  208. // jobs with a promotionValue >0 are returned in a FEATURED_JOB_SEARCH.
  209. //
  210. // Default value is 0, and negative values are treated as 0.
  211. int32 promotion_value = 17;
  212. // A description of the qualifications required to perform the
  213. // job. The use of this field is recommended
  214. // as an alternative to using the more general [description][google.cloud.talent.v4beta1.Job.description] field.
  215. //
  216. // This field accepts and sanitizes HTML input, and also accepts
  217. // bold, italic, ordered list, and unordered list markup tags.
  218. //
  219. // The maximum number of allowed characters is 10,000.
  220. string qualifications = 18;
  221. // A description of job responsibilities. The use of this field is
  222. // recommended as an alternative to using the more general [description][google.cloud.talent.v4beta1.Job.description]
  223. // field.
  224. //
  225. // This field accepts and sanitizes HTML input, and also accepts
  226. // bold, italic, ordered list, and unordered list markup tags.
  227. //
  228. // The maximum number of allowed characters is 10,000.
  229. string responsibilities = 19;
  230. // The job [PostingRegion][google.cloud.talent.v4beta1.PostingRegion] (for example, state, country) throughout
  231. // which the job is available. If this field is set, a [LocationFilter][google.cloud.talent.v4beta1.LocationFilter]
  232. // in a search query within the job region finds this job posting if an
  233. // exact location match isn't specified. If this field is set to
  234. // [PostingRegion.NATION][google.cloud.talent.v4beta1.PostingRegion.NATION] or [PostingRegion.ADMINISTRATIVE_AREA][google.cloud.talent.v4beta1.PostingRegion.ADMINISTRATIVE_AREA],
  235. // setting job [Job.addresses][google.cloud.talent.v4beta1.Job.addresses] to the same location level as this field
  236. // is strongly recommended.
  237. PostingRegion posting_region = 20;
  238. // Deprecated. The job is only visible to the owner.
  239. //
  240. // The visibility of the job.
  241. //
  242. // Defaults to [Visibility.ACCOUNT_ONLY][google.cloud.talent.v4beta1.Visibility.ACCOUNT_ONLY] if not specified.
  243. Visibility visibility = 21 [deprecated = true];
  244. // The start timestamp of the job in UTC time zone. Typically this field
  245. // is used for contracting engagements. Invalid timestamps are ignored.
  246. google.protobuf.Timestamp job_start_time = 22;
  247. // The end timestamp of the job. Typically this field is used for contracting
  248. // engagements. Invalid timestamps are ignored.
  249. google.protobuf.Timestamp job_end_time = 23;
  250. // The timestamp this job posting was most recently published. The default
  251. // value is the time the request arrives at the server. Invalid timestamps are
  252. // ignored.
  253. google.protobuf.Timestamp posting_publish_time = 24;
  254. // Strongly recommended for the best service experience.
  255. //
  256. // The expiration timestamp of the job. After this timestamp, the
  257. // job is marked as expired, and it no longer appears in search results. The
  258. // expired job can't be listed by the [ListJobs][google.cloud.talent.v4beta1.JobService.ListJobs] API,
  259. // but it can be retrieved with the [GetJob][google.cloud.talent.v4beta1.JobService.GetJob] API or
  260. // updated with the [UpdateJob][google.cloud.talent.v4beta1.JobService.UpdateJob] API or deleted with
  261. // the [DeleteJob][google.cloud.talent.v4beta1.JobService.DeleteJob] API. An expired job can
  262. // be updated and opened again by using a future expiration timestamp.
  263. // Updating an expired job fails if there is another existing open job with
  264. // same [company][google.cloud.talent.v4beta1.Job.company], [language_code][google.cloud.talent.v4beta1.Job.language_code] and [requisition_id][google.cloud.talent.v4beta1.Job.requisition_id].
  265. //
  266. // The expired jobs are retained in our system for 90 days. However, the
  267. // overall expired job count cannot exceed 3 times the maximum number of
  268. // open jobs over previous 7 days. If this threshold is exceeded,
  269. // expired jobs are cleaned out in order of earliest expire time.
  270. // Expired jobs are no longer accessible after they are cleaned
  271. // out.
  272. //
  273. // Invalid timestamps are ignored, and treated as expire time not provided.
  274. //
  275. // If the timestamp is before the instant request is made, the job
  276. // is treated as expired immediately on creation. This kind of job can
  277. // not be updated. And when creating a job with past timestamp, the
  278. // [posting_publish_time][google.cloud.talent.v4beta1.Job.posting_publish_time] must be set before
  279. // [posting_expire_time][google.cloud.talent.v4beta1.Job.posting_expire_time]. The purpose of this feature is
  280. // to allow other objects, such as [Application][google.cloud.talent.v4beta1.Application], to refer a job
  281. // that didn't exist in the system prior to becoming expired. If you
  282. // want to modify a job that was expired on creation,
  283. // delete it and create a new one.
  284. //
  285. // If this value isn't provided at the time of job creation or is invalid,
  286. // the job posting expires after 30 days from the job's creation time. For
  287. // example, if the job was created on 2017/01/01 13:00AM UTC with an
  288. // unspecified expiration date, the job expires after 2017/01/31 13:00AM UTC.
  289. //
  290. // If this value isn't provided on job update, it depends on the field masks
  291. // set by [UpdateJobRequest.update_mask][google.cloud.talent.v4beta1.UpdateJobRequest.update_mask]. If the field masks include
  292. // [job_end_time][google.cloud.talent.v4beta1.Job.job_end_time], or the masks are empty meaning that every field is
  293. // updated, the job posting expires after 30 days from the job's last
  294. // update time. Otherwise the expiration date isn't updated.
  295. google.protobuf.Timestamp posting_expire_time = 25;
  296. // Output only. The timestamp when this job posting was created.
  297. google.protobuf.Timestamp posting_create_time = 26 [(google.api.field_behavior) = OUTPUT_ONLY];
  298. // Output only. The timestamp when this job posting was last updated.
  299. google.protobuf.Timestamp posting_update_time = 27 [(google.api.field_behavior) = OUTPUT_ONLY];
  300. // Output only. Display name of the company listing the job.
  301. string company_display_name = 28 [(google.api.field_behavior) = OUTPUT_ONLY];
  302. // Output only. Derived details about the job posting.
  303. DerivedInfo derived_info = 29 [(google.api.field_behavior) = OUTPUT_ONLY];
  304. // Options for job processing.
  305. ProcessingOptions processing_options = 30;
  306. }