-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Expand file tree
/
Copy pathenums.py
More file actions
1143 lines (981 loc) · 47.8 KB
/
Copy pathenums.py
File metadata and controls
1143 lines (981 loc) · 47.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
# -*- coding: utf-8 -*-
#
# Copyright 2019 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
"""Wrappers for protocol buffer enum types."""
import enum
class AvailabilitySignalType(enum.IntEnum):
"""
The type of candidate availability signal.
Attributes:
AVAILABILITY_SIGNAL_TYPE_UNSPECIFIED (int): Default value.
JOB_APPLICATION (int): Job application signal.
In the context of ``Profile.availability_signals``, this signal is
related to the candidate's most recent application. ``last_update_time``
is calculated from max(\ ``Application.create_time``) from all
``Application`` records where ``Application.source`` is any of the
following: ``APPLY_DIRECT_WEB`` ``APPLY_DIRECT_MOBILE_WEB``
``APPLY_DIRECT_MOBILE_APP`` ``APPLY_DIRECT_IN_PERSON``
``APPLY_INDIRECT``
In the context of ``AvailabilityFilter``, the filter is applied on
``Profile.availability_signals`` where ``type`` is JOB\_APPLICATION.
RESUME_UPDATE (int): Resume update signal.
In the context of ``Profile.availability_signals``, this signal is
related to the candidate's most recent update to their resume. For a
``SummarizedProfile.summary``, ``last_update_time`` is calculated from
max(\ ``Profile.resume_update_time``) from all
``SummarizedProfile.profiles``.
In the context of ``AvailabilityFilter``, the filter is applied on
``Profile.availability_signals`` where ``type`` is RESUME\_UPDATE.
CANDIDATE_UPDATE (int): Candidate update signal.
In the context of ``Profile.availability_signals``, this signal is
related to the candidate's most recent update to their profile. For a
``SummarizedProfile.summary``, ``last_update_time`` is calculated from
max(\ ``Profile.candidate_update_time``) from all
``SummarizedProfile.profiles``.
In the context of ``AvailabilityFilter``, the filter is applied on
``Profile.availability_signals`` where ``type`` is CANDIDATE\_UPDATE.
CLIENT_SUBMISSION (int): Client submission signal.
In the context of ``Profile.availability_signals``, this signal is
related to the candidate's most recent submission. ``last_update_time``
is calculated from max(\ ``Application.create_time``) from all
``Application`` records where ``Application.stage`` is any of the
following: ``HIRING_MANAGER_REVIEW`` ``INTERVIEW`` ``OFFER_EXTENDED``
``OFFER_ACCEPTED`` ``STARTED``
In the context of ``AvailabilityFilter``, the filter is applied on
``Profile.availability_signals`` where ``type`` is CLIENT\_SUBMISSION.
"""
AVAILABILITY_SIGNAL_TYPE_UNSPECIFIED = 0
JOB_APPLICATION = 1
RESUME_UPDATE = 2
CANDIDATE_UPDATE = 3
CLIENT_SUBMISSION = 4
class CommuteMethod(enum.IntEnum):
"""
Method for commute.
Attributes:
COMMUTE_METHOD_UNSPECIFIED (int): Commute method isn't specified.
DRIVING (int): Commute time is calculated based on driving time.
TRANSIT (int): Commute time is calculated based on public transit including bus, metro,
subway, and so on.
WALKING (int): Commute time is calculated based on walking time.
CYCLING (int): Commute time is calculated based on biking time.
"""
COMMUTE_METHOD_UNSPECIFIED = 0
DRIVING = 1
TRANSIT = 2
WALKING = 3
CYCLING = 4
class CompanySize(enum.IntEnum):
"""
An enum that represents the size of the company.
Attributes:
COMPANY_SIZE_UNSPECIFIED (int): Default value if the size isn't specified.
MINI (int): The company has less than 50 employees.
SMALL (int): The company has between 50 and 99 employees.
SMEDIUM (int): The company has between 100 and 499 employees.
MEDIUM (int): The company has between 500 and 999 employees.
BIG (int): The company has between 1,000 and 4,999 employees.
BIGGER (int): The company has between 5,000 and 9,999 employees.
GIANT (int): The company has 10,000 or more employees.
"""
COMPANY_SIZE_UNSPECIFIED = 0
MINI = 1
SMALL = 2
SMEDIUM = 3
MEDIUM = 4
BIG = 5
BIGGER = 6
GIANT = 7
class ContactInfoUsage(enum.IntEnum):
"""
Enum that represents the usage of the contact information.
Attributes:
CONTACT_INFO_USAGE_UNSPECIFIED (int): Default value.
PERSONAL (int): Personal use.
WORK (int): Work use.
SCHOOL (int): School use.
"""
CONTACT_INFO_USAGE_UNSPECIFIED = 0
PERSONAL = 1
WORK = 2
SCHOOL = 3
class DegreeType(enum.IntEnum):
"""
Educational degree level defined in International Standard Classification
of Education (ISCED).
Attributes:
DEGREE_TYPE_UNSPECIFIED (int): Default value. Represents no degree, or early childhood education.
Maps to ISCED code 0.
Ex) Kindergarten
PRIMARY_EDUCATION (int): Primary education which is typically the first stage of compulsory
education. ISCED code 1.
Ex) Elementary school
LOWER_SECONDARY_EDUCATION (int): Lower secondary education; First stage of secondary education building on
primary education, typically with a more subject-oriented curriculum.
ISCED code 2.
Ex) Middle school
UPPER_SECONDARY_EDUCATION (int): Middle education; Second/final stage of secondary education preparing for
tertiary education and/or providing skills relevant to employment.
Usually with an increased range of subject options and streams. ISCED
code 3.
Ex) High school
ADULT_REMEDIAL_EDUCATION (int): Adult Remedial Education; Programmes providing learning experiences that
build on secondary education and prepare for labour market entry and/or
tertiary education. The content is broader than secondary but not as
complex as tertiary education. ISCED code 4.
ASSOCIATES_OR_EQUIVALENT (int): Associate's or equivalent; Short first tertiary programmes that are
typically practically-based, occupationally-specific and prepare for
labour market entry. These programmes may also provide a pathway to other
tertiary programmes. ISCED code 5.
BACHELORS_OR_EQUIVALENT (int): Bachelor's or equivalent; Programmes designed to provide intermediate
academic and/or professional knowledge, skills and competencies leading
to a first tertiary degree or equivalent qualification. ISCED code 6.
MASTERS_OR_EQUIVALENT (int): Master's or equivalent; Programmes designed to provide advanced academic
and/or professional knowledge, skills and competencies leading to a
second tertiary degree or equivalent qualification. ISCED code 7.
DOCTORAL_OR_EQUIVALENT (int): Doctoral or equivalent; Programmes designed primarily to lead to an
advanced research qualification, usually concluding with the submission
and defense of a substantive dissertation of publishable quality based on
original research. ISCED code 8.
"""
DEGREE_TYPE_UNSPECIFIED = 0
PRIMARY_EDUCATION = 1
LOWER_SECONDARY_EDUCATION = 2
UPPER_SECONDARY_EDUCATION = 3
ADULT_REMEDIAL_EDUCATION = 4
ASSOCIATES_OR_EQUIVALENT = 5
BACHELORS_OR_EQUIVALENT = 6
MASTERS_OR_EQUIVALENT = 7
DOCTORAL_OR_EQUIVALENT = 8
class EmploymentType(enum.IntEnum):
"""
An enum that represents the employment type of a job.
Attributes:
EMPLOYMENT_TYPE_UNSPECIFIED (int): The default value if the employment type isn't specified.
FULL_TIME (int): The job requires working a number of hours that constitute full
time employment, typically 40 or more hours per week.
PART_TIME (int): The job entails working fewer hours than a full time job,
typically less than 40 hours a week.
CONTRACTOR (int): The job is offered as a contracted, as opposed to a salaried employee,
position.
CONTRACT_TO_HIRE (int): The job is offered as a contracted position with the understanding that
it's converted into a full-time position at the end of the contract.
Jobs of this type are also returned by a search for
``EmploymentType.CONTRACTOR`` jobs.
TEMPORARY (int): The job is offered as a temporary employment opportunity, usually
a short-term engagement.
INTERN (int): The job is a fixed-term opportunity for students or entry-level job
seekers to obtain on-the-job training, typically offered as a summer
position.
VOLUNTEER (int): The is an opportunity for an individual to volunteer, where there's no
expectation of compensation for the provided services.
PER_DIEM (int): The job requires an employee to work on an as-needed basis with a
flexible schedule.
FLY_IN_FLY_OUT (int): The job involves employing people in remote areas and flying them
temporarily to the work site instead of relocating employees and their
families permanently.
OTHER_EMPLOYMENT_TYPE (int): The job does not fit any of the other listed types.
"""
EMPLOYMENT_TYPE_UNSPECIFIED = 0
FULL_TIME = 1
PART_TIME = 2
CONTRACTOR = 3
CONTRACT_TO_HIRE = 4
TEMPORARY = 5
INTERN = 6
VOLUNTEER = 7
PER_DIEM = 8
FLY_IN_FLY_OUT = 9
OTHER_EMPLOYMENT_TYPE = 10
class HtmlSanitization(enum.IntEnum):
"""
Option for HTML content sanitization on user input fields, for example, job
description. By setting this option, user can determine whether and how
sanitization is performed on these fields.
Attributes:
HTML_SANITIZATION_UNSPECIFIED (int): Default value.
HTML_SANITIZATION_DISABLED (int): Disables sanitization on HTML input.
SIMPLE_FORMATTING_ONLY (int): Sanitizes HTML input, only accepts bold, italic, ordered list, and
unordered list markup tags.
"""
HTML_SANITIZATION_UNSPECIFIED = 0
HTML_SANITIZATION_DISABLED = 1
SIMPLE_FORMATTING_ONLY = 2
class JobBenefit(enum.IntEnum):
"""
An enum that represents employee benefits included with the job.
Attributes:
JOB_BENEFIT_UNSPECIFIED (int): Default value if the type isn't specified.
CHILD_CARE (int): The job includes access to programs that support child care, such
as daycare.
DENTAL (int): The job includes dental services covered by a dental
insurance plan.
DOMESTIC_PARTNER (int): The job offers specific benefits to domestic partners.
FLEXIBLE_HOURS (int): The job allows for a flexible work schedule.
MEDICAL (int): The job includes health services covered by a medical insurance plan.
LIFE_INSURANCE (int): The job includes a life insurance plan provided by the employer or
available for purchase by the employee.
PARENTAL_LEAVE (int): The job allows for a leave of absence to a parent to care for a newborn
child.
RETIREMENT_PLAN (int): The job includes a workplace retirement plan provided by the
employer or available for purchase by the employee.
SICK_DAYS (int): The job allows for paid time off due to illness.
VACATION (int): The job includes paid time off for vacation.
VISION (int): The job includes vision services covered by a vision
insurance plan.
"""
JOB_BENEFIT_UNSPECIFIED = 0
CHILD_CARE = 1
DENTAL = 2
DOMESTIC_PARTNER = 3
FLEXIBLE_HOURS = 4
MEDICAL = 5
LIFE_INSURANCE = 6
PARENTAL_LEAVE = 7
RETIREMENT_PLAN = 8
SICK_DAYS = 9
VACATION = 10
VISION = 11
class JobCategory(enum.IntEnum):
"""
An enum that represents the categorization or primary focus of specific
role. This value is different than the "industry" associated with a role,
which is related to the categorization of the company listing the job.
Attributes:
JOB_CATEGORY_UNSPECIFIED (int): The default value if the category isn't specified.
ACCOUNTING_AND_FINANCE (int): An accounting and finance job, such as an Accountant.
ADMINISTRATIVE_AND_OFFICE (int): An administrative and office job, such as an Administrative Assistant.
ADVERTISING_AND_MARKETING (int): An advertising and marketing job, such as Marketing Manager.
ANIMAL_CARE (int): An animal care job, such as Veterinarian.
ART_FASHION_AND_DESIGN (int): An art, fashion, or design job, such as Designer.
BUSINESS_OPERATIONS (int): A business operations job, such as Business Operations Manager.
CLEANING_AND_FACILITIES (int): A cleaning and facilities job, such as Custodial Staff.
COMPUTER_AND_IT (int): A computer and IT job, such as Systems Administrator.
CONSTRUCTION (int): A construction job, such as General Laborer.
CUSTOMER_SERVICE (int): A customer service job, such s Cashier.
EDUCATION (int): An education job, such as School Teacher.
ENTERTAINMENT_AND_TRAVEL (int): An entertainment and travel job, such as Flight Attendant.
FARMING_AND_OUTDOORS (int): A farming or outdoor job, such as Park Ranger.
HEALTHCARE (int): A healthcare job, such as Registered Nurse.
HUMAN_RESOURCES (int): A human resources job, such as Human Resources Director.
INSTALLATION_MAINTENANCE_AND_REPAIR (int): An installation, maintenance, or repair job, such as Electrician.
LEGAL (int): A legal job, such as Law Clerk.
MANAGEMENT (int): A management job, often used in conjunction with another category,
such as Store Manager.
MANUFACTURING_AND_WAREHOUSE (int): A manufacturing or warehouse job, such as Assembly Technician.
MEDIA_COMMUNICATIONS_AND_WRITING (int): A media, communications, or writing job, such as Media Relations.
OIL_GAS_AND_MINING (int): An oil, gas or mining job, such as Offshore Driller.
PERSONAL_CARE_AND_SERVICES (int): A personal care and services job, such as Hair Stylist.
PROTECTIVE_SERVICES (int): A protective services job, such as Security Guard.
REAL_ESTATE (int): A real estate job, such as Buyer's Agent.
RESTAURANT_AND_HOSPITALITY (int): A restaurant and hospitality job, such as Restaurant Server.
SALES_AND_RETAIL (int): A sales and/or retail job, such Sales Associate.
SCIENCE_AND_ENGINEERING (int): A science and engineering job, such as Lab Technician.
SOCIAL_SERVICES_AND_NON_PROFIT (int): A social services or non-profit job, such as Case Worker.
SPORTS_FITNESS_AND_RECREATION (int): A sports, fitness, or recreation job, such as Personal Trainer.
TRANSPORTATION_AND_LOGISTICS (int): A transportation or logistics job, such as Truck Driver.
"""
JOB_CATEGORY_UNSPECIFIED = 0
ACCOUNTING_AND_FINANCE = 1
ADMINISTRATIVE_AND_OFFICE = 2
ADVERTISING_AND_MARKETING = 3
ANIMAL_CARE = 4
ART_FASHION_AND_DESIGN = 5
BUSINESS_OPERATIONS = 6
CLEANING_AND_FACILITIES = 7
COMPUTER_AND_IT = 8
CONSTRUCTION = 9
CUSTOMER_SERVICE = 10
EDUCATION = 11
ENTERTAINMENT_AND_TRAVEL = 12
FARMING_AND_OUTDOORS = 13
HEALTHCARE = 14
HUMAN_RESOURCES = 15
INSTALLATION_MAINTENANCE_AND_REPAIR = 16
LEGAL = 17
MANAGEMENT = 18
MANUFACTURING_AND_WAREHOUSE = 19
MEDIA_COMMUNICATIONS_AND_WRITING = 20
OIL_GAS_AND_MINING = 21
PERSONAL_CARE_AND_SERVICES = 22
PROTECTIVE_SERVICES = 23
REAL_ESTATE = 24
RESTAURANT_AND_HOSPITALITY = 25
SALES_AND_RETAIL = 26
SCIENCE_AND_ENGINEERING = 27
SOCIAL_SERVICES_AND_NON_PROFIT = 28
SPORTS_FITNESS_AND_RECREATION = 29
TRANSPORTATION_AND_LOGISTICS = 30
class JobLevel(enum.IntEnum):
"""
An enum that represents the required experience level required for the job.
Attributes:
JOB_LEVEL_UNSPECIFIED (int): The default value if the level isn't specified.
ENTRY_LEVEL (int): Entry-level individual contributors, typically with less than 2 years of
experience in a similar role. Includes interns.
EXPERIENCED (int): Experienced individual contributors, typically with 2+ years of
experience in a similar role.
MANAGER (int): Entry- to mid-level managers responsible for managing a team of people.
DIRECTOR (int): Senior-level managers responsible for managing teams of managers.
EXECUTIVE (int): Executive-level managers and above, including C-level positions.
"""
JOB_LEVEL_UNSPECIFIED = 0
ENTRY_LEVEL = 1
EXPERIENCED = 2
MANAGER = 3
DIRECTOR = 4
EXECUTIVE = 5
class JobView(enum.IntEnum):
"""
An enum that specifies the job attributes that are returned in the
``MatchingJob.job`` or ``ListJobsResponse.jobs`` fields.
Attributes:
JOB_VIEW_UNSPECIFIED (int): Default value.
JOB_VIEW_ID_ONLY (int): A ID only view of job, with following attributes: ``Job.name``,
``Job.requisition_id``, ``Job.language_code``.
JOB_VIEW_MINIMAL (int): A minimal view of the job, with the following attributes: ``Job.name``,
``Job.requisition_id``, ``Job.title``, ``Job.company``,
``Job.DerivedInfo.locations``, ``Job.language_code``.
JOB_VIEW_SMALL (int): A small view of the job, with the following attributes in the search
results: ``Job.name``, ``Job.requisition_id``, ``Job.title``,
``Job.company``, ``Job.DerivedInfo.locations``, ``Job.visibility``,
``Job.language_code``, ``Job.description``.
JOB_VIEW_FULL (int): All available attributes are included in the search results.
"""
JOB_VIEW_UNSPECIFIED = 0
JOB_VIEW_ID_ONLY = 1
JOB_VIEW_MINIMAL = 2
JOB_VIEW_SMALL = 3
JOB_VIEW_FULL = 4
class Outcome(enum.IntEnum):
"""
The overall outcome /decision / result indicator.
Attributes:
OUTCOME_UNSPECIFIED (int): Default value.
POSITIVE (int): A positive outcome / passing indicator (for example, candidate was
recommended for hiring or to be moved forward in the hiring process,
candidate passed a test).
NEUTRAL (int): A neutral outcome / no clear indicator (for example, no strong
reccommendation either to move forward / not move forward, neutral score).
NEGATIVE (int): A negative outcome / failing indicator (for example, candidate was
recommended to NOT move forward in the hiring process, failed a test).
OUTCOME_NOT_AVAILABLE (int): The assessment outcome is not available or otherwise unknown (for example,
candidate did not complete assessment).
"""
OUTCOME_UNSPECIFIED = 0
POSITIVE = 1
NEUTRAL = 2
NEGATIVE = 3
OUTCOME_NOT_AVAILABLE = 4
class PostingRegion(enum.IntEnum):
"""
An enum that represents the job posting region. In most cases, job postings
don't need to specify a region. If a region is given, jobs are
eligible for searches in the specified region.
Attributes:
POSTING_REGION_UNSPECIFIED (int): If the region is unspecified, the job is only returned if it matches the
``LocationFilter``.
ADMINISTRATIVE_AREA (int): In addition to exact location matching, job posting is returned when the
``LocationFilter`` in the search query is in the same administrative
area as the returned job posting. For example, if a
``ADMINISTRATIVE_AREA`` job is posted in "CA, USA", it's returned if
``LocationFilter`` has "Mountain View".
Administrative area refers to top-level administrative subdivision of
this country. For example, US state, IT region, UK constituent nation
and JP prefecture.
NATION (int): In addition to exact location matching, job is returned when
``LocationFilter`` in search query is in the same country as this job.
For example, if a ``NATION_WIDE`` job is posted in "USA", it's returned
if ``LocationFilter`` has 'Mountain View'.
TELECOMMUTE (int): Job allows employees to work remotely (telecommute).
If locations are provided with this value, the job is
considered as having a location, but telecommuting is allowed.
"""
POSTING_REGION_UNSPECIFIED = 0
ADMINISTRATIVE_AREA = 1
NATION = 2
TELECOMMUTE = 3
class SkillProficiencyLevel(enum.IntEnum):
"""
Enum that represents the skill proficiency level.
Attributes:
SKILL_PROFICIENCY_LEVEL_UNSPECIFIED (int): Default value.
UNSKILLED (int): Lacks any proficiency in this skill.
FUNDAMENTAL_AWARENESS (int): Have a common knowledge or an understanding of basic techniques and
concepts.
NOVICE (int): Have the level of experience gained in a classroom and/or experimental
scenarios or as a trainee on-the-job.
INTERMEDIATE (int): Be able to successfully complete tasks in this skill as requested. Help
from an expert may be required from time to time, but can usually perform
skill independently.
ADVANCED (int): Can perform the actions associated with this skill without assistance.
EXPERT (int): Known as an expert in this area.
"""
SKILL_PROFICIENCY_LEVEL_UNSPECIFIED = 0
UNSKILLED = 6
FUNDAMENTAL_AWARENESS = 1
NOVICE = 2
INTERMEDIATE = 3
ADVANCED = 4
EXPERT = 5
class Visibility(enum.IntEnum):
"""
Deprecated. All resources are only visible to the owner.
An enum that represents who has view access to the resource.
Attributes:
VISIBILITY_UNSPECIFIED (int): Default value.
ACCOUNT_ONLY (int): The resource is only visible to the GCP account who owns it.
SHARED_WITH_GOOGLE (int): The resource is visible to the owner and may be visible to other
applications and processes at Google.
SHARED_WITH_PUBLIC (int): The resource is visible to the owner and may be visible to all other API
clients.
"""
VISIBILITY_UNSPECIFIED = 0
ACCOUNT_ONLY = 1
SHARED_WITH_GOOGLE = 2
SHARED_WITH_PUBLIC = 3
class Application(object):
class ApplicationStage(enum.IntEnum):
"""
The stage of the application.
Attributes:
APPLICATION_STAGE_UNSPECIFIED (int): Default value.
NEW (int): Candidate has applied or a recruiter put candidate into consideration but
candidate is not yet screened / no decision has been made to move or not
move the candidate to the next stage.
SCREEN (int): A recruiter decided to screen the candidate for this role.
HIRING_MANAGER_REVIEW (int): Candidate is being / was sent to the customer / hiring manager for
detailed review.
INTERVIEW (int): Candidate was approved by the client / hiring manager and is being / was
interviewed for the role.
OFFER_EXTENDED (int): Candidate will be / has been given an offer of employment.
OFFER_ACCEPTED (int): Candidate has accepted their offer of employment.
STARTED (int): Candidate has begun (or completed) their employment or assignment with
the employer.
"""
APPLICATION_STAGE_UNSPECIFIED = 0
NEW = 1
SCREEN = 2
HIRING_MANAGER_REVIEW = 3
INTERVIEW = 4
OFFER_EXTENDED = 5
OFFER_ACCEPTED = 6
STARTED = 7
class ApplicationState(enum.IntEnum):
"""
Enum that represents the application status.
Attributes:
APPLICATION_STATE_UNSPECIFIED (int): Default value.
IN_PROGRESS (int): The current stage is in progress or pending, for example, interviews in
progress.
CANDIDATE_WITHDREW (int): The current stage was terminated by a candidate decision.
EMPLOYER_WITHDREW (int): The current stage was terminated by an employer or agency decision.
COMPLETED (int): The current stage is successfully completed, but the next stage (if
applicable) has not begun.
CLOSED (int): The current stage was closed without an exception, or terminated for
reasons unrealated to the candidate.
"""
APPLICATION_STATE_UNSPECIFIED = 0
IN_PROGRESS = 1
CANDIDATE_WITHDREW = 2
EMPLOYER_WITHDREW = 3
COMPLETED = 4
CLOSED = 5
class BatchOperationMetadata(object):
class State(enum.IntEnum):
"""
Attributes:
STATE_UNSPECIFIED (int): Default value.
INITIALIZING (int): The batch operation is being prepared for processing.
PROCESSING (int): The batch operation is actively being processed.
SUCCEEDED (int): The batch operation is processed, and at least one item has been
successfully processed.
FAILED (int): The batch operation is done and no item has been successfully processed.
CANCELLING (int): The batch operation is in the process of cancelling after
``google.longrunning.Operations.CancelOperation`` is called.
CANCELLED (int): The batch operation is done after
``google.longrunning.Operations.CancelOperation`` is called. Any items
processed before cancelling are returned in the response.
"""
STATE_UNSPECIFIED = 0
INITIALIZING = 1
PROCESSING = 2
SUCCEEDED = 3
FAILED = 4
CANCELLING = 5
CANCELLED = 6
class CommuteFilter(object):
class RoadTraffic(enum.IntEnum):
"""
The traffic density to use when calculating commute time.
Attributes:
ROAD_TRAFFIC_UNSPECIFIED (int): Road traffic situation isn't specified.
TRAFFIC_FREE (int): Optimal commute time without considering any traffic impact.
BUSY_HOUR (int): Commute time calculation takes in account the peak traffic impact.
"""
ROAD_TRAFFIC_UNSPECIFIED = 0
TRAFFIC_FREE = 1
BUSY_HOUR = 2
class CompensationFilter(object):
class FilterType(enum.IntEnum):
"""
Specify the type of filtering.
Attributes:
FILTER_TYPE_UNSPECIFIED (int): Filter type unspecified. Position holder, INVALID, should never be used.
UNIT_ONLY (int): Filter by ``base compensation entry's`` unit. A job is a match if and
only if the job contains a base CompensationEntry and the base
CompensationEntry's unit matches provided ``units``. Populate one or
more ``units``.
See ``CompensationInfo.CompensationEntry`` for definition of base
compensation entry.
UNIT_AND_AMOUNT (int): Filter by ``base compensation entry's`` unit and amount / range. A job
is a match if and only if the job contains a base CompensationEntry, and
the base entry's unit matches provided ``CompensationUnit`` and amount
or range overlaps with provided ``CompensationRange``.
See ``CompensationInfo.CompensationEntry`` for definition of base
compensation entry.
Set exactly one ``units`` and populate ``range``.
ANNUALIZED_BASE_AMOUNT (int): Filter by annualized base compensation amount and
``base compensation entry's`` unit. Populate ``range`` and zero or more
``units``.
ANNUALIZED_TOTAL_AMOUNT (int): Filter by annualized total compensation amount and
``base compensation entry's`` unit . Populate ``range`` and zero or more
``units``.
"""
FILTER_TYPE_UNSPECIFIED = 0
UNIT_ONLY = 1
UNIT_AND_AMOUNT = 2
ANNUALIZED_BASE_AMOUNT = 3
ANNUALIZED_TOTAL_AMOUNT = 4
class CompensationInfo(object):
class CompensationType(enum.IntEnum):
"""
The type of compensation.
For compensation amounts specified in non-monetary amounts, describe the
compensation scheme in the ``CompensationEntry.description``.
For example, tipping format is described in
``CompensationEntry.description`` (for example, "expect 15-20% tips
based on customer bill.") and an estimate of the tips provided in
``CompensationEntry.amount`` or ``CompensationEntry.range`` ($10 per
hour).
For example, equity is described in ``CompensationEntry.description``
(for example, "1% - 2% equity vesting over 4 years, 1 year cliff") and
value estimated in ``CompensationEntry.amount`` or
``CompensationEntry.range``. If no value estimate is possible, units are
``CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED`` and then further
clarified in ``CompensationEntry.description`` field.
Attributes:
COMPENSATION_TYPE_UNSPECIFIED (int): Default value.
BASE (int): Base compensation: Refers to the fixed amount of money paid to an
employee by an employer in return for work performed. Base compensation
does not include benefits, bonuses or any other potential compensation
from an employer.
BONUS (int): Bonus.
SIGNING_BONUS (int): Signing bonus.
EQUITY (int): Equity.
PROFIT_SHARING (int): Profit sharing.
COMMISSIONS (int): Commission.
TIPS (int): Tips.
OTHER_COMPENSATION_TYPE (int): Other compensation type.
"""
COMPENSATION_TYPE_UNSPECIFIED = 0
BASE = 1
BONUS = 2
SIGNING_BONUS = 3
EQUITY = 4
PROFIT_SHARING = 5
COMMISSIONS = 6
TIPS = 7
OTHER_COMPENSATION_TYPE = 8
class CompensationUnit(enum.IntEnum):
"""
Pay frequency.
Attributes:
COMPENSATION_UNIT_UNSPECIFIED (int): Default value.
HOURLY (int): Hourly.
DAILY (int): Daily.
WEEKLY (int): Weekly
MONTHLY (int): Monthly.
YEARLY (int): Yearly.
ONE_TIME (int): One time.
OTHER_COMPENSATION_UNIT (int): Other compensation units.
"""
COMPENSATION_UNIT_UNSPECIFIED = 0
HOURLY = 1
DAILY = 2
WEEKLY = 3
MONTHLY = 4
YEARLY = 5
ONE_TIME = 6
OTHER_COMPENSATION_UNIT = 7
class CompleteQueryRequest(object):
class CompletionScope(enum.IntEnum):
"""
Enum to specify the scope of completion.
Attributes:
COMPLETION_SCOPE_UNSPECIFIED (int): Default value.
TENANT (int): Suggestions are based only on the data provided by the client.
PUBLIC (int): Suggestions are based on all jobs data in the system that's visible to
the client
"""
COMPLETION_SCOPE_UNSPECIFIED = 0
TENANT = 1
PUBLIC = 2
class CompletionType(enum.IntEnum):
"""
Enum to specify auto-completion topics.
Attributes:
COMPLETION_TYPE_UNSPECIFIED (int): Default value.
JOB_TITLE (int): Only suggest job titles.
COMPANY_NAME (int): Only suggest company names.
COMBINED (int): Suggest both job titles and company names.
"""
COMPLETION_TYPE_UNSPECIFIED = 0
JOB_TITLE = 1
COMPANY_NAME = 2
COMBINED = 3
class DeviceInfo(object):
class DeviceType(enum.IntEnum):
"""
An enumeration describing an API access portal and exposure mechanism.
Attributes:
DEVICE_TYPE_UNSPECIFIED (int): The device type isn't specified.
WEB (int): A desktop web browser, such as, Chrome, Firefox, Safari, or Internet
Explorer)
MOBILE_WEB (int): A mobile device web browser, such as a phone or tablet with a Chrome
browser.
ANDROID (int): An Android device native application.
IOS (int): An iOS device native application.
BOT (int): A bot, as opposed to a device operated by human beings, such as a web
crawler.
OTHER (int): Other devices types.
"""
DEVICE_TYPE_UNSPECIFIED = 0
WEB = 1
MOBILE_WEB = 2
ANDROID = 3
IOS = 4
BOT = 5
OTHER = 6
class EmployerFilter(object):
class EmployerFilterMode(enum.IntEnum):
"""
Enum indicating which set of ``Profile.employment_records`` to search
against.
Attributes:
EMPLOYER_FILTER_MODE_UNSPECIFIED (int): Default value.
ALL_EMPLOYMENT_RECORDS (int): Apply to all employers in ``Profile.employment_records``.
CURRENT_EMPLOYMENT_RECORDS_ONLY (int): Apply only to current employer in ``Profile.employment_records``.
PAST_EMPLOYMENT_RECORDS_ONLY (int): Apply only to past (not current) employers in
``Profile.employment_records``.
"""
EMPLOYER_FILTER_MODE_UNSPECIFIED = 0
ALL_EMPLOYMENT_RECORDS = 1
CURRENT_EMPLOYMENT_RECORDS_ONLY = 2
PAST_EMPLOYMENT_RECORDS_ONLY = 3
class JobEvent(object):
class JobEventType(enum.IntEnum):
"""
An enumeration of an event attributed to the behavior of the end user,
such as a job seeker.
Attributes:
JOB_EVENT_TYPE_UNSPECIFIED (int): The event is unspecified by other provided values.
IMPRESSION (int): The job seeker or other entity interacting with the service has
had a job rendered in their view, such as in a list of search results in
a compressed or clipped format. This event is typically associated with
the viewing of a jobs list on a single page by a job seeker.
VIEW (int): The job seeker, or other entity interacting with the service, has viewed
the details of a job, including the full description. This event doesn't
apply to the viewing a snippet of a job appearing as a part of the job
search results. Viewing a snippet is associated with an ``impression``).
VIEW_REDIRECT (int): The job seeker or other entity interacting with the service
performed an action to view a job and was redirected to a different
website for job.
APPLICATION_START (int): The job seeker or other entity interacting with the service
began the process or demonstrated the intention of applying for a job.
APPLICATION_FINISH (int): The job seeker or other entity interacting with the service
submitted an application for a job.
APPLICATION_QUICK_SUBMISSION (int): The job seeker or other entity interacting with the service submitted an
application for a job with a single click without entering information.
If a job seeker performs this action, send only this event to the
service. Do not also send ``JobEventType.APPLICATION_START`` or
``JobEventType.APPLICATION_FINISH`` events.
APPLICATION_REDIRECT (int): The job seeker or other entity interacting with the service
performed an action to apply to a job and was redirected to a different
website to complete the application.
APPLICATION_START_FROM_SEARCH (int): The job seeker or other entity interacting with the service began the
process or demonstrated the intention of applying for a job from the
search results page without viewing the details of the job posting.
If sending this event, JobEventType.VIEW event shouldn't be sent.
APPLICATION_REDIRECT_FROM_SEARCH (int): The job seeker, or other entity interacting with the service, performs
an action with a single click from the search results page to apply to a
job (without viewing the details of the job posting), and is redirected
to a different website to complete the application. If a candidate
performs this action, send only this event to the service. Do not also
send ``JobEventType.APPLICATION_START``,
``JobEventType.APPLICATION_FINISH`` or ``JobEventType.VIEW`` events.
APPLICATION_COMPANY_SUBMIT (int): This event should be used when a company submits an application
on behalf of a job seeker. This event is intended for use by staffing
agencies attempting to place candidates.
BOOKMARK (int): The job seeker or other entity interacting with the service demonstrated
an interest in a job by bookmarking or saving it.
NOTIFICATION (int): The job seeker or other entity interacting with the service was
sent a notification, such as an email alert or device notification,
containing one or more jobs listings generated by the service.
HIRED (int): The job seeker or other entity interacting with the service was
employed by the hiring entity (employer). Send this event
only if the job seeker was hired through an application that was
initiated by a search conducted through the Cloud Talent Solution
service.
SENT_CV (int): A recruiter or staffing agency submitted an application on behalf of the
candidate after interacting with the service to identify a suitable job
posting.
INTERVIEW_GRANTED (int): The entity interacting with the service (for example, the job seeker),
was granted an initial interview by the hiring entity (employer). This
event should only be sent if the job seeker was granted an interview as
part of an application that was initiated by a search conducted through /
recommendation provided by the Cloud Talent Solution service.
"""
JOB_EVENT_TYPE_UNSPECIFIED = 0
IMPRESSION = 1
VIEW = 2
VIEW_REDIRECT = 3
APPLICATION_START = 4
APPLICATION_FINISH = 5
APPLICATION_QUICK_SUBMISSION = 6
APPLICATION_REDIRECT = 7
APPLICATION_START_FROM_SEARCH = 8
APPLICATION_REDIRECT_FROM_SEARCH = 9
APPLICATION_COMPANY_SUBMIT = 10
BOOKMARK = 11
NOTIFICATION = 12
HIRED = 13
SENT_CV = 14
INTERVIEW_GRANTED = 15
class Location(object):
class LocationType(enum.IntEnum):
"""
An enum which represents the type of a location.
Attributes:
LOCATION_TYPE_UNSPECIFIED (int): Default value if the type isn't specified.
COUNTRY (int): A country level location.
ADMINISTRATIVE_AREA (int): A state or equivalent level location.
SUB_ADMINISTRATIVE_AREA (int): A county or equivalent level location.
LOCALITY (int): A city or equivalent level location.
POSTAL_CODE (int): A postal code level location.
SUB_LOCALITY (int): A sublocality is a subdivision of a locality, for example a city borough,
ward, or arrondissement. Sublocalities are usually recognized by a local
political authority. For example, Manhattan and Brooklyn are recognized
as boroughs by the City of New York, and are therefore modeled as
sublocalities.
SUB_LOCALITY_1 (int): A district or equivalent level location.
SUB_LOCALITY_2 (int): A smaller district or equivalent level display.
NEIGHBORHOOD (int): A neighborhood level location.
STREET_ADDRESS (int): A street address level location.
"""
LOCATION_TYPE_UNSPECIFIED = 0
COUNTRY = 1
ADMINISTRATIVE_AREA = 2
SUB_ADMINISTRATIVE_AREA = 3
LOCALITY = 4
POSTAL_CODE = 5
SUB_LOCALITY = 6
SUB_LOCALITY_1 = 7
SUB_LOCALITY_2 = 8
NEIGHBORHOOD = 9
STREET_ADDRESS = 10
class LocationFilter(object):
class TelecommutePreference(enum.IntEnum):
"""
Specify whether to include telecommute jobs.
Attributes:
TELECOMMUTE_PREFERENCE_UNSPECIFIED (int): Default value if the telecommute preference isn't specified.
TELECOMMUTE_EXCLUDED (int): Exclude telecommute jobs.
TELECOMMUTE_ALLOWED (int): Allow telecommute jobs.
"""
TELECOMMUTE_PREFERENCE_UNSPECIFIED = 0
TELECOMMUTE_EXCLUDED = 1
TELECOMMUTE_ALLOWED = 2
class Phone(object):
class PhoneType(enum.IntEnum):
"""
Enum that represents the type of the telephone.
Attributes:
PHONE_TYPE_UNSPECIFIED (int): Default value.
LANDLINE (int): A landline.
MOBILE (int): A mobile.
FAX (int): A fax.
PAGER (int): A pager.
TTY_OR_TDD (int): A TTY (test telephone) or TDD (telecommunication device for the deaf).
VOICEMAIL (int): A voicemail.
VIRTUAL (int): A virtual telephone number is a number that can be routed to another
number and managed by the user via Web, SMS, IVR, and so on. It is
associated with a particular person, and may be routed to either a
MOBILE or LANDLINE number. The ``phone usage`` should be set to PERSONAL
for these phone types. Some more information can be found here:
https://en.wikipedia.org/wiki/Personal\_Numbers
VOIP (int): Voice over IP numbers. This includes TSoIP (Telephony Service over IP).
MOBILE_OR_LANDLINE (int): In some regions (e.g. the USA), it is impossible to distinguish between
fixed-line and mobile numbers by looking at the phone number itself.
"""
PHONE_TYPE_UNSPECIFIED = 0
LANDLINE = 1
MOBILE = 2
FAX = 3
PAGER = 4
TTY_OR_TDD = 5
VOICEMAIL = 6
VIRTUAL = 7
VOIP = 8
MOBILE_OR_LANDLINE = 9
class ProfileEvent(object):
class ProfileEventType(enum.IntEnum):
"""
The enum represents types of client events for a candidate profile.
Attributes:
PROFILE_EVENT_TYPE_UNSPECIFIED (int): Default value.
IMPRESSION (int): Send this event when a ``ProfileEvent.profiles`` was sent as a part of a
result set for a CTS API call and was rendered in the end user's UI
(that is, the ``ProfileEvent.recruiter``).
VIEW (int): The VIEW event records the action of a candidate's profile being viewed
by an end user. This is critical to tracking product metrics and should
be sent for every profile VIEW that happens in your system, whether the
event is associated with an API call (for example, a recruiter making a
request for a result set and clicking on a profile) or not (a recruiter
using the system to view profile details without making a request).
For a VIEW events associated with API calls, the
``ClientEvent.request_id`` should be populated. If the VIEW is not
associated with an API call, ``request_id`` should not be populated.
This event requires a valid recruiter and one valid ID in profiles.