event.proto 7.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170
  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.v4;
  16. import "google/api/field_behavior.proto";
  17. import "google/protobuf/timestamp.proto";
  18. option go_package = "google.golang.org/genproto/googleapis/cloud/talent/v4;talent";
  19. option java_multiple_files = true;
  20. option java_outer_classname = "EventProto";
  21. option java_package = "com.google.cloud.talent.v4";
  22. option objc_class_prefix = "CTS";
  23. // An event issued when an end user interacts with the application that
  24. // implements Cloud Talent Solution. Providing this information improves the
  25. // quality of results for the API clients, enabling the
  26. // service to perform optimally. The number of events sent must be consistent
  27. // with other calls, such as job searches, issued to the service by the client.
  28. message ClientEvent {
  29. // Strongly recommended for the best service experience.
  30. //
  31. // A unique ID generated in the API responses. It can be found in
  32. // [ResponseMetadata.request_id][google.cloud.talent.v4.ResponseMetadata.request_id].
  33. string request_id = 1;
  34. // Required. A unique identifier, generated by the client application.
  35. string event_id = 2 [(google.api.field_behavior) = REQUIRED];
  36. // Required. The timestamp of the event.
  37. google.protobuf.Timestamp create_time = 4 [(google.api.field_behavior) = REQUIRED];
  38. // Required.
  39. //
  40. // The detail information of a specific event type.
  41. oneof event {
  42. // An event issued when a job seeker interacts with the application that
  43. // implements Cloud Talent Solution.
  44. JobEvent job_event = 5;
  45. }
  46. // Notes about the event provided by recruiters or other users, for example,
  47. // feedback on why a job was bookmarked.
  48. string event_notes = 9;
  49. }
  50. // An event issued when a job seeker interacts with the application that
  51. // implements Cloud Talent Solution.
  52. message JobEvent {
  53. // An enumeration of an event attributed to the behavior of the end user,
  54. // such as a job seeker.
  55. enum JobEventType {
  56. // The event is unspecified by other provided values.
  57. JOB_EVENT_TYPE_UNSPECIFIED = 0;
  58. // The job seeker or other entity interacting with the service has
  59. // had a job rendered in their view, such as in a list of search results in
  60. // a compressed or clipped format. This event is typically associated with
  61. // the viewing of a jobs list on a single page by a job seeker.
  62. IMPRESSION = 1;
  63. // The job seeker, or other entity interacting with the service, has
  64. // viewed the details of a job, including the full description. This
  65. // event doesn't apply to the viewing a snippet of a job appearing as a
  66. // part of the job search results. Viewing a snippet is associated with an
  67. // [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION]).
  68. VIEW = 2;
  69. // The job seeker or other entity interacting with the service
  70. // performed an action to view a job and was redirected to a different
  71. // website for job.
  72. VIEW_REDIRECT = 3;
  73. // The job seeker or other entity interacting with the service
  74. // began the process or demonstrated the intention of applying for a job.
  75. APPLICATION_START = 4;
  76. // The job seeker or other entity interacting with the service
  77. // submitted an application for a job.
  78. APPLICATION_FINISH = 5;
  79. // The job seeker or other entity interacting with the service
  80. // submitted an application for a job with a single click without
  81. // entering information. If a job seeker performs this action, send only
  82. // this event to the service. Do not also send
  83. // [JobEventType.APPLICATION_START][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_START] or [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_FINISH]
  84. // events.
  85. APPLICATION_QUICK_SUBMISSION = 6;
  86. // The job seeker or other entity interacting with the service
  87. // performed an action to apply to a job and was redirected to a different
  88. // website to complete the application.
  89. APPLICATION_REDIRECT = 7;
  90. // The job seeker or other entity interacting with the service began the
  91. // process or demonstrated the intention of applying for a job from the
  92. // search results page without viewing the details of the job posting.
  93. // If sending this event, JobEventType.VIEW event shouldn't be sent.
  94. APPLICATION_START_FROM_SEARCH = 8;
  95. // The job seeker, or other entity interacting with the service, performs an
  96. // action with a single click from the search results page to apply to a job
  97. // (without viewing the details of the job posting), and is redirected
  98. // to a different website to complete the application. If a candidate
  99. // performs this action, send only this event to the service. Do not also
  100. // send [JobEventType.APPLICATION_START][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_START],
  101. // [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4.JobEvent.JobEventType.APPLICATION_FINISH] or [JobEventType.VIEW][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] events.
  102. APPLICATION_REDIRECT_FROM_SEARCH = 9;
  103. // This event should be used when a company submits an application
  104. // on behalf of a job seeker. This event is intended for use by staffing
  105. // agencies attempting to place candidates.
  106. APPLICATION_COMPANY_SUBMIT = 10;
  107. // The job seeker or other entity interacting with the service demonstrated
  108. // an interest in a job by bookmarking or saving it.
  109. BOOKMARK = 11;
  110. // The job seeker or other entity interacting with the service was
  111. // sent a notification, such as an email alert or device notification,
  112. // containing one or more jobs listings generated by the service.
  113. NOTIFICATION = 12;
  114. // The job seeker or other entity interacting with the service was
  115. // employed by the hiring entity (employer). Send this event
  116. // only if the job seeker was hired through an application that was
  117. // initiated by a search conducted through the Cloud Talent Solution
  118. // service.
  119. HIRED = 13;
  120. // A recruiter or staffing agency submitted an application on behalf of the
  121. // candidate after interacting with the service to identify a suitable job
  122. // posting.
  123. SENT_CV = 14;
  124. // The entity interacting with the service (for example, the job seeker),
  125. // was granted an initial interview by the hiring entity (employer). This
  126. // event should only be sent if the job seeker was granted an interview as
  127. // part of an application that was initiated by a search conducted through /
  128. // recommendation provided by the Cloud Talent Solution service.
  129. INTERVIEW_GRANTED = 15;
  130. }
  131. // Required. The type of the event (see [JobEventType][google.cloud.talent.v4.JobEvent.JobEventType]).
  132. JobEventType type = 1 [(google.api.field_behavior) = REQUIRED];
  133. // Required. The [job name(s)][google.cloud.talent.v4.Job.name] associated with this event.
  134. // For example, if this is an [impression][google.cloud.talent.v4.JobEvent.JobEventType.IMPRESSION] event,
  135. // this field contains the identifiers of all jobs shown to the job seeker.
  136. // If this was a [view][google.cloud.talent.v4.JobEvent.JobEventType.VIEW] event, this field contains the
  137. // identifier of the viewed job.
  138. //
  139. // The format is
  140. // "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
  141. // example, "projects/foo/tenants/bar/jobs/baz".
  142. repeated string jobs = 2 [(google.api.field_behavior) = REQUIRED];
  143. }