xref: /aosp_15_r20/external/googleapis/google/cloud/talent/v4beta1/event.proto (revision d5c09012810ac0c9f33fe448fb6da8260d444cc9)
1*d5c09012SAndroid Build Coastguard Worker// Copyright 2023 Google LLC
2*d5c09012SAndroid Build Coastguard Worker//
3*d5c09012SAndroid Build Coastguard Worker// Licensed under the Apache License, Version 2.0 (the "License");
4*d5c09012SAndroid Build Coastguard Worker// you may not use this file except in compliance with the License.
5*d5c09012SAndroid Build Coastguard Worker// You may obtain a copy of the License at
6*d5c09012SAndroid Build Coastguard Worker//
7*d5c09012SAndroid Build Coastguard Worker//     http://www.apache.org/licenses/LICENSE-2.0
8*d5c09012SAndroid Build Coastguard Worker//
9*d5c09012SAndroid Build Coastguard Worker// Unless required by applicable law or agreed to in writing, software
10*d5c09012SAndroid Build Coastguard Worker// distributed under the License is distributed on an "AS IS" BASIS,
11*d5c09012SAndroid Build Coastguard Worker// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12*d5c09012SAndroid Build Coastguard Worker// See the License for the specific language governing permissions and
13*d5c09012SAndroid Build Coastguard Worker// limitations under the License.
14*d5c09012SAndroid Build Coastguard Worker
15*d5c09012SAndroid Build Coastguard Workersyntax = "proto3";
16*d5c09012SAndroid Build Coastguard Worker
17*d5c09012SAndroid Build Coastguard Workerpackage google.cloud.talent.v4beta1;
18*d5c09012SAndroid Build Coastguard Worker
19*d5c09012SAndroid Build Coastguard Workerimport "google/api/field_behavior.proto";
20*d5c09012SAndroid Build Coastguard Workerimport "google/protobuf/timestamp.proto";
21*d5c09012SAndroid Build Coastguard Worker
22*d5c09012SAndroid Build Coastguard Workeroption go_package = "cloud.google.com/go/talent/apiv4beta1/talentpb;talentpb";
23*d5c09012SAndroid Build Coastguard Workeroption java_multiple_files = true;
24*d5c09012SAndroid Build Coastguard Workeroption java_outer_classname = "EventProto";
25*d5c09012SAndroid Build Coastguard Workeroption java_package = "com.google.cloud.talent.v4beta1";
26*d5c09012SAndroid Build Coastguard Workeroption objc_class_prefix = "CTS";
27*d5c09012SAndroid Build Coastguard Worker
28*d5c09012SAndroid Build Coastguard Worker// An event issued when an end user interacts with the application that
29*d5c09012SAndroid Build Coastguard Worker// implements Cloud Talent Solution. Providing this information improves the
30*d5c09012SAndroid Build Coastguard Worker// quality of results for the API clients, enabling the
31*d5c09012SAndroid Build Coastguard Worker// service to perform optimally. The number of events sent must be consistent
32*d5c09012SAndroid Build Coastguard Worker// with other calls, such as job searches, issued to the service by the client.
33*d5c09012SAndroid Build Coastguard Workermessage ClientEvent {
34*d5c09012SAndroid Build Coastguard Worker  // Strongly recommended for the best service experience.
35*d5c09012SAndroid Build Coastguard Worker  //
36*d5c09012SAndroid Build Coastguard Worker  // A unique ID generated in the API responses. It can be found in
37*d5c09012SAndroid Build Coastguard Worker  // [ResponseMetadata.request_id][google.cloud.talent.v4beta1.ResponseMetadata.request_id].
38*d5c09012SAndroid Build Coastguard Worker  string request_id = 1;
39*d5c09012SAndroid Build Coastguard Worker
40*d5c09012SAndroid Build Coastguard Worker  // Required. A unique identifier, generated by the client application.
41*d5c09012SAndroid Build Coastguard Worker  string event_id = 2 [(google.api.field_behavior) = REQUIRED];
42*d5c09012SAndroid Build Coastguard Worker
43*d5c09012SAndroid Build Coastguard Worker  // Required. The timestamp of the event.
44*d5c09012SAndroid Build Coastguard Worker  google.protobuf.Timestamp create_time = 4
45*d5c09012SAndroid Build Coastguard Worker      [(google.api.field_behavior) = REQUIRED];
46*d5c09012SAndroid Build Coastguard Worker
47*d5c09012SAndroid Build Coastguard Worker  // Required.
48*d5c09012SAndroid Build Coastguard Worker  //
49*d5c09012SAndroid Build Coastguard Worker  // The detail information of a specific event type.
50*d5c09012SAndroid Build Coastguard Worker  oneof event {
51*d5c09012SAndroid Build Coastguard Worker    // An event issued when a job seeker interacts with the application that
52*d5c09012SAndroid Build Coastguard Worker    // implements Cloud Talent Solution.
53*d5c09012SAndroid Build Coastguard Worker    JobEvent job_event = 5;
54*d5c09012SAndroid Build Coastguard Worker  }
55*d5c09012SAndroid Build Coastguard Worker
56*d5c09012SAndroid Build Coastguard Worker  // Notes about the event provided by recruiters or other users, for example,
57*d5c09012SAndroid Build Coastguard Worker  // feedback on why a profile was bookmarked.
58*d5c09012SAndroid Build Coastguard Worker  string event_notes = 9;
59*d5c09012SAndroid Build Coastguard Worker}
60*d5c09012SAndroid Build Coastguard Worker
61*d5c09012SAndroid Build Coastguard Worker// An event issued when a job seeker interacts with the application that
62*d5c09012SAndroid Build Coastguard Worker// implements Cloud Talent Solution.
63*d5c09012SAndroid Build Coastguard Workermessage JobEvent {
64*d5c09012SAndroid Build Coastguard Worker  // An enumeration of an event attributed to the behavior of the end user,
65*d5c09012SAndroid Build Coastguard Worker  // such as a job seeker.
66*d5c09012SAndroid Build Coastguard Worker  enum JobEventType {
67*d5c09012SAndroid Build Coastguard Worker    // The event is unspecified by other provided values.
68*d5c09012SAndroid Build Coastguard Worker    JOB_EVENT_TYPE_UNSPECIFIED = 0;
69*d5c09012SAndroid Build Coastguard Worker
70*d5c09012SAndroid Build Coastguard Worker    // The job seeker or other entity interacting with the service has
71*d5c09012SAndroid Build Coastguard Worker    // had a job rendered in their view, such as in a list of search results in
72*d5c09012SAndroid Build Coastguard Worker    // a compressed or clipped format. This event is typically associated with
73*d5c09012SAndroid Build Coastguard Worker    // the viewing of a jobs list on a single page by a job seeker.
74*d5c09012SAndroid Build Coastguard Worker    IMPRESSION = 1;
75*d5c09012SAndroid Build Coastguard Worker
76*d5c09012SAndroid Build Coastguard Worker    // The job seeker, or other entity interacting with the service, has
77*d5c09012SAndroid Build Coastguard Worker    // viewed the details of a job, including the full description. This
78*d5c09012SAndroid Build Coastguard Worker    // event doesn't apply to the viewing a snippet of a job appearing as a
79*d5c09012SAndroid Build Coastguard Worker    // part of the job search results. Viewing a snippet is associated with an
80*d5c09012SAndroid Build Coastguard Worker    // [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]).
81*d5c09012SAndroid Build Coastguard Worker    VIEW = 2;
82*d5c09012SAndroid Build Coastguard Worker
83*d5c09012SAndroid Build Coastguard Worker    // The job seeker or other entity interacting with the service
84*d5c09012SAndroid Build Coastguard Worker    // performed an action to view a job and was redirected to a different
85*d5c09012SAndroid Build Coastguard Worker    // website for job.
86*d5c09012SAndroid Build Coastguard Worker    VIEW_REDIRECT = 3;
87*d5c09012SAndroid Build Coastguard Worker
88*d5c09012SAndroid Build Coastguard Worker    // The job seeker or other entity interacting with the service
89*d5c09012SAndroid Build Coastguard Worker    // began the process or demonstrated the intention of applying for a job.
90*d5c09012SAndroid Build Coastguard Worker    APPLICATION_START = 4;
91*d5c09012SAndroid Build Coastguard Worker
92*d5c09012SAndroid Build Coastguard Worker    // The job seeker or other entity interacting with the service
93*d5c09012SAndroid Build Coastguard Worker    // submitted an application for a job.
94*d5c09012SAndroid Build Coastguard Worker    APPLICATION_FINISH = 5;
95*d5c09012SAndroid Build Coastguard Worker
96*d5c09012SAndroid Build Coastguard Worker    // The job seeker or other entity interacting with the service
97*d5c09012SAndroid Build Coastguard Worker    // submitted an application for a job with a single click without
98*d5c09012SAndroid Build Coastguard Worker    // entering information. If a job seeker performs this action, send only
99*d5c09012SAndroid Build Coastguard Worker    // this event to the service. Do not also send
100*d5c09012SAndroid Build Coastguard Worker    // [JobEventType.APPLICATION_START][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_START]
101*d5c09012SAndroid Build Coastguard Worker    // or
102*d5c09012SAndroid Build Coastguard Worker    // [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_FINISH]
103*d5c09012SAndroid Build Coastguard Worker    // events.
104*d5c09012SAndroid Build Coastguard Worker    APPLICATION_QUICK_SUBMISSION = 6;
105*d5c09012SAndroid Build Coastguard Worker
106*d5c09012SAndroid Build Coastguard Worker    // The job seeker or other entity interacting with the service
107*d5c09012SAndroid Build Coastguard Worker    // performed an action to apply to a job and was redirected to a different
108*d5c09012SAndroid Build Coastguard Worker    // website to complete the application.
109*d5c09012SAndroid Build Coastguard Worker    APPLICATION_REDIRECT = 7;
110*d5c09012SAndroid Build Coastguard Worker
111*d5c09012SAndroid Build Coastguard Worker    // The job seeker or other entity interacting with the service began the
112*d5c09012SAndroid Build Coastguard Worker    // process or demonstrated the intention of applying for a job from the
113*d5c09012SAndroid Build Coastguard Worker    // search results page without viewing the details of the job posting.
114*d5c09012SAndroid Build Coastguard Worker    // If sending this event, JobEventType.VIEW event shouldn't be sent.
115*d5c09012SAndroid Build Coastguard Worker    APPLICATION_START_FROM_SEARCH = 8;
116*d5c09012SAndroid Build Coastguard Worker
117*d5c09012SAndroid Build Coastguard Worker    // The job seeker, or other entity interacting with the service, performs an
118*d5c09012SAndroid Build Coastguard Worker    // action with a single click from the search results page to apply to a job
119*d5c09012SAndroid Build Coastguard Worker    // (without viewing the details of the job posting), and is redirected
120*d5c09012SAndroid Build Coastguard Worker    // to a different website to complete the application. If a candidate
121*d5c09012SAndroid Build Coastguard Worker    // performs this action, send only this event to the service. Do not also
122*d5c09012SAndroid Build Coastguard Worker    // send
123*d5c09012SAndroid Build Coastguard Worker    // [JobEventType.APPLICATION_START][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_START],
124*d5c09012SAndroid Build Coastguard Worker    // [JobEventType.APPLICATION_FINISH][google.cloud.talent.v4beta1.JobEvent.JobEventType.APPLICATION_FINISH]
125*d5c09012SAndroid Build Coastguard Worker    // or
126*d5c09012SAndroid Build Coastguard Worker    // [JobEventType.VIEW][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW]
127*d5c09012SAndroid Build Coastguard Worker    // events.
128*d5c09012SAndroid Build Coastguard Worker    APPLICATION_REDIRECT_FROM_SEARCH = 9;
129*d5c09012SAndroid Build Coastguard Worker
130*d5c09012SAndroid Build Coastguard Worker    // This event should be used when a company submits an application
131*d5c09012SAndroid Build Coastguard Worker    // on behalf of a job seeker. This event is intended for use by staffing
132*d5c09012SAndroid Build Coastguard Worker    // agencies attempting to place candidates.
133*d5c09012SAndroid Build Coastguard Worker    APPLICATION_COMPANY_SUBMIT = 10;
134*d5c09012SAndroid Build Coastguard Worker
135*d5c09012SAndroid Build Coastguard Worker    // The job seeker or other entity interacting with the service demonstrated
136*d5c09012SAndroid Build Coastguard Worker    // an interest in a job by bookmarking or saving it.
137*d5c09012SAndroid Build Coastguard Worker    BOOKMARK = 11;
138*d5c09012SAndroid Build Coastguard Worker
139*d5c09012SAndroid Build Coastguard Worker    // The job seeker or other entity interacting with the service was
140*d5c09012SAndroid Build Coastguard Worker    // sent a notification, such as an email alert or device notification,
141*d5c09012SAndroid Build Coastguard Worker    // containing one or more jobs listings generated by the service.
142*d5c09012SAndroid Build Coastguard Worker    NOTIFICATION = 12;
143*d5c09012SAndroid Build Coastguard Worker
144*d5c09012SAndroid Build Coastguard Worker    // The job seeker or other entity interacting with the service was
145*d5c09012SAndroid Build Coastguard Worker    // employed by the hiring entity (employer). Send this event
146*d5c09012SAndroid Build Coastguard Worker    // only if the job seeker was hired through an application that was
147*d5c09012SAndroid Build Coastguard Worker    // initiated by a search conducted through the Cloud Talent Solution
148*d5c09012SAndroid Build Coastguard Worker    // service.
149*d5c09012SAndroid Build Coastguard Worker    HIRED = 13;
150*d5c09012SAndroid Build Coastguard Worker
151*d5c09012SAndroid Build Coastguard Worker    // A recruiter or staffing agency submitted an application on behalf of the
152*d5c09012SAndroid Build Coastguard Worker    // candidate after interacting with the service to identify a suitable job
153*d5c09012SAndroid Build Coastguard Worker    // posting.
154*d5c09012SAndroid Build Coastguard Worker    SENT_CV = 14;
155*d5c09012SAndroid Build Coastguard Worker
156*d5c09012SAndroid Build Coastguard Worker    // The entity interacting with the service (for example, the job seeker),
157*d5c09012SAndroid Build Coastguard Worker    // was granted an initial interview by the hiring entity (employer). This
158*d5c09012SAndroid Build Coastguard Worker    // event should only be sent if the job seeker was granted an interview as
159*d5c09012SAndroid Build Coastguard Worker    // part of an application that was initiated by a search conducted through /
160*d5c09012SAndroid Build Coastguard Worker    // recommendation provided by the Cloud Talent Solution service.
161*d5c09012SAndroid Build Coastguard Worker    INTERVIEW_GRANTED = 15;
162*d5c09012SAndroid Build Coastguard Worker  }
163*d5c09012SAndroid Build Coastguard Worker
164*d5c09012SAndroid Build Coastguard Worker  // Required. The type of the event (see
165*d5c09012SAndroid Build Coastguard Worker  // [JobEventType][google.cloud.talent.v4beta1.JobEvent.JobEventType]).
166*d5c09012SAndroid Build Coastguard Worker  JobEventType type = 1 [(google.api.field_behavior) = REQUIRED];
167*d5c09012SAndroid Build Coastguard Worker
168*d5c09012SAndroid Build Coastguard Worker  // Required. The [job name(s)][google.cloud.talent.v4beta1.Job.name]
169*d5c09012SAndroid Build Coastguard Worker  // associated with this event. For example, if this is an
170*d5c09012SAndroid Build Coastguard Worker  // [impression][google.cloud.talent.v4beta1.JobEvent.JobEventType.IMPRESSION]
171*d5c09012SAndroid Build Coastguard Worker  // event, this field contains the identifiers of all jobs shown to the job
172*d5c09012SAndroid Build Coastguard Worker  // seeker. If this was a
173*d5c09012SAndroid Build Coastguard Worker  // [view][google.cloud.talent.v4beta1.JobEvent.JobEventType.VIEW] event, this
174*d5c09012SAndroid Build Coastguard Worker  // field contains the identifier of the viewed job.
175*d5c09012SAndroid Build Coastguard Worker  //
176*d5c09012SAndroid Build Coastguard Worker  // The format is
177*d5c09012SAndroid Build Coastguard Worker  // "projects/{project_id}/tenants/{tenant_id}/jobs/{job_id}", for
178*d5c09012SAndroid Build Coastguard Worker  // example, "projects/foo/tenants/bar/jobs/baz".
179*d5c09012SAndroid Build Coastguard Worker  repeated string jobs = 2 [(google.api.field_behavior) = REQUIRED];
180*d5c09012SAndroid Build Coastguard Worker
181*d5c09012SAndroid Build Coastguard Worker  // The [profile name][google.cloud.talent.v4beta1.Profile.name] associated
182*d5c09012SAndroid Build Coastguard Worker  // with this client event.
183*d5c09012SAndroid Build Coastguard Worker  //
184*d5c09012SAndroid Build Coastguard Worker  // The format is
185*d5c09012SAndroid Build Coastguard Worker  // "projects/{project_id}/tenants/{tenant_id}/profiles/{profile_id}",
186*d5c09012SAndroid Build Coastguard Worker  // for example, "projects/foo/tenants/bar/profiles/baz".
187*d5c09012SAndroid Build Coastguard Worker  string profile = 3;
188*d5c09012SAndroid Build Coastguard Worker}
189