• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2020 Google LLC
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  *     https://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 // Generated by the protocol buffer compiler.  DO NOT EDIT!
17 // source: google/cloud/talent/v4beta1/common.proto
18 
19 package com.google.cloud.talent.v4beta1;
20 
21 /**
22  *
23  *
24  * <pre>
25  * An enum that represents employee benefits included with the job.
26  * </pre>
27  *
28  * Protobuf enum {@code google.cloud.talent.v4beta1.JobBenefit}
29  */
30 public enum JobBenefit implements com.google.protobuf.ProtocolMessageEnum {
31   /**
32    *
33    *
34    * <pre>
35    * Default value if the type isn't specified.
36    * </pre>
37    *
38    * <code>JOB_BENEFIT_UNSPECIFIED = 0;</code>
39    */
40   JOB_BENEFIT_UNSPECIFIED(0),
41   /**
42    *
43    *
44    * <pre>
45    * The job includes access to programs that support child care, such
46    * as daycare.
47    * </pre>
48    *
49    * <code>CHILD_CARE = 1;</code>
50    */
51   CHILD_CARE(1),
52   /**
53    *
54    *
55    * <pre>
56    * The job includes dental services covered by a dental
57    * insurance plan.
58    * </pre>
59    *
60    * <code>DENTAL = 2;</code>
61    */
62   DENTAL(2),
63   /**
64    *
65    *
66    * <pre>
67    * The job offers specific benefits to domestic partners.
68    * </pre>
69    *
70    * <code>DOMESTIC_PARTNER = 3;</code>
71    */
72   DOMESTIC_PARTNER(3),
73   /**
74    *
75    *
76    * <pre>
77    * The job allows for a flexible work schedule.
78    * </pre>
79    *
80    * <code>FLEXIBLE_HOURS = 4;</code>
81    */
82   FLEXIBLE_HOURS(4),
83   /**
84    *
85    *
86    * <pre>
87    * The job includes health services covered by a medical insurance plan.
88    * </pre>
89    *
90    * <code>MEDICAL = 5;</code>
91    */
92   MEDICAL(5),
93   /**
94    *
95    *
96    * <pre>
97    * The job includes a life insurance plan provided by the employer or
98    * available for purchase by the employee.
99    * </pre>
100    *
101    * <code>LIFE_INSURANCE = 6;</code>
102    */
103   LIFE_INSURANCE(6),
104   /**
105    *
106    *
107    * <pre>
108    * The job allows for a leave of absence to a parent to care for a newborn
109    * child.
110    * </pre>
111    *
112    * <code>PARENTAL_LEAVE = 7;</code>
113    */
114   PARENTAL_LEAVE(7),
115   /**
116    *
117    *
118    * <pre>
119    * The job includes a workplace retirement plan provided by the
120    * employer or available for purchase by the employee.
121    * </pre>
122    *
123    * <code>RETIREMENT_PLAN = 8;</code>
124    */
125   RETIREMENT_PLAN(8),
126   /**
127    *
128    *
129    * <pre>
130    * The job allows for paid time off due to illness.
131    * </pre>
132    *
133    * <code>SICK_DAYS = 9;</code>
134    */
135   SICK_DAYS(9),
136   /**
137    *
138    *
139    * <pre>
140    * The job includes paid time off for vacation.
141    * </pre>
142    *
143    * <code>VACATION = 10;</code>
144    */
145   VACATION(10),
146   /**
147    *
148    *
149    * <pre>
150    * The job includes vision services covered by a vision
151    * insurance plan.
152    * </pre>
153    *
154    * <code>VISION = 11;</code>
155    */
156   VISION(11),
157   UNRECOGNIZED(-1),
158   ;
159 
160   /**
161    *
162    *
163    * <pre>
164    * Default value if the type isn't specified.
165    * </pre>
166    *
167    * <code>JOB_BENEFIT_UNSPECIFIED = 0;</code>
168    */
169   public static final int JOB_BENEFIT_UNSPECIFIED_VALUE = 0;
170   /**
171    *
172    *
173    * <pre>
174    * The job includes access to programs that support child care, such
175    * as daycare.
176    * </pre>
177    *
178    * <code>CHILD_CARE = 1;</code>
179    */
180   public static final int CHILD_CARE_VALUE = 1;
181   /**
182    *
183    *
184    * <pre>
185    * The job includes dental services covered by a dental
186    * insurance plan.
187    * </pre>
188    *
189    * <code>DENTAL = 2;</code>
190    */
191   public static final int DENTAL_VALUE = 2;
192   /**
193    *
194    *
195    * <pre>
196    * The job offers specific benefits to domestic partners.
197    * </pre>
198    *
199    * <code>DOMESTIC_PARTNER = 3;</code>
200    */
201   public static final int DOMESTIC_PARTNER_VALUE = 3;
202   /**
203    *
204    *
205    * <pre>
206    * The job allows for a flexible work schedule.
207    * </pre>
208    *
209    * <code>FLEXIBLE_HOURS = 4;</code>
210    */
211   public static final int FLEXIBLE_HOURS_VALUE = 4;
212   /**
213    *
214    *
215    * <pre>
216    * The job includes health services covered by a medical insurance plan.
217    * </pre>
218    *
219    * <code>MEDICAL = 5;</code>
220    */
221   public static final int MEDICAL_VALUE = 5;
222   /**
223    *
224    *
225    * <pre>
226    * The job includes a life insurance plan provided by the employer or
227    * available for purchase by the employee.
228    * </pre>
229    *
230    * <code>LIFE_INSURANCE = 6;</code>
231    */
232   public static final int LIFE_INSURANCE_VALUE = 6;
233   /**
234    *
235    *
236    * <pre>
237    * The job allows for a leave of absence to a parent to care for a newborn
238    * child.
239    * </pre>
240    *
241    * <code>PARENTAL_LEAVE = 7;</code>
242    */
243   public static final int PARENTAL_LEAVE_VALUE = 7;
244   /**
245    *
246    *
247    * <pre>
248    * The job includes a workplace retirement plan provided by the
249    * employer or available for purchase by the employee.
250    * </pre>
251    *
252    * <code>RETIREMENT_PLAN = 8;</code>
253    */
254   public static final int RETIREMENT_PLAN_VALUE = 8;
255   /**
256    *
257    *
258    * <pre>
259    * The job allows for paid time off due to illness.
260    * </pre>
261    *
262    * <code>SICK_DAYS = 9;</code>
263    */
264   public static final int SICK_DAYS_VALUE = 9;
265   /**
266    *
267    *
268    * <pre>
269    * The job includes paid time off for vacation.
270    * </pre>
271    *
272    * <code>VACATION = 10;</code>
273    */
274   public static final int VACATION_VALUE = 10;
275   /**
276    *
277    *
278    * <pre>
279    * The job includes vision services covered by a vision
280    * insurance plan.
281    * </pre>
282    *
283    * <code>VISION = 11;</code>
284    */
285   public static final int VISION_VALUE = 11;
286 
getNumber()287   public final int getNumber() {
288     if (this == UNRECOGNIZED) {
289       throw new java.lang.IllegalArgumentException(
290           "Can't get the number of an unknown enum value.");
291     }
292     return value;
293   }
294 
295   /**
296    * @param value The numeric wire value of the corresponding enum entry.
297    * @return The enum associated with the given numeric wire value.
298    * @deprecated Use {@link #forNumber(int)} instead.
299    */
300   @java.lang.Deprecated
valueOf(int value)301   public static JobBenefit valueOf(int value) {
302     return forNumber(value);
303   }
304 
305   /**
306    * @param value The numeric wire value of the corresponding enum entry.
307    * @return The enum associated with the given numeric wire value.
308    */
forNumber(int value)309   public static JobBenefit forNumber(int value) {
310     switch (value) {
311       case 0:
312         return JOB_BENEFIT_UNSPECIFIED;
313       case 1:
314         return CHILD_CARE;
315       case 2:
316         return DENTAL;
317       case 3:
318         return DOMESTIC_PARTNER;
319       case 4:
320         return FLEXIBLE_HOURS;
321       case 5:
322         return MEDICAL;
323       case 6:
324         return LIFE_INSURANCE;
325       case 7:
326         return PARENTAL_LEAVE;
327       case 8:
328         return RETIREMENT_PLAN;
329       case 9:
330         return SICK_DAYS;
331       case 10:
332         return VACATION;
333       case 11:
334         return VISION;
335       default:
336         return null;
337     }
338   }
339 
internalGetValueMap()340   public static com.google.protobuf.Internal.EnumLiteMap<JobBenefit> internalGetValueMap() {
341     return internalValueMap;
342   }
343 
344   private static final com.google.protobuf.Internal.EnumLiteMap<JobBenefit> internalValueMap =
345       new com.google.protobuf.Internal.EnumLiteMap<JobBenefit>() {
346         public JobBenefit findValueByNumber(int number) {
347           return JobBenefit.forNumber(number);
348         }
349       };
350 
getValueDescriptor()351   public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
352     if (this == UNRECOGNIZED) {
353       throw new java.lang.IllegalStateException(
354           "Can't get the descriptor of an unrecognized enum value.");
355     }
356     return getDescriptor().getValues().get(ordinal());
357   }
358 
getDescriptorForType()359   public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
360     return getDescriptor();
361   }
362 
getDescriptor()363   public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
364     return com.google.cloud.talent.v4beta1.CommonProto.getDescriptor().getEnumTypes().get(1);
365   }
366 
367   private static final JobBenefit[] VALUES = values();
368 
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)369   public static JobBenefit valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
370     if (desc.getType() != getDescriptor()) {
371       throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
372     }
373     if (desc.getIndex() == -1) {
374       return UNRECOGNIZED;
375     }
376     return VALUES[desc.getIndex()];
377   }
378 
379   private final int value;
380 
JobBenefit(int value)381   private JobBenefit(int value) {
382     this.value = value;
383   }
384 
385   // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.JobBenefit)
386 }
387