• 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/v4/common.proto
18 
19 package com.google.cloud.talent.v4;
20 
21 /**
22  *
23  *
24  * <pre>
25  * Job compensation details.
26  * </pre>
27  *
28  * Protobuf type {@code google.cloud.talent.v4.CompensationInfo}
29  */
30 public final class CompensationInfo extends com.google.protobuf.GeneratedMessageV3
31     implements
32     // @@protoc_insertion_point(message_implements:google.cloud.talent.v4.CompensationInfo)
33     CompensationInfoOrBuilder {
34   private static final long serialVersionUID = 0L;
35   // Use CompensationInfo.newBuilder() to construct.
CompensationInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)36   private CompensationInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
37     super(builder);
38   }
39 
CompensationInfo()40   private CompensationInfo() {
41     entries_ = java.util.Collections.emptyList();
42   }
43 
44   @java.lang.Override
45   @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)46   protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
47     return new CompensationInfo();
48   }
49 
50   @java.lang.Override
getUnknownFields()51   public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
52     return this.unknownFields;
53   }
54 
getDescriptor()55   public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
56     return com.google.cloud.talent.v4.CommonProto
57         .internal_static_google_cloud_talent_v4_CompensationInfo_descriptor;
58   }
59 
60   @java.lang.Override
61   protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()62       internalGetFieldAccessorTable() {
63     return com.google.cloud.talent.v4.CommonProto
64         .internal_static_google_cloud_talent_v4_CompensationInfo_fieldAccessorTable
65         .ensureFieldAccessorsInitialized(
66             com.google.cloud.talent.v4.CompensationInfo.class,
67             com.google.cloud.talent.v4.CompensationInfo.Builder.class);
68   }
69 
70   /**
71    *
72    *
73    * <pre>
74    * The type of compensation.
75    * For compensation amounts specified in non-monetary amounts,
76    * describe the compensation scheme in the
77    * [CompensationEntry.description][google.cloud.talent.v4.CompensationInfo.CompensationEntry.description].
78    * For example, tipping format is described in
79    * [CompensationEntry.description][google.cloud.talent.v4.CompensationInfo.CompensationEntry.description]
80    * (for example, "expect 15-20% tips based on customer bill.") and an estimate
81    * of the tips provided in
82    * [CompensationEntry.amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
83    * or
84    * [CompensationEntry.range][google.cloud.talent.v4.CompensationInfo.CompensationEntry.range]
85    * ($10 per hour).
86    * For example, equity is described in
87    * [CompensationEntry.description][google.cloud.talent.v4.CompensationInfo.CompensationEntry.description]
88    * (for example, "1% - 2% equity vesting over 4 years, 1 year cliff") and
89    * value estimated in
90    * [CompensationEntry.amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
91    * or
92    * [CompensationEntry.range][google.cloud.talent.v4.CompensationInfo.CompensationEntry.range].
93    * If no value estimate is possible, units are
94    * [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED]
95    * and then further clarified in
96    * [CompensationEntry.description][google.cloud.talent.v4.CompensationInfo.CompensationEntry.description]
97    * field.
98    * </pre>
99    *
100    * Protobuf enum {@code google.cloud.talent.v4.CompensationInfo.CompensationType}
101    */
102   public enum CompensationType implements com.google.protobuf.ProtocolMessageEnum {
103     /**
104      *
105      *
106      * <pre>
107      * Default value.
108      * </pre>
109      *
110      * <code>COMPENSATION_TYPE_UNSPECIFIED = 0;</code>
111      */
112     COMPENSATION_TYPE_UNSPECIFIED(0),
113     /**
114      *
115      *
116      * <pre>
117      * Base compensation: Refers to the fixed amount of money paid to an
118      * employee by an employer in return for work performed. Base compensation
119      * does not include benefits, bonuses or any other potential compensation
120      * from an employer.
121      * </pre>
122      *
123      * <code>BASE = 1;</code>
124      */
125     BASE(1),
126     /**
127      *
128      *
129      * <pre>
130      * Bonus.
131      * </pre>
132      *
133      * <code>BONUS = 2;</code>
134      */
135     BONUS(2),
136     /**
137      *
138      *
139      * <pre>
140      * Signing bonus.
141      * </pre>
142      *
143      * <code>SIGNING_BONUS = 3;</code>
144      */
145     SIGNING_BONUS(3),
146     /**
147      *
148      *
149      * <pre>
150      * Equity.
151      * </pre>
152      *
153      * <code>EQUITY = 4;</code>
154      */
155     EQUITY(4),
156     /**
157      *
158      *
159      * <pre>
160      * Profit sharing.
161      * </pre>
162      *
163      * <code>PROFIT_SHARING = 5;</code>
164      */
165     PROFIT_SHARING(5),
166     /**
167      *
168      *
169      * <pre>
170      * Commission.
171      * </pre>
172      *
173      * <code>COMMISSIONS = 6;</code>
174      */
175     COMMISSIONS(6),
176     /**
177      *
178      *
179      * <pre>
180      * Tips.
181      * </pre>
182      *
183      * <code>TIPS = 7;</code>
184      */
185     TIPS(7),
186     /**
187      *
188      *
189      * <pre>
190      * Other compensation type.
191      * </pre>
192      *
193      * <code>OTHER_COMPENSATION_TYPE = 8;</code>
194      */
195     OTHER_COMPENSATION_TYPE(8),
196     UNRECOGNIZED(-1),
197     ;
198 
199     /**
200      *
201      *
202      * <pre>
203      * Default value.
204      * </pre>
205      *
206      * <code>COMPENSATION_TYPE_UNSPECIFIED = 0;</code>
207      */
208     public static final int COMPENSATION_TYPE_UNSPECIFIED_VALUE = 0;
209     /**
210      *
211      *
212      * <pre>
213      * Base compensation: Refers to the fixed amount of money paid to an
214      * employee by an employer in return for work performed. Base compensation
215      * does not include benefits, bonuses or any other potential compensation
216      * from an employer.
217      * </pre>
218      *
219      * <code>BASE = 1;</code>
220      */
221     public static final int BASE_VALUE = 1;
222     /**
223      *
224      *
225      * <pre>
226      * Bonus.
227      * </pre>
228      *
229      * <code>BONUS = 2;</code>
230      */
231     public static final int BONUS_VALUE = 2;
232     /**
233      *
234      *
235      * <pre>
236      * Signing bonus.
237      * </pre>
238      *
239      * <code>SIGNING_BONUS = 3;</code>
240      */
241     public static final int SIGNING_BONUS_VALUE = 3;
242     /**
243      *
244      *
245      * <pre>
246      * Equity.
247      * </pre>
248      *
249      * <code>EQUITY = 4;</code>
250      */
251     public static final int EQUITY_VALUE = 4;
252     /**
253      *
254      *
255      * <pre>
256      * Profit sharing.
257      * </pre>
258      *
259      * <code>PROFIT_SHARING = 5;</code>
260      */
261     public static final int PROFIT_SHARING_VALUE = 5;
262     /**
263      *
264      *
265      * <pre>
266      * Commission.
267      * </pre>
268      *
269      * <code>COMMISSIONS = 6;</code>
270      */
271     public static final int COMMISSIONS_VALUE = 6;
272     /**
273      *
274      *
275      * <pre>
276      * Tips.
277      * </pre>
278      *
279      * <code>TIPS = 7;</code>
280      */
281     public static final int TIPS_VALUE = 7;
282     /**
283      *
284      *
285      * <pre>
286      * Other compensation type.
287      * </pre>
288      *
289      * <code>OTHER_COMPENSATION_TYPE = 8;</code>
290      */
291     public static final int OTHER_COMPENSATION_TYPE_VALUE = 8;
292 
getNumber()293     public final int getNumber() {
294       if (this == UNRECOGNIZED) {
295         throw new java.lang.IllegalArgumentException(
296             "Can't get the number of an unknown enum value.");
297       }
298       return value;
299     }
300 
301     /**
302      * @param value The numeric wire value of the corresponding enum entry.
303      * @return The enum associated with the given numeric wire value.
304      * @deprecated Use {@link #forNumber(int)} instead.
305      */
306     @java.lang.Deprecated
valueOf(int value)307     public static CompensationType valueOf(int value) {
308       return forNumber(value);
309     }
310 
311     /**
312      * @param value The numeric wire value of the corresponding enum entry.
313      * @return The enum associated with the given numeric wire value.
314      */
forNumber(int value)315     public static CompensationType forNumber(int value) {
316       switch (value) {
317         case 0:
318           return COMPENSATION_TYPE_UNSPECIFIED;
319         case 1:
320           return BASE;
321         case 2:
322           return BONUS;
323         case 3:
324           return SIGNING_BONUS;
325         case 4:
326           return EQUITY;
327         case 5:
328           return PROFIT_SHARING;
329         case 6:
330           return COMMISSIONS;
331         case 7:
332           return TIPS;
333         case 8:
334           return OTHER_COMPENSATION_TYPE;
335         default:
336           return null;
337       }
338     }
339 
internalGetValueMap()340     public static com.google.protobuf.Internal.EnumLiteMap<CompensationType> internalGetValueMap() {
341       return internalValueMap;
342     }
343 
344     private static final com.google.protobuf.Internal.EnumLiteMap<CompensationType>
345         internalValueMap =
346             new com.google.protobuf.Internal.EnumLiteMap<CompensationType>() {
347               public CompensationType findValueByNumber(int number) {
348                 return CompensationType.forNumber(number);
349               }
350             };
351 
getValueDescriptor()352     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
353       if (this == UNRECOGNIZED) {
354         throw new java.lang.IllegalStateException(
355             "Can't get the descriptor of an unrecognized enum value.");
356       }
357       return getDescriptor().getValues().get(ordinal());
358     }
359 
getDescriptorForType()360     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
361       return getDescriptor();
362     }
363 
getDescriptor()364     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
365       return com.google.cloud.talent.v4.CompensationInfo.getDescriptor().getEnumTypes().get(0);
366     }
367 
368     private static final CompensationType[] VALUES = values();
369 
valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc)370     public static CompensationType valueOf(
371         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
372       if (desc.getType() != getDescriptor()) {
373         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
374       }
375       if (desc.getIndex() == -1) {
376         return UNRECOGNIZED;
377       }
378       return VALUES[desc.getIndex()];
379     }
380 
381     private final int value;
382 
CompensationType(int value)383     private CompensationType(int value) {
384       this.value = value;
385     }
386 
387     // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4.CompensationInfo.CompensationType)
388   }
389 
390   /**
391    *
392    *
393    * <pre>
394    * Pay frequency.
395    * </pre>
396    *
397    * Protobuf enum {@code google.cloud.talent.v4.CompensationInfo.CompensationUnit}
398    */
399   public enum CompensationUnit implements com.google.protobuf.ProtocolMessageEnum {
400     /**
401      *
402      *
403      * <pre>
404      * Default value.
405      * </pre>
406      *
407      * <code>COMPENSATION_UNIT_UNSPECIFIED = 0;</code>
408      */
409     COMPENSATION_UNIT_UNSPECIFIED(0),
410     /**
411      *
412      *
413      * <pre>
414      * Hourly.
415      * </pre>
416      *
417      * <code>HOURLY = 1;</code>
418      */
419     HOURLY(1),
420     /**
421      *
422      *
423      * <pre>
424      * Daily.
425      * </pre>
426      *
427      * <code>DAILY = 2;</code>
428      */
429     DAILY(2),
430     /**
431      *
432      *
433      * <pre>
434      * Weekly
435      * </pre>
436      *
437      * <code>WEEKLY = 3;</code>
438      */
439     WEEKLY(3),
440     /**
441      *
442      *
443      * <pre>
444      * Monthly.
445      * </pre>
446      *
447      * <code>MONTHLY = 4;</code>
448      */
449     MONTHLY(4),
450     /**
451      *
452      *
453      * <pre>
454      * Yearly.
455      * </pre>
456      *
457      * <code>YEARLY = 5;</code>
458      */
459     YEARLY(5),
460     /**
461      *
462      *
463      * <pre>
464      * One time.
465      * </pre>
466      *
467      * <code>ONE_TIME = 6;</code>
468      */
469     ONE_TIME(6),
470     /**
471      *
472      *
473      * <pre>
474      * Other compensation units.
475      * </pre>
476      *
477      * <code>OTHER_COMPENSATION_UNIT = 7;</code>
478      */
479     OTHER_COMPENSATION_UNIT(7),
480     UNRECOGNIZED(-1),
481     ;
482 
483     /**
484      *
485      *
486      * <pre>
487      * Default value.
488      * </pre>
489      *
490      * <code>COMPENSATION_UNIT_UNSPECIFIED = 0;</code>
491      */
492     public static final int COMPENSATION_UNIT_UNSPECIFIED_VALUE = 0;
493     /**
494      *
495      *
496      * <pre>
497      * Hourly.
498      * </pre>
499      *
500      * <code>HOURLY = 1;</code>
501      */
502     public static final int HOURLY_VALUE = 1;
503     /**
504      *
505      *
506      * <pre>
507      * Daily.
508      * </pre>
509      *
510      * <code>DAILY = 2;</code>
511      */
512     public static final int DAILY_VALUE = 2;
513     /**
514      *
515      *
516      * <pre>
517      * Weekly
518      * </pre>
519      *
520      * <code>WEEKLY = 3;</code>
521      */
522     public static final int WEEKLY_VALUE = 3;
523     /**
524      *
525      *
526      * <pre>
527      * Monthly.
528      * </pre>
529      *
530      * <code>MONTHLY = 4;</code>
531      */
532     public static final int MONTHLY_VALUE = 4;
533     /**
534      *
535      *
536      * <pre>
537      * Yearly.
538      * </pre>
539      *
540      * <code>YEARLY = 5;</code>
541      */
542     public static final int YEARLY_VALUE = 5;
543     /**
544      *
545      *
546      * <pre>
547      * One time.
548      * </pre>
549      *
550      * <code>ONE_TIME = 6;</code>
551      */
552     public static final int ONE_TIME_VALUE = 6;
553     /**
554      *
555      *
556      * <pre>
557      * Other compensation units.
558      * </pre>
559      *
560      * <code>OTHER_COMPENSATION_UNIT = 7;</code>
561      */
562     public static final int OTHER_COMPENSATION_UNIT_VALUE = 7;
563 
getNumber()564     public final int getNumber() {
565       if (this == UNRECOGNIZED) {
566         throw new java.lang.IllegalArgumentException(
567             "Can't get the number of an unknown enum value.");
568       }
569       return value;
570     }
571 
572     /**
573      * @param value The numeric wire value of the corresponding enum entry.
574      * @return The enum associated with the given numeric wire value.
575      * @deprecated Use {@link #forNumber(int)} instead.
576      */
577     @java.lang.Deprecated
valueOf(int value)578     public static CompensationUnit valueOf(int value) {
579       return forNumber(value);
580     }
581 
582     /**
583      * @param value The numeric wire value of the corresponding enum entry.
584      * @return The enum associated with the given numeric wire value.
585      */
forNumber(int value)586     public static CompensationUnit forNumber(int value) {
587       switch (value) {
588         case 0:
589           return COMPENSATION_UNIT_UNSPECIFIED;
590         case 1:
591           return HOURLY;
592         case 2:
593           return DAILY;
594         case 3:
595           return WEEKLY;
596         case 4:
597           return MONTHLY;
598         case 5:
599           return YEARLY;
600         case 6:
601           return ONE_TIME;
602         case 7:
603           return OTHER_COMPENSATION_UNIT;
604         default:
605           return null;
606       }
607     }
608 
internalGetValueMap()609     public static com.google.protobuf.Internal.EnumLiteMap<CompensationUnit> internalGetValueMap() {
610       return internalValueMap;
611     }
612 
613     private static final com.google.protobuf.Internal.EnumLiteMap<CompensationUnit>
614         internalValueMap =
615             new com.google.protobuf.Internal.EnumLiteMap<CompensationUnit>() {
616               public CompensationUnit findValueByNumber(int number) {
617                 return CompensationUnit.forNumber(number);
618               }
619             };
620 
getValueDescriptor()621     public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
622       if (this == UNRECOGNIZED) {
623         throw new java.lang.IllegalStateException(
624             "Can't get the descriptor of an unrecognized enum value.");
625       }
626       return getDescriptor().getValues().get(ordinal());
627     }
628 
getDescriptorForType()629     public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
630       return getDescriptor();
631     }
632 
getDescriptor()633     public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
634       return com.google.cloud.talent.v4.CompensationInfo.getDescriptor().getEnumTypes().get(1);
635     }
636 
637     private static final CompensationUnit[] VALUES = values();
638 
valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc)639     public static CompensationUnit valueOf(
640         com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
641       if (desc.getType() != getDescriptor()) {
642         throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
643       }
644       if (desc.getIndex() == -1) {
645         return UNRECOGNIZED;
646       }
647       return VALUES[desc.getIndex()];
648     }
649 
650     private final int value;
651 
CompensationUnit(int value)652     private CompensationUnit(int value) {
653       this.value = value;
654     }
655 
656     // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4.CompensationInfo.CompensationUnit)
657   }
658 
659   public interface CompensationEntryOrBuilder
660       extends
661       // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4.CompensationInfo.CompensationEntry)
662       com.google.protobuf.MessageOrBuilder {
663 
664     /**
665      *
666      *
667      * <pre>
668      * Compensation type.
669      * Default is
670      * [CompensationType.COMPENSATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationType.COMPENSATION_TYPE_UNSPECIFIED].
671      * </pre>
672      *
673      * <code>.google.cloud.talent.v4.CompensationInfo.CompensationType type = 1;</code>
674      *
675      * @return The enum numeric value on the wire for type.
676      */
getTypeValue()677     int getTypeValue();
678     /**
679      *
680      *
681      * <pre>
682      * Compensation type.
683      * Default is
684      * [CompensationType.COMPENSATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationType.COMPENSATION_TYPE_UNSPECIFIED].
685      * </pre>
686      *
687      * <code>.google.cloud.talent.v4.CompensationInfo.CompensationType type = 1;</code>
688      *
689      * @return The type.
690      */
getType()691     com.google.cloud.talent.v4.CompensationInfo.CompensationType getType();
692 
693     /**
694      *
695      *
696      * <pre>
697      * Frequency of the specified amount.
698      * Default is
699      * [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED].
700      * </pre>
701      *
702      * <code>.google.cloud.talent.v4.CompensationInfo.CompensationUnit unit = 2;</code>
703      *
704      * @return The enum numeric value on the wire for unit.
705      */
getUnitValue()706     int getUnitValue();
707     /**
708      *
709      *
710      * <pre>
711      * Frequency of the specified amount.
712      * Default is
713      * [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED].
714      * </pre>
715      *
716      * <code>.google.cloud.talent.v4.CompensationInfo.CompensationUnit unit = 2;</code>
717      *
718      * @return The unit.
719      */
getUnit()720     com.google.cloud.talent.v4.CompensationInfo.CompensationUnit getUnit();
721 
722     /**
723      *
724      *
725      * <pre>
726      * Compensation amount.
727      * </pre>
728      *
729      * <code>.google.type.Money amount = 3;</code>
730      *
731      * @return Whether the amount field is set.
732      */
hasAmount()733     boolean hasAmount();
734     /**
735      *
736      *
737      * <pre>
738      * Compensation amount.
739      * </pre>
740      *
741      * <code>.google.type.Money amount = 3;</code>
742      *
743      * @return The amount.
744      */
getAmount()745     com.google.type.Money getAmount();
746     /**
747      *
748      *
749      * <pre>
750      * Compensation amount.
751      * </pre>
752      *
753      * <code>.google.type.Money amount = 3;</code>
754      */
getAmountOrBuilder()755     com.google.type.MoneyOrBuilder getAmountOrBuilder();
756 
757     /**
758      *
759      *
760      * <pre>
761      * Compensation range.
762      * </pre>
763      *
764      * <code>.google.cloud.talent.v4.CompensationInfo.CompensationRange range = 4;</code>
765      *
766      * @return Whether the range field is set.
767      */
hasRange()768     boolean hasRange();
769     /**
770      *
771      *
772      * <pre>
773      * Compensation range.
774      * </pre>
775      *
776      * <code>.google.cloud.talent.v4.CompensationInfo.CompensationRange range = 4;</code>
777      *
778      * @return The range.
779      */
getRange()780     com.google.cloud.talent.v4.CompensationInfo.CompensationRange getRange();
781     /**
782      *
783      *
784      * <pre>
785      * Compensation range.
786      * </pre>
787      *
788      * <code>.google.cloud.talent.v4.CompensationInfo.CompensationRange range = 4;</code>
789      */
getRangeOrBuilder()790     com.google.cloud.talent.v4.CompensationInfo.CompensationRangeOrBuilder getRangeOrBuilder();
791 
792     /**
793      *
794      *
795      * <pre>
796      * Compensation description.  For example, could
797      * indicate equity terms or provide additional context to an estimated
798      * bonus.
799      * </pre>
800      *
801      * <code>string description = 5;</code>
802      *
803      * @return The description.
804      */
getDescription()805     java.lang.String getDescription();
806     /**
807      *
808      *
809      * <pre>
810      * Compensation description.  For example, could
811      * indicate equity terms or provide additional context to an estimated
812      * bonus.
813      * </pre>
814      *
815      * <code>string description = 5;</code>
816      *
817      * @return The bytes for description.
818      */
getDescriptionBytes()819     com.google.protobuf.ByteString getDescriptionBytes();
820 
821     /**
822      *
823      *
824      * <pre>
825      * Expected number of units paid each year. If not specified, when
826      * [Job.employment_types][google.cloud.talent.v4.Job.employment_types] is
827      * FULLTIME, a default value is inferred based on
828      * [unit][google.cloud.talent.v4.CompensationInfo.CompensationEntry.unit].
829      * Default values:
830      * - HOURLY: 2080
831      * - DAILY: 260
832      * - WEEKLY: 52
833      * - MONTHLY: 12
834      * - ANNUAL: 1
835      * </pre>
836      *
837      * <code>.google.protobuf.DoubleValue expected_units_per_year = 6;</code>
838      *
839      * @return Whether the expectedUnitsPerYear field is set.
840      */
hasExpectedUnitsPerYear()841     boolean hasExpectedUnitsPerYear();
842     /**
843      *
844      *
845      * <pre>
846      * Expected number of units paid each year. If not specified, when
847      * [Job.employment_types][google.cloud.talent.v4.Job.employment_types] is
848      * FULLTIME, a default value is inferred based on
849      * [unit][google.cloud.talent.v4.CompensationInfo.CompensationEntry.unit].
850      * Default values:
851      * - HOURLY: 2080
852      * - DAILY: 260
853      * - WEEKLY: 52
854      * - MONTHLY: 12
855      * - ANNUAL: 1
856      * </pre>
857      *
858      * <code>.google.protobuf.DoubleValue expected_units_per_year = 6;</code>
859      *
860      * @return The expectedUnitsPerYear.
861      */
getExpectedUnitsPerYear()862     com.google.protobuf.DoubleValue getExpectedUnitsPerYear();
863     /**
864      *
865      *
866      * <pre>
867      * Expected number of units paid each year. If not specified, when
868      * [Job.employment_types][google.cloud.talent.v4.Job.employment_types] is
869      * FULLTIME, a default value is inferred based on
870      * [unit][google.cloud.talent.v4.CompensationInfo.CompensationEntry.unit].
871      * Default values:
872      * - HOURLY: 2080
873      * - DAILY: 260
874      * - WEEKLY: 52
875      * - MONTHLY: 12
876      * - ANNUAL: 1
877      * </pre>
878      *
879      * <code>.google.protobuf.DoubleValue expected_units_per_year = 6;</code>
880      */
getExpectedUnitsPerYearOrBuilder()881     com.google.protobuf.DoubleValueOrBuilder getExpectedUnitsPerYearOrBuilder();
882 
883     public com.google.cloud.talent.v4.CompensationInfo.CompensationEntry.CompensationAmountCase
getCompensationAmountCase()884         getCompensationAmountCase();
885   }
886   /**
887    *
888    *
889    * <pre>
890    * A compensation entry that represents one component of compensation, such
891    * as base pay, bonus, or other compensation type.
892    * Annualization: One compensation entry can be annualized if
893    * - it contains valid
894    * [amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
895    * or
896    * [range][google.cloud.talent.v4.CompensationInfo.CompensationEntry.range].
897    * - and its
898    * [expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year]
899    * is set or can be derived. Its annualized range is determined as
900    * ([amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
901    * or
902    * [range][google.cloud.talent.v4.CompensationInfo.CompensationEntry.range])
903    * times
904    * [expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year].
905    * </pre>
906    *
907    * Protobuf type {@code google.cloud.talent.v4.CompensationInfo.CompensationEntry}
908    */
909   public static final class CompensationEntry extends com.google.protobuf.GeneratedMessageV3
910       implements
911       // @@protoc_insertion_point(message_implements:google.cloud.talent.v4.CompensationInfo.CompensationEntry)
912       CompensationEntryOrBuilder {
913     private static final long serialVersionUID = 0L;
914     // Use CompensationEntry.newBuilder() to construct.
CompensationEntry(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)915     private CompensationEntry(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
916       super(builder);
917     }
918 
CompensationEntry()919     private CompensationEntry() {
920       type_ = 0;
921       unit_ = 0;
922       description_ = "";
923     }
924 
925     @java.lang.Override
926     @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)927     protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
928       return new CompensationEntry();
929     }
930 
931     @java.lang.Override
getUnknownFields()932     public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
933       return this.unknownFields;
934     }
935 
getDescriptor()936     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
937       return com.google.cloud.talent.v4.CommonProto
938           .internal_static_google_cloud_talent_v4_CompensationInfo_CompensationEntry_descriptor;
939     }
940 
941     @java.lang.Override
942     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()943         internalGetFieldAccessorTable() {
944       return com.google.cloud.talent.v4.CommonProto
945           .internal_static_google_cloud_talent_v4_CompensationInfo_CompensationEntry_fieldAccessorTable
946           .ensureFieldAccessorsInitialized(
947               com.google.cloud.talent.v4.CompensationInfo.CompensationEntry.class,
948               com.google.cloud.talent.v4.CompensationInfo.CompensationEntry.Builder.class);
949     }
950 
951     private int compensationAmountCase_ = 0;
952     private java.lang.Object compensationAmount_;
953 
954     public enum CompensationAmountCase
955         implements
956             com.google.protobuf.Internal.EnumLite,
957             com.google.protobuf.AbstractMessage.InternalOneOfEnum {
958       AMOUNT(3),
959       RANGE(4),
960       COMPENSATIONAMOUNT_NOT_SET(0);
961       private final int value;
962 
CompensationAmountCase(int value)963       private CompensationAmountCase(int value) {
964         this.value = value;
965       }
966       /**
967        * @param value The number of the enum to look for.
968        * @return The enum associated with the given number.
969        * @deprecated Use {@link #forNumber(int)} instead.
970        */
971       @java.lang.Deprecated
valueOf(int value)972       public static CompensationAmountCase valueOf(int value) {
973         return forNumber(value);
974       }
975 
forNumber(int value)976       public static CompensationAmountCase forNumber(int value) {
977         switch (value) {
978           case 3:
979             return AMOUNT;
980           case 4:
981             return RANGE;
982           case 0:
983             return COMPENSATIONAMOUNT_NOT_SET;
984           default:
985             return null;
986         }
987       }
988 
getNumber()989       public int getNumber() {
990         return this.value;
991       }
992     };
993 
getCompensationAmountCase()994     public CompensationAmountCase getCompensationAmountCase() {
995       return CompensationAmountCase.forNumber(compensationAmountCase_);
996     }
997 
998     public static final int TYPE_FIELD_NUMBER = 1;
999     private int type_ = 0;
1000     /**
1001      *
1002      *
1003      * <pre>
1004      * Compensation type.
1005      * Default is
1006      * [CompensationType.COMPENSATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationType.COMPENSATION_TYPE_UNSPECIFIED].
1007      * </pre>
1008      *
1009      * <code>.google.cloud.talent.v4.CompensationInfo.CompensationType type = 1;</code>
1010      *
1011      * @return The enum numeric value on the wire for type.
1012      */
1013     @java.lang.Override
getTypeValue()1014     public int getTypeValue() {
1015       return type_;
1016     }
1017     /**
1018      *
1019      *
1020      * <pre>
1021      * Compensation type.
1022      * Default is
1023      * [CompensationType.COMPENSATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationType.COMPENSATION_TYPE_UNSPECIFIED].
1024      * </pre>
1025      *
1026      * <code>.google.cloud.talent.v4.CompensationInfo.CompensationType type = 1;</code>
1027      *
1028      * @return The type.
1029      */
1030     @java.lang.Override
getType()1031     public com.google.cloud.talent.v4.CompensationInfo.CompensationType getType() {
1032       com.google.cloud.talent.v4.CompensationInfo.CompensationType result =
1033           com.google.cloud.talent.v4.CompensationInfo.CompensationType.forNumber(type_);
1034       return result == null
1035           ? com.google.cloud.talent.v4.CompensationInfo.CompensationType.UNRECOGNIZED
1036           : result;
1037     }
1038 
1039     public static final int UNIT_FIELD_NUMBER = 2;
1040     private int unit_ = 0;
1041     /**
1042      *
1043      *
1044      * <pre>
1045      * Frequency of the specified amount.
1046      * Default is
1047      * [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED].
1048      * </pre>
1049      *
1050      * <code>.google.cloud.talent.v4.CompensationInfo.CompensationUnit unit = 2;</code>
1051      *
1052      * @return The enum numeric value on the wire for unit.
1053      */
1054     @java.lang.Override
getUnitValue()1055     public int getUnitValue() {
1056       return unit_;
1057     }
1058     /**
1059      *
1060      *
1061      * <pre>
1062      * Frequency of the specified amount.
1063      * Default is
1064      * [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED].
1065      * </pre>
1066      *
1067      * <code>.google.cloud.talent.v4.CompensationInfo.CompensationUnit unit = 2;</code>
1068      *
1069      * @return The unit.
1070      */
1071     @java.lang.Override
getUnit()1072     public com.google.cloud.talent.v4.CompensationInfo.CompensationUnit getUnit() {
1073       com.google.cloud.talent.v4.CompensationInfo.CompensationUnit result =
1074           com.google.cloud.talent.v4.CompensationInfo.CompensationUnit.forNumber(unit_);
1075       return result == null
1076           ? com.google.cloud.talent.v4.CompensationInfo.CompensationUnit.UNRECOGNIZED
1077           : result;
1078     }
1079 
1080     public static final int AMOUNT_FIELD_NUMBER = 3;
1081     /**
1082      *
1083      *
1084      * <pre>
1085      * Compensation amount.
1086      * </pre>
1087      *
1088      * <code>.google.type.Money amount = 3;</code>
1089      *
1090      * @return Whether the amount field is set.
1091      */
1092     @java.lang.Override
hasAmount()1093     public boolean hasAmount() {
1094       return compensationAmountCase_ == 3;
1095     }
1096     /**
1097      *
1098      *
1099      * <pre>
1100      * Compensation amount.
1101      * </pre>
1102      *
1103      * <code>.google.type.Money amount = 3;</code>
1104      *
1105      * @return The amount.
1106      */
1107     @java.lang.Override
getAmount()1108     public com.google.type.Money getAmount() {
1109       if (compensationAmountCase_ == 3) {
1110         return (com.google.type.Money) compensationAmount_;
1111       }
1112       return com.google.type.Money.getDefaultInstance();
1113     }
1114     /**
1115      *
1116      *
1117      * <pre>
1118      * Compensation amount.
1119      * </pre>
1120      *
1121      * <code>.google.type.Money amount = 3;</code>
1122      */
1123     @java.lang.Override
getAmountOrBuilder()1124     public com.google.type.MoneyOrBuilder getAmountOrBuilder() {
1125       if (compensationAmountCase_ == 3) {
1126         return (com.google.type.Money) compensationAmount_;
1127       }
1128       return com.google.type.Money.getDefaultInstance();
1129     }
1130 
1131     public static final int RANGE_FIELD_NUMBER = 4;
1132     /**
1133      *
1134      *
1135      * <pre>
1136      * Compensation range.
1137      * </pre>
1138      *
1139      * <code>.google.cloud.talent.v4.CompensationInfo.CompensationRange range = 4;</code>
1140      *
1141      * @return Whether the range field is set.
1142      */
1143     @java.lang.Override
hasRange()1144     public boolean hasRange() {
1145       return compensationAmountCase_ == 4;
1146     }
1147     /**
1148      *
1149      *
1150      * <pre>
1151      * Compensation range.
1152      * </pre>
1153      *
1154      * <code>.google.cloud.talent.v4.CompensationInfo.CompensationRange range = 4;</code>
1155      *
1156      * @return The range.
1157      */
1158     @java.lang.Override
getRange()1159     public com.google.cloud.talent.v4.CompensationInfo.CompensationRange getRange() {
1160       if (compensationAmountCase_ == 4) {
1161         return (com.google.cloud.talent.v4.CompensationInfo.CompensationRange) compensationAmount_;
1162       }
1163       return com.google.cloud.talent.v4.CompensationInfo.CompensationRange.getDefaultInstance();
1164     }
1165     /**
1166      *
1167      *
1168      * <pre>
1169      * Compensation range.
1170      * </pre>
1171      *
1172      * <code>.google.cloud.talent.v4.CompensationInfo.CompensationRange range = 4;</code>
1173      */
1174     @java.lang.Override
1175     public com.google.cloud.talent.v4.CompensationInfo.CompensationRangeOrBuilder
getRangeOrBuilder()1176         getRangeOrBuilder() {
1177       if (compensationAmountCase_ == 4) {
1178         return (com.google.cloud.talent.v4.CompensationInfo.CompensationRange) compensationAmount_;
1179       }
1180       return com.google.cloud.talent.v4.CompensationInfo.CompensationRange.getDefaultInstance();
1181     }
1182 
1183     public static final int DESCRIPTION_FIELD_NUMBER = 5;
1184 
1185     @SuppressWarnings("serial")
1186     private volatile java.lang.Object description_ = "";
1187     /**
1188      *
1189      *
1190      * <pre>
1191      * Compensation description.  For example, could
1192      * indicate equity terms or provide additional context to an estimated
1193      * bonus.
1194      * </pre>
1195      *
1196      * <code>string description = 5;</code>
1197      *
1198      * @return The description.
1199      */
1200     @java.lang.Override
getDescription()1201     public java.lang.String getDescription() {
1202       java.lang.Object ref = description_;
1203       if (ref instanceof java.lang.String) {
1204         return (java.lang.String) ref;
1205       } else {
1206         com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
1207         java.lang.String s = bs.toStringUtf8();
1208         description_ = s;
1209         return s;
1210       }
1211     }
1212     /**
1213      *
1214      *
1215      * <pre>
1216      * Compensation description.  For example, could
1217      * indicate equity terms or provide additional context to an estimated
1218      * bonus.
1219      * </pre>
1220      *
1221      * <code>string description = 5;</code>
1222      *
1223      * @return The bytes for description.
1224      */
1225     @java.lang.Override
getDescriptionBytes()1226     public com.google.protobuf.ByteString getDescriptionBytes() {
1227       java.lang.Object ref = description_;
1228       if (ref instanceof java.lang.String) {
1229         com.google.protobuf.ByteString b =
1230             com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
1231         description_ = b;
1232         return b;
1233       } else {
1234         return (com.google.protobuf.ByteString) ref;
1235       }
1236     }
1237 
1238     public static final int EXPECTED_UNITS_PER_YEAR_FIELD_NUMBER = 6;
1239     private com.google.protobuf.DoubleValue expectedUnitsPerYear_;
1240     /**
1241      *
1242      *
1243      * <pre>
1244      * Expected number of units paid each year. If not specified, when
1245      * [Job.employment_types][google.cloud.talent.v4.Job.employment_types] is
1246      * FULLTIME, a default value is inferred based on
1247      * [unit][google.cloud.talent.v4.CompensationInfo.CompensationEntry.unit].
1248      * Default values:
1249      * - HOURLY: 2080
1250      * - DAILY: 260
1251      * - WEEKLY: 52
1252      * - MONTHLY: 12
1253      * - ANNUAL: 1
1254      * </pre>
1255      *
1256      * <code>.google.protobuf.DoubleValue expected_units_per_year = 6;</code>
1257      *
1258      * @return Whether the expectedUnitsPerYear field is set.
1259      */
1260     @java.lang.Override
hasExpectedUnitsPerYear()1261     public boolean hasExpectedUnitsPerYear() {
1262       return expectedUnitsPerYear_ != null;
1263     }
1264     /**
1265      *
1266      *
1267      * <pre>
1268      * Expected number of units paid each year. If not specified, when
1269      * [Job.employment_types][google.cloud.talent.v4.Job.employment_types] is
1270      * FULLTIME, a default value is inferred based on
1271      * [unit][google.cloud.talent.v4.CompensationInfo.CompensationEntry.unit].
1272      * Default values:
1273      * - HOURLY: 2080
1274      * - DAILY: 260
1275      * - WEEKLY: 52
1276      * - MONTHLY: 12
1277      * - ANNUAL: 1
1278      * </pre>
1279      *
1280      * <code>.google.protobuf.DoubleValue expected_units_per_year = 6;</code>
1281      *
1282      * @return The expectedUnitsPerYear.
1283      */
1284     @java.lang.Override
getExpectedUnitsPerYear()1285     public com.google.protobuf.DoubleValue getExpectedUnitsPerYear() {
1286       return expectedUnitsPerYear_ == null
1287           ? com.google.protobuf.DoubleValue.getDefaultInstance()
1288           : expectedUnitsPerYear_;
1289     }
1290     /**
1291      *
1292      *
1293      * <pre>
1294      * Expected number of units paid each year. If not specified, when
1295      * [Job.employment_types][google.cloud.talent.v4.Job.employment_types] is
1296      * FULLTIME, a default value is inferred based on
1297      * [unit][google.cloud.talent.v4.CompensationInfo.CompensationEntry.unit].
1298      * Default values:
1299      * - HOURLY: 2080
1300      * - DAILY: 260
1301      * - WEEKLY: 52
1302      * - MONTHLY: 12
1303      * - ANNUAL: 1
1304      * </pre>
1305      *
1306      * <code>.google.protobuf.DoubleValue expected_units_per_year = 6;</code>
1307      */
1308     @java.lang.Override
getExpectedUnitsPerYearOrBuilder()1309     public com.google.protobuf.DoubleValueOrBuilder getExpectedUnitsPerYearOrBuilder() {
1310       return expectedUnitsPerYear_ == null
1311           ? com.google.protobuf.DoubleValue.getDefaultInstance()
1312           : expectedUnitsPerYear_;
1313     }
1314 
1315     private byte memoizedIsInitialized = -1;
1316 
1317     @java.lang.Override
isInitialized()1318     public final boolean isInitialized() {
1319       byte isInitialized = memoizedIsInitialized;
1320       if (isInitialized == 1) return true;
1321       if (isInitialized == 0) return false;
1322 
1323       memoizedIsInitialized = 1;
1324       return true;
1325     }
1326 
1327     @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)1328     public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
1329       if (type_
1330           != com.google.cloud.talent.v4.CompensationInfo.CompensationType
1331               .COMPENSATION_TYPE_UNSPECIFIED
1332               .getNumber()) {
1333         output.writeEnum(1, type_);
1334       }
1335       if (unit_
1336           != com.google.cloud.talent.v4.CompensationInfo.CompensationUnit
1337               .COMPENSATION_UNIT_UNSPECIFIED
1338               .getNumber()) {
1339         output.writeEnum(2, unit_);
1340       }
1341       if (compensationAmountCase_ == 3) {
1342         output.writeMessage(3, (com.google.type.Money) compensationAmount_);
1343       }
1344       if (compensationAmountCase_ == 4) {
1345         output.writeMessage(
1346             4, (com.google.cloud.talent.v4.CompensationInfo.CompensationRange) compensationAmount_);
1347       }
1348       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
1349         com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_);
1350       }
1351       if (expectedUnitsPerYear_ != null) {
1352         output.writeMessage(6, getExpectedUnitsPerYear());
1353       }
1354       getUnknownFields().writeTo(output);
1355     }
1356 
1357     @java.lang.Override
getSerializedSize()1358     public int getSerializedSize() {
1359       int size = memoizedSize;
1360       if (size != -1) return size;
1361 
1362       size = 0;
1363       if (type_
1364           != com.google.cloud.talent.v4.CompensationInfo.CompensationType
1365               .COMPENSATION_TYPE_UNSPECIFIED
1366               .getNumber()) {
1367         size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_);
1368       }
1369       if (unit_
1370           != com.google.cloud.talent.v4.CompensationInfo.CompensationUnit
1371               .COMPENSATION_UNIT_UNSPECIFIED
1372               .getNumber()) {
1373         size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, unit_);
1374       }
1375       if (compensationAmountCase_ == 3) {
1376         size +=
1377             com.google.protobuf.CodedOutputStream.computeMessageSize(
1378                 3, (com.google.type.Money) compensationAmount_);
1379       }
1380       if (compensationAmountCase_ == 4) {
1381         size +=
1382             com.google.protobuf.CodedOutputStream.computeMessageSize(
1383                 4,
1384                 (com.google.cloud.talent.v4.CompensationInfo.CompensationRange)
1385                     compensationAmount_);
1386       }
1387       if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
1388         size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_);
1389       }
1390       if (expectedUnitsPerYear_ != null) {
1391         size +=
1392             com.google.protobuf.CodedOutputStream.computeMessageSize(6, getExpectedUnitsPerYear());
1393       }
1394       size += getUnknownFields().getSerializedSize();
1395       memoizedSize = size;
1396       return size;
1397     }
1398 
1399     @java.lang.Override
equals(final java.lang.Object obj)1400     public boolean equals(final java.lang.Object obj) {
1401       if (obj == this) {
1402         return true;
1403       }
1404       if (!(obj instanceof com.google.cloud.talent.v4.CompensationInfo.CompensationEntry)) {
1405         return super.equals(obj);
1406       }
1407       com.google.cloud.talent.v4.CompensationInfo.CompensationEntry other =
1408           (com.google.cloud.talent.v4.CompensationInfo.CompensationEntry) obj;
1409 
1410       if (type_ != other.type_) return false;
1411       if (unit_ != other.unit_) return false;
1412       if (!getDescription().equals(other.getDescription())) return false;
1413       if (hasExpectedUnitsPerYear() != other.hasExpectedUnitsPerYear()) return false;
1414       if (hasExpectedUnitsPerYear()) {
1415         if (!getExpectedUnitsPerYear().equals(other.getExpectedUnitsPerYear())) return false;
1416       }
1417       if (!getCompensationAmountCase().equals(other.getCompensationAmountCase())) return false;
1418       switch (compensationAmountCase_) {
1419         case 3:
1420           if (!getAmount().equals(other.getAmount())) return false;
1421           break;
1422         case 4:
1423           if (!getRange().equals(other.getRange())) return false;
1424           break;
1425         case 0:
1426         default:
1427       }
1428       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
1429       return true;
1430     }
1431 
1432     @java.lang.Override
hashCode()1433     public int hashCode() {
1434       if (memoizedHashCode != 0) {
1435         return memoizedHashCode;
1436       }
1437       int hash = 41;
1438       hash = (19 * hash) + getDescriptor().hashCode();
1439       hash = (37 * hash) + TYPE_FIELD_NUMBER;
1440       hash = (53 * hash) + type_;
1441       hash = (37 * hash) + UNIT_FIELD_NUMBER;
1442       hash = (53 * hash) + unit_;
1443       hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
1444       hash = (53 * hash) + getDescription().hashCode();
1445       if (hasExpectedUnitsPerYear()) {
1446         hash = (37 * hash) + EXPECTED_UNITS_PER_YEAR_FIELD_NUMBER;
1447         hash = (53 * hash) + getExpectedUnitsPerYear().hashCode();
1448       }
1449       switch (compensationAmountCase_) {
1450         case 3:
1451           hash = (37 * hash) + AMOUNT_FIELD_NUMBER;
1452           hash = (53 * hash) + getAmount().hashCode();
1453           break;
1454         case 4:
1455           hash = (37 * hash) + RANGE_FIELD_NUMBER;
1456           hash = (53 * hash) + getRange().hashCode();
1457           break;
1458         case 0:
1459         default:
1460       }
1461       hash = (29 * hash) + getUnknownFields().hashCode();
1462       memoizedHashCode = hash;
1463       return hash;
1464     }
1465 
parseFrom( java.nio.ByteBuffer data)1466     public static com.google.cloud.talent.v4.CompensationInfo.CompensationEntry parseFrom(
1467         java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
1468       return PARSER.parseFrom(data);
1469     }
1470 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1471     public static com.google.cloud.talent.v4.CompensationInfo.CompensationEntry parseFrom(
1472         java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1473         throws com.google.protobuf.InvalidProtocolBufferException {
1474       return PARSER.parseFrom(data, extensionRegistry);
1475     }
1476 
parseFrom( com.google.protobuf.ByteString data)1477     public static com.google.cloud.talent.v4.CompensationInfo.CompensationEntry parseFrom(
1478         com.google.protobuf.ByteString data)
1479         throws com.google.protobuf.InvalidProtocolBufferException {
1480       return PARSER.parseFrom(data);
1481     }
1482 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1483     public static com.google.cloud.talent.v4.CompensationInfo.CompensationEntry parseFrom(
1484         com.google.protobuf.ByteString data,
1485         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1486         throws com.google.protobuf.InvalidProtocolBufferException {
1487       return PARSER.parseFrom(data, extensionRegistry);
1488     }
1489 
parseFrom( byte[] data)1490     public static com.google.cloud.talent.v4.CompensationInfo.CompensationEntry parseFrom(
1491         byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
1492       return PARSER.parseFrom(data);
1493     }
1494 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1495     public static com.google.cloud.talent.v4.CompensationInfo.CompensationEntry parseFrom(
1496         byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1497         throws com.google.protobuf.InvalidProtocolBufferException {
1498       return PARSER.parseFrom(data, extensionRegistry);
1499     }
1500 
parseFrom( java.io.InputStream input)1501     public static com.google.cloud.talent.v4.CompensationInfo.CompensationEntry parseFrom(
1502         java.io.InputStream input) throws java.io.IOException {
1503       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1504     }
1505 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1506     public static com.google.cloud.talent.v4.CompensationInfo.CompensationEntry parseFrom(
1507         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1508         throws java.io.IOException {
1509       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1510           PARSER, input, extensionRegistry);
1511     }
1512 
parseDelimitedFrom( java.io.InputStream input)1513     public static com.google.cloud.talent.v4.CompensationInfo.CompensationEntry parseDelimitedFrom(
1514         java.io.InputStream input) throws java.io.IOException {
1515       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
1516     }
1517 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1518     public static com.google.cloud.talent.v4.CompensationInfo.CompensationEntry parseDelimitedFrom(
1519         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1520         throws java.io.IOException {
1521       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
1522           PARSER, input, extensionRegistry);
1523     }
1524 
parseFrom( com.google.protobuf.CodedInputStream input)1525     public static com.google.cloud.talent.v4.CompensationInfo.CompensationEntry parseFrom(
1526         com.google.protobuf.CodedInputStream input) throws java.io.IOException {
1527       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
1528     }
1529 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1530     public static com.google.cloud.talent.v4.CompensationInfo.CompensationEntry parseFrom(
1531         com.google.protobuf.CodedInputStream input,
1532         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1533         throws java.io.IOException {
1534       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
1535           PARSER, input, extensionRegistry);
1536     }
1537 
1538     @java.lang.Override
newBuilderForType()1539     public Builder newBuilderForType() {
1540       return newBuilder();
1541     }
1542 
newBuilder()1543     public static Builder newBuilder() {
1544       return DEFAULT_INSTANCE.toBuilder();
1545     }
1546 
newBuilder( com.google.cloud.talent.v4.CompensationInfo.CompensationEntry prototype)1547     public static Builder newBuilder(
1548         com.google.cloud.talent.v4.CompensationInfo.CompensationEntry prototype) {
1549       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
1550     }
1551 
1552     @java.lang.Override
toBuilder()1553     public Builder toBuilder() {
1554       return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
1555     }
1556 
1557     @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1558     protected Builder newBuilderForType(
1559         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1560       Builder builder = new Builder(parent);
1561       return builder;
1562     }
1563     /**
1564      *
1565      *
1566      * <pre>
1567      * A compensation entry that represents one component of compensation, such
1568      * as base pay, bonus, or other compensation type.
1569      * Annualization: One compensation entry can be annualized if
1570      * - it contains valid
1571      * [amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
1572      * or
1573      * [range][google.cloud.talent.v4.CompensationInfo.CompensationEntry.range].
1574      * - and its
1575      * [expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year]
1576      * is set or can be derived. Its annualized range is determined as
1577      * ([amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
1578      * or
1579      * [range][google.cloud.talent.v4.CompensationInfo.CompensationEntry.range])
1580      * times
1581      * [expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year].
1582      * </pre>
1583      *
1584      * Protobuf type {@code google.cloud.talent.v4.CompensationInfo.CompensationEntry}
1585      */
1586     public static final class Builder
1587         extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
1588         implements
1589         // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4.CompensationInfo.CompensationEntry)
1590         com.google.cloud.talent.v4.CompensationInfo.CompensationEntryOrBuilder {
getDescriptor()1591       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
1592         return com.google.cloud.talent.v4.CommonProto
1593             .internal_static_google_cloud_talent_v4_CompensationInfo_CompensationEntry_descriptor;
1594       }
1595 
1596       @java.lang.Override
1597       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()1598           internalGetFieldAccessorTable() {
1599         return com.google.cloud.talent.v4.CommonProto
1600             .internal_static_google_cloud_talent_v4_CompensationInfo_CompensationEntry_fieldAccessorTable
1601             .ensureFieldAccessorsInitialized(
1602                 com.google.cloud.talent.v4.CompensationInfo.CompensationEntry.class,
1603                 com.google.cloud.talent.v4.CompensationInfo.CompensationEntry.Builder.class);
1604       }
1605 
1606       // Construct using com.google.cloud.talent.v4.CompensationInfo.CompensationEntry.newBuilder()
Builder()1607       private Builder() {}
1608 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)1609       private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
1610         super(parent);
1611       }
1612 
1613       @java.lang.Override
clear()1614       public Builder clear() {
1615         super.clear();
1616         bitField0_ = 0;
1617         type_ = 0;
1618         unit_ = 0;
1619         if (amountBuilder_ != null) {
1620           amountBuilder_.clear();
1621         }
1622         if (rangeBuilder_ != null) {
1623           rangeBuilder_.clear();
1624         }
1625         description_ = "";
1626         expectedUnitsPerYear_ = null;
1627         if (expectedUnitsPerYearBuilder_ != null) {
1628           expectedUnitsPerYearBuilder_.dispose();
1629           expectedUnitsPerYearBuilder_ = null;
1630         }
1631         compensationAmountCase_ = 0;
1632         compensationAmount_ = null;
1633         return this;
1634       }
1635 
1636       @java.lang.Override
getDescriptorForType()1637       public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
1638         return com.google.cloud.talent.v4.CommonProto
1639             .internal_static_google_cloud_talent_v4_CompensationInfo_CompensationEntry_descriptor;
1640       }
1641 
1642       @java.lang.Override
1643       public com.google.cloud.talent.v4.CompensationInfo.CompensationEntry
getDefaultInstanceForType()1644           getDefaultInstanceForType() {
1645         return com.google.cloud.talent.v4.CompensationInfo.CompensationEntry.getDefaultInstance();
1646       }
1647 
1648       @java.lang.Override
build()1649       public com.google.cloud.talent.v4.CompensationInfo.CompensationEntry build() {
1650         com.google.cloud.talent.v4.CompensationInfo.CompensationEntry result = buildPartial();
1651         if (!result.isInitialized()) {
1652           throw newUninitializedMessageException(result);
1653         }
1654         return result;
1655       }
1656 
1657       @java.lang.Override
buildPartial()1658       public com.google.cloud.talent.v4.CompensationInfo.CompensationEntry buildPartial() {
1659         com.google.cloud.talent.v4.CompensationInfo.CompensationEntry result =
1660             new com.google.cloud.talent.v4.CompensationInfo.CompensationEntry(this);
1661         if (bitField0_ != 0) {
1662           buildPartial0(result);
1663         }
1664         buildPartialOneofs(result);
1665         onBuilt();
1666         return result;
1667       }
1668 
buildPartial0( com.google.cloud.talent.v4.CompensationInfo.CompensationEntry result)1669       private void buildPartial0(
1670           com.google.cloud.talent.v4.CompensationInfo.CompensationEntry result) {
1671         int from_bitField0_ = bitField0_;
1672         if (((from_bitField0_ & 0x00000001) != 0)) {
1673           result.type_ = type_;
1674         }
1675         if (((from_bitField0_ & 0x00000002) != 0)) {
1676           result.unit_ = unit_;
1677         }
1678         if (((from_bitField0_ & 0x00000010) != 0)) {
1679           result.description_ = description_;
1680         }
1681         if (((from_bitField0_ & 0x00000020) != 0)) {
1682           result.expectedUnitsPerYear_ =
1683               expectedUnitsPerYearBuilder_ == null
1684                   ? expectedUnitsPerYear_
1685                   : expectedUnitsPerYearBuilder_.build();
1686         }
1687       }
1688 
buildPartialOneofs( com.google.cloud.talent.v4.CompensationInfo.CompensationEntry result)1689       private void buildPartialOneofs(
1690           com.google.cloud.talent.v4.CompensationInfo.CompensationEntry result) {
1691         result.compensationAmountCase_ = compensationAmountCase_;
1692         result.compensationAmount_ = this.compensationAmount_;
1693         if (compensationAmountCase_ == 3 && amountBuilder_ != null) {
1694           result.compensationAmount_ = amountBuilder_.build();
1695         }
1696         if (compensationAmountCase_ == 4 && rangeBuilder_ != null) {
1697           result.compensationAmount_ = rangeBuilder_.build();
1698         }
1699       }
1700 
1701       @java.lang.Override
clone()1702       public Builder clone() {
1703         return super.clone();
1704       }
1705 
1706       @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1707       public Builder setField(
1708           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1709         return super.setField(field, value);
1710       }
1711 
1712       @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)1713       public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
1714         return super.clearField(field);
1715       }
1716 
1717       @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)1718       public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
1719         return super.clearOneof(oneof);
1720       }
1721 
1722       @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)1723       public Builder setRepeatedField(
1724           com.google.protobuf.Descriptors.FieldDescriptor field,
1725           int index,
1726           java.lang.Object value) {
1727         return super.setRepeatedField(field, index, value);
1728       }
1729 
1730       @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)1731       public Builder addRepeatedField(
1732           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
1733         return super.addRepeatedField(field, value);
1734       }
1735 
1736       @java.lang.Override
mergeFrom(com.google.protobuf.Message other)1737       public Builder mergeFrom(com.google.protobuf.Message other) {
1738         if (other instanceof com.google.cloud.talent.v4.CompensationInfo.CompensationEntry) {
1739           return mergeFrom((com.google.cloud.talent.v4.CompensationInfo.CompensationEntry) other);
1740         } else {
1741           super.mergeFrom(other);
1742           return this;
1743         }
1744       }
1745 
mergeFrom( com.google.cloud.talent.v4.CompensationInfo.CompensationEntry other)1746       public Builder mergeFrom(
1747           com.google.cloud.talent.v4.CompensationInfo.CompensationEntry other) {
1748         if (other
1749             == com.google.cloud.talent.v4.CompensationInfo.CompensationEntry.getDefaultInstance())
1750           return this;
1751         if (other.type_ != 0) {
1752           setTypeValue(other.getTypeValue());
1753         }
1754         if (other.unit_ != 0) {
1755           setUnitValue(other.getUnitValue());
1756         }
1757         if (!other.getDescription().isEmpty()) {
1758           description_ = other.description_;
1759           bitField0_ |= 0x00000010;
1760           onChanged();
1761         }
1762         if (other.hasExpectedUnitsPerYear()) {
1763           mergeExpectedUnitsPerYear(other.getExpectedUnitsPerYear());
1764         }
1765         switch (other.getCompensationAmountCase()) {
1766           case AMOUNT:
1767             {
1768               mergeAmount(other.getAmount());
1769               break;
1770             }
1771           case RANGE:
1772             {
1773               mergeRange(other.getRange());
1774               break;
1775             }
1776           case COMPENSATIONAMOUNT_NOT_SET:
1777             {
1778               break;
1779             }
1780         }
1781         this.mergeUnknownFields(other.getUnknownFields());
1782         onChanged();
1783         return this;
1784       }
1785 
1786       @java.lang.Override
isInitialized()1787       public final boolean isInitialized() {
1788         return true;
1789       }
1790 
1791       @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)1792       public Builder mergeFrom(
1793           com.google.protobuf.CodedInputStream input,
1794           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
1795           throws java.io.IOException {
1796         if (extensionRegistry == null) {
1797           throw new java.lang.NullPointerException();
1798         }
1799         try {
1800           boolean done = false;
1801           while (!done) {
1802             int tag = input.readTag();
1803             switch (tag) {
1804               case 0:
1805                 done = true;
1806                 break;
1807               case 8:
1808                 {
1809                   type_ = input.readEnum();
1810                   bitField0_ |= 0x00000001;
1811                   break;
1812                 } // case 8
1813               case 16:
1814                 {
1815                   unit_ = input.readEnum();
1816                   bitField0_ |= 0x00000002;
1817                   break;
1818                 } // case 16
1819               case 26:
1820                 {
1821                   input.readMessage(getAmountFieldBuilder().getBuilder(), extensionRegistry);
1822                   compensationAmountCase_ = 3;
1823                   break;
1824                 } // case 26
1825               case 34:
1826                 {
1827                   input.readMessage(getRangeFieldBuilder().getBuilder(), extensionRegistry);
1828                   compensationAmountCase_ = 4;
1829                   break;
1830                 } // case 34
1831               case 42:
1832                 {
1833                   description_ = input.readStringRequireUtf8();
1834                   bitField0_ |= 0x00000010;
1835                   break;
1836                 } // case 42
1837               case 50:
1838                 {
1839                   input.readMessage(
1840                       getExpectedUnitsPerYearFieldBuilder().getBuilder(), extensionRegistry);
1841                   bitField0_ |= 0x00000020;
1842                   break;
1843                 } // case 50
1844               default:
1845                 {
1846                   if (!super.parseUnknownField(input, extensionRegistry, tag)) {
1847                     done = true; // was an endgroup tag
1848                   }
1849                   break;
1850                 } // default:
1851             } // switch (tag)
1852           } // while (!done)
1853         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
1854           throw e.unwrapIOException();
1855         } finally {
1856           onChanged();
1857         } // finally
1858         return this;
1859       }
1860 
1861       private int compensationAmountCase_ = 0;
1862       private java.lang.Object compensationAmount_;
1863 
getCompensationAmountCase()1864       public CompensationAmountCase getCompensationAmountCase() {
1865         return CompensationAmountCase.forNumber(compensationAmountCase_);
1866       }
1867 
clearCompensationAmount()1868       public Builder clearCompensationAmount() {
1869         compensationAmountCase_ = 0;
1870         compensationAmount_ = null;
1871         onChanged();
1872         return this;
1873       }
1874 
1875       private int bitField0_;
1876 
1877       private int type_ = 0;
1878       /**
1879        *
1880        *
1881        * <pre>
1882        * Compensation type.
1883        * Default is
1884        * [CompensationType.COMPENSATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationType.COMPENSATION_TYPE_UNSPECIFIED].
1885        * </pre>
1886        *
1887        * <code>.google.cloud.talent.v4.CompensationInfo.CompensationType type = 1;</code>
1888        *
1889        * @return The enum numeric value on the wire for type.
1890        */
1891       @java.lang.Override
getTypeValue()1892       public int getTypeValue() {
1893         return type_;
1894       }
1895       /**
1896        *
1897        *
1898        * <pre>
1899        * Compensation type.
1900        * Default is
1901        * [CompensationType.COMPENSATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationType.COMPENSATION_TYPE_UNSPECIFIED].
1902        * </pre>
1903        *
1904        * <code>.google.cloud.talent.v4.CompensationInfo.CompensationType type = 1;</code>
1905        *
1906        * @param value The enum numeric value on the wire for type to set.
1907        * @return This builder for chaining.
1908        */
setTypeValue(int value)1909       public Builder setTypeValue(int value) {
1910         type_ = value;
1911         bitField0_ |= 0x00000001;
1912         onChanged();
1913         return this;
1914       }
1915       /**
1916        *
1917        *
1918        * <pre>
1919        * Compensation type.
1920        * Default is
1921        * [CompensationType.COMPENSATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationType.COMPENSATION_TYPE_UNSPECIFIED].
1922        * </pre>
1923        *
1924        * <code>.google.cloud.talent.v4.CompensationInfo.CompensationType type = 1;</code>
1925        *
1926        * @return The type.
1927        */
1928       @java.lang.Override
getType()1929       public com.google.cloud.talent.v4.CompensationInfo.CompensationType getType() {
1930         com.google.cloud.talent.v4.CompensationInfo.CompensationType result =
1931             com.google.cloud.talent.v4.CompensationInfo.CompensationType.forNumber(type_);
1932         return result == null
1933             ? com.google.cloud.talent.v4.CompensationInfo.CompensationType.UNRECOGNIZED
1934             : result;
1935       }
1936       /**
1937        *
1938        *
1939        * <pre>
1940        * Compensation type.
1941        * Default is
1942        * [CompensationType.COMPENSATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationType.COMPENSATION_TYPE_UNSPECIFIED].
1943        * </pre>
1944        *
1945        * <code>.google.cloud.talent.v4.CompensationInfo.CompensationType type = 1;</code>
1946        *
1947        * @param value The type to set.
1948        * @return This builder for chaining.
1949        */
setType(com.google.cloud.talent.v4.CompensationInfo.CompensationType value)1950       public Builder setType(com.google.cloud.talent.v4.CompensationInfo.CompensationType value) {
1951         if (value == null) {
1952           throw new NullPointerException();
1953         }
1954         bitField0_ |= 0x00000001;
1955         type_ = value.getNumber();
1956         onChanged();
1957         return this;
1958       }
1959       /**
1960        *
1961        *
1962        * <pre>
1963        * Compensation type.
1964        * Default is
1965        * [CompensationType.COMPENSATION_TYPE_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationType.COMPENSATION_TYPE_UNSPECIFIED].
1966        * </pre>
1967        *
1968        * <code>.google.cloud.talent.v4.CompensationInfo.CompensationType type = 1;</code>
1969        *
1970        * @return This builder for chaining.
1971        */
clearType()1972       public Builder clearType() {
1973         bitField0_ = (bitField0_ & ~0x00000001);
1974         type_ = 0;
1975         onChanged();
1976         return this;
1977       }
1978 
1979       private int unit_ = 0;
1980       /**
1981        *
1982        *
1983        * <pre>
1984        * Frequency of the specified amount.
1985        * Default is
1986        * [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED].
1987        * </pre>
1988        *
1989        * <code>.google.cloud.talent.v4.CompensationInfo.CompensationUnit unit = 2;</code>
1990        *
1991        * @return The enum numeric value on the wire for unit.
1992        */
1993       @java.lang.Override
getUnitValue()1994       public int getUnitValue() {
1995         return unit_;
1996       }
1997       /**
1998        *
1999        *
2000        * <pre>
2001        * Frequency of the specified amount.
2002        * Default is
2003        * [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED].
2004        * </pre>
2005        *
2006        * <code>.google.cloud.talent.v4.CompensationInfo.CompensationUnit unit = 2;</code>
2007        *
2008        * @param value The enum numeric value on the wire for unit to set.
2009        * @return This builder for chaining.
2010        */
setUnitValue(int value)2011       public Builder setUnitValue(int value) {
2012         unit_ = value;
2013         bitField0_ |= 0x00000002;
2014         onChanged();
2015         return this;
2016       }
2017       /**
2018        *
2019        *
2020        * <pre>
2021        * Frequency of the specified amount.
2022        * Default is
2023        * [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED].
2024        * </pre>
2025        *
2026        * <code>.google.cloud.talent.v4.CompensationInfo.CompensationUnit unit = 2;</code>
2027        *
2028        * @return The unit.
2029        */
2030       @java.lang.Override
getUnit()2031       public com.google.cloud.talent.v4.CompensationInfo.CompensationUnit getUnit() {
2032         com.google.cloud.talent.v4.CompensationInfo.CompensationUnit result =
2033             com.google.cloud.talent.v4.CompensationInfo.CompensationUnit.forNumber(unit_);
2034         return result == null
2035             ? com.google.cloud.talent.v4.CompensationInfo.CompensationUnit.UNRECOGNIZED
2036             : result;
2037       }
2038       /**
2039        *
2040        *
2041        * <pre>
2042        * Frequency of the specified amount.
2043        * Default is
2044        * [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED].
2045        * </pre>
2046        *
2047        * <code>.google.cloud.talent.v4.CompensationInfo.CompensationUnit unit = 2;</code>
2048        *
2049        * @param value The unit to set.
2050        * @return This builder for chaining.
2051        */
setUnit(com.google.cloud.talent.v4.CompensationInfo.CompensationUnit value)2052       public Builder setUnit(com.google.cloud.talent.v4.CompensationInfo.CompensationUnit value) {
2053         if (value == null) {
2054           throw new NullPointerException();
2055         }
2056         bitField0_ |= 0x00000002;
2057         unit_ = value.getNumber();
2058         onChanged();
2059         return this;
2060       }
2061       /**
2062        *
2063        *
2064        * <pre>
2065        * Frequency of the specified amount.
2066        * Default is
2067        * [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED].
2068        * </pre>
2069        *
2070        * <code>.google.cloud.talent.v4.CompensationInfo.CompensationUnit unit = 2;</code>
2071        *
2072        * @return This builder for chaining.
2073        */
clearUnit()2074       public Builder clearUnit() {
2075         bitField0_ = (bitField0_ & ~0x00000002);
2076         unit_ = 0;
2077         onChanged();
2078         return this;
2079       }
2080 
2081       private com.google.protobuf.SingleFieldBuilderV3<
2082               com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>
2083           amountBuilder_;
2084       /**
2085        *
2086        *
2087        * <pre>
2088        * Compensation amount.
2089        * </pre>
2090        *
2091        * <code>.google.type.Money amount = 3;</code>
2092        *
2093        * @return Whether the amount field is set.
2094        */
2095       @java.lang.Override
hasAmount()2096       public boolean hasAmount() {
2097         return compensationAmountCase_ == 3;
2098       }
2099       /**
2100        *
2101        *
2102        * <pre>
2103        * Compensation amount.
2104        * </pre>
2105        *
2106        * <code>.google.type.Money amount = 3;</code>
2107        *
2108        * @return The amount.
2109        */
2110       @java.lang.Override
getAmount()2111       public com.google.type.Money getAmount() {
2112         if (amountBuilder_ == null) {
2113           if (compensationAmountCase_ == 3) {
2114             return (com.google.type.Money) compensationAmount_;
2115           }
2116           return com.google.type.Money.getDefaultInstance();
2117         } else {
2118           if (compensationAmountCase_ == 3) {
2119             return amountBuilder_.getMessage();
2120           }
2121           return com.google.type.Money.getDefaultInstance();
2122         }
2123       }
2124       /**
2125        *
2126        *
2127        * <pre>
2128        * Compensation amount.
2129        * </pre>
2130        *
2131        * <code>.google.type.Money amount = 3;</code>
2132        */
setAmount(com.google.type.Money value)2133       public Builder setAmount(com.google.type.Money value) {
2134         if (amountBuilder_ == null) {
2135           if (value == null) {
2136             throw new NullPointerException();
2137           }
2138           compensationAmount_ = value;
2139           onChanged();
2140         } else {
2141           amountBuilder_.setMessage(value);
2142         }
2143         compensationAmountCase_ = 3;
2144         return this;
2145       }
2146       /**
2147        *
2148        *
2149        * <pre>
2150        * Compensation amount.
2151        * </pre>
2152        *
2153        * <code>.google.type.Money amount = 3;</code>
2154        */
setAmount(com.google.type.Money.Builder builderForValue)2155       public Builder setAmount(com.google.type.Money.Builder builderForValue) {
2156         if (amountBuilder_ == null) {
2157           compensationAmount_ = builderForValue.build();
2158           onChanged();
2159         } else {
2160           amountBuilder_.setMessage(builderForValue.build());
2161         }
2162         compensationAmountCase_ = 3;
2163         return this;
2164       }
2165       /**
2166        *
2167        *
2168        * <pre>
2169        * Compensation amount.
2170        * </pre>
2171        *
2172        * <code>.google.type.Money amount = 3;</code>
2173        */
mergeAmount(com.google.type.Money value)2174       public Builder mergeAmount(com.google.type.Money value) {
2175         if (amountBuilder_ == null) {
2176           if (compensationAmountCase_ == 3
2177               && compensationAmount_ != com.google.type.Money.getDefaultInstance()) {
2178             compensationAmount_ =
2179                 com.google.type.Money.newBuilder((com.google.type.Money) compensationAmount_)
2180                     .mergeFrom(value)
2181                     .buildPartial();
2182           } else {
2183             compensationAmount_ = value;
2184           }
2185           onChanged();
2186         } else {
2187           if (compensationAmountCase_ == 3) {
2188             amountBuilder_.mergeFrom(value);
2189           } else {
2190             amountBuilder_.setMessage(value);
2191           }
2192         }
2193         compensationAmountCase_ = 3;
2194         return this;
2195       }
2196       /**
2197        *
2198        *
2199        * <pre>
2200        * Compensation amount.
2201        * </pre>
2202        *
2203        * <code>.google.type.Money amount = 3;</code>
2204        */
clearAmount()2205       public Builder clearAmount() {
2206         if (amountBuilder_ == null) {
2207           if (compensationAmountCase_ == 3) {
2208             compensationAmountCase_ = 0;
2209             compensationAmount_ = null;
2210             onChanged();
2211           }
2212         } else {
2213           if (compensationAmountCase_ == 3) {
2214             compensationAmountCase_ = 0;
2215             compensationAmount_ = null;
2216           }
2217           amountBuilder_.clear();
2218         }
2219         return this;
2220       }
2221       /**
2222        *
2223        *
2224        * <pre>
2225        * Compensation amount.
2226        * </pre>
2227        *
2228        * <code>.google.type.Money amount = 3;</code>
2229        */
getAmountBuilder()2230       public com.google.type.Money.Builder getAmountBuilder() {
2231         return getAmountFieldBuilder().getBuilder();
2232       }
2233       /**
2234        *
2235        *
2236        * <pre>
2237        * Compensation amount.
2238        * </pre>
2239        *
2240        * <code>.google.type.Money amount = 3;</code>
2241        */
2242       @java.lang.Override
getAmountOrBuilder()2243       public com.google.type.MoneyOrBuilder getAmountOrBuilder() {
2244         if ((compensationAmountCase_ == 3) && (amountBuilder_ != null)) {
2245           return amountBuilder_.getMessageOrBuilder();
2246         } else {
2247           if (compensationAmountCase_ == 3) {
2248             return (com.google.type.Money) compensationAmount_;
2249           }
2250           return com.google.type.Money.getDefaultInstance();
2251         }
2252       }
2253       /**
2254        *
2255        *
2256        * <pre>
2257        * Compensation amount.
2258        * </pre>
2259        *
2260        * <code>.google.type.Money amount = 3;</code>
2261        */
2262       private com.google.protobuf.SingleFieldBuilderV3<
2263               com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>
getAmountFieldBuilder()2264           getAmountFieldBuilder() {
2265         if (amountBuilder_ == null) {
2266           if (!(compensationAmountCase_ == 3)) {
2267             compensationAmount_ = com.google.type.Money.getDefaultInstance();
2268           }
2269           amountBuilder_ =
2270               new com.google.protobuf.SingleFieldBuilderV3<
2271                   com.google.type.Money,
2272                   com.google.type.Money.Builder,
2273                   com.google.type.MoneyOrBuilder>(
2274                   (com.google.type.Money) compensationAmount_, getParentForChildren(), isClean());
2275           compensationAmount_ = null;
2276         }
2277         compensationAmountCase_ = 3;
2278         onChanged();
2279         return amountBuilder_;
2280       }
2281 
2282       private com.google.protobuf.SingleFieldBuilderV3<
2283               com.google.cloud.talent.v4.CompensationInfo.CompensationRange,
2284               com.google.cloud.talent.v4.CompensationInfo.CompensationRange.Builder,
2285               com.google.cloud.talent.v4.CompensationInfo.CompensationRangeOrBuilder>
2286           rangeBuilder_;
2287       /**
2288        *
2289        *
2290        * <pre>
2291        * Compensation range.
2292        * </pre>
2293        *
2294        * <code>.google.cloud.talent.v4.CompensationInfo.CompensationRange range = 4;</code>
2295        *
2296        * @return Whether the range field is set.
2297        */
2298       @java.lang.Override
hasRange()2299       public boolean hasRange() {
2300         return compensationAmountCase_ == 4;
2301       }
2302       /**
2303        *
2304        *
2305        * <pre>
2306        * Compensation range.
2307        * </pre>
2308        *
2309        * <code>.google.cloud.talent.v4.CompensationInfo.CompensationRange range = 4;</code>
2310        *
2311        * @return The range.
2312        */
2313       @java.lang.Override
getRange()2314       public com.google.cloud.talent.v4.CompensationInfo.CompensationRange getRange() {
2315         if (rangeBuilder_ == null) {
2316           if (compensationAmountCase_ == 4) {
2317             return (com.google.cloud.talent.v4.CompensationInfo.CompensationRange)
2318                 compensationAmount_;
2319           }
2320           return com.google.cloud.talent.v4.CompensationInfo.CompensationRange.getDefaultInstance();
2321         } else {
2322           if (compensationAmountCase_ == 4) {
2323             return rangeBuilder_.getMessage();
2324           }
2325           return com.google.cloud.talent.v4.CompensationInfo.CompensationRange.getDefaultInstance();
2326         }
2327       }
2328       /**
2329        *
2330        *
2331        * <pre>
2332        * Compensation range.
2333        * </pre>
2334        *
2335        * <code>.google.cloud.talent.v4.CompensationInfo.CompensationRange range = 4;</code>
2336        */
setRange(com.google.cloud.talent.v4.CompensationInfo.CompensationRange value)2337       public Builder setRange(com.google.cloud.talent.v4.CompensationInfo.CompensationRange value) {
2338         if (rangeBuilder_ == null) {
2339           if (value == null) {
2340             throw new NullPointerException();
2341           }
2342           compensationAmount_ = value;
2343           onChanged();
2344         } else {
2345           rangeBuilder_.setMessage(value);
2346         }
2347         compensationAmountCase_ = 4;
2348         return this;
2349       }
2350       /**
2351        *
2352        *
2353        * <pre>
2354        * Compensation range.
2355        * </pre>
2356        *
2357        * <code>.google.cloud.talent.v4.CompensationInfo.CompensationRange range = 4;</code>
2358        */
setRange( com.google.cloud.talent.v4.CompensationInfo.CompensationRange.Builder builderForValue)2359       public Builder setRange(
2360           com.google.cloud.talent.v4.CompensationInfo.CompensationRange.Builder builderForValue) {
2361         if (rangeBuilder_ == null) {
2362           compensationAmount_ = builderForValue.build();
2363           onChanged();
2364         } else {
2365           rangeBuilder_.setMessage(builderForValue.build());
2366         }
2367         compensationAmountCase_ = 4;
2368         return this;
2369       }
2370       /**
2371        *
2372        *
2373        * <pre>
2374        * Compensation range.
2375        * </pre>
2376        *
2377        * <code>.google.cloud.talent.v4.CompensationInfo.CompensationRange range = 4;</code>
2378        */
mergeRange( com.google.cloud.talent.v4.CompensationInfo.CompensationRange value)2379       public Builder mergeRange(
2380           com.google.cloud.talent.v4.CompensationInfo.CompensationRange value) {
2381         if (rangeBuilder_ == null) {
2382           if (compensationAmountCase_ == 4
2383               && compensationAmount_
2384                   != com.google.cloud.talent.v4.CompensationInfo.CompensationRange
2385                       .getDefaultInstance()) {
2386             compensationAmount_ =
2387                 com.google.cloud.talent.v4.CompensationInfo.CompensationRange.newBuilder(
2388                         (com.google.cloud.talent.v4.CompensationInfo.CompensationRange)
2389                             compensationAmount_)
2390                     .mergeFrom(value)
2391                     .buildPartial();
2392           } else {
2393             compensationAmount_ = value;
2394           }
2395           onChanged();
2396         } else {
2397           if (compensationAmountCase_ == 4) {
2398             rangeBuilder_.mergeFrom(value);
2399           } else {
2400             rangeBuilder_.setMessage(value);
2401           }
2402         }
2403         compensationAmountCase_ = 4;
2404         return this;
2405       }
2406       /**
2407        *
2408        *
2409        * <pre>
2410        * Compensation range.
2411        * </pre>
2412        *
2413        * <code>.google.cloud.talent.v4.CompensationInfo.CompensationRange range = 4;</code>
2414        */
clearRange()2415       public Builder clearRange() {
2416         if (rangeBuilder_ == null) {
2417           if (compensationAmountCase_ == 4) {
2418             compensationAmountCase_ = 0;
2419             compensationAmount_ = null;
2420             onChanged();
2421           }
2422         } else {
2423           if (compensationAmountCase_ == 4) {
2424             compensationAmountCase_ = 0;
2425             compensationAmount_ = null;
2426           }
2427           rangeBuilder_.clear();
2428         }
2429         return this;
2430       }
2431       /**
2432        *
2433        *
2434        * <pre>
2435        * Compensation range.
2436        * </pre>
2437        *
2438        * <code>.google.cloud.talent.v4.CompensationInfo.CompensationRange range = 4;</code>
2439        */
2440       public com.google.cloud.talent.v4.CompensationInfo.CompensationRange.Builder
getRangeBuilder()2441           getRangeBuilder() {
2442         return getRangeFieldBuilder().getBuilder();
2443       }
2444       /**
2445        *
2446        *
2447        * <pre>
2448        * Compensation range.
2449        * </pre>
2450        *
2451        * <code>.google.cloud.talent.v4.CompensationInfo.CompensationRange range = 4;</code>
2452        */
2453       @java.lang.Override
2454       public com.google.cloud.talent.v4.CompensationInfo.CompensationRangeOrBuilder
getRangeOrBuilder()2455           getRangeOrBuilder() {
2456         if ((compensationAmountCase_ == 4) && (rangeBuilder_ != null)) {
2457           return rangeBuilder_.getMessageOrBuilder();
2458         } else {
2459           if (compensationAmountCase_ == 4) {
2460             return (com.google.cloud.talent.v4.CompensationInfo.CompensationRange)
2461                 compensationAmount_;
2462           }
2463           return com.google.cloud.talent.v4.CompensationInfo.CompensationRange.getDefaultInstance();
2464         }
2465       }
2466       /**
2467        *
2468        *
2469        * <pre>
2470        * Compensation range.
2471        * </pre>
2472        *
2473        * <code>.google.cloud.talent.v4.CompensationInfo.CompensationRange range = 4;</code>
2474        */
2475       private com.google.protobuf.SingleFieldBuilderV3<
2476               com.google.cloud.talent.v4.CompensationInfo.CompensationRange,
2477               com.google.cloud.talent.v4.CompensationInfo.CompensationRange.Builder,
2478               com.google.cloud.talent.v4.CompensationInfo.CompensationRangeOrBuilder>
getRangeFieldBuilder()2479           getRangeFieldBuilder() {
2480         if (rangeBuilder_ == null) {
2481           if (!(compensationAmountCase_ == 4)) {
2482             compensationAmount_ =
2483                 com.google.cloud.talent.v4.CompensationInfo.CompensationRange.getDefaultInstance();
2484           }
2485           rangeBuilder_ =
2486               new com.google.protobuf.SingleFieldBuilderV3<
2487                   com.google.cloud.talent.v4.CompensationInfo.CompensationRange,
2488                   com.google.cloud.talent.v4.CompensationInfo.CompensationRange.Builder,
2489                   com.google.cloud.talent.v4.CompensationInfo.CompensationRangeOrBuilder>(
2490                   (com.google.cloud.talent.v4.CompensationInfo.CompensationRange)
2491                       compensationAmount_,
2492                   getParentForChildren(),
2493                   isClean());
2494           compensationAmount_ = null;
2495         }
2496         compensationAmountCase_ = 4;
2497         onChanged();
2498         return rangeBuilder_;
2499       }
2500 
2501       private java.lang.Object description_ = "";
2502       /**
2503        *
2504        *
2505        * <pre>
2506        * Compensation description.  For example, could
2507        * indicate equity terms or provide additional context to an estimated
2508        * bonus.
2509        * </pre>
2510        *
2511        * <code>string description = 5;</code>
2512        *
2513        * @return The description.
2514        */
getDescription()2515       public java.lang.String getDescription() {
2516         java.lang.Object ref = description_;
2517         if (!(ref instanceof java.lang.String)) {
2518           com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
2519           java.lang.String s = bs.toStringUtf8();
2520           description_ = s;
2521           return s;
2522         } else {
2523           return (java.lang.String) ref;
2524         }
2525       }
2526       /**
2527        *
2528        *
2529        * <pre>
2530        * Compensation description.  For example, could
2531        * indicate equity terms or provide additional context to an estimated
2532        * bonus.
2533        * </pre>
2534        *
2535        * <code>string description = 5;</code>
2536        *
2537        * @return The bytes for description.
2538        */
getDescriptionBytes()2539       public com.google.protobuf.ByteString getDescriptionBytes() {
2540         java.lang.Object ref = description_;
2541         if (ref instanceof String) {
2542           com.google.protobuf.ByteString b =
2543               com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
2544           description_ = b;
2545           return b;
2546         } else {
2547           return (com.google.protobuf.ByteString) ref;
2548         }
2549       }
2550       /**
2551        *
2552        *
2553        * <pre>
2554        * Compensation description.  For example, could
2555        * indicate equity terms or provide additional context to an estimated
2556        * bonus.
2557        * </pre>
2558        *
2559        * <code>string description = 5;</code>
2560        *
2561        * @param value The description to set.
2562        * @return This builder for chaining.
2563        */
setDescription(java.lang.String value)2564       public Builder setDescription(java.lang.String value) {
2565         if (value == null) {
2566           throw new NullPointerException();
2567         }
2568         description_ = value;
2569         bitField0_ |= 0x00000010;
2570         onChanged();
2571         return this;
2572       }
2573       /**
2574        *
2575        *
2576        * <pre>
2577        * Compensation description.  For example, could
2578        * indicate equity terms or provide additional context to an estimated
2579        * bonus.
2580        * </pre>
2581        *
2582        * <code>string description = 5;</code>
2583        *
2584        * @return This builder for chaining.
2585        */
clearDescription()2586       public Builder clearDescription() {
2587         description_ = getDefaultInstance().getDescription();
2588         bitField0_ = (bitField0_ & ~0x00000010);
2589         onChanged();
2590         return this;
2591       }
2592       /**
2593        *
2594        *
2595        * <pre>
2596        * Compensation description.  For example, could
2597        * indicate equity terms or provide additional context to an estimated
2598        * bonus.
2599        * </pre>
2600        *
2601        * <code>string description = 5;</code>
2602        *
2603        * @param value The bytes for description to set.
2604        * @return This builder for chaining.
2605        */
setDescriptionBytes(com.google.protobuf.ByteString value)2606       public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
2607         if (value == null) {
2608           throw new NullPointerException();
2609         }
2610         checkByteStringIsUtf8(value);
2611         description_ = value;
2612         bitField0_ |= 0x00000010;
2613         onChanged();
2614         return this;
2615       }
2616 
2617       private com.google.protobuf.DoubleValue expectedUnitsPerYear_;
2618       private com.google.protobuf.SingleFieldBuilderV3<
2619               com.google.protobuf.DoubleValue,
2620               com.google.protobuf.DoubleValue.Builder,
2621               com.google.protobuf.DoubleValueOrBuilder>
2622           expectedUnitsPerYearBuilder_;
2623       /**
2624        *
2625        *
2626        * <pre>
2627        * Expected number of units paid each year. If not specified, when
2628        * [Job.employment_types][google.cloud.talent.v4.Job.employment_types] is
2629        * FULLTIME, a default value is inferred based on
2630        * [unit][google.cloud.talent.v4.CompensationInfo.CompensationEntry.unit].
2631        * Default values:
2632        * - HOURLY: 2080
2633        * - DAILY: 260
2634        * - WEEKLY: 52
2635        * - MONTHLY: 12
2636        * - ANNUAL: 1
2637        * </pre>
2638        *
2639        * <code>.google.protobuf.DoubleValue expected_units_per_year = 6;</code>
2640        *
2641        * @return Whether the expectedUnitsPerYear field is set.
2642        */
hasExpectedUnitsPerYear()2643       public boolean hasExpectedUnitsPerYear() {
2644         return ((bitField0_ & 0x00000020) != 0);
2645       }
2646       /**
2647        *
2648        *
2649        * <pre>
2650        * Expected number of units paid each year. If not specified, when
2651        * [Job.employment_types][google.cloud.talent.v4.Job.employment_types] is
2652        * FULLTIME, a default value is inferred based on
2653        * [unit][google.cloud.talent.v4.CompensationInfo.CompensationEntry.unit].
2654        * Default values:
2655        * - HOURLY: 2080
2656        * - DAILY: 260
2657        * - WEEKLY: 52
2658        * - MONTHLY: 12
2659        * - ANNUAL: 1
2660        * </pre>
2661        *
2662        * <code>.google.protobuf.DoubleValue expected_units_per_year = 6;</code>
2663        *
2664        * @return The expectedUnitsPerYear.
2665        */
getExpectedUnitsPerYear()2666       public com.google.protobuf.DoubleValue getExpectedUnitsPerYear() {
2667         if (expectedUnitsPerYearBuilder_ == null) {
2668           return expectedUnitsPerYear_ == null
2669               ? com.google.protobuf.DoubleValue.getDefaultInstance()
2670               : expectedUnitsPerYear_;
2671         } else {
2672           return expectedUnitsPerYearBuilder_.getMessage();
2673         }
2674       }
2675       /**
2676        *
2677        *
2678        * <pre>
2679        * Expected number of units paid each year. If not specified, when
2680        * [Job.employment_types][google.cloud.talent.v4.Job.employment_types] is
2681        * FULLTIME, a default value is inferred based on
2682        * [unit][google.cloud.talent.v4.CompensationInfo.CompensationEntry.unit].
2683        * Default values:
2684        * - HOURLY: 2080
2685        * - DAILY: 260
2686        * - WEEKLY: 52
2687        * - MONTHLY: 12
2688        * - ANNUAL: 1
2689        * </pre>
2690        *
2691        * <code>.google.protobuf.DoubleValue expected_units_per_year = 6;</code>
2692        */
setExpectedUnitsPerYear(com.google.protobuf.DoubleValue value)2693       public Builder setExpectedUnitsPerYear(com.google.protobuf.DoubleValue value) {
2694         if (expectedUnitsPerYearBuilder_ == null) {
2695           if (value == null) {
2696             throw new NullPointerException();
2697           }
2698           expectedUnitsPerYear_ = value;
2699         } else {
2700           expectedUnitsPerYearBuilder_.setMessage(value);
2701         }
2702         bitField0_ |= 0x00000020;
2703         onChanged();
2704         return this;
2705       }
2706       /**
2707        *
2708        *
2709        * <pre>
2710        * Expected number of units paid each year. If not specified, when
2711        * [Job.employment_types][google.cloud.talent.v4.Job.employment_types] is
2712        * FULLTIME, a default value is inferred based on
2713        * [unit][google.cloud.talent.v4.CompensationInfo.CompensationEntry.unit].
2714        * Default values:
2715        * - HOURLY: 2080
2716        * - DAILY: 260
2717        * - WEEKLY: 52
2718        * - MONTHLY: 12
2719        * - ANNUAL: 1
2720        * </pre>
2721        *
2722        * <code>.google.protobuf.DoubleValue expected_units_per_year = 6;</code>
2723        */
setExpectedUnitsPerYear( com.google.protobuf.DoubleValue.Builder builderForValue)2724       public Builder setExpectedUnitsPerYear(
2725           com.google.protobuf.DoubleValue.Builder builderForValue) {
2726         if (expectedUnitsPerYearBuilder_ == null) {
2727           expectedUnitsPerYear_ = builderForValue.build();
2728         } else {
2729           expectedUnitsPerYearBuilder_.setMessage(builderForValue.build());
2730         }
2731         bitField0_ |= 0x00000020;
2732         onChanged();
2733         return this;
2734       }
2735       /**
2736        *
2737        *
2738        * <pre>
2739        * Expected number of units paid each year. If not specified, when
2740        * [Job.employment_types][google.cloud.talent.v4.Job.employment_types] is
2741        * FULLTIME, a default value is inferred based on
2742        * [unit][google.cloud.talent.v4.CompensationInfo.CompensationEntry.unit].
2743        * Default values:
2744        * - HOURLY: 2080
2745        * - DAILY: 260
2746        * - WEEKLY: 52
2747        * - MONTHLY: 12
2748        * - ANNUAL: 1
2749        * </pre>
2750        *
2751        * <code>.google.protobuf.DoubleValue expected_units_per_year = 6;</code>
2752        */
mergeExpectedUnitsPerYear(com.google.protobuf.DoubleValue value)2753       public Builder mergeExpectedUnitsPerYear(com.google.protobuf.DoubleValue value) {
2754         if (expectedUnitsPerYearBuilder_ == null) {
2755           if (((bitField0_ & 0x00000020) != 0)
2756               && expectedUnitsPerYear_ != null
2757               && expectedUnitsPerYear_ != com.google.protobuf.DoubleValue.getDefaultInstance()) {
2758             getExpectedUnitsPerYearBuilder().mergeFrom(value);
2759           } else {
2760             expectedUnitsPerYear_ = value;
2761           }
2762         } else {
2763           expectedUnitsPerYearBuilder_.mergeFrom(value);
2764         }
2765         bitField0_ |= 0x00000020;
2766         onChanged();
2767         return this;
2768       }
2769       /**
2770        *
2771        *
2772        * <pre>
2773        * Expected number of units paid each year. If not specified, when
2774        * [Job.employment_types][google.cloud.talent.v4.Job.employment_types] is
2775        * FULLTIME, a default value is inferred based on
2776        * [unit][google.cloud.talent.v4.CompensationInfo.CompensationEntry.unit].
2777        * Default values:
2778        * - HOURLY: 2080
2779        * - DAILY: 260
2780        * - WEEKLY: 52
2781        * - MONTHLY: 12
2782        * - ANNUAL: 1
2783        * </pre>
2784        *
2785        * <code>.google.protobuf.DoubleValue expected_units_per_year = 6;</code>
2786        */
clearExpectedUnitsPerYear()2787       public Builder clearExpectedUnitsPerYear() {
2788         bitField0_ = (bitField0_ & ~0x00000020);
2789         expectedUnitsPerYear_ = null;
2790         if (expectedUnitsPerYearBuilder_ != null) {
2791           expectedUnitsPerYearBuilder_.dispose();
2792           expectedUnitsPerYearBuilder_ = null;
2793         }
2794         onChanged();
2795         return this;
2796       }
2797       /**
2798        *
2799        *
2800        * <pre>
2801        * Expected number of units paid each year. If not specified, when
2802        * [Job.employment_types][google.cloud.talent.v4.Job.employment_types] is
2803        * FULLTIME, a default value is inferred based on
2804        * [unit][google.cloud.talent.v4.CompensationInfo.CompensationEntry.unit].
2805        * Default values:
2806        * - HOURLY: 2080
2807        * - DAILY: 260
2808        * - WEEKLY: 52
2809        * - MONTHLY: 12
2810        * - ANNUAL: 1
2811        * </pre>
2812        *
2813        * <code>.google.protobuf.DoubleValue expected_units_per_year = 6;</code>
2814        */
getExpectedUnitsPerYearBuilder()2815       public com.google.protobuf.DoubleValue.Builder getExpectedUnitsPerYearBuilder() {
2816         bitField0_ |= 0x00000020;
2817         onChanged();
2818         return getExpectedUnitsPerYearFieldBuilder().getBuilder();
2819       }
2820       /**
2821        *
2822        *
2823        * <pre>
2824        * Expected number of units paid each year. If not specified, when
2825        * [Job.employment_types][google.cloud.talent.v4.Job.employment_types] is
2826        * FULLTIME, a default value is inferred based on
2827        * [unit][google.cloud.talent.v4.CompensationInfo.CompensationEntry.unit].
2828        * Default values:
2829        * - HOURLY: 2080
2830        * - DAILY: 260
2831        * - WEEKLY: 52
2832        * - MONTHLY: 12
2833        * - ANNUAL: 1
2834        * </pre>
2835        *
2836        * <code>.google.protobuf.DoubleValue expected_units_per_year = 6;</code>
2837        */
getExpectedUnitsPerYearOrBuilder()2838       public com.google.protobuf.DoubleValueOrBuilder getExpectedUnitsPerYearOrBuilder() {
2839         if (expectedUnitsPerYearBuilder_ != null) {
2840           return expectedUnitsPerYearBuilder_.getMessageOrBuilder();
2841         } else {
2842           return expectedUnitsPerYear_ == null
2843               ? com.google.protobuf.DoubleValue.getDefaultInstance()
2844               : expectedUnitsPerYear_;
2845         }
2846       }
2847       /**
2848        *
2849        *
2850        * <pre>
2851        * Expected number of units paid each year. If not specified, when
2852        * [Job.employment_types][google.cloud.talent.v4.Job.employment_types] is
2853        * FULLTIME, a default value is inferred based on
2854        * [unit][google.cloud.talent.v4.CompensationInfo.CompensationEntry.unit].
2855        * Default values:
2856        * - HOURLY: 2080
2857        * - DAILY: 260
2858        * - WEEKLY: 52
2859        * - MONTHLY: 12
2860        * - ANNUAL: 1
2861        * </pre>
2862        *
2863        * <code>.google.protobuf.DoubleValue expected_units_per_year = 6;</code>
2864        */
2865       private com.google.protobuf.SingleFieldBuilderV3<
2866               com.google.protobuf.DoubleValue,
2867               com.google.protobuf.DoubleValue.Builder,
2868               com.google.protobuf.DoubleValueOrBuilder>
getExpectedUnitsPerYearFieldBuilder()2869           getExpectedUnitsPerYearFieldBuilder() {
2870         if (expectedUnitsPerYearBuilder_ == null) {
2871           expectedUnitsPerYearBuilder_ =
2872               new com.google.protobuf.SingleFieldBuilderV3<
2873                   com.google.protobuf.DoubleValue,
2874                   com.google.protobuf.DoubleValue.Builder,
2875                   com.google.protobuf.DoubleValueOrBuilder>(
2876                   getExpectedUnitsPerYear(), getParentForChildren(), isClean());
2877           expectedUnitsPerYear_ = null;
2878         }
2879         return expectedUnitsPerYearBuilder_;
2880       }
2881 
2882       @java.lang.Override
setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2883       public final Builder setUnknownFields(
2884           final com.google.protobuf.UnknownFieldSet unknownFields) {
2885         return super.setUnknownFields(unknownFields);
2886       }
2887 
2888       @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)2889       public final Builder mergeUnknownFields(
2890           final com.google.protobuf.UnknownFieldSet unknownFields) {
2891         return super.mergeUnknownFields(unknownFields);
2892       }
2893 
2894       // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4.CompensationInfo.CompensationEntry)
2895     }
2896 
2897     // @@protoc_insertion_point(class_scope:google.cloud.talent.v4.CompensationInfo.CompensationEntry)
2898     private static final com.google.cloud.talent.v4.CompensationInfo.CompensationEntry
2899         DEFAULT_INSTANCE;
2900 
2901     static {
2902       DEFAULT_INSTANCE = new com.google.cloud.talent.v4.CompensationInfo.CompensationEntry();
2903     }
2904 
2905     public static com.google.cloud.talent.v4.CompensationInfo.CompensationEntry
getDefaultInstance()2906         getDefaultInstance() {
2907       return DEFAULT_INSTANCE;
2908     }
2909 
2910     private static final com.google.protobuf.Parser<CompensationEntry> PARSER =
2911         new com.google.protobuf.AbstractParser<CompensationEntry>() {
2912           @java.lang.Override
2913           public CompensationEntry parsePartialFrom(
2914               com.google.protobuf.CodedInputStream input,
2915               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
2916               throws com.google.protobuf.InvalidProtocolBufferException {
2917             Builder builder = newBuilder();
2918             try {
2919               builder.mergeFrom(input, extensionRegistry);
2920             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
2921               throw e.setUnfinishedMessage(builder.buildPartial());
2922             } catch (com.google.protobuf.UninitializedMessageException e) {
2923               throw e.asInvalidProtocolBufferException()
2924                   .setUnfinishedMessage(builder.buildPartial());
2925             } catch (java.io.IOException e) {
2926               throw new com.google.protobuf.InvalidProtocolBufferException(e)
2927                   .setUnfinishedMessage(builder.buildPartial());
2928             }
2929             return builder.buildPartial();
2930           }
2931         };
2932 
parser()2933     public static com.google.protobuf.Parser<CompensationEntry> parser() {
2934       return PARSER;
2935     }
2936 
2937     @java.lang.Override
getParserForType()2938     public com.google.protobuf.Parser<CompensationEntry> getParserForType() {
2939       return PARSER;
2940     }
2941 
2942     @java.lang.Override
2943     public com.google.cloud.talent.v4.CompensationInfo.CompensationEntry
getDefaultInstanceForType()2944         getDefaultInstanceForType() {
2945       return DEFAULT_INSTANCE;
2946     }
2947   }
2948 
2949   public interface CompensationRangeOrBuilder
2950       extends
2951       // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4.CompensationInfo.CompensationRange)
2952       com.google.protobuf.MessageOrBuilder {
2953 
2954     /**
2955      *
2956      *
2957      * <pre>
2958      * The maximum amount of compensation. If left empty, the value is set
2959      * to a maximal compensation value and the currency code is set to
2960      * match the [currency code][google.type.Money.currency_code] of
2961      * min_compensation.
2962      * </pre>
2963      *
2964      * <code>.google.type.Money max_compensation = 2;</code>
2965      *
2966      * @return Whether the maxCompensation field is set.
2967      */
hasMaxCompensation()2968     boolean hasMaxCompensation();
2969     /**
2970      *
2971      *
2972      * <pre>
2973      * The maximum amount of compensation. If left empty, the value is set
2974      * to a maximal compensation value and the currency code is set to
2975      * match the [currency code][google.type.Money.currency_code] of
2976      * min_compensation.
2977      * </pre>
2978      *
2979      * <code>.google.type.Money max_compensation = 2;</code>
2980      *
2981      * @return The maxCompensation.
2982      */
getMaxCompensation()2983     com.google.type.Money getMaxCompensation();
2984     /**
2985      *
2986      *
2987      * <pre>
2988      * The maximum amount of compensation. If left empty, the value is set
2989      * to a maximal compensation value and the currency code is set to
2990      * match the [currency code][google.type.Money.currency_code] of
2991      * min_compensation.
2992      * </pre>
2993      *
2994      * <code>.google.type.Money max_compensation = 2;</code>
2995      */
getMaxCompensationOrBuilder()2996     com.google.type.MoneyOrBuilder getMaxCompensationOrBuilder();
2997 
2998     /**
2999      *
3000      *
3001      * <pre>
3002      * The minimum amount of compensation. If left empty, the value is set
3003      * to zero and the currency code is set to match the
3004      * [currency code][google.type.Money.currency_code] of max_compensation.
3005      * </pre>
3006      *
3007      * <code>.google.type.Money min_compensation = 1;</code>
3008      *
3009      * @return Whether the minCompensation field is set.
3010      */
hasMinCompensation()3011     boolean hasMinCompensation();
3012     /**
3013      *
3014      *
3015      * <pre>
3016      * The minimum amount of compensation. If left empty, the value is set
3017      * to zero and the currency code is set to match the
3018      * [currency code][google.type.Money.currency_code] of max_compensation.
3019      * </pre>
3020      *
3021      * <code>.google.type.Money min_compensation = 1;</code>
3022      *
3023      * @return The minCompensation.
3024      */
getMinCompensation()3025     com.google.type.Money getMinCompensation();
3026     /**
3027      *
3028      *
3029      * <pre>
3030      * The minimum amount of compensation. If left empty, the value is set
3031      * to zero and the currency code is set to match the
3032      * [currency code][google.type.Money.currency_code] of max_compensation.
3033      * </pre>
3034      *
3035      * <code>.google.type.Money min_compensation = 1;</code>
3036      */
getMinCompensationOrBuilder()3037     com.google.type.MoneyOrBuilder getMinCompensationOrBuilder();
3038   }
3039   /**
3040    *
3041    *
3042    * <pre>
3043    * Compensation range.
3044    * </pre>
3045    *
3046    * Protobuf type {@code google.cloud.talent.v4.CompensationInfo.CompensationRange}
3047    */
3048   public static final class CompensationRange extends com.google.protobuf.GeneratedMessageV3
3049       implements
3050       // @@protoc_insertion_point(message_implements:google.cloud.talent.v4.CompensationInfo.CompensationRange)
3051       CompensationRangeOrBuilder {
3052     private static final long serialVersionUID = 0L;
3053     // Use CompensationRange.newBuilder() to construct.
CompensationRange(com.google.protobuf.GeneratedMessageV3.Builder<?> builder)3054     private CompensationRange(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
3055       super(builder);
3056     }
3057 
CompensationRange()3058     private CompensationRange() {}
3059 
3060     @java.lang.Override
3061     @SuppressWarnings({"unused"})
newInstance(UnusedPrivateParameter unused)3062     protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
3063       return new CompensationRange();
3064     }
3065 
3066     @java.lang.Override
getUnknownFields()3067     public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
3068       return this.unknownFields;
3069     }
3070 
getDescriptor()3071     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
3072       return com.google.cloud.talent.v4.CommonProto
3073           .internal_static_google_cloud_talent_v4_CompensationInfo_CompensationRange_descriptor;
3074     }
3075 
3076     @java.lang.Override
3077     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()3078         internalGetFieldAccessorTable() {
3079       return com.google.cloud.talent.v4.CommonProto
3080           .internal_static_google_cloud_talent_v4_CompensationInfo_CompensationRange_fieldAccessorTable
3081           .ensureFieldAccessorsInitialized(
3082               com.google.cloud.talent.v4.CompensationInfo.CompensationRange.class,
3083               com.google.cloud.talent.v4.CompensationInfo.CompensationRange.Builder.class);
3084     }
3085 
3086     public static final int MAX_COMPENSATION_FIELD_NUMBER = 2;
3087     private com.google.type.Money maxCompensation_;
3088     /**
3089      *
3090      *
3091      * <pre>
3092      * The maximum amount of compensation. If left empty, the value is set
3093      * to a maximal compensation value and the currency code is set to
3094      * match the [currency code][google.type.Money.currency_code] of
3095      * min_compensation.
3096      * </pre>
3097      *
3098      * <code>.google.type.Money max_compensation = 2;</code>
3099      *
3100      * @return Whether the maxCompensation field is set.
3101      */
3102     @java.lang.Override
hasMaxCompensation()3103     public boolean hasMaxCompensation() {
3104       return maxCompensation_ != null;
3105     }
3106     /**
3107      *
3108      *
3109      * <pre>
3110      * The maximum amount of compensation. If left empty, the value is set
3111      * to a maximal compensation value and the currency code is set to
3112      * match the [currency code][google.type.Money.currency_code] of
3113      * min_compensation.
3114      * </pre>
3115      *
3116      * <code>.google.type.Money max_compensation = 2;</code>
3117      *
3118      * @return The maxCompensation.
3119      */
3120     @java.lang.Override
getMaxCompensation()3121     public com.google.type.Money getMaxCompensation() {
3122       return maxCompensation_ == null
3123           ? com.google.type.Money.getDefaultInstance()
3124           : maxCompensation_;
3125     }
3126     /**
3127      *
3128      *
3129      * <pre>
3130      * The maximum amount of compensation. If left empty, the value is set
3131      * to a maximal compensation value and the currency code is set to
3132      * match the [currency code][google.type.Money.currency_code] of
3133      * min_compensation.
3134      * </pre>
3135      *
3136      * <code>.google.type.Money max_compensation = 2;</code>
3137      */
3138     @java.lang.Override
getMaxCompensationOrBuilder()3139     public com.google.type.MoneyOrBuilder getMaxCompensationOrBuilder() {
3140       return maxCompensation_ == null
3141           ? com.google.type.Money.getDefaultInstance()
3142           : maxCompensation_;
3143     }
3144 
3145     public static final int MIN_COMPENSATION_FIELD_NUMBER = 1;
3146     private com.google.type.Money minCompensation_;
3147     /**
3148      *
3149      *
3150      * <pre>
3151      * The minimum amount of compensation. If left empty, the value is set
3152      * to zero and the currency code is set to match the
3153      * [currency code][google.type.Money.currency_code] of max_compensation.
3154      * </pre>
3155      *
3156      * <code>.google.type.Money min_compensation = 1;</code>
3157      *
3158      * @return Whether the minCompensation field is set.
3159      */
3160     @java.lang.Override
hasMinCompensation()3161     public boolean hasMinCompensation() {
3162       return minCompensation_ != null;
3163     }
3164     /**
3165      *
3166      *
3167      * <pre>
3168      * The minimum amount of compensation. If left empty, the value is set
3169      * to zero and the currency code is set to match the
3170      * [currency code][google.type.Money.currency_code] of max_compensation.
3171      * </pre>
3172      *
3173      * <code>.google.type.Money min_compensation = 1;</code>
3174      *
3175      * @return The minCompensation.
3176      */
3177     @java.lang.Override
getMinCompensation()3178     public com.google.type.Money getMinCompensation() {
3179       return minCompensation_ == null
3180           ? com.google.type.Money.getDefaultInstance()
3181           : minCompensation_;
3182     }
3183     /**
3184      *
3185      *
3186      * <pre>
3187      * The minimum amount of compensation. If left empty, the value is set
3188      * to zero and the currency code is set to match the
3189      * [currency code][google.type.Money.currency_code] of max_compensation.
3190      * </pre>
3191      *
3192      * <code>.google.type.Money min_compensation = 1;</code>
3193      */
3194     @java.lang.Override
getMinCompensationOrBuilder()3195     public com.google.type.MoneyOrBuilder getMinCompensationOrBuilder() {
3196       return minCompensation_ == null
3197           ? com.google.type.Money.getDefaultInstance()
3198           : minCompensation_;
3199     }
3200 
3201     private byte memoizedIsInitialized = -1;
3202 
3203     @java.lang.Override
isInitialized()3204     public final boolean isInitialized() {
3205       byte isInitialized = memoizedIsInitialized;
3206       if (isInitialized == 1) return true;
3207       if (isInitialized == 0) return false;
3208 
3209       memoizedIsInitialized = 1;
3210       return true;
3211     }
3212 
3213     @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)3214     public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
3215       if (minCompensation_ != null) {
3216         output.writeMessage(1, getMinCompensation());
3217       }
3218       if (maxCompensation_ != null) {
3219         output.writeMessage(2, getMaxCompensation());
3220       }
3221       getUnknownFields().writeTo(output);
3222     }
3223 
3224     @java.lang.Override
getSerializedSize()3225     public int getSerializedSize() {
3226       int size = memoizedSize;
3227       if (size != -1) return size;
3228 
3229       size = 0;
3230       if (minCompensation_ != null) {
3231         size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinCompensation());
3232       }
3233       if (maxCompensation_ != null) {
3234         size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxCompensation());
3235       }
3236       size += getUnknownFields().getSerializedSize();
3237       memoizedSize = size;
3238       return size;
3239     }
3240 
3241     @java.lang.Override
equals(final java.lang.Object obj)3242     public boolean equals(final java.lang.Object obj) {
3243       if (obj == this) {
3244         return true;
3245       }
3246       if (!(obj instanceof com.google.cloud.talent.v4.CompensationInfo.CompensationRange)) {
3247         return super.equals(obj);
3248       }
3249       com.google.cloud.talent.v4.CompensationInfo.CompensationRange other =
3250           (com.google.cloud.talent.v4.CompensationInfo.CompensationRange) obj;
3251 
3252       if (hasMaxCompensation() != other.hasMaxCompensation()) return false;
3253       if (hasMaxCompensation()) {
3254         if (!getMaxCompensation().equals(other.getMaxCompensation())) return false;
3255       }
3256       if (hasMinCompensation() != other.hasMinCompensation()) return false;
3257       if (hasMinCompensation()) {
3258         if (!getMinCompensation().equals(other.getMinCompensation())) return false;
3259       }
3260       if (!getUnknownFields().equals(other.getUnknownFields())) return false;
3261       return true;
3262     }
3263 
3264     @java.lang.Override
hashCode()3265     public int hashCode() {
3266       if (memoizedHashCode != 0) {
3267         return memoizedHashCode;
3268       }
3269       int hash = 41;
3270       hash = (19 * hash) + getDescriptor().hashCode();
3271       if (hasMaxCompensation()) {
3272         hash = (37 * hash) + MAX_COMPENSATION_FIELD_NUMBER;
3273         hash = (53 * hash) + getMaxCompensation().hashCode();
3274       }
3275       if (hasMinCompensation()) {
3276         hash = (37 * hash) + MIN_COMPENSATION_FIELD_NUMBER;
3277         hash = (53 * hash) + getMinCompensation().hashCode();
3278       }
3279       hash = (29 * hash) + getUnknownFields().hashCode();
3280       memoizedHashCode = hash;
3281       return hash;
3282     }
3283 
parseFrom( java.nio.ByteBuffer data)3284     public static com.google.cloud.talent.v4.CompensationInfo.CompensationRange parseFrom(
3285         java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
3286       return PARSER.parseFrom(data);
3287     }
3288 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3289     public static com.google.cloud.talent.v4.CompensationInfo.CompensationRange parseFrom(
3290         java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3291         throws com.google.protobuf.InvalidProtocolBufferException {
3292       return PARSER.parseFrom(data, extensionRegistry);
3293     }
3294 
parseFrom( com.google.protobuf.ByteString data)3295     public static com.google.cloud.talent.v4.CompensationInfo.CompensationRange parseFrom(
3296         com.google.protobuf.ByteString data)
3297         throws com.google.protobuf.InvalidProtocolBufferException {
3298       return PARSER.parseFrom(data);
3299     }
3300 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3301     public static com.google.cloud.talent.v4.CompensationInfo.CompensationRange parseFrom(
3302         com.google.protobuf.ByteString data,
3303         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3304         throws com.google.protobuf.InvalidProtocolBufferException {
3305       return PARSER.parseFrom(data, extensionRegistry);
3306     }
3307 
parseFrom( byte[] data)3308     public static com.google.cloud.talent.v4.CompensationInfo.CompensationRange parseFrom(
3309         byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
3310       return PARSER.parseFrom(data);
3311     }
3312 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3313     public static com.google.cloud.talent.v4.CompensationInfo.CompensationRange parseFrom(
3314         byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3315         throws com.google.protobuf.InvalidProtocolBufferException {
3316       return PARSER.parseFrom(data, extensionRegistry);
3317     }
3318 
parseFrom( java.io.InputStream input)3319     public static com.google.cloud.talent.v4.CompensationInfo.CompensationRange parseFrom(
3320         java.io.InputStream input) throws java.io.IOException {
3321       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
3322     }
3323 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3324     public static com.google.cloud.talent.v4.CompensationInfo.CompensationRange parseFrom(
3325         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3326         throws java.io.IOException {
3327       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
3328           PARSER, input, extensionRegistry);
3329     }
3330 
parseDelimitedFrom( java.io.InputStream input)3331     public static com.google.cloud.talent.v4.CompensationInfo.CompensationRange parseDelimitedFrom(
3332         java.io.InputStream input) throws java.io.IOException {
3333       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
3334     }
3335 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3336     public static com.google.cloud.talent.v4.CompensationInfo.CompensationRange parseDelimitedFrom(
3337         java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3338         throws java.io.IOException {
3339       return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
3340           PARSER, input, extensionRegistry);
3341     }
3342 
parseFrom( com.google.protobuf.CodedInputStream input)3343     public static com.google.cloud.talent.v4.CompensationInfo.CompensationRange parseFrom(
3344         com.google.protobuf.CodedInputStream input) throws java.io.IOException {
3345       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
3346     }
3347 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3348     public static com.google.cloud.talent.v4.CompensationInfo.CompensationRange parseFrom(
3349         com.google.protobuf.CodedInputStream input,
3350         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3351         throws java.io.IOException {
3352       return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
3353           PARSER, input, extensionRegistry);
3354     }
3355 
3356     @java.lang.Override
newBuilderForType()3357     public Builder newBuilderForType() {
3358       return newBuilder();
3359     }
3360 
newBuilder()3361     public static Builder newBuilder() {
3362       return DEFAULT_INSTANCE.toBuilder();
3363     }
3364 
newBuilder( com.google.cloud.talent.v4.CompensationInfo.CompensationRange prototype)3365     public static Builder newBuilder(
3366         com.google.cloud.talent.v4.CompensationInfo.CompensationRange prototype) {
3367       return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
3368     }
3369 
3370     @java.lang.Override
toBuilder()3371     public Builder toBuilder() {
3372       return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
3373     }
3374 
3375     @java.lang.Override
newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent)3376     protected Builder newBuilderForType(
3377         com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
3378       Builder builder = new Builder(parent);
3379       return builder;
3380     }
3381     /**
3382      *
3383      *
3384      * <pre>
3385      * Compensation range.
3386      * </pre>
3387      *
3388      * Protobuf type {@code google.cloud.talent.v4.CompensationInfo.CompensationRange}
3389      */
3390     public static final class Builder
3391         extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
3392         implements
3393         // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4.CompensationInfo.CompensationRange)
3394         com.google.cloud.talent.v4.CompensationInfo.CompensationRangeOrBuilder {
getDescriptor()3395       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
3396         return com.google.cloud.talent.v4.CommonProto
3397             .internal_static_google_cloud_talent_v4_CompensationInfo_CompensationRange_descriptor;
3398       }
3399 
3400       @java.lang.Override
3401       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()3402           internalGetFieldAccessorTable() {
3403         return com.google.cloud.talent.v4.CommonProto
3404             .internal_static_google_cloud_talent_v4_CompensationInfo_CompensationRange_fieldAccessorTable
3405             .ensureFieldAccessorsInitialized(
3406                 com.google.cloud.talent.v4.CompensationInfo.CompensationRange.class,
3407                 com.google.cloud.talent.v4.CompensationInfo.CompensationRange.Builder.class);
3408       }
3409 
3410       // Construct using com.google.cloud.talent.v4.CompensationInfo.CompensationRange.newBuilder()
Builder()3411       private Builder() {}
3412 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)3413       private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
3414         super(parent);
3415       }
3416 
3417       @java.lang.Override
clear()3418       public Builder clear() {
3419         super.clear();
3420         bitField0_ = 0;
3421         maxCompensation_ = null;
3422         if (maxCompensationBuilder_ != null) {
3423           maxCompensationBuilder_.dispose();
3424           maxCompensationBuilder_ = null;
3425         }
3426         minCompensation_ = null;
3427         if (minCompensationBuilder_ != null) {
3428           minCompensationBuilder_.dispose();
3429           minCompensationBuilder_ = null;
3430         }
3431         return this;
3432       }
3433 
3434       @java.lang.Override
getDescriptorForType()3435       public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
3436         return com.google.cloud.talent.v4.CommonProto
3437             .internal_static_google_cloud_talent_v4_CompensationInfo_CompensationRange_descriptor;
3438       }
3439 
3440       @java.lang.Override
3441       public com.google.cloud.talent.v4.CompensationInfo.CompensationRange
getDefaultInstanceForType()3442           getDefaultInstanceForType() {
3443         return com.google.cloud.talent.v4.CompensationInfo.CompensationRange.getDefaultInstance();
3444       }
3445 
3446       @java.lang.Override
build()3447       public com.google.cloud.talent.v4.CompensationInfo.CompensationRange build() {
3448         com.google.cloud.talent.v4.CompensationInfo.CompensationRange result = buildPartial();
3449         if (!result.isInitialized()) {
3450           throw newUninitializedMessageException(result);
3451         }
3452         return result;
3453       }
3454 
3455       @java.lang.Override
buildPartial()3456       public com.google.cloud.talent.v4.CompensationInfo.CompensationRange buildPartial() {
3457         com.google.cloud.talent.v4.CompensationInfo.CompensationRange result =
3458             new com.google.cloud.talent.v4.CompensationInfo.CompensationRange(this);
3459         if (bitField0_ != 0) {
3460           buildPartial0(result);
3461         }
3462         onBuilt();
3463         return result;
3464       }
3465 
buildPartial0( com.google.cloud.talent.v4.CompensationInfo.CompensationRange result)3466       private void buildPartial0(
3467           com.google.cloud.talent.v4.CompensationInfo.CompensationRange result) {
3468         int from_bitField0_ = bitField0_;
3469         if (((from_bitField0_ & 0x00000001) != 0)) {
3470           result.maxCompensation_ =
3471               maxCompensationBuilder_ == null ? maxCompensation_ : maxCompensationBuilder_.build();
3472         }
3473         if (((from_bitField0_ & 0x00000002) != 0)) {
3474           result.minCompensation_ =
3475               minCompensationBuilder_ == null ? minCompensation_ : minCompensationBuilder_.build();
3476         }
3477       }
3478 
3479       @java.lang.Override
clone()3480       public Builder clone() {
3481         return super.clone();
3482       }
3483 
3484       @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)3485       public Builder setField(
3486           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
3487         return super.setField(field, value);
3488       }
3489 
3490       @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)3491       public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
3492         return super.clearField(field);
3493       }
3494 
3495       @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)3496       public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
3497         return super.clearOneof(oneof);
3498       }
3499 
3500       @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)3501       public Builder setRepeatedField(
3502           com.google.protobuf.Descriptors.FieldDescriptor field,
3503           int index,
3504           java.lang.Object value) {
3505         return super.setRepeatedField(field, index, value);
3506       }
3507 
3508       @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)3509       public Builder addRepeatedField(
3510           com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
3511         return super.addRepeatedField(field, value);
3512       }
3513 
3514       @java.lang.Override
mergeFrom(com.google.protobuf.Message other)3515       public Builder mergeFrom(com.google.protobuf.Message other) {
3516         if (other instanceof com.google.cloud.talent.v4.CompensationInfo.CompensationRange) {
3517           return mergeFrom((com.google.cloud.talent.v4.CompensationInfo.CompensationRange) other);
3518         } else {
3519           super.mergeFrom(other);
3520           return this;
3521         }
3522       }
3523 
mergeFrom( com.google.cloud.talent.v4.CompensationInfo.CompensationRange other)3524       public Builder mergeFrom(
3525           com.google.cloud.talent.v4.CompensationInfo.CompensationRange other) {
3526         if (other
3527             == com.google.cloud.talent.v4.CompensationInfo.CompensationRange.getDefaultInstance())
3528           return this;
3529         if (other.hasMaxCompensation()) {
3530           mergeMaxCompensation(other.getMaxCompensation());
3531         }
3532         if (other.hasMinCompensation()) {
3533           mergeMinCompensation(other.getMinCompensation());
3534         }
3535         this.mergeUnknownFields(other.getUnknownFields());
3536         onChanged();
3537         return this;
3538       }
3539 
3540       @java.lang.Override
isInitialized()3541       public final boolean isInitialized() {
3542         return true;
3543       }
3544 
3545       @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)3546       public Builder mergeFrom(
3547           com.google.protobuf.CodedInputStream input,
3548           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
3549           throws java.io.IOException {
3550         if (extensionRegistry == null) {
3551           throw new java.lang.NullPointerException();
3552         }
3553         try {
3554           boolean done = false;
3555           while (!done) {
3556             int tag = input.readTag();
3557             switch (tag) {
3558               case 0:
3559                 done = true;
3560                 break;
3561               case 10:
3562                 {
3563                   input.readMessage(
3564                       getMinCompensationFieldBuilder().getBuilder(), extensionRegistry);
3565                   bitField0_ |= 0x00000002;
3566                   break;
3567                 } // case 10
3568               case 18:
3569                 {
3570                   input.readMessage(
3571                       getMaxCompensationFieldBuilder().getBuilder(), extensionRegistry);
3572                   bitField0_ |= 0x00000001;
3573                   break;
3574                 } // case 18
3575               default:
3576                 {
3577                   if (!super.parseUnknownField(input, extensionRegistry, tag)) {
3578                     done = true; // was an endgroup tag
3579                   }
3580                   break;
3581                 } // default:
3582             } // switch (tag)
3583           } // while (!done)
3584         } catch (com.google.protobuf.InvalidProtocolBufferException e) {
3585           throw e.unwrapIOException();
3586         } finally {
3587           onChanged();
3588         } // finally
3589         return this;
3590       }
3591 
3592       private int bitField0_;
3593 
3594       private com.google.type.Money maxCompensation_;
3595       private com.google.protobuf.SingleFieldBuilderV3<
3596               com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>
3597           maxCompensationBuilder_;
3598       /**
3599        *
3600        *
3601        * <pre>
3602        * The maximum amount of compensation. If left empty, the value is set
3603        * to a maximal compensation value and the currency code is set to
3604        * match the [currency code][google.type.Money.currency_code] of
3605        * min_compensation.
3606        * </pre>
3607        *
3608        * <code>.google.type.Money max_compensation = 2;</code>
3609        *
3610        * @return Whether the maxCompensation field is set.
3611        */
hasMaxCompensation()3612       public boolean hasMaxCompensation() {
3613         return ((bitField0_ & 0x00000001) != 0);
3614       }
3615       /**
3616        *
3617        *
3618        * <pre>
3619        * The maximum amount of compensation. If left empty, the value is set
3620        * to a maximal compensation value and the currency code is set to
3621        * match the [currency code][google.type.Money.currency_code] of
3622        * min_compensation.
3623        * </pre>
3624        *
3625        * <code>.google.type.Money max_compensation = 2;</code>
3626        *
3627        * @return The maxCompensation.
3628        */
getMaxCompensation()3629       public com.google.type.Money getMaxCompensation() {
3630         if (maxCompensationBuilder_ == null) {
3631           return maxCompensation_ == null
3632               ? com.google.type.Money.getDefaultInstance()
3633               : maxCompensation_;
3634         } else {
3635           return maxCompensationBuilder_.getMessage();
3636         }
3637       }
3638       /**
3639        *
3640        *
3641        * <pre>
3642        * The maximum amount of compensation. If left empty, the value is set
3643        * to a maximal compensation value and the currency code is set to
3644        * match the [currency code][google.type.Money.currency_code] of
3645        * min_compensation.
3646        * </pre>
3647        *
3648        * <code>.google.type.Money max_compensation = 2;</code>
3649        */
setMaxCompensation(com.google.type.Money value)3650       public Builder setMaxCompensation(com.google.type.Money value) {
3651         if (maxCompensationBuilder_ == null) {
3652           if (value == null) {
3653             throw new NullPointerException();
3654           }
3655           maxCompensation_ = value;
3656         } else {
3657           maxCompensationBuilder_.setMessage(value);
3658         }
3659         bitField0_ |= 0x00000001;
3660         onChanged();
3661         return this;
3662       }
3663       /**
3664        *
3665        *
3666        * <pre>
3667        * The maximum amount of compensation. If left empty, the value is set
3668        * to a maximal compensation value and the currency code is set to
3669        * match the [currency code][google.type.Money.currency_code] of
3670        * min_compensation.
3671        * </pre>
3672        *
3673        * <code>.google.type.Money max_compensation = 2;</code>
3674        */
setMaxCompensation(com.google.type.Money.Builder builderForValue)3675       public Builder setMaxCompensation(com.google.type.Money.Builder builderForValue) {
3676         if (maxCompensationBuilder_ == null) {
3677           maxCompensation_ = builderForValue.build();
3678         } else {
3679           maxCompensationBuilder_.setMessage(builderForValue.build());
3680         }
3681         bitField0_ |= 0x00000001;
3682         onChanged();
3683         return this;
3684       }
3685       /**
3686        *
3687        *
3688        * <pre>
3689        * The maximum amount of compensation. If left empty, the value is set
3690        * to a maximal compensation value and the currency code is set to
3691        * match the [currency code][google.type.Money.currency_code] of
3692        * min_compensation.
3693        * </pre>
3694        *
3695        * <code>.google.type.Money max_compensation = 2;</code>
3696        */
mergeMaxCompensation(com.google.type.Money value)3697       public Builder mergeMaxCompensation(com.google.type.Money value) {
3698         if (maxCompensationBuilder_ == null) {
3699           if (((bitField0_ & 0x00000001) != 0)
3700               && maxCompensation_ != null
3701               && maxCompensation_ != com.google.type.Money.getDefaultInstance()) {
3702             getMaxCompensationBuilder().mergeFrom(value);
3703           } else {
3704             maxCompensation_ = value;
3705           }
3706         } else {
3707           maxCompensationBuilder_.mergeFrom(value);
3708         }
3709         bitField0_ |= 0x00000001;
3710         onChanged();
3711         return this;
3712       }
3713       /**
3714        *
3715        *
3716        * <pre>
3717        * The maximum amount of compensation. If left empty, the value is set
3718        * to a maximal compensation value and the currency code is set to
3719        * match the [currency code][google.type.Money.currency_code] of
3720        * min_compensation.
3721        * </pre>
3722        *
3723        * <code>.google.type.Money max_compensation = 2;</code>
3724        */
clearMaxCompensation()3725       public Builder clearMaxCompensation() {
3726         bitField0_ = (bitField0_ & ~0x00000001);
3727         maxCompensation_ = null;
3728         if (maxCompensationBuilder_ != null) {
3729           maxCompensationBuilder_.dispose();
3730           maxCompensationBuilder_ = null;
3731         }
3732         onChanged();
3733         return this;
3734       }
3735       /**
3736        *
3737        *
3738        * <pre>
3739        * The maximum amount of compensation. If left empty, the value is set
3740        * to a maximal compensation value and the currency code is set to
3741        * match the [currency code][google.type.Money.currency_code] of
3742        * min_compensation.
3743        * </pre>
3744        *
3745        * <code>.google.type.Money max_compensation = 2;</code>
3746        */
getMaxCompensationBuilder()3747       public com.google.type.Money.Builder getMaxCompensationBuilder() {
3748         bitField0_ |= 0x00000001;
3749         onChanged();
3750         return getMaxCompensationFieldBuilder().getBuilder();
3751       }
3752       /**
3753        *
3754        *
3755        * <pre>
3756        * The maximum amount of compensation. If left empty, the value is set
3757        * to a maximal compensation value and the currency code is set to
3758        * match the [currency code][google.type.Money.currency_code] of
3759        * min_compensation.
3760        * </pre>
3761        *
3762        * <code>.google.type.Money max_compensation = 2;</code>
3763        */
getMaxCompensationOrBuilder()3764       public com.google.type.MoneyOrBuilder getMaxCompensationOrBuilder() {
3765         if (maxCompensationBuilder_ != null) {
3766           return maxCompensationBuilder_.getMessageOrBuilder();
3767         } else {
3768           return maxCompensation_ == null
3769               ? com.google.type.Money.getDefaultInstance()
3770               : maxCompensation_;
3771         }
3772       }
3773       /**
3774        *
3775        *
3776        * <pre>
3777        * The maximum amount of compensation. If left empty, the value is set
3778        * to a maximal compensation value and the currency code is set to
3779        * match the [currency code][google.type.Money.currency_code] of
3780        * min_compensation.
3781        * </pre>
3782        *
3783        * <code>.google.type.Money max_compensation = 2;</code>
3784        */
3785       private com.google.protobuf.SingleFieldBuilderV3<
3786               com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>
getMaxCompensationFieldBuilder()3787           getMaxCompensationFieldBuilder() {
3788         if (maxCompensationBuilder_ == null) {
3789           maxCompensationBuilder_ =
3790               new com.google.protobuf.SingleFieldBuilderV3<
3791                   com.google.type.Money,
3792                   com.google.type.Money.Builder,
3793                   com.google.type.MoneyOrBuilder>(
3794                   getMaxCompensation(), getParentForChildren(), isClean());
3795           maxCompensation_ = null;
3796         }
3797         return maxCompensationBuilder_;
3798       }
3799 
3800       private com.google.type.Money minCompensation_;
3801       private com.google.protobuf.SingleFieldBuilderV3<
3802               com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>
3803           minCompensationBuilder_;
3804       /**
3805        *
3806        *
3807        * <pre>
3808        * The minimum amount of compensation. If left empty, the value is set
3809        * to zero and the currency code is set to match the
3810        * [currency code][google.type.Money.currency_code] of max_compensation.
3811        * </pre>
3812        *
3813        * <code>.google.type.Money min_compensation = 1;</code>
3814        *
3815        * @return Whether the minCompensation field is set.
3816        */
hasMinCompensation()3817       public boolean hasMinCompensation() {
3818         return ((bitField0_ & 0x00000002) != 0);
3819       }
3820       /**
3821        *
3822        *
3823        * <pre>
3824        * The minimum amount of compensation. If left empty, the value is set
3825        * to zero and the currency code is set to match the
3826        * [currency code][google.type.Money.currency_code] of max_compensation.
3827        * </pre>
3828        *
3829        * <code>.google.type.Money min_compensation = 1;</code>
3830        *
3831        * @return The minCompensation.
3832        */
getMinCompensation()3833       public com.google.type.Money getMinCompensation() {
3834         if (minCompensationBuilder_ == null) {
3835           return minCompensation_ == null
3836               ? com.google.type.Money.getDefaultInstance()
3837               : minCompensation_;
3838         } else {
3839           return minCompensationBuilder_.getMessage();
3840         }
3841       }
3842       /**
3843        *
3844        *
3845        * <pre>
3846        * The minimum amount of compensation. If left empty, the value is set
3847        * to zero and the currency code is set to match the
3848        * [currency code][google.type.Money.currency_code] of max_compensation.
3849        * </pre>
3850        *
3851        * <code>.google.type.Money min_compensation = 1;</code>
3852        */
setMinCompensation(com.google.type.Money value)3853       public Builder setMinCompensation(com.google.type.Money value) {
3854         if (minCompensationBuilder_ == null) {
3855           if (value == null) {
3856             throw new NullPointerException();
3857           }
3858           minCompensation_ = value;
3859         } else {
3860           minCompensationBuilder_.setMessage(value);
3861         }
3862         bitField0_ |= 0x00000002;
3863         onChanged();
3864         return this;
3865       }
3866       /**
3867        *
3868        *
3869        * <pre>
3870        * The minimum amount of compensation. If left empty, the value is set
3871        * to zero and the currency code is set to match the
3872        * [currency code][google.type.Money.currency_code] of max_compensation.
3873        * </pre>
3874        *
3875        * <code>.google.type.Money min_compensation = 1;</code>
3876        */
setMinCompensation(com.google.type.Money.Builder builderForValue)3877       public Builder setMinCompensation(com.google.type.Money.Builder builderForValue) {
3878         if (minCompensationBuilder_ == null) {
3879           minCompensation_ = builderForValue.build();
3880         } else {
3881           minCompensationBuilder_.setMessage(builderForValue.build());
3882         }
3883         bitField0_ |= 0x00000002;
3884         onChanged();
3885         return this;
3886       }
3887       /**
3888        *
3889        *
3890        * <pre>
3891        * The minimum amount of compensation. If left empty, the value is set
3892        * to zero and the currency code is set to match the
3893        * [currency code][google.type.Money.currency_code] of max_compensation.
3894        * </pre>
3895        *
3896        * <code>.google.type.Money min_compensation = 1;</code>
3897        */
mergeMinCompensation(com.google.type.Money value)3898       public Builder mergeMinCompensation(com.google.type.Money value) {
3899         if (minCompensationBuilder_ == null) {
3900           if (((bitField0_ & 0x00000002) != 0)
3901               && minCompensation_ != null
3902               && minCompensation_ != com.google.type.Money.getDefaultInstance()) {
3903             getMinCompensationBuilder().mergeFrom(value);
3904           } else {
3905             minCompensation_ = value;
3906           }
3907         } else {
3908           minCompensationBuilder_.mergeFrom(value);
3909         }
3910         bitField0_ |= 0x00000002;
3911         onChanged();
3912         return this;
3913       }
3914       /**
3915        *
3916        *
3917        * <pre>
3918        * The minimum amount of compensation. If left empty, the value is set
3919        * to zero and the currency code is set to match the
3920        * [currency code][google.type.Money.currency_code] of max_compensation.
3921        * </pre>
3922        *
3923        * <code>.google.type.Money min_compensation = 1;</code>
3924        */
clearMinCompensation()3925       public Builder clearMinCompensation() {
3926         bitField0_ = (bitField0_ & ~0x00000002);
3927         minCompensation_ = null;
3928         if (minCompensationBuilder_ != null) {
3929           minCompensationBuilder_.dispose();
3930           minCompensationBuilder_ = null;
3931         }
3932         onChanged();
3933         return this;
3934       }
3935       /**
3936        *
3937        *
3938        * <pre>
3939        * The minimum amount of compensation. If left empty, the value is set
3940        * to zero and the currency code is set to match the
3941        * [currency code][google.type.Money.currency_code] of max_compensation.
3942        * </pre>
3943        *
3944        * <code>.google.type.Money min_compensation = 1;</code>
3945        */
getMinCompensationBuilder()3946       public com.google.type.Money.Builder getMinCompensationBuilder() {
3947         bitField0_ |= 0x00000002;
3948         onChanged();
3949         return getMinCompensationFieldBuilder().getBuilder();
3950       }
3951       /**
3952        *
3953        *
3954        * <pre>
3955        * The minimum amount of compensation. If left empty, the value is set
3956        * to zero and the currency code is set to match the
3957        * [currency code][google.type.Money.currency_code] of max_compensation.
3958        * </pre>
3959        *
3960        * <code>.google.type.Money min_compensation = 1;</code>
3961        */
getMinCompensationOrBuilder()3962       public com.google.type.MoneyOrBuilder getMinCompensationOrBuilder() {
3963         if (minCompensationBuilder_ != null) {
3964           return minCompensationBuilder_.getMessageOrBuilder();
3965         } else {
3966           return minCompensation_ == null
3967               ? com.google.type.Money.getDefaultInstance()
3968               : minCompensation_;
3969         }
3970       }
3971       /**
3972        *
3973        *
3974        * <pre>
3975        * The minimum amount of compensation. If left empty, the value is set
3976        * to zero and the currency code is set to match the
3977        * [currency code][google.type.Money.currency_code] of max_compensation.
3978        * </pre>
3979        *
3980        * <code>.google.type.Money min_compensation = 1;</code>
3981        */
3982       private com.google.protobuf.SingleFieldBuilderV3<
3983               com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>
getMinCompensationFieldBuilder()3984           getMinCompensationFieldBuilder() {
3985         if (minCompensationBuilder_ == null) {
3986           minCompensationBuilder_ =
3987               new com.google.protobuf.SingleFieldBuilderV3<
3988                   com.google.type.Money,
3989                   com.google.type.Money.Builder,
3990                   com.google.type.MoneyOrBuilder>(
3991                   getMinCompensation(), getParentForChildren(), isClean());
3992           minCompensation_ = null;
3993         }
3994         return minCompensationBuilder_;
3995       }
3996 
3997       @java.lang.Override
setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)3998       public final Builder setUnknownFields(
3999           final com.google.protobuf.UnknownFieldSet unknownFields) {
4000         return super.setUnknownFields(unknownFields);
4001       }
4002 
4003       @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)4004       public final Builder mergeUnknownFields(
4005           final com.google.protobuf.UnknownFieldSet unknownFields) {
4006         return super.mergeUnknownFields(unknownFields);
4007       }
4008 
4009       // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4.CompensationInfo.CompensationRange)
4010     }
4011 
4012     // @@protoc_insertion_point(class_scope:google.cloud.talent.v4.CompensationInfo.CompensationRange)
4013     private static final com.google.cloud.talent.v4.CompensationInfo.CompensationRange
4014         DEFAULT_INSTANCE;
4015 
4016     static {
4017       DEFAULT_INSTANCE = new com.google.cloud.talent.v4.CompensationInfo.CompensationRange();
4018     }
4019 
4020     public static com.google.cloud.talent.v4.CompensationInfo.CompensationRange
getDefaultInstance()4021         getDefaultInstance() {
4022       return DEFAULT_INSTANCE;
4023     }
4024 
4025     private static final com.google.protobuf.Parser<CompensationRange> PARSER =
4026         new com.google.protobuf.AbstractParser<CompensationRange>() {
4027           @java.lang.Override
4028           public CompensationRange parsePartialFrom(
4029               com.google.protobuf.CodedInputStream input,
4030               com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4031               throws com.google.protobuf.InvalidProtocolBufferException {
4032             Builder builder = newBuilder();
4033             try {
4034               builder.mergeFrom(input, extensionRegistry);
4035             } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4036               throw e.setUnfinishedMessage(builder.buildPartial());
4037             } catch (com.google.protobuf.UninitializedMessageException e) {
4038               throw e.asInvalidProtocolBufferException()
4039                   .setUnfinishedMessage(builder.buildPartial());
4040             } catch (java.io.IOException e) {
4041               throw new com.google.protobuf.InvalidProtocolBufferException(e)
4042                   .setUnfinishedMessage(builder.buildPartial());
4043             }
4044             return builder.buildPartial();
4045           }
4046         };
4047 
parser()4048     public static com.google.protobuf.Parser<CompensationRange> parser() {
4049       return PARSER;
4050     }
4051 
4052     @java.lang.Override
getParserForType()4053     public com.google.protobuf.Parser<CompensationRange> getParserForType() {
4054       return PARSER;
4055     }
4056 
4057     @java.lang.Override
4058     public com.google.cloud.talent.v4.CompensationInfo.CompensationRange
getDefaultInstanceForType()4059         getDefaultInstanceForType() {
4060       return DEFAULT_INSTANCE;
4061     }
4062   }
4063 
4064   public static final int ENTRIES_FIELD_NUMBER = 1;
4065 
4066   @SuppressWarnings("serial")
4067   private java.util.List<com.google.cloud.talent.v4.CompensationInfo.CompensationEntry> entries_;
4068   /**
4069    *
4070    *
4071    * <pre>
4072    * Job compensation information.
4073    * At most one entry can be of type
4074    * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4.CompensationInfo.CompensationType.BASE],
4075    * which is referred as **base compensation entry** for the job.
4076    * </pre>
4077    *
4078    * <code>repeated .google.cloud.talent.v4.CompensationInfo.CompensationEntry entries = 1;</code>
4079    */
4080   @java.lang.Override
4081   public java.util.List<com.google.cloud.talent.v4.CompensationInfo.CompensationEntry>
getEntriesList()4082       getEntriesList() {
4083     return entries_;
4084   }
4085   /**
4086    *
4087    *
4088    * <pre>
4089    * Job compensation information.
4090    * At most one entry can be of type
4091    * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4.CompensationInfo.CompensationType.BASE],
4092    * which is referred as **base compensation entry** for the job.
4093    * </pre>
4094    *
4095    * <code>repeated .google.cloud.talent.v4.CompensationInfo.CompensationEntry entries = 1;</code>
4096    */
4097   @java.lang.Override
4098   public java.util.List<
4099           ? extends com.google.cloud.talent.v4.CompensationInfo.CompensationEntryOrBuilder>
getEntriesOrBuilderList()4100       getEntriesOrBuilderList() {
4101     return entries_;
4102   }
4103   /**
4104    *
4105    *
4106    * <pre>
4107    * Job compensation information.
4108    * At most one entry can be of type
4109    * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4.CompensationInfo.CompensationType.BASE],
4110    * which is referred as **base compensation entry** for the job.
4111    * </pre>
4112    *
4113    * <code>repeated .google.cloud.talent.v4.CompensationInfo.CompensationEntry entries = 1;</code>
4114    */
4115   @java.lang.Override
getEntriesCount()4116   public int getEntriesCount() {
4117     return entries_.size();
4118   }
4119   /**
4120    *
4121    *
4122    * <pre>
4123    * Job compensation information.
4124    * At most one entry can be of type
4125    * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4.CompensationInfo.CompensationType.BASE],
4126    * which is referred as **base compensation entry** for the job.
4127    * </pre>
4128    *
4129    * <code>repeated .google.cloud.talent.v4.CompensationInfo.CompensationEntry entries = 1;</code>
4130    */
4131   @java.lang.Override
getEntries(int index)4132   public com.google.cloud.talent.v4.CompensationInfo.CompensationEntry getEntries(int index) {
4133     return entries_.get(index);
4134   }
4135   /**
4136    *
4137    *
4138    * <pre>
4139    * Job compensation information.
4140    * At most one entry can be of type
4141    * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4.CompensationInfo.CompensationType.BASE],
4142    * which is referred as **base compensation entry** for the job.
4143    * </pre>
4144    *
4145    * <code>repeated .google.cloud.talent.v4.CompensationInfo.CompensationEntry entries = 1;</code>
4146    */
4147   @java.lang.Override
getEntriesOrBuilder( int index)4148   public com.google.cloud.talent.v4.CompensationInfo.CompensationEntryOrBuilder getEntriesOrBuilder(
4149       int index) {
4150     return entries_.get(index);
4151   }
4152 
4153   public static final int ANNUALIZED_BASE_COMPENSATION_RANGE_FIELD_NUMBER = 2;
4154   private com.google.cloud.talent.v4.CompensationInfo.CompensationRange
4155       annualizedBaseCompensationRange_;
4156   /**
4157    *
4158    *
4159    * <pre>
4160    * Output only. Annualized base compensation range. Computed as base
4161    * compensation entry's
4162    * [CompensationEntry.amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
4163    * times
4164    * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year].
4165    * See
4166    * [CompensationEntry][google.cloud.talent.v4.CompensationInfo.CompensationEntry]
4167    * for explanation on compensation annualization.
4168    * </pre>
4169    *
4170    * <code>
4171    * .google.cloud.talent.v4.CompensationInfo.CompensationRange annualized_base_compensation_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
4172    * </code>
4173    *
4174    * @return Whether the annualizedBaseCompensationRange field is set.
4175    */
4176   @java.lang.Override
hasAnnualizedBaseCompensationRange()4177   public boolean hasAnnualizedBaseCompensationRange() {
4178     return annualizedBaseCompensationRange_ != null;
4179   }
4180   /**
4181    *
4182    *
4183    * <pre>
4184    * Output only. Annualized base compensation range. Computed as base
4185    * compensation entry's
4186    * [CompensationEntry.amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
4187    * times
4188    * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year].
4189    * See
4190    * [CompensationEntry][google.cloud.talent.v4.CompensationInfo.CompensationEntry]
4191    * for explanation on compensation annualization.
4192    * </pre>
4193    *
4194    * <code>
4195    * .google.cloud.talent.v4.CompensationInfo.CompensationRange annualized_base_compensation_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
4196    * </code>
4197    *
4198    * @return The annualizedBaseCompensationRange.
4199    */
4200   @java.lang.Override
4201   public com.google.cloud.talent.v4.CompensationInfo.CompensationRange
getAnnualizedBaseCompensationRange()4202       getAnnualizedBaseCompensationRange() {
4203     return annualizedBaseCompensationRange_ == null
4204         ? com.google.cloud.talent.v4.CompensationInfo.CompensationRange.getDefaultInstance()
4205         : annualizedBaseCompensationRange_;
4206   }
4207   /**
4208    *
4209    *
4210    * <pre>
4211    * Output only. Annualized base compensation range. Computed as base
4212    * compensation entry's
4213    * [CompensationEntry.amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
4214    * times
4215    * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year].
4216    * See
4217    * [CompensationEntry][google.cloud.talent.v4.CompensationInfo.CompensationEntry]
4218    * for explanation on compensation annualization.
4219    * </pre>
4220    *
4221    * <code>
4222    * .google.cloud.talent.v4.CompensationInfo.CompensationRange annualized_base_compensation_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
4223    * </code>
4224    */
4225   @java.lang.Override
4226   public com.google.cloud.talent.v4.CompensationInfo.CompensationRangeOrBuilder
getAnnualizedBaseCompensationRangeOrBuilder()4227       getAnnualizedBaseCompensationRangeOrBuilder() {
4228     return annualizedBaseCompensationRange_ == null
4229         ? com.google.cloud.talent.v4.CompensationInfo.CompensationRange.getDefaultInstance()
4230         : annualizedBaseCompensationRange_;
4231   }
4232 
4233   public static final int ANNUALIZED_TOTAL_COMPENSATION_RANGE_FIELD_NUMBER = 3;
4234   private com.google.cloud.talent.v4.CompensationInfo.CompensationRange
4235       annualizedTotalCompensationRange_;
4236   /**
4237    *
4238    *
4239    * <pre>
4240    * Output only. Annualized total compensation range. Computed as all
4241    * compensation entries'
4242    * [CompensationEntry.amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
4243    * times
4244    * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year].
4245    * See
4246    * [CompensationEntry][google.cloud.talent.v4.CompensationInfo.CompensationEntry]
4247    * for explanation on compensation annualization.
4248    * </pre>
4249    *
4250    * <code>
4251    * .google.cloud.talent.v4.CompensationInfo.CompensationRange annualized_total_compensation_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
4252    * </code>
4253    *
4254    * @return Whether the annualizedTotalCompensationRange field is set.
4255    */
4256   @java.lang.Override
hasAnnualizedTotalCompensationRange()4257   public boolean hasAnnualizedTotalCompensationRange() {
4258     return annualizedTotalCompensationRange_ != null;
4259   }
4260   /**
4261    *
4262    *
4263    * <pre>
4264    * Output only. Annualized total compensation range. Computed as all
4265    * compensation entries'
4266    * [CompensationEntry.amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
4267    * times
4268    * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year].
4269    * See
4270    * [CompensationEntry][google.cloud.talent.v4.CompensationInfo.CompensationEntry]
4271    * for explanation on compensation annualization.
4272    * </pre>
4273    *
4274    * <code>
4275    * .google.cloud.talent.v4.CompensationInfo.CompensationRange annualized_total_compensation_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
4276    * </code>
4277    *
4278    * @return The annualizedTotalCompensationRange.
4279    */
4280   @java.lang.Override
4281   public com.google.cloud.talent.v4.CompensationInfo.CompensationRange
getAnnualizedTotalCompensationRange()4282       getAnnualizedTotalCompensationRange() {
4283     return annualizedTotalCompensationRange_ == null
4284         ? com.google.cloud.talent.v4.CompensationInfo.CompensationRange.getDefaultInstance()
4285         : annualizedTotalCompensationRange_;
4286   }
4287   /**
4288    *
4289    *
4290    * <pre>
4291    * Output only. Annualized total compensation range. Computed as all
4292    * compensation entries'
4293    * [CompensationEntry.amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
4294    * times
4295    * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year].
4296    * See
4297    * [CompensationEntry][google.cloud.talent.v4.CompensationInfo.CompensationEntry]
4298    * for explanation on compensation annualization.
4299    * </pre>
4300    *
4301    * <code>
4302    * .google.cloud.talent.v4.CompensationInfo.CompensationRange annualized_total_compensation_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
4303    * </code>
4304    */
4305   @java.lang.Override
4306   public com.google.cloud.talent.v4.CompensationInfo.CompensationRangeOrBuilder
getAnnualizedTotalCompensationRangeOrBuilder()4307       getAnnualizedTotalCompensationRangeOrBuilder() {
4308     return annualizedTotalCompensationRange_ == null
4309         ? com.google.cloud.talent.v4.CompensationInfo.CompensationRange.getDefaultInstance()
4310         : annualizedTotalCompensationRange_;
4311   }
4312 
4313   private byte memoizedIsInitialized = -1;
4314 
4315   @java.lang.Override
isInitialized()4316   public final boolean isInitialized() {
4317     byte isInitialized = memoizedIsInitialized;
4318     if (isInitialized == 1) return true;
4319     if (isInitialized == 0) return false;
4320 
4321     memoizedIsInitialized = 1;
4322     return true;
4323   }
4324 
4325   @java.lang.Override
writeTo(com.google.protobuf.CodedOutputStream output)4326   public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
4327     for (int i = 0; i < entries_.size(); i++) {
4328       output.writeMessage(1, entries_.get(i));
4329     }
4330     if (annualizedBaseCompensationRange_ != null) {
4331       output.writeMessage(2, getAnnualizedBaseCompensationRange());
4332     }
4333     if (annualizedTotalCompensationRange_ != null) {
4334       output.writeMessage(3, getAnnualizedTotalCompensationRange());
4335     }
4336     getUnknownFields().writeTo(output);
4337   }
4338 
4339   @java.lang.Override
getSerializedSize()4340   public int getSerializedSize() {
4341     int size = memoizedSize;
4342     if (size != -1) return size;
4343 
4344     size = 0;
4345     for (int i = 0; i < entries_.size(); i++) {
4346       size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entries_.get(i));
4347     }
4348     if (annualizedBaseCompensationRange_ != null) {
4349       size +=
4350           com.google.protobuf.CodedOutputStream.computeMessageSize(
4351               2, getAnnualizedBaseCompensationRange());
4352     }
4353     if (annualizedTotalCompensationRange_ != null) {
4354       size +=
4355           com.google.protobuf.CodedOutputStream.computeMessageSize(
4356               3, getAnnualizedTotalCompensationRange());
4357     }
4358     size += getUnknownFields().getSerializedSize();
4359     memoizedSize = size;
4360     return size;
4361   }
4362 
4363   @java.lang.Override
equals(final java.lang.Object obj)4364   public boolean equals(final java.lang.Object obj) {
4365     if (obj == this) {
4366       return true;
4367     }
4368     if (!(obj instanceof com.google.cloud.talent.v4.CompensationInfo)) {
4369       return super.equals(obj);
4370     }
4371     com.google.cloud.talent.v4.CompensationInfo other =
4372         (com.google.cloud.talent.v4.CompensationInfo) obj;
4373 
4374     if (!getEntriesList().equals(other.getEntriesList())) return false;
4375     if (hasAnnualizedBaseCompensationRange() != other.hasAnnualizedBaseCompensationRange())
4376       return false;
4377     if (hasAnnualizedBaseCompensationRange()) {
4378       if (!getAnnualizedBaseCompensationRange().equals(other.getAnnualizedBaseCompensationRange()))
4379         return false;
4380     }
4381     if (hasAnnualizedTotalCompensationRange() != other.hasAnnualizedTotalCompensationRange())
4382       return false;
4383     if (hasAnnualizedTotalCompensationRange()) {
4384       if (!getAnnualizedTotalCompensationRange()
4385           .equals(other.getAnnualizedTotalCompensationRange())) return false;
4386     }
4387     if (!getUnknownFields().equals(other.getUnknownFields())) return false;
4388     return true;
4389   }
4390 
4391   @java.lang.Override
hashCode()4392   public int hashCode() {
4393     if (memoizedHashCode != 0) {
4394       return memoizedHashCode;
4395     }
4396     int hash = 41;
4397     hash = (19 * hash) + getDescriptor().hashCode();
4398     if (getEntriesCount() > 0) {
4399       hash = (37 * hash) + ENTRIES_FIELD_NUMBER;
4400       hash = (53 * hash) + getEntriesList().hashCode();
4401     }
4402     if (hasAnnualizedBaseCompensationRange()) {
4403       hash = (37 * hash) + ANNUALIZED_BASE_COMPENSATION_RANGE_FIELD_NUMBER;
4404       hash = (53 * hash) + getAnnualizedBaseCompensationRange().hashCode();
4405     }
4406     if (hasAnnualizedTotalCompensationRange()) {
4407       hash = (37 * hash) + ANNUALIZED_TOTAL_COMPENSATION_RANGE_FIELD_NUMBER;
4408       hash = (53 * hash) + getAnnualizedTotalCompensationRange().hashCode();
4409     }
4410     hash = (29 * hash) + getUnknownFields().hashCode();
4411     memoizedHashCode = hash;
4412     return hash;
4413   }
4414 
parseFrom(java.nio.ByteBuffer data)4415   public static com.google.cloud.talent.v4.CompensationInfo parseFrom(java.nio.ByteBuffer data)
4416       throws com.google.protobuf.InvalidProtocolBufferException {
4417     return PARSER.parseFrom(data);
4418   }
4419 
parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4420   public static com.google.cloud.talent.v4.CompensationInfo parseFrom(
4421       java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4422       throws com.google.protobuf.InvalidProtocolBufferException {
4423     return PARSER.parseFrom(data, extensionRegistry);
4424   }
4425 
parseFrom( com.google.protobuf.ByteString data)4426   public static com.google.cloud.talent.v4.CompensationInfo parseFrom(
4427       com.google.protobuf.ByteString data)
4428       throws com.google.protobuf.InvalidProtocolBufferException {
4429     return PARSER.parseFrom(data);
4430   }
4431 
parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4432   public static com.google.cloud.talent.v4.CompensationInfo parseFrom(
4433       com.google.protobuf.ByteString data,
4434       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4435       throws com.google.protobuf.InvalidProtocolBufferException {
4436     return PARSER.parseFrom(data, extensionRegistry);
4437   }
4438 
parseFrom(byte[] data)4439   public static com.google.cloud.talent.v4.CompensationInfo parseFrom(byte[] data)
4440       throws com.google.protobuf.InvalidProtocolBufferException {
4441     return PARSER.parseFrom(data);
4442   }
4443 
parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4444   public static com.google.cloud.talent.v4.CompensationInfo parseFrom(
4445       byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4446       throws com.google.protobuf.InvalidProtocolBufferException {
4447     return PARSER.parseFrom(data, extensionRegistry);
4448   }
4449 
parseFrom(java.io.InputStream input)4450   public static com.google.cloud.talent.v4.CompensationInfo parseFrom(java.io.InputStream input)
4451       throws java.io.IOException {
4452     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
4453   }
4454 
parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4455   public static com.google.cloud.talent.v4.CompensationInfo parseFrom(
4456       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4457       throws java.io.IOException {
4458     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
4459         PARSER, input, extensionRegistry);
4460   }
4461 
parseDelimitedFrom( java.io.InputStream input)4462   public static com.google.cloud.talent.v4.CompensationInfo parseDelimitedFrom(
4463       java.io.InputStream input) throws java.io.IOException {
4464     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
4465   }
4466 
parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4467   public static com.google.cloud.talent.v4.CompensationInfo parseDelimitedFrom(
4468       java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4469       throws java.io.IOException {
4470     return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
4471         PARSER, input, extensionRegistry);
4472   }
4473 
parseFrom( com.google.protobuf.CodedInputStream input)4474   public static com.google.cloud.talent.v4.CompensationInfo parseFrom(
4475       com.google.protobuf.CodedInputStream input) throws java.io.IOException {
4476     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
4477   }
4478 
parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4479   public static com.google.cloud.talent.v4.CompensationInfo parseFrom(
4480       com.google.protobuf.CodedInputStream input,
4481       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4482       throws java.io.IOException {
4483     return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
4484         PARSER, input, extensionRegistry);
4485   }
4486 
4487   @java.lang.Override
newBuilderForType()4488   public Builder newBuilderForType() {
4489     return newBuilder();
4490   }
4491 
newBuilder()4492   public static Builder newBuilder() {
4493     return DEFAULT_INSTANCE.toBuilder();
4494   }
4495 
newBuilder(com.google.cloud.talent.v4.CompensationInfo prototype)4496   public static Builder newBuilder(com.google.cloud.talent.v4.CompensationInfo prototype) {
4497     return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
4498   }
4499 
4500   @java.lang.Override
toBuilder()4501   public Builder toBuilder() {
4502     return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
4503   }
4504 
4505   @java.lang.Override
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)4506   protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
4507     Builder builder = new Builder(parent);
4508     return builder;
4509   }
4510   /**
4511    *
4512    *
4513    * <pre>
4514    * Job compensation details.
4515    * </pre>
4516    *
4517    * Protobuf type {@code google.cloud.talent.v4.CompensationInfo}
4518    */
4519   public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
4520       implements
4521       // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4.CompensationInfo)
4522       com.google.cloud.talent.v4.CompensationInfoOrBuilder {
getDescriptor()4523     public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
4524       return com.google.cloud.talent.v4.CommonProto
4525           .internal_static_google_cloud_talent_v4_CompensationInfo_descriptor;
4526     }
4527 
4528     @java.lang.Override
4529     protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()4530         internalGetFieldAccessorTable() {
4531       return com.google.cloud.talent.v4.CommonProto
4532           .internal_static_google_cloud_talent_v4_CompensationInfo_fieldAccessorTable
4533           .ensureFieldAccessorsInitialized(
4534               com.google.cloud.talent.v4.CompensationInfo.class,
4535               com.google.cloud.talent.v4.CompensationInfo.Builder.class);
4536     }
4537 
4538     // Construct using com.google.cloud.talent.v4.CompensationInfo.newBuilder()
Builder()4539     private Builder() {}
4540 
Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)4541     private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
4542       super(parent);
4543     }
4544 
4545     @java.lang.Override
clear()4546     public Builder clear() {
4547       super.clear();
4548       bitField0_ = 0;
4549       if (entriesBuilder_ == null) {
4550         entries_ = java.util.Collections.emptyList();
4551       } else {
4552         entries_ = null;
4553         entriesBuilder_.clear();
4554       }
4555       bitField0_ = (bitField0_ & ~0x00000001);
4556       annualizedBaseCompensationRange_ = null;
4557       if (annualizedBaseCompensationRangeBuilder_ != null) {
4558         annualizedBaseCompensationRangeBuilder_.dispose();
4559         annualizedBaseCompensationRangeBuilder_ = null;
4560       }
4561       annualizedTotalCompensationRange_ = null;
4562       if (annualizedTotalCompensationRangeBuilder_ != null) {
4563         annualizedTotalCompensationRangeBuilder_.dispose();
4564         annualizedTotalCompensationRangeBuilder_ = null;
4565       }
4566       return this;
4567     }
4568 
4569     @java.lang.Override
getDescriptorForType()4570     public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
4571       return com.google.cloud.talent.v4.CommonProto
4572           .internal_static_google_cloud_talent_v4_CompensationInfo_descriptor;
4573     }
4574 
4575     @java.lang.Override
getDefaultInstanceForType()4576     public com.google.cloud.talent.v4.CompensationInfo getDefaultInstanceForType() {
4577       return com.google.cloud.talent.v4.CompensationInfo.getDefaultInstance();
4578     }
4579 
4580     @java.lang.Override
build()4581     public com.google.cloud.talent.v4.CompensationInfo build() {
4582       com.google.cloud.talent.v4.CompensationInfo result = buildPartial();
4583       if (!result.isInitialized()) {
4584         throw newUninitializedMessageException(result);
4585       }
4586       return result;
4587     }
4588 
4589     @java.lang.Override
buildPartial()4590     public com.google.cloud.talent.v4.CompensationInfo buildPartial() {
4591       com.google.cloud.talent.v4.CompensationInfo result =
4592           new com.google.cloud.talent.v4.CompensationInfo(this);
4593       buildPartialRepeatedFields(result);
4594       if (bitField0_ != 0) {
4595         buildPartial0(result);
4596       }
4597       onBuilt();
4598       return result;
4599     }
4600 
buildPartialRepeatedFields(com.google.cloud.talent.v4.CompensationInfo result)4601     private void buildPartialRepeatedFields(com.google.cloud.talent.v4.CompensationInfo result) {
4602       if (entriesBuilder_ == null) {
4603         if (((bitField0_ & 0x00000001) != 0)) {
4604           entries_ = java.util.Collections.unmodifiableList(entries_);
4605           bitField0_ = (bitField0_ & ~0x00000001);
4606         }
4607         result.entries_ = entries_;
4608       } else {
4609         result.entries_ = entriesBuilder_.build();
4610       }
4611     }
4612 
buildPartial0(com.google.cloud.talent.v4.CompensationInfo result)4613     private void buildPartial0(com.google.cloud.talent.v4.CompensationInfo result) {
4614       int from_bitField0_ = bitField0_;
4615       if (((from_bitField0_ & 0x00000002) != 0)) {
4616         result.annualizedBaseCompensationRange_ =
4617             annualizedBaseCompensationRangeBuilder_ == null
4618                 ? annualizedBaseCompensationRange_
4619                 : annualizedBaseCompensationRangeBuilder_.build();
4620       }
4621       if (((from_bitField0_ & 0x00000004) != 0)) {
4622         result.annualizedTotalCompensationRange_ =
4623             annualizedTotalCompensationRangeBuilder_ == null
4624                 ? annualizedTotalCompensationRange_
4625                 : annualizedTotalCompensationRangeBuilder_.build();
4626       }
4627     }
4628 
4629     @java.lang.Override
clone()4630     public Builder clone() {
4631       return super.clone();
4632     }
4633 
4634     @java.lang.Override
setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)4635     public Builder setField(
4636         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
4637       return super.setField(field, value);
4638     }
4639 
4640     @java.lang.Override
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)4641     public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
4642       return super.clearField(field);
4643     }
4644 
4645     @java.lang.Override
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)4646     public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
4647       return super.clearOneof(oneof);
4648     }
4649 
4650     @java.lang.Override
setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value)4651     public Builder setRepeatedField(
4652         com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
4653       return super.setRepeatedField(field, index, value);
4654     }
4655 
4656     @java.lang.Override
addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value)4657     public Builder addRepeatedField(
4658         com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
4659       return super.addRepeatedField(field, value);
4660     }
4661 
4662     @java.lang.Override
mergeFrom(com.google.protobuf.Message other)4663     public Builder mergeFrom(com.google.protobuf.Message other) {
4664       if (other instanceof com.google.cloud.talent.v4.CompensationInfo) {
4665         return mergeFrom((com.google.cloud.talent.v4.CompensationInfo) other);
4666       } else {
4667         super.mergeFrom(other);
4668         return this;
4669       }
4670     }
4671 
mergeFrom(com.google.cloud.talent.v4.CompensationInfo other)4672     public Builder mergeFrom(com.google.cloud.talent.v4.CompensationInfo other) {
4673       if (other == com.google.cloud.talent.v4.CompensationInfo.getDefaultInstance()) return this;
4674       if (entriesBuilder_ == null) {
4675         if (!other.entries_.isEmpty()) {
4676           if (entries_.isEmpty()) {
4677             entries_ = other.entries_;
4678             bitField0_ = (bitField0_ & ~0x00000001);
4679           } else {
4680             ensureEntriesIsMutable();
4681             entries_.addAll(other.entries_);
4682           }
4683           onChanged();
4684         }
4685       } else {
4686         if (!other.entries_.isEmpty()) {
4687           if (entriesBuilder_.isEmpty()) {
4688             entriesBuilder_.dispose();
4689             entriesBuilder_ = null;
4690             entries_ = other.entries_;
4691             bitField0_ = (bitField0_ & ~0x00000001);
4692             entriesBuilder_ =
4693                 com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
4694                     ? getEntriesFieldBuilder()
4695                     : null;
4696           } else {
4697             entriesBuilder_.addAllMessages(other.entries_);
4698           }
4699         }
4700       }
4701       if (other.hasAnnualizedBaseCompensationRange()) {
4702         mergeAnnualizedBaseCompensationRange(other.getAnnualizedBaseCompensationRange());
4703       }
4704       if (other.hasAnnualizedTotalCompensationRange()) {
4705         mergeAnnualizedTotalCompensationRange(other.getAnnualizedTotalCompensationRange());
4706       }
4707       this.mergeUnknownFields(other.getUnknownFields());
4708       onChanged();
4709       return this;
4710     }
4711 
4712     @java.lang.Override
isInitialized()4713     public final boolean isInitialized() {
4714       return true;
4715     }
4716 
4717     @java.lang.Override
mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)4718     public Builder mergeFrom(
4719         com.google.protobuf.CodedInputStream input,
4720         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
4721         throws java.io.IOException {
4722       if (extensionRegistry == null) {
4723         throw new java.lang.NullPointerException();
4724       }
4725       try {
4726         boolean done = false;
4727         while (!done) {
4728           int tag = input.readTag();
4729           switch (tag) {
4730             case 0:
4731               done = true;
4732               break;
4733             case 10:
4734               {
4735                 com.google.cloud.talent.v4.CompensationInfo.CompensationEntry m =
4736                     input.readMessage(
4737                         com.google.cloud.talent.v4.CompensationInfo.CompensationEntry.parser(),
4738                         extensionRegistry);
4739                 if (entriesBuilder_ == null) {
4740                   ensureEntriesIsMutable();
4741                   entries_.add(m);
4742                 } else {
4743                   entriesBuilder_.addMessage(m);
4744                 }
4745                 break;
4746               } // case 10
4747             case 18:
4748               {
4749                 input.readMessage(
4750                     getAnnualizedBaseCompensationRangeFieldBuilder().getBuilder(),
4751                     extensionRegistry);
4752                 bitField0_ |= 0x00000002;
4753                 break;
4754               } // case 18
4755             case 26:
4756               {
4757                 input.readMessage(
4758                     getAnnualizedTotalCompensationRangeFieldBuilder().getBuilder(),
4759                     extensionRegistry);
4760                 bitField0_ |= 0x00000004;
4761                 break;
4762               } // case 26
4763             default:
4764               {
4765                 if (!super.parseUnknownField(input, extensionRegistry, tag)) {
4766                   done = true; // was an endgroup tag
4767                 }
4768                 break;
4769               } // default:
4770           } // switch (tag)
4771         } // while (!done)
4772       } catch (com.google.protobuf.InvalidProtocolBufferException e) {
4773         throw e.unwrapIOException();
4774       } finally {
4775         onChanged();
4776       } // finally
4777       return this;
4778     }
4779 
4780     private int bitField0_;
4781 
4782     private java.util.List<com.google.cloud.talent.v4.CompensationInfo.CompensationEntry> entries_ =
4783         java.util.Collections.emptyList();
4784 
ensureEntriesIsMutable()4785     private void ensureEntriesIsMutable() {
4786       if (!((bitField0_ & 0x00000001) != 0)) {
4787         entries_ =
4788             new java.util.ArrayList<com.google.cloud.talent.v4.CompensationInfo.CompensationEntry>(
4789                 entries_);
4790         bitField0_ |= 0x00000001;
4791       }
4792     }
4793 
4794     private com.google.protobuf.RepeatedFieldBuilderV3<
4795             com.google.cloud.talent.v4.CompensationInfo.CompensationEntry,
4796             com.google.cloud.talent.v4.CompensationInfo.CompensationEntry.Builder,
4797             com.google.cloud.talent.v4.CompensationInfo.CompensationEntryOrBuilder>
4798         entriesBuilder_;
4799 
4800     /**
4801      *
4802      *
4803      * <pre>
4804      * Job compensation information.
4805      * At most one entry can be of type
4806      * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4.CompensationInfo.CompensationType.BASE],
4807      * which is referred as **base compensation entry** for the job.
4808      * </pre>
4809      *
4810      * <code>repeated .google.cloud.talent.v4.CompensationInfo.CompensationEntry entries = 1;</code>
4811      */
4812     public java.util.List<com.google.cloud.talent.v4.CompensationInfo.CompensationEntry>
getEntriesList()4813         getEntriesList() {
4814       if (entriesBuilder_ == null) {
4815         return java.util.Collections.unmodifiableList(entries_);
4816       } else {
4817         return entriesBuilder_.getMessageList();
4818       }
4819     }
4820     /**
4821      *
4822      *
4823      * <pre>
4824      * Job compensation information.
4825      * At most one entry can be of type
4826      * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4.CompensationInfo.CompensationType.BASE],
4827      * which is referred as **base compensation entry** for the job.
4828      * </pre>
4829      *
4830      * <code>repeated .google.cloud.talent.v4.CompensationInfo.CompensationEntry entries = 1;</code>
4831      */
getEntriesCount()4832     public int getEntriesCount() {
4833       if (entriesBuilder_ == null) {
4834         return entries_.size();
4835       } else {
4836         return entriesBuilder_.getCount();
4837       }
4838     }
4839     /**
4840      *
4841      *
4842      * <pre>
4843      * Job compensation information.
4844      * At most one entry can be of type
4845      * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4.CompensationInfo.CompensationType.BASE],
4846      * which is referred as **base compensation entry** for the job.
4847      * </pre>
4848      *
4849      * <code>repeated .google.cloud.talent.v4.CompensationInfo.CompensationEntry entries = 1;</code>
4850      */
getEntries(int index)4851     public com.google.cloud.talent.v4.CompensationInfo.CompensationEntry getEntries(int index) {
4852       if (entriesBuilder_ == null) {
4853         return entries_.get(index);
4854       } else {
4855         return entriesBuilder_.getMessage(index);
4856       }
4857     }
4858     /**
4859      *
4860      *
4861      * <pre>
4862      * Job compensation information.
4863      * At most one entry can be of type
4864      * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4.CompensationInfo.CompensationType.BASE],
4865      * which is referred as **base compensation entry** for the job.
4866      * </pre>
4867      *
4868      * <code>repeated .google.cloud.talent.v4.CompensationInfo.CompensationEntry entries = 1;</code>
4869      */
setEntries( int index, com.google.cloud.talent.v4.CompensationInfo.CompensationEntry value)4870     public Builder setEntries(
4871         int index, com.google.cloud.talent.v4.CompensationInfo.CompensationEntry value) {
4872       if (entriesBuilder_ == null) {
4873         if (value == null) {
4874           throw new NullPointerException();
4875         }
4876         ensureEntriesIsMutable();
4877         entries_.set(index, value);
4878         onChanged();
4879       } else {
4880         entriesBuilder_.setMessage(index, value);
4881       }
4882       return this;
4883     }
4884     /**
4885      *
4886      *
4887      * <pre>
4888      * Job compensation information.
4889      * At most one entry can be of type
4890      * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4.CompensationInfo.CompensationType.BASE],
4891      * which is referred as **base compensation entry** for the job.
4892      * </pre>
4893      *
4894      * <code>repeated .google.cloud.talent.v4.CompensationInfo.CompensationEntry entries = 1;</code>
4895      */
setEntries( int index, com.google.cloud.talent.v4.CompensationInfo.CompensationEntry.Builder builderForValue)4896     public Builder setEntries(
4897         int index,
4898         com.google.cloud.talent.v4.CompensationInfo.CompensationEntry.Builder builderForValue) {
4899       if (entriesBuilder_ == null) {
4900         ensureEntriesIsMutable();
4901         entries_.set(index, builderForValue.build());
4902         onChanged();
4903       } else {
4904         entriesBuilder_.setMessage(index, builderForValue.build());
4905       }
4906       return this;
4907     }
4908     /**
4909      *
4910      *
4911      * <pre>
4912      * Job compensation information.
4913      * At most one entry can be of type
4914      * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4.CompensationInfo.CompensationType.BASE],
4915      * which is referred as **base compensation entry** for the job.
4916      * </pre>
4917      *
4918      * <code>repeated .google.cloud.talent.v4.CompensationInfo.CompensationEntry entries = 1;</code>
4919      */
addEntries(com.google.cloud.talent.v4.CompensationInfo.CompensationEntry value)4920     public Builder addEntries(com.google.cloud.talent.v4.CompensationInfo.CompensationEntry value) {
4921       if (entriesBuilder_ == null) {
4922         if (value == null) {
4923           throw new NullPointerException();
4924         }
4925         ensureEntriesIsMutable();
4926         entries_.add(value);
4927         onChanged();
4928       } else {
4929         entriesBuilder_.addMessage(value);
4930       }
4931       return this;
4932     }
4933     /**
4934      *
4935      *
4936      * <pre>
4937      * Job compensation information.
4938      * At most one entry can be of type
4939      * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4.CompensationInfo.CompensationType.BASE],
4940      * which is referred as **base compensation entry** for the job.
4941      * </pre>
4942      *
4943      * <code>repeated .google.cloud.talent.v4.CompensationInfo.CompensationEntry entries = 1;</code>
4944      */
addEntries( int index, com.google.cloud.talent.v4.CompensationInfo.CompensationEntry value)4945     public Builder addEntries(
4946         int index, com.google.cloud.talent.v4.CompensationInfo.CompensationEntry value) {
4947       if (entriesBuilder_ == null) {
4948         if (value == null) {
4949           throw new NullPointerException();
4950         }
4951         ensureEntriesIsMutable();
4952         entries_.add(index, value);
4953         onChanged();
4954       } else {
4955         entriesBuilder_.addMessage(index, value);
4956       }
4957       return this;
4958     }
4959     /**
4960      *
4961      *
4962      * <pre>
4963      * Job compensation information.
4964      * At most one entry can be of type
4965      * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4.CompensationInfo.CompensationType.BASE],
4966      * which is referred as **base compensation entry** for the job.
4967      * </pre>
4968      *
4969      * <code>repeated .google.cloud.talent.v4.CompensationInfo.CompensationEntry entries = 1;</code>
4970      */
addEntries( com.google.cloud.talent.v4.CompensationInfo.CompensationEntry.Builder builderForValue)4971     public Builder addEntries(
4972         com.google.cloud.talent.v4.CompensationInfo.CompensationEntry.Builder builderForValue) {
4973       if (entriesBuilder_ == null) {
4974         ensureEntriesIsMutable();
4975         entries_.add(builderForValue.build());
4976         onChanged();
4977       } else {
4978         entriesBuilder_.addMessage(builderForValue.build());
4979       }
4980       return this;
4981     }
4982     /**
4983      *
4984      *
4985      * <pre>
4986      * Job compensation information.
4987      * At most one entry can be of type
4988      * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4.CompensationInfo.CompensationType.BASE],
4989      * which is referred as **base compensation entry** for the job.
4990      * </pre>
4991      *
4992      * <code>repeated .google.cloud.talent.v4.CompensationInfo.CompensationEntry entries = 1;</code>
4993      */
addEntries( int index, com.google.cloud.talent.v4.CompensationInfo.CompensationEntry.Builder builderForValue)4994     public Builder addEntries(
4995         int index,
4996         com.google.cloud.talent.v4.CompensationInfo.CompensationEntry.Builder builderForValue) {
4997       if (entriesBuilder_ == null) {
4998         ensureEntriesIsMutable();
4999         entries_.add(index, builderForValue.build());
5000         onChanged();
5001       } else {
5002         entriesBuilder_.addMessage(index, builderForValue.build());
5003       }
5004       return this;
5005     }
5006     /**
5007      *
5008      *
5009      * <pre>
5010      * Job compensation information.
5011      * At most one entry can be of type
5012      * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4.CompensationInfo.CompensationType.BASE],
5013      * which is referred as **base compensation entry** for the job.
5014      * </pre>
5015      *
5016      * <code>repeated .google.cloud.talent.v4.CompensationInfo.CompensationEntry entries = 1;</code>
5017      */
addAllEntries( java.lang.Iterable<? extends com.google.cloud.talent.v4.CompensationInfo.CompensationEntry> values)5018     public Builder addAllEntries(
5019         java.lang.Iterable<? extends com.google.cloud.talent.v4.CompensationInfo.CompensationEntry>
5020             values) {
5021       if (entriesBuilder_ == null) {
5022         ensureEntriesIsMutable();
5023         com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_);
5024         onChanged();
5025       } else {
5026         entriesBuilder_.addAllMessages(values);
5027       }
5028       return this;
5029     }
5030     /**
5031      *
5032      *
5033      * <pre>
5034      * Job compensation information.
5035      * At most one entry can be of type
5036      * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4.CompensationInfo.CompensationType.BASE],
5037      * which is referred as **base compensation entry** for the job.
5038      * </pre>
5039      *
5040      * <code>repeated .google.cloud.talent.v4.CompensationInfo.CompensationEntry entries = 1;</code>
5041      */
clearEntries()5042     public Builder clearEntries() {
5043       if (entriesBuilder_ == null) {
5044         entries_ = java.util.Collections.emptyList();
5045         bitField0_ = (bitField0_ & ~0x00000001);
5046         onChanged();
5047       } else {
5048         entriesBuilder_.clear();
5049       }
5050       return this;
5051     }
5052     /**
5053      *
5054      *
5055      * <pre>
5056      * Job compensation information.
5057      * At most one entry can be of type
5058      * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4.CompensationInfo.CompensationType.BASE],
5059      * which is referred as **base compensation entry** for the job.
5060      * </pre>
5061      *
5062      * <code>repeated .google.cloud.talent.v4.CompensationInfo.CompensationEntry entries = 1;</code>
5063      */
removeEntries(int index)5064     public Builder removeEntries(int index) {
5065       if (entriesBuilder_ == null) {
5066         ensureEntriesIsMutable();
5067         entries_.remove(index);
5068         onChanged();
5069       } else {
5070         entriesBuilder_.remove(index);
5071       }
5072       return this;
5073     }
5074     /**
5075      *
5076      *
5077      * <pre>
5078      * Job compensation information.
5079      * At most one entry can be of type
5080      * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4.CompensationInfo.CompensationType.BASE],
5081      * which is referred as **base compensation entry** for the job.
5082      * </pre>
5083      *
5084      * <code>repeated .google.cloud.talent.v4.CompensationInfo.CompensationEntry entries = 1;</code>
5085      */
getEntriesBuilder( int index)5086     public com.google.cloud.talent.v4.CompensationInfo.CompensationEntry.Builder getEntriesBuilder(
5087         int index) {
5088       return getEntriesFieldBuilder().getBuilder(index);
5089     }
5090     /**
5091      *
5092      *
5093      * <pre>
5094      * Job compensation information.
5095      * At most one entry can be of type
5096      * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4.CompensationInfo.CompensationType.BASE],
5097      * which is referred as **base compensation entry** for the job.
5098      * </pre>
5099      *
5100      * <code>repeated .google.cloud.talent.v4.CompensationInfo.CompensationEntry entries = 1;</code>
5101      */
5102     public com.google.cloud.talent.v4.CompensationInfo.CompensationEntryOrBuilder
getEntriesOrBuilder(int index)5103         getEntriesOrBuilder(int index) {
5104       if (entriesBuilder_ == null) {
5105         return entries_.get(index);
5106       } else {
5107         return entriesBuilder_.getMessageOrBuilder(index);
5108       }
5109     }
5110     /**
5111      *
5112      *
5113      * <pre>
5114      * Job compensation information.
5115      * At most one entry can be of type
5116      * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4.CompensationInfo.CompensationType.BASE],
5117      * which is referred as **base compensation entry** for the job.
5118      * </pre>
5119      *
5120      * <code>repeated .google.cloud.talent.v4.CompensationInfo.CompensationEntry entries = 1;</code>
5121      */
5122     public java.util.List<
5123             ? extends com.google.cloud.talent.v4.CompensationInfo.CompensationEntryOrBuilder>
getEntriesOrBuilderList()5124         getEntriesOrBuilderList() {
5125       if (entriesBuilder_ != null) {
5126         return entriesBuilder_.getMessageOrBuilderList();
5127       } else {
5128         return java.util.Collections.unmodifiableList(entries_);
5129       }
5130     }
5131     /**
5132      *
5133      *
5134      * <pre>
5135      * Job compensation information.
5136      * At most one entry can be of type
5137      * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4.CompensationInfo.CompensationType.BASE],
5138      * which is referred as **base compensation entry** for the job.
5139      * </pre>
5140      *
5141      * <code>repeated .google.cloud.talent.v4.CompensationInfo.CompensationEntry entries = 1;</code>
5142      */
5143     public com.google.cloud.talent.v4.CompensationInfo.CompensationEntry.Builder
addEntriesBuilder()5144         addEntriesBuilder() {
5145       return getEntriesFieldBuilder()
5146           .addBuilder(
5147               com.google.cloud.talent.v4.CompensationInfo.CompensationEntry.getDefaultInstance());
5148     }
5149     /**
5150      *
5151      *
5152      * <pre>
5153      * Job compensation information.
5154      * At most one entry can be of type
5155      * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4.CompensationInfo.CompensationType.BASE],
5156      * which is referred as **base compensation entry** for the job.
5157      * </pre>
5158      *
5159      * <code>repeated .google.cloud.talent.v4.CompensationInfo.CompensationEntry entries = 1;</code>
5160      */
addEntriesBuilder( int index)5161     public com.google.cloud.talent.v4.CompensationInfo.CompensationEntry.Builder addEntriesBuilder(
5162         int index) {
5163       return getEntriesFieldBuilder()
5164           .addBuilder(
5165               index,
5166               com.google.cloud.talent.v4.CompensationInfo.CompensationEntry.getDefaultInstance());
5167     }
5168     /**
5169      *
5170      *
5171      * <pre>
5172      * Job compensation information.
5173      * At most one entry can be of type
5174      * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4.CompensationInfo.CompensationType.BASE],
5175      * which is referred as **base compensation entry** for the job.
5176      * </pre>
5177      *
5178      * <code>repeated .google.cloud.talent.v4.CompensationInfo.CompensationEntry entries = 1;</code>
5179      */
5180     public java.util.List<com.google.cloud.talent.v4.CompensationInfo.CompensationEntry.Builder>
getEntriesBuilderList()5181         getEntriesBuilderList() {
5182       return getEntriesFieldBuilder().getBuilderList();
5183     }
5184 
5185     private com.google.protobuf.RepeatedFieldBuilderV3<
5186             com.google.cloud.talent.v4.CompensationInfo.CompensationEntry,
5187             com.google.cloud.talent.v4.CompensationInfo.CompensationEntry.Builder,
5188             com.google.cloud.talent.v4.CompensationInfo.CompensationEntryOrBuilder>
getEntriesFieldBuilder()5189         getEntriesFieldBuilder() {
5190       if (entriesBuilder_ == null) {
5191         entriesBuilder_ =
5192             new com.google.protobuf.RepeatedFieldBuilderV3<
5193                 com.google.cloud.talent.v4.CompensationInfo.CompensationEntry,
5194                 com.google.cloud.talent.v4.CompensationInfo.CompensationEntry.Builder,
5195                 com.google.cloud.talent.v4.CompensationInfo.CompensationEntryOrBuilder>(
5196                 entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
5197         entries_ = null;
5198       }
5199       return entriesBuilder_;
5200     }
5201 
5202     private com.google.cloud.talent.v4.CompensationInfo.CompensationRange
5203         annualizedBaseCompensationRange_;
5204     private com.google.protobuf.SingleFieldBuilderV3<
5205             com.google.cloud.talent.v4.CompensationInfo.CompensationRange,
5206             com.google.cloud.talent.v4.CompensationInfo.CompensationRange.Builder,
5207             com.google.cloud.talent.v4.CompensationInfo.CompensationRangeOrBuilder>
5208         annualizedBaseCompensationRangeBuilder_;
5209     /**
5210      *
5211      *
5212      * <pre>
5213      * Output only. Annualized base compensation range. Computed as base
5214      * compensation entry's
5215      * [CompensationEntry.amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
5216      * times
5217      * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year].
5218      * See
5219      * [CompensationEntry][google.cloud.talent.v4.CompensationInfo.CompensationEntry]
5220      * for explanation on compensation annualization.
5221      * </pre>
5222      *
5223      * <code>
5224      * .google.cloud.talent.v4.CompensationInfo.CompensationRange annualized_base_compensation_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
5225      * </code>
5226      *
5227      * @return Whether the annualizedBaseCompensationRange field is set.
5228      */
hasAnnualizedBaseCompensationRange()5229     public boolean hasAnnualizedBaseCompensationRange() {
5230       return ((bitField0_ & 0x00000002) != 0);
5231     }
5232     /**
5233      *
5234      *
5235      * <pre>
5236      * Output only. Annualized base compensation range. Computed as base
5237      * compensation entry's
5238      * [CompensationEntry.amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
5239      * times
5240      * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year].
5241      * See
5242      * [CompensationEntry][google.cloud.talent.v4.CompensationInfo.CompensationEntry]
5243      * for explanation on compensation annualization.
5244      * </pre>
5245      *
5246      * <code>
5247      * .google.cloud.talent.v4.CompensationInfo.CompensationRange annualized_base_compensation_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
5248      * </code>
5249      *
5250      * @return The annualizedBaseCompensationRange.
5251      */
5252     public com.google.cloud.talent.v4.CompensationInfo.CompensationRange
getAnnualizedBaseCompensationRange()5253         getAnnualizedBaseCompensationRange() {
5254       if (annualizedBaseCompensationRangeBuilder_ == null) {
5255         return annualizedBaseCompensationRange_ == null
5256             ? com.google.cloud.talent.v4.CompensationInfo.CompensationRange.getDefaultInstance()
5257             : annualizedBaseCompensationRange_;
5258       } else {
5259         return annualizedBaseCompensationRangeBuilder_.getMessage();
5260       }
5261     }
5262     /**
5263      *
5264      *
5265      * <pre>
5266      * Output only. Annualized base compensation range. Computed as base
5267      * compensation entry's
5268      * [CompensationEntry.amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
5269      * times
5270      * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year].
5271      * See
5272      * [CompensationEntry][google.cloud.talent.v4.CompensationInfo.CompensationEntry]
5273      * for explanation on compensation annualization.
5274      * </pre>
5275      *
5276      * <code>
5277      * .google.cloud.talent.v4.CompensationInfo.CompensationRange annualized_base_compensation_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
5278      * </code>
5279      */
setAnnualizedBaseCompensationRange( com.google.cloud.talent.v4.CompensationInfo.CompensationRange value)5280     public Builder setAnnualizedBaseCompensationRange(
5281         com.google.cloud.talent.v4.CompensationInfo.CompensationRange value) {
5282       if (annualizedBaseCompensationRangeBuilder_ == null) {
5283         if (value == null) {
5284           throw new NullPointerException();
5285         }
5286         annualizedBaseCompensationRange_ = value;
5287       } else {
5288         annualizedBaseCompensationRangeBuilder_.setMessage(value);
5289       }
5290       bitField0_ |= 0x00000002;
5291       onChanged();
5292       return this;
5293     }
5294     /**
5295      *
5296      *
5297      * <pre>
5298      * Output only. Annualized base compensation range. Computed as base
5299      * compensation entry's
5300      * [CompensationEntry.amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
5301      * times
5302      * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year].
5303      * See
5304      * [CompensationEntry][google.cloud.talent.v4.CompensationInfo.CompensationEntry]
5305      * for explanation on compensation annualization.
5306      * </pre>
5307      *
5308      * <code>
5309      * .google.cloud.talent.v4.CompensationInfo.CompensationRange annualized_base_compensation_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
5310      * </code>
5311      */
setAnnualizedBaseCompensationRange( com.google.cloud.talent.v4.CompensationInfo.CompensationRange.Builder builderForValue)5312     public Builder setAnnualizedBaseCompensationRange(
5313         com.google.cloud.talent.v4.CompensationInfo.CompensationRange.Builder builderForValue) {
5314       if (annualizedBaseCompensationRangeBuilder_ == null) {
5315         annualizedBaseCompensationRange_ = builderForValue.build();
5316       } else {
5317         annualizedBaseCompensationRangeBuilder_.setMessage(builderForValue.build());
5318       }
5319       bitField0_ |= 0x00000002;
5320       onChanged();
5321       return this;
5322     }
5323     /**
5324      *
5325      *
5326      * <pre>
5327      * Output only. Annualized base compensation range. Computed as base
5328      * compensation entry's
5329      * [CompensationEntry.amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
5330      * times
5331      * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year].
5332      * See
5333      * [CompensationEntry][google.cloud.talent.v4.CompensationInfo.CompensationEntry]
5334      * for explanation on compensation annualization.
5335      * </pre>
5336      *
5337      * <code>
5338      * .google.cloud.talent.v4.CompensationInfo.CompensationRange annualized_base_compensation_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
5339      * </code>
5340      */
mergeAnnualizedBaseCompensationRange( com.google.cloud.talent.v4.CompensationInfo.CompensationRange value)5341     public Builder mergeAnnualizedBaseCompensationRange(
5342         com.google.cloud.talent.v4.CompensationInfo.CompensationRange value) {
5343       if (annualizedBaseCompensationRangeBuilder_ == null) {
5344         if (((bitField0_ & 0x00000002) != 0)
5345             && annualizedBaseCompensationRange_ != null
5346             && annualizedBaseCompensationRange_
5347                 != com.google.cloud.talent.v4.CompensationInfo.CompensationRange
5348                     .getDefaultInstance()) {
5349           getAnnualizedBaseCompensationRangeBuilder().mergeFrom(value);
5350         } else {
5351           annualizedBaseCompensationRange_ = value;
5352         }
5353       } else {
5354         annualizedBaseCompensationRangeBuilder_.mergeFrom(value);
5355       }
5356       bitField0_ |= 0x00000002;
5357       onChanged();
5358       return this;
5359     }
5360     /**
5361      *
5362      *
5363      * <pre>
5364      * Output only. Annualized base compensation range. Computed as base
5365      * compensation entry's
5366      * [CompensationEntry.amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
5367      * times
5368      * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year].
5369      * See
5370      * [CompensationEntry][google.cloud.talent.v4.CompensationInfo.CompensationEntry]
5371      * for explanation on compensation annualization.
5372      * </pre>
5373      *
5374      * <code>
5375      * .google.cloud.talent.v4.CompensationInfo.CompensationRange annualized_base_compensation_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
5376      * </code>
5377      */
clearAnnualizedBaseCompensationRange()5378     public Builder clearAnnualizedBaseCompensationRange() {
5379       bitField0_ = (bitField0_ & ~0x00000002);
5380       annualizedBaseCompensationRange_ = null;
5381       if (annualizedBaseCompensationRangeBuilder_ != null) {
5382         annualizedBaseCompensationRangeBuilder_.dispose();
5383         annualizedBaseCompensationRangeBuilder_ = null;
5384       }
5385       onChanged();
5386       return this;
5387     }
5388     /**
5389      *
5390      *
5391      * <pre>
5392      * Output only. Annualized base compensation range. Computed as base
5393      * compensation entry's
5394      * [CompensationEntry.amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
5395      * times
5396      * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year].
5397      * See
5398      * [CompensationEntry][google.cloud.talent.v4.CompensationInfo.CompensationEntry]
5399      * for explanation on compensation annualization.
5400      * </pre>
5401      *
5402      * <code>
5403      * .google.cloud.talent.v4.CompensationInfo.CompensationRange annualized_base_compensation_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
5404      * </code>
5405      */
5406     public com.google.cloud.talent.v4.CompensationInfo.CompensationRange.Builder
getAnnualizedBaseCompensationRangeBuilder()5407         getAnnualizedBaseCompensationRangeBuilder() {
5408       bitField0_ |= 0x00000002;
5409       onChanged();
5410       return getAnnualizedBaseCompensationRangeFieldBuilder().getBuilder();
5411     }
5412     /**
5413      *
5414      *
5415      * <pre>
5416      * Output only. Annualized base compensation range. Computed as base
5417      * compensation entry's
5418      * [CompensationEntry.amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
5419      * times
5420      * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year].
5421      * See
5422      * [CompensationEntry][google.cloud.talent.v4.CompensationInfo.CompensationEntry]
5423      * for explanation on compensation annualization.
5424      * </pre>
5425      *
5426      * <code>
5427      * .google.cloud.talent.v4.CompensationInfo.CompensationRange annualized_base_compensation_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
5428      * </code>
5429      */
5430     public com.google.cloud.talent.v4.CompensationInfo.CompensationRangeOrBuilder
getAnnualizedBaseCompensationRangeOrBuilder()5431         getAnnualizedBaseCompensationRangeOrBuilder() {
5432       if (annualizedBaseCompensationRangeBuilder_ != null) {
5433         return annualizedBaseCompensationRangeBuilder_.getMessageOrBuilder();
5434       } else {
5435         return annualizedBaseCompensationRange_ == null
5436             ? com.google.cloud.talent.v4.CompensationInfo.CompensationRange.getDefaultInstance()
5437             : annualizedBaseCompensationRange_;
5438       }
5439     }
5440     /**
5441      *
5442      *
5443      * <pre>
5444      * Output only. Annualized base compensation range. Computed as base
5445      * compensation entry's
5446      * [CompensationEntry.amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
5447      * times
5448      * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year].
5449      * See
5450      * [CompensationEntry][google.cloud.talent.v4.CompensationInfo.CompensationEntry]
5451      * for explanation on compensation annualization.
5452      * </pre>
5453      *
5454      * <code>
5455      * .google.cloud.talent.v4.CompensationInfo.CompensationRange annualized_base_compensation_range = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
5456      * </code>
5457      */
5458     private com.google.protobuf.SingleFieldBuilderV3<
5459             com.google.cloud.talent.v4.CompensationInfo.CompensationRange,
5460             com.google.cloud.talent.v4.CompensationInfo.CompensationRange.Builder,
5461             com.google.cloud.talent.v4.CompensationInfo.CompensationRangeOrBuilder>
getAnnualizedBaseCompensationRangeFieldBuilder()5462         getAnnualizedBaseCompensationRangeFieldBuilder() {
5463       if (annualizedBaseCompensationRangeBuilder_ == null) {
5464         annualizedBaseCompensationRangeBuilder_ =
5465             new com.google.protobuf.SingleFieldBuilderV3<
5466                 com.google.cloud.talent.v4.CompensationInfo.CompensationRange,
5467                 com.google.cloud.talent.v4.CompensationInfo.CompensationRange.Builder,
5468                 com.google.cloud.talent.v4.CompensationInfo.CompensationRangeOrBuilder>(
5469                 getAnnualizedBaseCompensationRange(), getParentForChildren(), isClean());
5470         annualizedBaseCompensationRange_ = null;
5471       }
5472       return annualizedBaseCompensationRangeBuilder_;
5473     }
5474 
5475     private com.google.cloud.talent.v4.CompensationInfo.CompensationRange
5476         annualizedTotalCompensationRange_;
5477     private com.google.protobuf.SingleFieldBuilderV3<
5478             com.google.cloud.talent.v4.CompensationInfo.CompensationRange,
5479             com.google.cloud.talent.v4.CompensationInfo.CompensationRange.Builder,
5480             com.google.cloud.talent.v4.CompensationInfo.CompensationRangeOrBuilder>
5481         annualizedTotalCompensationRangeBuilder_;
5482     /**
5483      *
5484      *
5485      * <pre>
5486      * Output only. Annualized total compensation range. Computed as all
5487      * compensation entries'
5488      * [CompensationEntry.amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
5489      * times
5490      * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year].
5491      * See
5492      * [CompensationEntry][google.cloud.talent.v4.CompensationInfo.CompensationEntry]
5493      * for explanation on compensation annualization.
5494      * </pre>
5495      *
5496      * <code>
5497      * .google.cloud.talent.v4.CompensationInfo.CompensationRange annualized_total_compensation_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
5498      * </code>
5499      *
5500      * @return Whether the annualizedTotalCompensationRange field is set.
5501      */
hasAnnualizedTotalCompensationRange()5502     public boolean hasAnnualizedTotalCompensationRange() {
5503       return ((bitField0_ & 0x00000004) != 0);
5504     }
5505     /**
5506      *
5507      *
5508      * <pre>
5509      * Output only. Annualized total compensation range. Computed as all
5510      * compensation entries'
5511      * [CompensationEntry.amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
5512      * times
5513      * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year].
5514      * See
5515      * [CompensationEntry][google.cloud.talent.v4.CompensationInfo.CompensationEntry]
5516      * for explanation on compensation annualization.
5517      * </pre>
5518      *
5519      * <code>
5520      * .google.cloud.talent.v4.CompensationInfo.CompensationRange annualized_total_compensation_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
5521      * </code>
5522      *
5523      * @return The annualizedTotalCompensationRange.
5524      */
5525     public com.google.cloud.talent.v4.CompensationInfo.CompensationRange
getAnnualizedTotalCompensationRange()5526         getAnnualizedTotalCompensationRange() {
5527       if (annualizedTotalCompensationRangeBuilder_ == null) {
5528         return annualizedTotalCompensationRange_ == null
5529             ? com.google.cloud.talent.v4.CompensationInfo.CompensationRange.getDefaultInstance()
5530             : annualizedTotalCompensationRange_;
5531       } else {
5532         return annualizedTotalCompensationRangeBuilder_.getMessage();
5533       }
5534     }
5535     /**
5536      *
5537      *
5538      * <pre>
5539      * Output only. Annualized total compensation range. Computed as all
5540      * compensation entries'
5541      * [CompensationEntry.amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
5542      * times
5543      * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year].
5544      * See
5545      * [CompensationEntry][google.cloud.talent.v4.CompensationInfo.CompensationEntry]
5546      * for explanation on compensation annualization.
5547      * </pre>
5548      *
5549      * <code>
5550      * .google.cloud.talent.v4.CompensationInfo.CompensationRange annualized_total_compensation_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
5551      * </code>
5552      */
setAnnualizedTotalCompensationRange( com.google.cloud.talent.v4.CompensationInfo.CompensationRange value)5553     public Builder setAnnualizedTotalCompensationRange(
5554         com.google.cloud.talent.v4.CompensationInfo.CompensationRange value) {
5555       if (annualizedTotalCompensationRangeBuilder_ == null) {
5556         if (value == null) {
5557           throw new NullPointerException();
5558         }
5559         annualizedTotalCompensationRange_ = value;
5560       } else {
5561         annualizedTotalCompensationRangeBuilder_.setMessage(value);
5562       }
5563       bitField0_ |= 0x00000004;
5564       onChanged();
5565       return this;
5566     }
5567     /**
5568      *
5569      *
5570      * <pre>
5571      * Output only. Annualized total compensation range. Computed as all
5572      * compensation entries'
5573      * [CompensationEntry.amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
5574      * times
5575      * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year].
5576      * See
5577      * [CompensationEntry][google.cloud.talent.v4.CompensationInfo.CompensationEntry]
5578      * for explanation on compensation annualization.
5579      * </pre>
5580      *
5581      * <code>
5582      * .google.cloud.talent.v4.CompensationInfo.CompensationRange annualized_total_compensation_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
5583      * </code>
5584      */
setAnnualizedTotalCompensationRange( com.google.cloud.talent.v4.CompensationInfo.CompensationRange.Builder builderForValue)5585     public Builder setAnnualizedTotalCompensationRange(
5586         com.google.cloud.talent.v4.CompensationInfo.CompensationRange.Builder builderForValue) {
5587       if (annualizedTotalCompensationRangeBuilder_ == null) {
5588         annualizedTotalCompensationRange_ = builderForValue.build();
5589       } else {
5590         annualizedTotalCompensationRangeBuilder_.setMessage(builderForValue.build());
5591       }
5592       bitField0_ |= 0x00000004;
5593       onChanged();
5594       return this;
5595     }
5596     /**
5597      *
5598      *
5599      * <pre>
5600      * Output only. Annualized total compensation range. Computed as all
5601      * compensation entries'
5602      * [CompensationEntry.amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
5603      * times
5604      * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year].
5605      * See
5606      * [CompensationEntry][google.cloud.talent.v4.CompensationInfo.CompensationEntry]
5607      * for explanation on compensation annualization.
5608      * </pre>
5609      *
5610      * <code>
5611      * .google.cloud.talent.v4.CompensationInfo.CompensationRange annualized_total_compensation_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
5612      * </code>
5613      */
mergeAnnualizedTotalCompensationRange( com.google.cloud.talent.v4.CompensationInfo.CompensationRange value)5614     public Builder mergeAnnualizedTotalCompensationRange(
5615         com.google.cloud.talent.v4.CompensationInfo.CompensationRange value) {
5616       if (annualizedTotalCompensationRangeBuilder_ == null) {
5617         if (((bitField0_ & 0x00000004) != 0)
5618             && annualizedTotalCompensationRange_ != null
5619             && annualizedTotalCompensationRange_
5620                 != com.google.cloud.talent.v4.CompensationInfo.CompensationRange
5621                     .getDefaultInstance()) {
5622           getAnnualizedTotalCompensationRangeBuilder().mergeFrom(value);
5623         } else {
5624           annualizedTotalCompensationRange_ = value;
5625         }
5626       } else {
5627         annualizedTotalCompensationRangeBuilder_.mergeFrom(value);
5628       }
5629       bitField0_ |= 0x00000004;
5630       onChanged();
5631       return this;
5632     }
5633     /**
5634      *
5635      *
5636      * <pre>
5637      * Output only. Annualized total compensation range. Computed as all
5638      * compensation entries'
5639      * [CompensationEntry.amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
5640      * times
5641      * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year].
5642      * See
5643      * [CompensationEntry][google.cloud.talent.v4.CompensationInfo.CompensationEntry]
5644      * for explanation on compensation annualization.
5645      * </pre>
5646      *
5647      * <code>
5648      * .google.cloud.talent.v4.CompensationInfo.CompensationRange annualized_total_compensation_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
5649      * </code>
5650      */
clearAnnualizedTotalCompensationRange()5651     public Builder clearAnnualizedTotalCompensationRange() {
5652       bitField0_ = (bitField0_ & ~0x00000004);
5653       annualizedTotalCompensationRange_ = null;
5654       if (annualizedTotalCompensationRangeBuilder_ != null) {
5655         annualizedTotalCompensationRangeBuilder_.dispose();
5656         annualizedTotalCompensationRangeBuilder_ = null;
5657       }
5658       onChanged();
5659       return this;
5660     }
5661     /**
5662      *
5663      *
5664      * <pre>
5665      * Output only. Annualized total compensation range. Computed as all
5666      * compensation entries'
5667      * [CompensationEntry.amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
5668      * times
5669      * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year].
5670      * See
5671      * [CompensationEntry][google.cloud.talent.v4.CompensationInfo.CompensationEntry]
5672      * for explanation on compensation annualization.
5673      * </pre>
5674      *
5675      * <code>
5676      * .google.cloud.talent.v4.CompensationInfo.CompensationRange annualized_total_compensation_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
5677      * </code>
5678      */
5679     public com.google.cloud.talent.v4.CompensationInfo.CompensationRange.Builder
getAnnualizedTotalCompensationRangeBuilder()5680         getAnnualizedTotalCompensationRangeBuilder() {
5681       bitField0_ |= 0x00000004;
5682       onChanged();
5683       return getAnnualizedTotalCompensationRangeFieldBuilder().getBuilder();
5684     }
5685     /**
5686      *
5687      *
5688      * <pre>
5689      * Output only. Annualized total compensation range. Computed as all
5690      * compensation entries'
5691      * [CompensationEntry.amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
5692      * times
5693      * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year].
5694      * See
5695      * [CompensationEntry][google.cloud.talent.v4.CompensationInfo.CompensationEntry]
5696      * for explanation on compensation annualization.
5697      * </pre>
5698      *
5699      * <code>
5700      * .google.cloud.talent.v4.CompensationInfo.CompensationRange annualized_total_compensation_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
5701      * </code>
5702      */
5703     public com.google.cloud.talent.v4.CompensationInfo.CompensationRangeOrBuilder
getAnnualizedTotalCompensationRangeOrBuilder()5704         getAnnualizedTotalCompensationRangeOrBuilder() {
5705       if (annualizedTotalCompensationRangeBuilder_ != null) {
5706         return annualizedTotalCompensationRangeBuilder_.getMessageOrBuilder();
5707       } else {
5708         return annualizedTotalCompensationRange_ == null
5709             ? com.google.cloud.talent.v4.CompensationInfo.CompensationRange.getDefaultInstance()
5710             : annualizedTotalCompensationRange_;
5711       }
5712     }
5713     /**
5714      *
5715      *
5716      * <pre>
5717      * Output only. Annualized total compensation range. Computed as all
5718      * compensation entries'
5719      * [CompensationEntry.amount][google.cloud.talent.v4.CompensationInfo.CompensationEntry.amount]
5720      * times
5721      * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4.CompensationInfo.CompensationEntry.expected_units_per_year].
5722      * See
5723      * [CompensationEntry][google.cloud.talent.v4.CompensationInfo.CompensationEntry]
5724      * for explanation on compensation annualization.
5725      * </pre>
5726      *
5727      * <code>
5728      * .google.cloud.talent.v4.CompensationInfo.CompensationRange annualized_total_compensation_range = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
5729      * </code>
5730      */
5731     private com.google.protobuf.SingleFieldBuilderV3<
5732             com.google.cloud.talent.v4.CompensationInfo.CompensationRange,
5733             com.google.cloud.talent.v4.CompensationInfo.CompensationRange.Builder,
5734             com.google.cloud.talent.v4.CompensationInfo.CompensationRangeOrBuilder>
getAnnualizedTotalCompensationRangeFieldBuilder()5735         getAnnualizedTotalCompensationRangeFieldBuilder() {
5736       if (annualizedTotalCompensationRangeBuilder_ == null) {
5737         annualizedTotalCompensationRangeBuilder_ =
5738             new com.google.protobuf.SingleFieldBuilderV3<
5739                 com.google.cloud.talent.v4.CompensationInfo.CompensationRange,
5740                 com.google.cloud.talent.v4.CompensationInfo.CompensationRange.Builder,
5741                 com.google.cloud.talent.v4.CompensationInfo.CompensationRangeOrBuilder>(
5742                 getAnnualizedTotalCompensationRange(), getParentForChildren(), isClean());
5743         annualizedTotalCompensationRange_ = null;
5744       }
5745       return annualizedTotalCompensationRangeBuilder_;
5746     }
5747 
5748     @java.lang.Override
setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields)5749     public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
5750       return super.setUnknownFields(unknownFields);
5751     }
5752 
5753     @java.lang.Override
mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields)5754     public final Builder mergeUnknownFields(
5755         final com.google.protobuf.UnknownFieldSet unknownFields) {
5756       return super.mergeUnknownFields(unknownFields);
5757     }
5758 
5759     // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4.CompensationInfo)
5760   }
5761 
5762   // @@protoc_insertion_point(class_scope:google.cloud.talent.v4.CompensationInfo)
5763   private static final com.google.cloud.talent.v4.CompensationInfo DEFAULT_INSTANCE;
5764 
5765   static {
5766     DEFAULT_INSTANCE = new com.google.cloud.talent.v4.CompensationInfo();
5767   }
5768 
getDefaultInstance()5769   public static com.google.cloud.talent.v4.CompensationInfo getDefaultInstance() {
5770     return DEFAULT_INSTANCE;
5771   }
5772 
5773   private static final com.google.protobuf.Parser<CompensationInfo> PARSER =
5774       new com.google.protobuf.AbstractParser<CompensationInfo>() {
5775         @java.lang.Override
5776         public CompensationInfo parsePartialFrom(
5777             com.google.protobuf.CodedInputStream input,
5778             com.google.protobuf.ExtensionRegistryLite extensionRegistry)
5779             throws com.google.protobuf.InvalidProtocolBufferException {
5780           Builder builder = newBuilder();
5781           try {
5782             builder.mergeFrom(input, extensionRegistry);
5783           } catch (com.google.protobuf.InvalidProtocolBufferException e) {
5784             throw e.setUnfinishedMessage(builder.buildPartial());
5785           } catch (com.google.protobuf.UninitializedMessageException e) {
5786             throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
5787           } catch (java.io.IOException e) {
5788             throw new com.google.protobuf.InvalidProtocolBufferException(e)
5789                 .setUnfinishedMessage(builder.buildPartial());
5790           }
5791           return builder.buildPartial();
5792         }
5793       };
5794 
parser()5795   public static com.google.protobuf.Parser<CompensationInfo> parser() {
5796     return PARSER;
5797   }
5798 
5799   @java.lang.Override
getParserForType()5800   public com.google.protobuf.Parser<CompensationInfo> getParserForType() {
5801     return PARSER;
5802   }
5803 
5804   @java.lang.Override
getDefaultInstanceForType()5805   public com.google.cloud.talent.v4.CompensationInfo getDefaultInstanceForType() {
5806     return DEFAULT_INSTANCE;
5807   }
5808 }
5809