job.proto 16 KB

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