// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: google/cloud/talent/v4beta1/common.proto

package com.google.cloud.talent.v4beta1;

/**
 *
 *
 * <pre>
 * Job compensation details.
 * </pre>
 *
 * Protobuf type {@code google.cloud.talent.v4beta1.CompensationInfo}
 */
public final class CompensationInfo extends com.google.protobuf.GeneratedMessageV3
    implements
    // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CompensationInfo)
    CompensationInfoOrBuilder {
  private static final long serialVersionUID = 0L;
  // Use CompensationInfo.newBuilder() to construct.
  private CompensationInfo(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
    super(builder);
  }

  private CompensationInfo() {
    entries_ = java.util.Collections.emptyList();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
    return this.unknownFields;
  }

  private CompensationInfo(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10:
            {
              if (!((mutable_bitField0_ & 0x00000001) != 0)) {
                entries_ =
                    new java.util.ArrayList<
                        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry>();
                mutable_bitField0_ |= 0x00000001;
              }
              entries_.add(
                  input.readMessage(
                      com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.parser(),
                      extensionRegistry));
              break;
            }
          case 18:
            {
              com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder
                  subBuilder = null;
              if (annualizedBaseCompensationRange_ != null) {
                subBuilder = annualizedBaseCompensationRange_.toBuilder();
              }
              annualizedBaseCompensationRange_ =
                  input.readMessage(
                      com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.parser(),
                      extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(annualizedBaseCompensationRange_);
                annualizedBaseCompensationRange_ = subBuilder.buildPartial();
              }

              break;
            }
          case 26:
            {
              com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder
                  subBuilder = null;
              if (annualizedTotalCompensationRange_ != null) {
                subBuilder = annualizedTotalCompensationRange_.toBuilder();
              }
              annualizedTotalCompensationRange_ =
                  input.readMessage(
                      com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.parser(),
                      extensionRegistry);
              if (subBuilder != null) {
                subBuilder.mergeFrom(annualizedTotalCompensationRange_);
                annualizedTotalCompensationRange_ = subBuilder.buildPartial();
              }

              break;
            }
          default:
            {
              if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                done = true;
              }
              break;
            }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        entries_ = java.util.Collections.unmodifiableList(entries_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.cloud.talent.v4beta1.CommonProto
        .internal_static_google_cloud_talent_v4beta1_CompensationInfo_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.cloud.talent.v4beta1.CommonProto
        .internal_static_google_cloud_talent_v4beta1_CompensationInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.cloud.talent.v4beta1.CompensationInfo.class,
            com.google.cloud.talent.v4beta1.CompensationInfo.Builder.class);
  }

  /**
   *
   *
   * <pre>
   * The type of compensation.
   * For compensation amounts specified in non-monetary amounts,
   * describe the compensation scheme in the [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description].
   * For example, tipping format is described in
   * [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description] (for example, "expect 15-20% tips based
   * on customer bill.") and an estimate of the tips provided in
   * [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] or [CompensationEntry.range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range] ($10 per hour).
   * For example, equity is described in [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description]
   * (for example, "1% - 2% equity vesting over 4 years, 1 year cliff") and
   * value estimated in [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] or
   * [CompensationEntry.range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range]. If no value estimate is possible, units are
   * [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED] and then further
   * clarified in [CompensationEntry.description][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.description] field.
   * </pre>
   *
   * Protobuf enum {@code google.cloud.talent.v4beta1.CompensationInfo.CompensationType}
   */
  public enum CompensationType implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     * <pre>
     * Default value.
     * </pre>
     *
     * <code>COMPENSATION_TYPE_UNSPECIFIED = 0;</code>
     */
    COMPENSATION_TYPE_UNSPECIFIED(0),
    /**
     *
     *
     * <pre>
     * Base compensation: Refers to the fixed amount of money paid to an
     * employee by an employer in return for work performed. Base compensation
     * does not include benefits, bonuses or any other potential compensation
     * from an employer.
     * </pre>
     *
     * <code>BASE = 1;</code>
     */
    BASE(1),
    /**
     *
     *
     * <pre>
     * Bonus.
     * </pre>
     *
     * <code>BONUS = 2;</code>
     */
    BONUS(2),
    /**
     *
     *
     * <pre>
     * Signing bonus.
     * </pre>
     *
     * <code>SIGNING_BONUS = 3;</code>
     */
    SIGNING_BONUS(3),
    /**
     *
     *
     * <pre>
     * Equity.
     * </pre>
     *
     * <code>EQUITY = 4;</code>
     */
    EQUITY(4),
    /**
     *
     *
     * <pre>
     * Profit sharing.
     * </pre>
     *
     * <code>PROFIT_SHARING = 5;</code>
     */
    PROFIT_SHARING(5),
    /**
     *
     *
     * <pre>
     * Commission.
     * </pre>
     *
     * <code>COMMISSIONS = 6;</code>
     */
    COMMISSIONS(6),
    /**
     *
     *
     * <pre>
     * Tips.
     * </pre>
     *
     * <code>TIPS = 7;</code>
     */
    TIPS(7),
    /**
     *
     *
     * <pre>
     * Other compensation type.
     * </pre>
     *
     * <code>OTHER_COMPENSATION_TYPE = 8;</code>
     */
    OTHER_COMPENSATION_TYPE(8),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     * <pre>
     * Default value.
     * </pre>
     *
     * <code>COMPENSATION_TYPE_UNSPECIFIED = 0;</code>
     */
    public static final int COMPENSATION_TYPE_UNSPECIFIED_VALUE = 0;
    /**
     *
     *
     * <pre>
     * Base compensation: Refers to the fixed amount of money paid to an
     * employee by an employer in return for work performed. Base compensation
     * does not include benefits, bonuses or any other potential compensation
     * from an employer.
     * </pre>
     *
     * <code>BASE = 1;</code>
     */
    public static final int BASE_VALUE = 1;
    /**
     *
     *
     * <pre>
     * Bonus.
     * </pre>
     *
     * <code>BONUS = 2;</code>
     */
    public static final int BONUS_VALUE = 2;
    /**
     *
     *
     * <pre>
     * Signing bonus.
     * </pre>
     *
     * <code>SIGNING_BONUS = 3;</code>
     */
    public static final int SIGNING_BONUS_VALUE = 3;
    /**
     *
     *
     * <pre>
     * Equity.
     * </pre>
     *
     * <code>EQUITY = 4;</code>
     */
    public static final int EQUITY_VALUE = 4;
    /**
     *
     *
     * <pre>
     * Profit sharing.
     * </pre>
     *
     * <code>PROFIT_SHARING = 5;</code>
     */
    public static final int PROFIT_SHARING_VALUE = 5;
    /**
     *
     *
     * <pre>
     * Commission.
     * </pre>
     *
     * <code>COMMISSIONS = 6;</code>
     */
    public static final int COMMISSIONS_VALUE = 6;
    /**
     *
     *
     * <pre>
     * Tips.
     * </pre>
     *
     * <code>TIPS = 7;</code>
     */
    public static final int TIPS_VALUE = 7;
    /**
     *
     *
     * <pre>
     * Other compensation type.
     * </pre>
     *
     * <code>OTHER_COMPENSATION_TYPE = 8;</code>
     */
    public static final int OTHER_COMPENSATION_TYPE_VALUE = 8;

    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /** @deprecated Use {@link #forNumber(int)} instead. */
    @java.lang.Deprecated
    public static CompensationType valueOf(int value) {
      return forNumber(value);
    }

    public static CompensationType forNumber(int value) {
      switch (value) {
        case 0:
          return COMPENSATION_TYPE_UNSPECIFIED;
        case 1:
          return BASE;
        case 2:
          return BONUS;
        case 3:
          return SIGNING_BONUS;
        case 4:
          return EQUITY;
        case 5:
          return PROFIT_SHARING;
        case 6:
          return COMMISSIONS;
        case 7:
          return TIPS;
        case 8:
          return OTHER_COMPENSATION_TYPE;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<CompensationType> internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<CompensationType>
        internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap<CompensationType>() {
              public CompensationType findValueByNumber(int number) {
                return CompensationType.forNumber(number);
              }
            };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return com.google.cloud.talent.v4beta1.CompensationInfo.getDescriptor().getEnumTypes().get(0);
    }

    private static final CompensationType[] VALUES = values();

    public static CompensationType valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private CompensationType(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.CompensationInfo.CompensationType)
  }

  /**
   *
   *
   * <pre>
   * Pay frequency.
   * </pre>
   *
   * Protobuf enum {@code google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit}
   */
  public enum CompensationUnit implements com.google.protobuf.ProtocolMessageEnum {
    /**
     *
     *
     * <pre>
     * Default value.
     * </pre>
     *
     * <code>COMPENSATION_UNIT_UNSPECIFIED = 0;</code>
     */
    COMPENSATION_UNIT_UNSPECIFIED(0),
    /**
     *
     *
     * <pre>
     * Hourly.
     * </pre>
     *
     * <code>HOURLY = 1;</code>
     */
    HOURLY(1),
    /**
     *
     *
     * <pre>
     * Daily.
     * </pre>
     *
     * <code>DAILY = 2;</code>
     */
    DAILY(2),
    /**
     *
     *
     * <pre>
     * Weekly
     * </pre>
     *
     * <code>WEEKLY = 3;</code>
     */
    WEEKLY(3),
    /**
     *
     *
     * <pre>
     * Monthly.
     * </pre>
     *
     * <code>MONTHLY = 4;</code>
     */
    MONTHLY(4),
    /**
     *
     *
     * <pre>
     * Yearly.
     * </pre>
     *
     * <code>YEARLY = 5;</code>
     */
    YEARLY(5),
    /**
     *
     *
     * <pre>
     * One time.
     * </pre>
     *
     * <code>ONE_TIME = 6;</code>
     */
    ONE_TIME(6),
    /**
     *
     *
     * <pre>
     * Other compensation units.
     * </pre>
     *
     * <code>OTHER_COMPENSATION_UNIT = 7;</code>
     */
    OTHER_COMPENSATION_UNIT(7),
    UNRECOGNIZED(-1),
    ;

    /**
     *
     *
     * <pre>
     * Default value.
     * </pre>
     *
     * <code>COMPENSATION_UNIT_UNSPECIFIED = 0;</code>
     */
    public static final int COMPENSATION_UNIT_UNSPECIFIED_VALUE = 0;
    /**
     *
     *
     * <pre>
     * Hourly.
     * </pre>
     *
     * <code>HOURLY = 1;</code>
     */
    public static final int HOURLY_VALUE = 1;
    /**
     *
     *
     * <pre>
     * Daily.
     * </pre>
     *
     * <code>DAILY = 2;</code>
     */
    public static final int DAILY_VALUE = 2;
    /**
     *
     *
     * <pre>
     * Weekly
     * </pre>
     *
     * <code>WEEKLY = 3;</code>
     */
    public static final int WEEKLY_VALUE = 3;
    /**
     *
     *
     * <pre>
     * Monthly.
     * </pre>
     *
     * <code>MONTHLY = 4;</code>
     */
    public static final int MONTHLY_VALUE = 4;
    /**
     *
     *
     * <pre>
     * Yearly.
     * </pre>
     *
     * <code>YEARLY = 5;</code>
     */
    public static final int YEARLY_VALUE = 5;
    /**
     *
     *
     * <pre>
     * One time.
     * </pre>
     *
     * <code>ONE_TIME = 6;</code>
     */
    public static final int ONE_TIME_VALUE = 6;
    /**
     *
     *
     * <pre>
     * Other compensation units.
     * </pre>
     *
     * <code>OTHER_COMPENSATION_UNIT = 7;</code>
     */
    public static final int OTHER_COMPENSATION_UNIT_VALUE = 7;

    public final int getNumber() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalArgumentException(
            "Can't get the number of an unknown enum value.");
      }
      return value;
    }

    /** @deprecated Use {@link #forNumber(int)} instead. */
    @java.lang.Deprecated
    public static CompensationUnit valueOf(int value) {
      return forNumber(value);
    }

    public static CompensationUnit forNumber(int value) {
      switch (value) {
        case 0:
          return COMPENSATION_UNIT_UNSPECIFIED;
        case 1:
          return HOURLY;
        case 2:
          return DAILY;
        case 3:
          return WEEKLY;
        case 4:
          return MONTHLY;
        case 5:
          return YEARLY;
        case 6:
          return ONE_TIME;
        case 7:
          return OTHER_COMPENSATION_UNIT;
        default:
          return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap<CompensationUnit> internalGetValueMap() {
      return internalValueMap;
    }

    private static final com.google.protobuf.Internal.EnumLiteMap<CompensationUnit>
        internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap<CompensationUnit>() {
              public CompensationUnit findValueByNumber(int number) {
                return CompensationUnit.forNumber(number);
              }
            };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }

    public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
      return getDescriptor();
    }

    public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
      return com.google.cloud.talent.v4beta1.CompensationInfo.getDescriptor().getEnumTypes().get(1);
    }

    private static final CompensationUnit[] VALUES = values();

    public static CompensationUnit valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
      }
      if (desc.getIndex() == -1) {
        return UNRECOGNIZED;
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private CompensationUnit(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit)
  }

  public interface CompensationEntryOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * Optional.
     * Compensation type.
     * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1;</code>
     */
    int getTypeValue();
    /**
     *
     *
     * <pre>
     * Optional.
     * Compensation type.
     * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1;</code>
     */
    com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType getType();

    /**
     *
     *
     * <pre>
     * Optional.
     * Frequency of the specified amount.
     * Default is [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2;</code>
     */
    int getUnitValue();
    /**
     *
     *
     * <pre>
     * Optional.
     * Frequency of the specified amount.
     * Default is [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2;</code>
     */
    com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit getUnit();

    /**
     *
     *
     * <pre>
     * Optional.
     * Compensation amount.
     * </pre>
     *
     * <code>.google.type.Money amount = 3;</code>
     */
    boolean hasAmount();
    /**
     *
     *
     * <pre>
     * Optional.
     * Compensation amount.
     * </pre>
     *
     * <code>.google.type.Money amount = 3;</code>
     */
    com.google.type.Money getAmount();
    /**
     *
     *
     * <pre>
     * Optional.
     * Compensation amount.
     * </pre>
     *
     * <code>.google.type.Money amount = 3;</code>
     */
    com.google.type.MoneyOrBuilder getAmountOrBuilder();

    /**
     *
     *
     * <pre>
     * Optional.
     * Compensation range.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4;</code>
     */
    boolean hasRange();
    /**
     *
     *
     * <pre>
     * Optional.
     * Compensation range.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4;</code>
     */
    com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange getRange();
    /**
     *
     *
     * <pre>
     * Optional.
     * Compensation range.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4;</code>
     */
    com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder getRangeOrBuilder();

    /**
     *
     *
     * <pre>
     * Optional.
     * Compensation description.  For example, could
     * indicate equity terms or provide additional context to an estimated
     * bonus.
     * </pre>
     *
     * <code>string description = 5;</code>
     */
    java.lang.String getDescription();
    /**
     *
     *
     * <pre>
     * Optional.
     * Compensation description.  For example, could
     * indicate equity terms or provide additional context to an estimated
     * bonus.
     * </pre>
     *
     * <code>string description = 5;</code>
     */
    com.google.protobuf.ByteString getDescriptionBytes();

    /**
     *
     *
     * <pre>
     * Optional.
     * Expected number of units paid each year. If not specified, when
     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types] is FULLTIME, a default value is inferred
     * based on [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit]. Default values:
     * - HOURLY: 2080
     * - DAILY: 260
     * - WEEKLY: 52
     * - MONTHLY: 12
     * - ANNUAL: 1
     * </pre>
     *
     * <code>.google.protobuf.DoubleValue expected_units_per_year = 6;</code>
     */
    boolean hasExpectedUnitsPerYear();
    /**
     *
     *
     * <pre>
     * Optional.
     * Expected number of units paid each year. If not specified, when
     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types] is FULLTIME, a default value is inferred
     * based on [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit]. Default values:
     * - HOURLY: 2080
     * - DAILY: 260
     * - WEEKLY: 52
     * - MONTHLY: 12
     * - ANNUAL: 1
     * </pre>
     *
     * <code>.google.protobuf.DoubleValue expected_units_per_year = 6;</code>
     */
    com.google.protobuf.DoubleValue getExpectedUnitsPerYear();
    /**
     *
     *
     * <pre>
     * Optional.
     * Expected number of units paid each year. If not specified, when
     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types] is FULLTIME, a default value is inferred
     * based on [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit]. Default values:
     * - HOURLY: 2080
     * - DAILY: 260
     * - WEEKLY: 52
     * - MONTHLY: 12
     * - ANNUAL: 1
     * </pre>
     *
     * <code>.google.protobuf.DoubleValue expected_units_per_year = 6;</code>
     */
    com.google.protobuf.DoubleValueOrBuilder getExpectedUnitsPerYearOrBuilder();

    public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.CompensationAmountCase
        getCompensationAmountCase();
  }
  /**
   *
   *
   * <pre>
   * A compensation entry that represents one component of compensation, such
   * as base pay, bonus, or other compensation type.
   * Annualization: One compensation entry can be annualized if
   * - it contains valid [amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] or [range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range].
   * - and its [expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year] is set or can be derived.
   * Its annualized range is determined as ([amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] or [range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range]) times
   * [expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
   * </pre>
   *
   * Protobuf type {@code google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry}
   */
  public static final class CompensationEntry extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry)
      CompensationEntryOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use CompensationEntry.newBuilder() to construct.
    private CompensationEntry(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private CompensationEntry() {
      type_ = 0;
      unit_ = 0;
      description_ = "";
    }

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      return this.unknownFields;
    }

    private CompensationEntry(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 8:
              {
                int rawValue = input.readEnum();

                type_ = rawValue;
                break;
              }
            case 16:
              {
                int rawValue = input.readEnum();

                unit_ = rawValue;
                break;
              }
            case 26:
              {
                com.google.type.Money.Builder subBuilder = null;
                if (compensationAmountCase_ == 3) {
                  subBuilder = ((com.google.type.Money) compensationAmount_).toBuilder();
                }
                compensationAmount_ =
                    input.readMessage(com.google.type.Money.parser(), extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom((com.google.type.Money) compensationAmount_);
                  compensationAmount_ = subBuilder.buildPartial();
                }
                compensationAmountCase_ = 3;
                break;
              }
            case 34:
              {
                com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder
                    subBuilder = null;
                if (compensationAmountCase_ == 4) {
                  subBuilder =
                      ((com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange)
                              compensationAmount_)
                          .toBuilder();
                }
                compensationAmount_ =
                    input.readMessage(
                        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.parser(),
                        extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom(
                      (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange)
                          compensationAmount_);
                  compensationAmount_ = subBuilder.buildPartial();
                }
                compensationAmountCase_ = 4;
                break;
              }
            case 42:
              {
                java.lang.String s = input.readStringRequireUtf8();

                description_ = s;
                break;
              }
            case 50:
              {
                com.google.protobuf.DoubleValue.Builder subBuilder = null;
                if (expectedUnitsPerYear_ != null) {
                  subBuilder = expectedUnitsPerYear_.toBuilder();
                }
                expectedUnitsPerYear_ =
                    input.readMessage(com.google.protobuf.DoubleValue.parser(), extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom(expectedUnitsPerYear_);
                  expectedUnitsPerYear_ = subBuilder.buildPartial();
                }

                break;
              }
            default:
              {
                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                  done = true;
                }
                break;
              }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.talent.v4beta1.CommonProto
          .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.talent.v4beta1.CommonProto
          .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.class,
              com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder.class);
    }

    private int compensationAmountCase_ = 0;
    private java.lang.Object compensationAmount_;

    public enum CompensationAmountCase implements com.google.protobuf.Internal.EnumLite {
      AMOUNT(3),
      RANGE(4),
      COMPENSATIONAMOUNT_NOT_SET(0);
      private final int value;

      private CompensationAmountCase(int value) {
        this.value = value;
      }
      /** @deprecated Use {@link #forNumber(int)} instead. */
      @java.lang.Deprecated
      public static CompensationAmountCase valueOf(int value) {
        return forNumber(value);
      }

      public static CompensationAmountCase forNumber(int value) {
        switch (value) {
          case 3:
            return AMOUNT;
          case 4:
            return RANGE;
          case 0:
            return COMPENSATIONAMOUNT_NOT_SET;
          default:
            return null;
        }
      }

      public int getNumber() {
        return this.value;
      }
    };

    public CompensationAmountCase getCompensationAmountCase() {
      return CompensationAmountCase.forNumber(compensationAmountCase_);
    }

    public static final int TYPE_FIELD_NUMBER = 1;
    private int type_;
    /**
     *
     *
     * <pre>
     * Optional.
     * Compensation type.
     * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1;</code>
     */
    public int getTypeValue() {
      return type_;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Compensation type.
     * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1;</code>
     */
    public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType getType() {
      @SuppressWarnings("deprecation")
      com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType result =
          com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType.valueOf(type_);
      return result == null
          ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType.UNRECOGNIZED
          : result;
    }

    public static final int UNIT_FIELD_NUMBER = 2;
    private int unit_;
    /**
     *
     *
     * <pre>
     * Optional.
     * Frequency of the specified amount.
     * Default is [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2;</code>
     */
    public int getUnitValue() {
      return unit_;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Frequency of the specified amount.
     * Default is [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2;</code>
     */
    public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit getUnit() {
      @SuppressWarnings("deprecation")
      com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit result =
          com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.valueOf(unit_);
      return result == null
          ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.UNRECOGNIZED
          : result;
    }

    public static final int AMOUNT_FIELD_NUMBER = 3;
    /**
     *
     *
     * <pre>
     * Optional.
     * Compensation amount.
     * </pre>
     *
     * <code>.google.type.Money amount = 3;</code>
     */
    public boolean hasAmount() {
      return compensationAmountCase_ == 3;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Compensation amount.
     * </pre>
     *
     * <code>.google.type.Money amount = 3;</code>
     */
    public com.google.type.Money getAmount() {
      if (compensationAmountCase_ == 3) {
        return (com.google.type.Money) compensationAmount_;
      }
      return com.google.type.Money.getDefaultInstance();
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Compensation amount.
     * </pre>
     *
     * <code>.google.type.Money amount = 3;</code>
     */
    public com.google.type.MoneyOrBuilder getAmountOrBuilder() {
      if (compensationAmountCase_ == 3) {
        return (com.google.type.Money) compensationAmount_;
      }
      return com.google.type.Money.getDefaultInstance();
    }

    public static final int RANGE_FIELD_NUMBER = 4;
    /**
     *
     *
     * <pre>
     * Optional.
     * Compensation range.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4;</code>
     */
    public boolean hasRange() {
      return compensationAmountCase_ == 4;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Compensation range.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4;</code>
     */
    public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange getRange() {
      if (compensationAmountCase_ == 4) {
        return (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange)
            compensationAmount_;
      }
      return com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange
          .getDefaultInstance();
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Compensation range.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4;</code>
     */
    public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder
        getRangeOrBuilder() {
      if (compensationAmountCase_ == 4) {
        return (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange)
            compensationAmount_;
      }
      return com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange
          .getDefaultInstance();
    }

    public static final int DESCRIPTION_FIELD_NUMBER = 5;
    private volatile java.lang.Object description_;
    /**
     *
     *
     * <pre>
     * Optional.
     * Compensation description.  For example, could
     * indicate equity terms or provide additional context to an estimated
     * bonus.
     * </pre>
     *
     * <code>string description = 5;</code>
     */
    public java.lang.String getDescription() {
      java.lang.Object ref = description_;
      if (ref instanceof java.lang.String) {
        return (java.lang.String) ref;
      } else {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        description_ = s;
        return s;
      }
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Compensation description.  For example, could
     * indicate equity terms or provide additional context to an estimated
     * bonus.
     * </pre>
     *
     * <code>string description = 5;</code>
     */
    public com.google.protobuf.ByteString getDescriptionBytes() {
      java.lang.Object ref = description_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        description_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int EXPECTED_UNITS_PER_YEAR_FIELD_NUMBER = 6;
    private com.google.protobuf.DoubleValue expectedUnitsPerYear_;
    /**
     *
     *
     * <pre>
     * Optional.
     * Expected number of units paid each year. If not specified, when
     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types] is FULLTIME, a default value is inferred
     * based on [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit]. Default values:
     * - HOURLY: 2080
     * - DAILY: 260
     * - WEEKLY: 52
     * - MONTHLY: 12
     * - ANNUAL: 1
     * </pre>
     *
     * <code>.google.protobuf.DoubleValue expected_units_per_year = 6;</code>
     */
    public boolean hasExpectedUnitsPerYear() {
      return expectedUnitsPerYear_ != null;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Expected number of units paid each year. If not specified, when
     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types] is FULLTIME, a default value is inferred
     * based on [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit]. Default values:
     * - HOURLY: 2080
     * - DAILY: 260
     * - WEEKLY: 52
     * - MONTHLY: 12
     * - ANNUAL: 1
     * </pre>
     *
     * <code>.google.protobuf.DoubleValue expected_units_per_year = 6;</code>
     */
    public com.google.protobuf.DoubleValue getExpectedUnitsPerYear() {
      return expectedUnitsPerYear_ == null
          ? com.google.protobuf.DoubleValue.getDefaultInstance()
          : expectedUnitsPerYear_;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Expected number of units paid each year. If not specified, when
     * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types] is FULLTIME, a default value is inferred
     * based on [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit]. Default values:
     * - HOURLY: 2080
     * - DAILY: 260
     * - WEEKLY: 52
     * - MONTHLY: 12
     * - ANNUAL: 1
     * </pre>
     *
     * <code>.google.protobuf.DoubleValue expected_units_per_year = 6;</code>
     */
    public com.google.protobuf.DoubleValueOrBuilder getExpectedUnitsPerYearOrBuilder() {
      return getExpectedUnitsPerYear();
    }

    private byte memoizedIsInitialized = -1;

    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      if (type_
          != com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType
              .COMPENSATION_TYPE_UNSPECIFIED
              .getNumber()) {
        output.writeEnum(1, type_);
      }
      if (unit_
          != com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit
              .COMPENSATION_UNIT_UNSPECIFIED
              .getNumber()) {
        output.writeEnum(2, unit_);
      }
      if (compensationAmountCase_ == 3) {
        output.writeMessage(3, (com.google.type.Money) compensationAmount_);
      }
      if (compensationAmountCase_ == 4) {
        output.writeMessage(
            4,
            (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange)
                compensationAmount_);
      }
      if (!getDescriptionBytes().isEmpty()) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_);
      }
      if (expectedUnitsPerYear_ != null) {
        output.writeMessage(6, getExpectedUnitsPerYear());
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (type_
          != com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType
              .COMPENSATION_TYPE_UNSPECIFIED
              .getNumber()) {
        size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_);
      }
      if (unit_
          != com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit
              .COMPENSATION_UNIT_UNSPECIFIED
              .getNumber()) {
        size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, unit_);
      }
      if (compensationAmountCase_ == 3) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                3, (com.google.type.Money) compensationAmount_);
      }
      if (compensationAmountCase_ == 4) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(
                4,
                (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange)
                    compensationAmount_);
      }
      if (!getDescriptionBytes().isEmpty()) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_);
      }
      if (expectedUnitsPerYear_ != null) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(6, getExpectedUnitsPerYear());
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj instanceof com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry)) {
        return super.equals(obj);
      }
      com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry other =
          (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) obj;

      if (type_ != other.type_) return false;
      if (unit_ != other.unit_) return false;
      if (!getDescription().equals(other.getDescription())) return false;
      if (hasExpectedUnitsPerYear() != other.hasExpectedUnitsPerYear()) return false;
      if (hasExpectedUnitsPerYear()) {
        if (!getExpectedUnitsPerYear().equals(other.getExpectedUnitsPerYear())) return false;
      }
      if (!getCompensationAmountCase().equals(other.getCompensationAmountCase())) return false;
      switch (compensationAmountCase_) {
        case 3:
          if (!getAmount().equals(other.getAmount())) return false;
          break;
        case 4:
          if (!getRange().equals(other.getRange())) return false;
          break;
        case 0:
        default:
      }
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + TYPE_FIELD_NUMBER;
      hash = (53 * hash) + type_;
      hash = (37 * hash) + UNIT_FIELD_NUMBER;
      hash = (53 * hash) + unit_;
      hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER;
      hash = (53 * hash) + getDescription().hashCode();
      if (hasExpectedUnitsPerYear()) {
        hash = (37 * hash) + EXPECTED_UNITS_PER_YEAR_FIELD_NUMBER;
        hash = (53 * hash) + getExpectedUnitsPerYear().hashCode();
      }
      switch (compensationAmountCase_) {
        case 3:
          hash = (37 * hash) + AMOUNT_FIELD_NUMBER;
          hash = (53 * hash) + getAmount().hashCode();
          break;
        case 4:
          hash = (37 * hash) + RANGE_FIELD_NUMBER;
          hash = (53 * hash) + getRange().hashCode();
          break;
        case 0:
        default:
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom(
        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom(
        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom(
        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom(
        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom(
        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry
        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry
        parseDelimitedFrom(
            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom(
        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() {
      return newBuilder();
    }

    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }

    public static Builder newBuilder(
        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }

    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     *
     *
     * <pre>
     * A compensation entry that represents one component of compensation, such
     * as base pay, bonus, or other compensation type.
     * Annualization: One compensation entry can be annualized if
     * - it contains valid [amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] or [range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range].
     * - and its [expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year] is set or can be derived.
     * Its annualized range is determined as ([amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount] or [range][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.range]) times
     * [expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
     * </pre>
     *
     * Protobuf type {@code google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry)
        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.talent.v4beta1.CommonProto
            .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.talent.v4beta1.CommonProto
            .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.class,
                com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder.class);
      }

      // Construct using
      // com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }

      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
      }

      @java.lang.Override
      public Builder clear() {
        super.clear();
        type_ = 0;

        unit_ = 0;

        description_ = "";

        if (expectedUnitsPerYearBuilder_ == null) {
          expectedUnitsPerYear_ = null;
        } else {
          expectedUnitsPerYear_ = null;
          expectedUnitsPerYearBuilder_ = null;
        }
        compensationAmountCase_ = 0;
        compensationAmount_ = null;
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.cloud.talent.v4beta1.CommonProto
            .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationEntry_descriptor;
      }

      @java.lang.Override
      public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry
          getDefaultInstanceForType() {
        return com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry
            .getDefaultInstance();
      }

      @java.lang.Override
      public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry build() {
        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry buildPartial() {
        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry result =
            new com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry(this);
        result.type_ = type_;
        result.unit_ = unit_;
        if (compensationAmountCase_ == 3) {
          if (amountBuilder_ == null) {
            result.compensationAmount_ = compensationAmount_;
          } else {
            result.compensationAmount_ = amountBuilder_.build();
          }
        }
        if (compensationAmountCase_ == 4) {
          if (rangeBuilder_ == null) {
            result.compensationAmount_ = compensationAmount_;
          } else {
            result.compensationAmount_ = rangeBuilder_.build();
          }
        }
        result.description_ = description_;
        if (expectedUnitsPerYearBuilder_ == null) {
          result.expectedUnitsPerYear_ = expectedUnitsPerYear_;
        } else {
          result.expectedUnitsPerYear_ = expectedUnitsPerYearBuilder_.build();
        }
        result.compensationAmountCase_ = compensationAmountCase_;
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }

      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.setField(field, value);
      }

      @java.lang.Override
      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }

      @java.lang.Override
      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }

      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index,
          java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }

      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) {
          return mergeFrom(
              (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(
          com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry other) {
        if (other
            == com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry
                .getDefaultInstance()) return this;
        if (other.type_ != 0) {
          setTypeValue(other.getTypeValue());
        }
        if (other.unit_ != 0) {
          setUnitValue(other.getUnitValue());
        }
        if (!other.getDescription().isEmpty()) {
          description_ = other.description_;
          onChanged();
        }
        if (other.hasExpectedUnitsPerYear()) {
          mergeExpectedUnitsPerYear(other.getExpectedUnitsPerYear());
        }
        switch (other.getCompensationAmountCase()) {
          case AMOUNT:
            {
              mergeAmount(other.getAmount());
              break;
            }
          case RANGE:
            {
              mergeRange(other.getRange());
              break;
            }
          case COMPENSATIONAMOUNT_NOT_SET:
            {
              break;
            }
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage =
              (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry)
                  e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private int compensationAmountCase_ = 0;
      private java.lang.Object compensationAmount_;

      public CompensationAmountCase getCompensationAmountCase() {
        return CompensationAmountCase.forNumber(compensationAmountCase_);
      }

      public Builder clearCompensationAmount() {
        compensationAmountCase_ = 0;
        compensationAmount_ = null;
        onChanged();
        return this;
      }

      private int type_ = 0;
      /**
       *
       *
       * <pre>
       * Optional.
       * Compensation type.
       * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1;</code>
       */
      public int getTypeValue() {
        return type_;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Compensation type.
       * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1;</code>
       */
      public Builder setTypeValue(int value) {
        type_ = value;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Compensation type.
       * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1;</code>
       */
      public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType getType() {
        @SuppressWarnings("deprecation")
        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType result =
            com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType.valueOf(type_);
        return result == null
            ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType.UNRECOGNIZED
            : result;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Compensation type.
       * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1;</code>
       */
      public Builder setType(
          com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType value) {
        if (value == null) {
          throw new NullPointerException();
        }

        type_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Compensation type.
       * Default is [CompensationUnit.OTHER_COMPENSATION_TYPE][].
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1;</code>
       */
      public Builder clearType() {

        type_ = 0;
        onChanged();
        return this;
      }

      private int unit_ = 0;
      /**
       *
       *
       * <pre>
       * Optional.
       * Frequency of the specified amount.
       * Default is [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2;</code>
       */
      public int getUnitValue() {
        return unit_;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Frequency of the specified amount.
       * Default is [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2;</code>
       */
      public Builder setUnitValue(int value) {
        unit_ = value;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Frequency of the specified amount.
       * Default is [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2;</code>
       */
      public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit getUnit() {
        @SuppressWarnings("deprecation")
        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit result =
            com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.valueOf(unit_);
        return result == null
            ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.UNRECOGNIZED
            : result;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Frequency of the specified amount.
       * Default is [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2;</code>
       */
      public Builder setUnit(
          com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit value) {
        if (value == null) {
          throw new NullPointerException();
        }

        unit_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Frequency of the specified amount.
       * Default is [CompensationUnit.OTHER_COMPENSATION_UNIT][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.OTHER_COMPENSATION_UNIT].
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2;</code>
       */
      public Builder clearUnit() {

        unit_ = 0;
        onChanged();
        return this;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>
          amountBuilder_;
      /**
       *
       *
       * <pre>
       * Optional.
       * Compensation amount.
       * </pre>
       *
       * <code>.google.type.Money amount = 3;</code>
       */
      public boolean hasAmount() {
        return compensationAmountCase_ == 3;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Compensation amount.
       * </pre>
       *
       * <code>.google.type.Money amount = 3;</code>
       */
      public com.google.type.Money getAmount() {
        if (amountBuilder_ == null) {
          if (compensationAmountCase_ == 3) {
            return (com.google.type.Money) compensationAmount_;
          }
          return com.google.type.Money.getDefaultInstance();
        } else {
          if (compensationAmountCase_ == 3) {
            return amountBuilder_.getMessage();
          }
          return com.google.type.Money.getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Compensation amount.
       * </pre>
       *
       * <code>.google.type.Money amount = 3;</code>
       */
      public Builder setAmount(com.google.type.Money value) {
        if (amountBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          compensationAmount_ = value;
          onChanged();
        } else {
          amountBuilder_.setMessage(value);
        }
        compensationAmountCase_ = 3;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Compensation amount.
       * </pre>
       *
       * <code>.google.type.Money amount = 3;</code>
       */
      public Builder setAmount(com.google.type.Money.Builder builderForValue) {
        if (amountBuilder_ == null) {
          compensationAmount_ = builderForValue.build();
          onChanged();
        } else {
          amountBuilder_.setMessage(builderForValue.build());
        }
        compensationAmountCase_ = 3;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Compensation amount.
       * </pre>
       *
       * <code>.google.type.Money amount = 3;</code>
       */
      public Builder mergeAmount(com.google.type.Money value) {
        if (amountBuilder_ == null) {
          if (compensationAmountCase_ == 3
              && compensationAmount_ != com.google.type.Money.getDefaultInstance()) {
            compensationAmount_ =
                com.google.type.Money.newBuilder((com.google.type.Money) compensationAmount_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            compensationAmount_ = value;
          }
          onChanged();
        } else {
          if (compensationAmountCase_ == 3) {
            amountBuilder_.mergeFrom(value);
          }
          amountBuilder_.setMessage(value);
        }
        compensationAmountCase_ = 3;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Compensation amount.
       * </pre>
       *
       * <code>.google.type.Money amount = 3;</code>
       */
      public Builder clearAmount() {
        if (amountBuilder_ == null) {
          if (compensationAmountCase_ == 3) {
            compensationAmountCase_ = 0;
            compensationAmount_ = null;
            onChanged();
          }
        } else {
          if (compensationAmountCase_ == 3) {
            compensationAmountCase_ = 0;
            compensationAmount_ = null;
          }
          amountBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Compensation amount.
       * </pre>
       *
       * <code>.google.type.Money amount = 3;</code>
       */
      public com.google.type.Money.Builder getAmountBuilder() {
        return getAmountFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Compensation amount.
       * </pre>
       *
       * <code>.google.type.Money amount = 3;</code>
       */
      public com.google.type.MoneyOrBuilder getAmountOrBuilder() {
        if ((compensationAmountCase_ == 3) && (amountBuilder_ != null)) {
          return amountBuilder_.getMessageOrBuilder();
        } else {
          if (compensationAmountCase_ == 3) {
            return (com.google.type.Money) compensationAmount_;
          }
          return com.google.type.Money.getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Compensation amount.
       * </pre>
       *
       * <code>.google.type.Money amount = 3;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>
          getAmountFieldBuilder() {
        if (amountBuilder_ == null) {
          if (!(compensationAmountCase_ == 3)) {
            compensationAmount_ = com.google.type.Money.getDefaultInstance();
          }
          amountBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.type.Money,
                  com.google.type.Money.Builder,
                  com.google.type.MoneyOrBuilder>(
                  (com.google.type.Money) compensationAmount_, getParentForChildren(), isClean());
          compensationAmount_ = null;
        }
        compensationAmountCase_ = 3;
        onChanged();
        ;
        return amountBuilder_;
      }

      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange,
              com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder,
              com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder>
          rangeBuilder_;
      /**
       *
       *
       * <pre>
       * Optional.
       * Compensation range.
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4;</code>
       */
      public boolean hasRange() {
        return compensationAmountCase_ == 4;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Compensation range.
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4;</code>
       */
      public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange getRange() {
        if (rangeBuilder_ == null) {
          if (compensationAmountCase_ == 4) {
            return (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange)
                compensationAmount_;
          }
          return com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange
              .getDefaultInstance();
        } else {
          if (compensationAmountCase_ == 4) {
            return rangeBuilder_.getMessage();
          }
          return com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Compensation range.
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4;</code>
       */
      public Builder setRange(
          com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) {
        if (rangeBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          compensationAmount_ = value;
          onChanged();
        } else {
          rangeBuilder_.setMessage(value);
        }
        compensationAmountCase_ = 4;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Compensation range.
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4;</code>
       */
      public Builder setRange(
          com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder
              builderForValue) {
        if (rangeBuilder_ == null) {
          compensationAmount_ = builderForValue.build();
          onChanged();
        } else {
          rangeBuilder_.setMessage(builderForValue.build());
        }
        compensationAmountCase_ = 4;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Compensation range.
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4;</code>
       */
      public Builder mergeRange(
          com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) {
        if (rangeBuilder_ == null) {
          if (compensationAmountCase_ == 4
              && compensationAmount_
                  != com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange
                      .getDefaultInstance()) {
            compensationAmount_ =
                com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.newBuilder(
                        (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange)
                            compensationAmount_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            compensationAmount_ = value;
          }
          onChanged();
        } else {
          if (compensationAmountCase_ == 4) {
            rangeBuilder_.mergeFrom(value);
          }
          rangeBuilder_.setMessage(value);
        }
        compensationAmountCase_ = 4;
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Compensation range.
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4;</code>
       */
      public Builder clearRange() {
        if (rangeBuilder_ == null) {
          if (compensationAmountCase_ == 4) {
            compensationAmountCase_ = 0;
            compensationAmount_ = null;
            onChanged();
          }
        } else {
          if (compensationAmountCase_ == 4) {
            compensationAmountCase_ = 0;
            compensationAmount_ = null;
          }
          rangeBuilder_.clear();
        }
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Compensation range.
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4;</code>
       */
      public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder
          getRangeBuilder() {
        return getRangeFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Compensation range.
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4;</code>
       */
      public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder
          getRangeOrBuilder() {
        if ((compensationAmountCase_ == 4) && (rangeBuilder_ != null)) {
          return rangeBuilder_.getMessageOrBuilder();
        } else {
          if (compensationAmountCase_ == 4) {
            return (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange)
                compensationAmount_;
          }
          return com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange
              .getDefaultInstance();
        }
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Compensation range.
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange,
              com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder,
              com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder>
          getRangeFieldBuilder() {
        if (rangeBuilder_ == null) {
          if (!(compensationAmountCase_ == 4)) {
            compensationAmount_ =
                com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange
                    .getDefaultInstance();
          }
          rangeBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange,
                  com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder,
                  com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder>(
                  (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange)
                      compensationAmount_,
                  getParentForChildren(),
                  isClean());
          compensationAmount_ = null;
        }
        compensationAmountCase_ = 4;
        onChanged();
        ;
        return rangeBuilder_;
      }

      private java.lang.Object description_ = "";
      /**
       *
       *
       * <pre>
       * Optional.
       * Compensation description.  For example, could
       * indicate equity terms or provide additional context to an estimated
       * bonus.
       * </pre>
       *
       * <code>string description = 5;</code>
       */
      public java.lang.String getDescription() {
        java.lang.Object ref = description_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          description_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Compensation description.  For example, could
       * indicate equity terms or provide additional context to an estimated
       * bonus.
       * </pre>
       *
       * <code>string description = 5;</code>
       */
      public com.google.protobuf.ByteString getDescriptionBytes() {
        java.lang.Object ref = description_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b =
              com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
          description_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Compensation description.  For example, could
       * indicate equity terms or provide additional context to an estimated
       * bonus.
       * </pre>
       *
       * <code>string description = 5;</code>
       */
      public Builder setDescription(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }

        description_ = value;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Compensation description.  For example, could
       * indicate equity terms or provide additional context to an estimated
       * bonus.
       * </pre>
       *
       * <code>string description = 5;</code>
       */
      public Builder clearDescription() {

        description_ = getDefaultInstance().getDescription();
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Compensation description.  For example, could
       * indicate equity terms or provide additional context to an estimated
       * bonus.
       * </pre>
       *
       * <code>string description = 5;</code>
       */
      public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);

        description_ = value;
        onChanged();
        return this;
      }

      private com.google.protobuf.DoubleValue expectedUnitsPerYear_;
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.DoubleValue,
              com.google.protobuf.DoubleValue.Builder,
              com.google.protobuf.DoubleValueOrBuilder>
          expectedUnitsPerYearBuilder_;
      /**
       *
       *
       * <pre>
       * Optional.
       * Expected number of units paid each year. If not specified, when
       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types] is FULLTIME, a default value is inferred
       * based on [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit]. Default values:
       * - HOURLY: 2080
       * - DAILY: 260
       * - WEEKLY: 52
       * - MONTHLY: 12
       * - ANNUAL: 1
       * </pre>
       *
       * <code>.google.protobuf.DoubleValue expected_units_per_year = 6;</code>
       */
      public boolean hasExpectedUnitsPerYear() {
        return expectedUnitsPerYearBuilder_ != null || expectedUnitsPerYear_ != null;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Expected number of units paid each year. If not specified, when
       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types] is FULLTIME, a default value is inferred
       * based on [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit]. Default values:
       * - HOURLY: 2080
       * - DAILY: 260
       * - WEEKLY: 52
       * - MONTHLY: 12
       * - ANNUAL: 1
       * </pre>
       *
       * <code>.google.protobuf.DoubleValue expected_units_per_year = 6;</code>
       */
      public com.google.protobuf.DoubleValue getExpectedUnitsPerYear() {
        if (expectedUnitsPerYearBuilder_ == null) {
          return expectedUnitsPerYear_ == null
              ? com.google.protobuf.DoubleValue.getDefaultInstance()
              : expectedUnitsPerYear_;
        } else {
          return expectedUnitsPerYearBuilder_.getMessage();
        }
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Expected number of units paid each year. If not specified, when
       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types] is FULLTIME, a default value is inferred
       * based on [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit]. Default values:
       * - HOURLY: 2080
       * - DAILY: 260
       * - WEEKLY: 52
       * - MONTHLY: 12
       * - ANNUAL: 1
       * </pre>
       *
       * <code>.google.protobuf.DoubleValue expected_units_per_year = 6;</code>
       */
      public Builder setExpectedUnitsPerYear(com.google.protobuf.DoubleValue value) {
        if (expectedUnitsPerYearBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          expectedUnitsPerYear_ = value;
          onChanged();
        } else {
          expectedUnitsPerYearBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Expected number of units paid each year. If not specified, when
       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types] is FULLTIME, a default value is inferred
       * based on [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit]. Default values:
       * - HOURLY: 2080
       * - DAILY: 260
       * - WEEKLY: 52
       * - MONTHLY: 12
       * - ANNUAL: 1
       * </pre>
       *
       * <code>.google.protobuf.DoubleValue expected_units_per_year = 6;</code>
       */
      public Builder setExpectedUnitsPerYear(
          com.google.protobuf.DoubleValue.Builder builderForValue) {
        if (expectedUnitsPerYearBuilder_ == null) {
          expectedUnitsPerYear_ = builderForValue.build();
          onChanged();
        } else {
          expectedUnitsPerYearBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Expected number of units paid each year. If not specified, when
       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types] is FULLTIME, a default value is inferred
       * based on [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit]. Default values:
       * - HOURLY: 2080
       * - DAILY: 260
       * - WEEKLY: 52
       * - MONTHLY: 12
       * - ANNUAL: 1
       * </pre>
       *
       * <code>.google.protobuf.DoubleValue expected_units_per_year = 6;</code>
       */
      public Builder mergeExpectedUnitsPerYear(com.google.protobuf.DoubleValue value) {
        if (expectedUnitsPerYearBuilder_ == null) {
          if (expectedUnitsPerYear_ != null) {
            expectedUnitsPerYear_ =
                com.google.protobuf.DoubleValue.newBuilder(expectedUnitsPerYear_)
                    .mergeFrom(value)
                    .buildPartial();
          } else {
            expectedUnitsPerYear_ = value;
          }
          onChanged();
        } else {
          expectedUnitsPerYearBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Expected number of units paid each year. If not specified, when
       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types] is FULLTIME, a default value is inferred
       * based on [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit]. Default values:
       * - HOURLY: 2080
       * - DAILY: 260
       * - WEEKLY: 52
       * - MONTHLY: 12
       * - ANNUAL: 1
       * </pre>
       *
       * <code>.google.protobuf.DoubleValue expected_units_per_year = 6;</code>
       */
      public Builder clearExpectedUnitsPerYear() {
        if (expectedUnitsPerYearBuilder_ == null) {
          expectedUnitsPerYear_ = null;
          onChanged();
        } else {
          expectedUnitsPerYear_ = null;
          expectedUnitsPerYearBuilder_ = null;
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Expected number of units paid each year. If not specified, when
       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types] is FULLTIME, a default value is inferred
       * based on [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit]. Default values:
       * - HOURLY: 2080
       * - DAILY: 260
       * - WEEKLY: 52
       * - MONTHLY: 12
       * - ANNUAL: 1
       * </pre>
       *
       * <code>.google.protobuf.DoubleValue expected_units_per_year = 6;</code>
       */
      public com.google.protobuf.DoubleValue.Builder getExpectedUnitsPerYearBuilder() {

        onChanged();
        return getExpectedUnitsPerYearFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Expected number of units paid each year. If not specified, when
       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types] is FULLTIME, a default value is inferred
       * based on [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit]. Default values:
       * - HOURLY: 2080
       * - DAILY: 260
       * - WEEKLY: 52
       * - MONTHLY: 12
       * - ANNUAL: 1
       * </pre>
       *
       * <code>.google.protobuf.DoubleValue expected_units_per_year = 6;</code>
       */
      public com.google.protobuf.DoubleValueOrBuilder getExpectedUnitsPerYearOrBuilder() {
        if (expectedUnitsPerYearBuilder_ != null) {
          return expectedUnitsPerYearBuilder_.getMessageOrBuilder();
        } else {
          return expectedUnitsPerYear_ == null
              ? com.google.protobuf.DoubleValue.getDefaultInstance()
              : expectedUnitsPerYear_;
        }
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * Expected number of units paid each year. If not specified, when
       * [Job.employment_types][google.cloud.talent.v4beta1.Job.employment_types] is FULLTIME, a default value is inferred
       * based on [unit][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.unit]. Default values:
       * - HOURLY: 2080
       * - DAILY: 260
       * - WEEKLY: 52
       * - MONTHLY: 12
       * - ANNUAL: 1
       * </pre>
       *
       * <code>.google.protobuf.DoubleValue expected_units_per_year = 6;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.protobuf.DoubleValue,
              com.google.protobuf.DoubleValue.Builder,
              com.google.protobuf.DoubleValueOrBuilder>
          getExpectedUnitsPerYearFieldBuilder() {
        if (expectedUnitsPerYearBuilder_ == null) {
          expectedUnitsPerYearBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.protobuf.DoubleValue,
                  com.google.protobuf.DoubleValue.Builder,
                  com.google.protobuf.DoubleValueOrBuilder>(
                  getExpectedUnitsPerYear(), getParentForChildren(), isClean());
          expectedUnitsPerYear_ = null;
        }
        return expectedUnitsPerYearBuilder_;
      }

      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }

      // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry)
    }

    // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry)
    private static final com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry
        DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry();
    }

    public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry
        getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<CompensationEntry> PARSER =
        new com.google.protobuf.AbstractParser<CompensationEntry>() {
          @java.lang.Override
          public CompensationEntry parsePartialFrom(
              com.google.protobuf.CodedInputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
            return new CompensationEntry(input, extensionRegistry);
          }
        };

    public static com.google.protobuf.Parser<CompensationEntry> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<CompensationEntry> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry
        getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public interface CompensationRangeOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.cloud.talent.v4beta1.CompensationInfo.CompensationRange)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * Optional.
     * The maximum amount of compensation. If left empty, the value is set
     * to a maximal compensation value and the currency code is set to
     * match the [currency code][google.type.Money.currency_code] of
     * min_compensation.
     * </pre>
     *
     * <code>.google.type.Money max_compensation = 2;</code>
     */
    boolean hasMaxCompensation();
    /**
     *
     *
     * <pre>
     * Optional.
     * The maximum amount of compensation. If left empty, the value is set
     * to a maximal compensation value and the currency code is set to
     * match the [currency code][google.type.Money.currency_code] of
     * min_compensation.
     * </pre>
     *
     * <code>.google.type.Money max_compensation = 2;</code>
     */
    com.google.type.Money getMaxCompensation();
    /**
     *
     *
     * <pre>
     * Optional.
     * The maximum amount of compensation. If left empty, the value is set
     * to a maximal compensation value and the currency code is set to
     * match the [currency code][google.type.Money.currency_code] of
     * min_compensation.
     * </pre>
     *
     * <code>.google.type.Money max_compensation = 2;</code>
     */
    com.google.type.MoneyOrBuilder getMaxCompensationOrBuilder();

    /**
     *
     *
     * <pre>
     * Optional.
     * The minimum amount of compensation. If left empty, the value is set
     * to zero and the currency code is set to match the
     * [currency code][google.type.Money.currency_code] of max_compensation.
     * </pre>
     *
     * <code>.google.type.Money min_compensation = 1;</code>
     */
    boolean hasMinCompensation();
    /**
     *
     *
     * <pre>
     * Optional.
     * The minimum amount of compensation. If left empty, the value is set
     * to zero and the currency code is set to match the
     * [currency code][google.type.Money.currency_code] of max_compensation.
     * </pre>
     *
     * <code>.google.type.Money min_compensation = 1;</code>
     */
    com.google.type.Money getMinCompensation();
    /**
     *
     *
     * <pre>
     * Optional.
     * The minimum amount of compensation. If left empty, the value is set
     * to zero and the currency code is set to match the
     * [currency code][google.type.Money.currency_code] of max_compensation.
     * </pre>
     *
     * <code>.google.type.Money min_compensation = 1;</code>
     */
    com.google.type.MoneyOrBuilder getMinCompensationOrBuilder();
  }
  /**
   *
   *
   * <pre>
   * Compensation range.
   * </pre>
   *
   * Protobuf type {@code google.cloud.talent.v4beta1.CompensationInfo.CompensationRange}
   */
  public static final class CompensationRange extends com.google.protobuf.GeneratedMessageV3
      implements
      // @@protoc_insertion_point(message_implements:google.cloud.talent.v4beta1.CompensationInfo.CompensationRange)
      CompensationRangeOrBuilder {
    private static final long serialVersionUID = 0L;
    // Use CompensationRange.newBuilder() to construct.
    private CompensationRange(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
      super(builder);
    }

    private CompensationRange() {}

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
      return this.unknownFields;
    }

    private CompensationRange(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      int mutable_bitField0_ = 0;
      com.google.protobuf.UnknownFieldSet.Builder unknownFields =
          com.google.protobuf.UnknownFieldSet.newBuilder();
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10:
              {
                com.google.type.Money.Builder subBuilder = null;
                if (minCompensation_ != null) {
                  subBuilder = minCompensation_.toBuilder();
                }
                minCompensation_ =
                    input.readMessage(com.google.type.Money.parser(), extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom(minCompensation_);
                  minCompensation_ = subBuilder.buildPartial();
                }

                break;
              }
            case 18:
              {
                com.google.type.Money.Builder subBuilder = null;
                if (maxCompensation_ != null) {
                  subBuilder = maxCompensation_.toBuilder();
                }
                maxCompensation_ =
                    input.readMessage(com.google.type.Money.parser(), extensionRegistry);
                if (subBuilder != null) {
                  subBuilder.mergeFrom(maxCompensation_);
                  maxCompensation_ = subBuilder.buildPartial();
                }

                break;
              }
            default:
              {
                if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
                  done = true;
                }
                break;
              }
          }
        }
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.setUnfinishedMessage(this);
      } catch (java.io.IOException e) {
        throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
      } finally {
        this.unknownFields = unknownFields.build();
        makeExtensionsImmutable();
      }
    }

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.talent.v4beta1.CommonProto
          .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.talent.v4beta1.CommonProto
          .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.class,
              com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder.class);
    }

    public static final int MAX_COMPENSATION_FIELD_NUMBER = 2;
    private com.google.type.Money maxCompensation_;
    /**
     *
     *
     * <pre>
     * Optional.
     * The maximum amount of compensation. If left empty, the value is set
     * to a maximal compensation value and the currency code is set to
     * match the [currency code][google.type.Money.currency_code] of
     * min_compensation.
     * </pre>
     *
     * <code>.google.type.Money max_compensation = 2;</code>
     */
    public boolean hasMaxCompensation() {
      return maxCompensation_ != null;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The maximum amount of compensation. If left empty, the value is set
     * to a maximal compensation value and the currency code is set to
     * match the [currency code][google.type.Money.currency_code] of
     * min_compensation.
     * </pre>
     *
     * <code>.google.type.Money max_compensation = 2;</code>
     */
    public com.google.type.Money getMaxCompensation() {
      return maxCompensation_ == null
          ? com.google.type.Money.getDefaultInstance()
          : maxCompensation_;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The maximum amount of compensation. If left empty, the value is set
     * to a maximal compensation value and the currency code is set to
     * match the [currency code][google.type.Money.currency_code] of
     * min_compensation.
     * </pre>
     *
     * <code>.google.type.Money max_compensation = 2;</code>
     */
    public com.google.type.MoneyOrBuilder getMaxCompensationOrBuilder() {
      return getMaxCompensation();
    }

    public static final int MIN_COMPENSATION_FIELD_NUMBER = 1;
    private com.google.type.Money minCompensation_;
    /**
     *
     *
     * <pre>
     * Optional.
     * The minimum amount of compensation. If left empty, the value is set
     * to zero and the currency code is set to match the
     * [currency code][google.type.Money.currency_code] of max_compensation.
     * </pre>
     *
     * <code>.google.type.Money min_compensation = 1;</code>
     */
    public boolean hasMinCompensation() {
      return minCompensation_ != null;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The minimum amount of compensation. If left empty, the value is set
     * to zero and the currency code is set to match the
     * [currency code][google.type.Money.currency_code] of max_compensation.
     * </pre>
     *
     * <code>.google.type.Money min_compensation = 1;</code>
     */
    public com.google.type.Money getMinCompensation() {
      return minCompensation_ == null
          ? com.google.type.Money.getDefaultInstance()
          : minCompensation_;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * The minimum amount of compensation. If left empty, the value is set
     * to zero and the currency code is set to match the
     * [currency code][google.type.Money.currency_code] of max_compensation.
     * </pre>
     *
     * <code>.google.type.Money min_compensation = 1;</code>
     */
    public com.google.type.MoneyOrBuilder getMinCompensationOrBuilder() {
      return getMinCompensation();
    }

    private byte memoizedIsInitialized = -1;

    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      if (minCompensation_ != null) {
        output.writeMessage(1, getMinCompensation());
      }
      if (maxCompensation_ != null) {
        output.writeMessage(2, getMaxCompensation());
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (minCompensation_ != null) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getMinCompensation());
      }
      if (maxCompensation_ != null) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getMaxCompensation());
      }
      size += unknownFields.getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj instanceof com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange)) {
        return super.equals(obj);
      }
      com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange other =
          (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) obj;

      if (hasMaxCompensation() != other.hasMaxCompensation()) return false;
      if (hasMaxCompensation()) {
        if (!getMaxCompensation().equals(other.getMaxCompensation())) return false;
      }
      if (hasMinCompensation() != other.hasMinCompensation()) return false;
      if (hasMinCompensation()) {
        if (!getMinCompensation().equals(other.getMinCompensation())) return false;
      }
      if (!unknownFields.equals(other.unknownFields)) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      if (hasMaxCompensation()) {
        hash = (37 * hash) + MAX_COMPENSATION_FIELD_NUMBER;
        hash = (53 * hash) + getMaxCompensation().hashCode();
      }
      if (hasMinCompensation()) {
        hash = (37 * hash) + MIN_COMPENSATION_FIELD_NUMBER;
        hash = (53 * hash) + getMinCompensation().hashCode();
      }
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom(
        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom(
        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom(
        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom(
        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom(
        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange
        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange
        parseDelimitedFrom(
            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom(
        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
    }

    public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() {
      return newBuilder();
    }

    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }

    public static Builder newBuilder(
        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }

    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(
        com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }
    /**
     *
     *
     * <pre>
     * Compensation range.
     * </pre>
     *
     * Protobuf type {@code google.cloud.talent.v4beta1.CompensationInfo.CompensationRange}
     */
    public static final class Builder
        extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CompensationInfo.CompensationRange)
        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.cloud.talent.v4beta1.CommonProto
            .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.cloud.talent.v4beta1.CommonProto
            .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.class,
                com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder.class);
      }

      // Construct using
      // com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }

      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {}
      }

      @java.lang.Override
      public Builder clear() {
        super.clear();
        if (maxCompensationBuilder_ == null) {
          maxCompensation_ = null;
        } else {
          maxCompensation_ = null;
          maxCompensationBuilder_ = null;
        }
        if (minCompensationBuilder_ == null) {
          minCompensation_ = null;
        } else {
          minCompensation_ = null;
          minCompensationBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.cloud.talent.v4beta1.CommonProto
            .internal_static_google_cloud_talent_v4beta1_CompensationInfo_CompensationRange_descriptor;
      }

      @java.lang.Override
      public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange
          getDefaultInstanceForType() {
        return com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange
            .getDefaultInstance();
      }

      @java.lang.Override
      public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange build() {
        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange buildPartial() {
        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange result =
            new com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange(this);
        if (maxCompensationBuilder_ == null) {
          result.maxCompensation_ = maxCompensation_;
        } else {
          result.maxCompensation_ = maxCompensationBuilder_.build();
        }
        if (minCompensationBuilder_ == null) {
          result.minCompensation_ = minCompensation_;
        } else {
          result.minCompensation_ = minCompensationBuilder_.build();
        }
        onBuilt();
        return result;
      }

      @java.lang.Override
      public Builder clone() {
        return super.clone();
      }

      @java.lang.Override
      public Builder setField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.setField(field, value);
      }

      @java.lang.Override
      public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
        return super.clearField(field);
      }

      @java.lang.Override
      public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
        return super.clearOneof(oneof);
      }

      @java.lang.Override
      public Builder setRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field,
          int index,
          java.lang.Object value) {
        return super.setRepeatedField(field, index, value);
      }

      @java.lang.Override
      public Builder addRepeatedField(
          com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
        return super.addRepeatedField(field, value);
      }

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) {
          return mergeFrom(
              (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(
          com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange other) {
        if (other
            == com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange
                .getDefaultInstance()) return this;
        if (other.hasMaxCompensation()) {
          mergeMaxCompensation(other.getMaxCompensation());
        }
        if (other.hasMinCompensation()) {
          mergeMinCompensation(other.getMinCompensation());
        }
        this.mergeUnknownFields(other.unknownFields);
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage =
              (com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange)
                  e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private com.google.type.Money maxCompensation_;
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>
          maxCompensationBuilder_;
      /**
       *
       *
       * <pre>
       * Optional.
       * The maximum amount of compensation. If left empty, the value is set
       * to a maximal compensation value and the currency code is set to
       * match the [currency code][google.type.Money.currency_code] of
       * min_compensation.
       * </pre>
       *
       * <code>.google.type.Money max_compensation = 2;</code>
       */
      public boolean hasMaxCompensation() {
        return maxCompensationBuilder_ != null || maxCompensation_ != null;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * The maximum amount of compensation. If left empty, the value is set
       * to a maximal compensation value and the currency code is set to
       * match the [currency code][google.type.Money.currency_code] of
       * min_compensation.
       * </pre>
       *
       * <code>.google.type.Money max_compensation = 2;</code>
       */
      public com.google.type.Money getMaxCompensation() {
        if (maxCompensationBuilder_ == null) {
          return maxCompensation_ == null
              ? com.google.type.Money.getDefaultInstance()
              : maxCompensation_;
        } else {
          return maxCompensationBuilder_.getMessage();
        }
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * The maximum amount of compensation. If left empty, the value is set
       * to a maximal compensation value and the currency code is set to
       * match the [currency code][google.type.Money.currency_code] of
       * min_compensation.
       * </pre>
       *
       * <code>.google.type.Money max_compensation = 2;</code>
       */
      public Builder setMaxCompensation(com.google.type.Money value) {
        if (maxCompensationBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          maxCompensation_ = value;
          onChanged();
        } else {
          maxCompensationBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * The maximum amount of compensation. If left empty, the value is set
       * to a maximal compensation value and the currency code is set to
       * match the [currency code][google.type.Money.currency_code] of
       * min_compensation.
       * </pre>
       *
       * <code>.google.type.Money max_compensation = 2;</code>
       */
      public Builder setMaxCompensation(com.google.type.Money.Builder builderForValue) {
        if (maxCompensationBuilder_ == null) {
          maxCompensation_ = builderForValue.build();
          onChanged();
        } else {
          maxCompensationBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * The maximum amount of compensation. If left empty, the value is set
       * to a maximal compensation value and the currency code is set to
       * match the [currency code][google.type.Money.currency_code] of
       * min_compensation.
       * </pre>
       *
       * <code>.google.type.Money max_compensation = 2;</code>
       */
      public Builder mergeMaxCompensation(com.google.type.Money value) {
        if (maxCompensationBuilder_ == null) {
          if (maxCompensation_ != null) {
            maxCompensation_ =
                com.google.type.Money.newBuilder(maxCompensation_).mergeFrom(value).buildPartial();
          } else {
            maxCompensation_ = value;
          }
          onChanged();
        } else {
          maxCompensationBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * The maximum amount of compensation. If left empty, the value is set
       * to a maximal compensation value and the currency code is set to
       * match the [currency code][google.type.Money.currency_code] of
       * min_compensation.
       * </pre>
       *
       * <code>.google.type.Money max_compensation = 2;</code>
       */
      public Builder clearMaxCompensation() {
        if (maxCompensationBuilder_ == null) {
          maxCompensation_ = null;
          onChanged();
        } else {
          maxCompensation_ = null;
          maxCompensationBuilder_ = null;
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * The maximum amount of compensation. If left empty, the value is set
       * to a maximal compensation value and the currency code is set to
       * match the [currency code][google.type.Money.currency_code] of
       * min_compensation.
       * </pre>
       *
       * <code>.google.type.Money max_compensation = 2;</code>
       */
      public com.google.type.Money.Builder getMaxCompensationBuilder() {

        onChanged();
        return getMaxCompensationFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * The maximum amount of compensation. If left empty, the value is set
       * to a maximal compensation value and the currency code is set to
       * match the [currency code][google.type.Money.currency_code] of
       * min_compensation.
       * </pre>
       *
       * <code>.google.type.Money max_compensation = 2;</code>
       */
      public com.google.type.MoneyOrBuilder getMaxCompensationOrBuilder() {
        if (maxCompensationBuilder_ != null) {
          return maxCompensationBuilder_.getMessageOrBuilder();
        } else {
          return maxCompensation_ == null
              ? com.google.type.Money.getDefaultInstance()
              : maxCompensation_;
        }
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * The maximum amount of compensation. If left empty, the value is set
       * to a maximal compensation value and the currency code is set to
       * match the [currency code][google.type.Money.currency_code] of
       * min_compensation.
       * </pre>
       *
       * <code>.google.type.Money max_compensation = 2;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>
          getMaxCompensationFieldBuilder() {
        if (maxCompensationBuilder_ == null) {
          maxCompensationBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.type.Money,
                  com.google.type.Money.Builder,
                  com.google.type.MoneyOrBuilder>(
                  getMaxCompensation(), getParentForChildren(), isClean());
          maxCompensation_ = null;
        }
        return maxCompensationBuilder_;
      }

      private com.google.type.Money minCompensation_;
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>
          minCompensationBuilder_;
      /**
       *
       *
       * <pre>
       * Optional.
       * The minimum amount of compensation. If left empty, the value is set
       * to zero and the currency code is set to match the
       * [currency code][google.type.Money.currency_code] of max_compensation.
       * </pre>
       *
       * <code>.google.type.Money min_compensation = 1;</code>
       */
      public boolean hasMinCompensation() {
        return minCompensationBuilder_ != null || minCompensation_ != null;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * The minimum amount of compensation. If left empty, the value is set
       * to zero and the currency code is set to match the
       * [currency code][google.type.Money.currency_code] of max_compensation.
       * </pre>
       *
       * <code>.google.type.Money min_compensation = 1;</code>
       */
      public com.google.type.Money getMinCompensation() {
        if (minCompensationBuilder_ == null) {
          return minCompensation_ == null
              ? com.google.type.Money.getDefaultInstance()
              : minCompensation_;
        } else {
          return minCompensationBuilder_.getMessage();
        }
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * The minimum amount of compensation. If left empty, the value is set
       * to zero and the currency code is set to match the
       * [currency code][google.type.Money.currency_code] of max_compensation.
       * </pre>
       *
       * <code>.google.type.Money min_compensation = 1;</code>
       */
      public Builder setMinCompensation(com.google.type.Money value) {
        if (minCompensationBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          minCompensation_ = value;
          onChanged();
        } else {
          minCompensationBuilder_.setMessage(value);
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * The minimum amount of compensation. If left empty, the value is set
       * to zero and the currency code is set to match the
       * [currency code][google.type.Money.currency_code] of max_compensation.
       * </pre>
       *
       * <code>.google.type.Money min_compensation = 1;</code>
       */
      public Builder setMinCompensation(com.google.type.Money.Builder builderForValue) {
        if (minCompensationBuilder_ == null) {
          minCompensation_ = builderForValue.build();
          onChanged();
        } else {
          minCompensationBuilder_.setMessage(builderForValue.build());
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * The minimum amount of compensation. If left empty, the value is set
       * to zero and the currency code is set to match the
       * [currency code][google.type.Money.currency_code] of max_compensation.
       * </pre>
       *
       * <code>.google.type.Money min_compensation = 1;</code>
       */
      public Builder mergeMinCompensation(com.google.type.Money value) {
        if (minCompensationBuilder_ == null) {
          if (minCompensation_ != null) {
            minCompensation_ =
                com.google.type.Money.newBuilder(minCompensation_).mergeFrom(value).buildPartial();
          } else {
            minCompensation_ = value;
          }
          onChanged();
        } else {
          minCompensationBuilder_.mergeFrom(value);
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * The minimum amount of compensation. If left empty, the value is set
       * to zero and the currency code is set to match the
       * [currency code][google.type.Money.currency_code] of max_compensation.
       * </pre>
       *
       * <code>.google.type.Money min_compensation = 1;</code>
       */
      public Builder clearMinCompensation() {
        if (minCompensationBuilder_ == null) {
          minCompensation_ = null;
          onChanged();
        } else {
          minCompensation_ = null;
          minCompensationBuilder_ = null;
        }

        return this;
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * The minimum amount of compensation. If left empty, the value is set
       * to zero and the currency code is set to match the
       * [currency code][google.type.Money.currency_code] of max_compensation.
       * </pre>
       *
       * <code>.google.type.Money min_compensation = 1;</code>
       */
      public com.google.type.Money.Builder getMinCompensationBuilder() {

        onChanged();
        return getMinCompensationFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * The minimum amount of compensation. If left empty, the value is set
       * to zero and the currency code is set to match the
       * [currency code][google.type.Money.currency_code] of max_compensation.
       * </pre>
       *
       * <code>.google.type.Money min_compensation = 1;</code>
       */
      public com.google.type.MoneyOrBuilder getMinCompensationOrBuilder() {
        if (minCompensationBuilder_ != null) {
          return minCompensationBuilder_.getMessageOrBuilder();
        } else {
          return minCompensation_ == null
              ? com.google.type.Money.getDefaultInstance()
              : minCompensation_;
        }
      }
      /**
       *
       *
       * <pre>
       * Optional.
       * The minimum amount of compensation. If left empty, the value is set
       * to zero and the currency code is set to match the
       * [currency code][google.type.Money.currency_code] of max_compensation.
       * </pre>
       *
       * <code>.google.type.Money min_compensation = 1;</code>
       */
      private com.google.protobuf.SingleFieldBuilderV3<
              com.google.type.Money, com.google.type.Money.Builder, com.google.type.MoneyOrBuilder>
          getMinCompensationFieldBuilder() {
        if (minCompensationBuilder_ == null) {
          minCompensationBuilder_ =
              new com.google.protobuf.SingleFieldBuilderV3<
                  com.google.type.Money,
                  com.google.type.Money.Builder,
                  com.google.type.MoneyOrBuilder>(
                  getMinCompensation(), getParentForChildren(), isClean());
          minCompensation_ = null;
        }
        return minCompensationBuilder_;
      }

      @java.lang.Override
      public final Builder setUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.setUnknownFields(unknownFields);
      }

      @java.lang.Override
      public final Builder mergeUnknownFields(
          final com.google.protobuf.UnknownFieldSet unknownFields) {
        return super.mergeUnknownFields(unknownFields);
      }

      // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CompensationInfo.CompensationRange)
    }

    // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompensationInfo.CompensationRange)
    private static final com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange
        DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange();
    }

    public static com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange
        getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<CompensationRange> PARSER =
        new com.google.protobuf.AbstractParser<CompensationRange>() {
          @java.lang.Override
          public CompensationRange parsePartialFrom(
              com.google.protobuf.CodedInputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
            return new CompensationRange(input, extensionRegistry);
          }
        };

    public static com.google.protobuf.Parser<CompensationRange> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<CompensationRange> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange
        getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  private int bitField0_;
  public static final int ENTRIES_FIELD_NUMBER = 1;
  private java.util.List<com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry>
      entries_;
  /**
   *
   *
   * <pre>
   * Optional.
   * Job compensation information.
   * At most one entry can be of type
   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE], which is
   * referred as ** base compensation entry ** for the job.
   * </pre>
   *
   * <code>repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1;
   * </code>
   */
  public java.util.List<com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry>
      getEntriesList() {
    return entries_;
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * Job compensation information.
   * At most one entry can be of type
   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE], which is
   * referred as ** base compensation entry ** for the job.
   * </pre>
   *
   * <code>repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1;
   * </code>
   */
  public java.util.List<
          ? extends com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder>
      getEntriesOrBuilderList() {
    return entries_;
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * Job compensation information.
   * At most one entry can be of type
   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE], which is
   * referred as ** base compensation entry ** for the job.
   * </pre>
   *
   * <code>repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1;
   * </code>
   */
  public int getEntriesCount() {
    return entries_.size();
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * Job compensation information.
   * At most one entry can be of type
   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE], which is
   * referred as ** base compensation entry ** for the job.
   * </pre>
   *
   * <code>repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1;
   * </code>
   */
  public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry getEntries(int index) {
    return entries_.get(index);
  }
  /**
   *
   *
   * <pre>
   * Optional.
   * Job compensation information.
   * At most one entry can be of type
   * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE], which is
   * referred as ** base compensation entry ** for the job.
   * </pre>
   *
   * <code>repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1;
   * </code>
   */
  public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder
      getEntriesOrBuilder(int index) {
    return entries_.get(index);
  }

  public static final int ANNUALIZED_BASE_COMPENSATION_RANGE_FIELD_NUMBER = 2;
  private com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange
      annualizedBaseCompensationRange_;
  /**
   *
   *
   * <pre>
   * Output only. Annualized base compensation range. Computed as
   * base compensation entry's [CompensationEntry.compensation][] times
   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
   * See [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] for explanation on compensation annualization.
   * </pre>
   *
   * <code>
   * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2;
   * </code>
   */
  public boolean hasAnnualizedBaseCompensationRange() {
    return annualizedBaseCompensationRange_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. Annualized base compensation range. Computed as
   * base compensation entry's [CompensationEntry.compensation][] times
   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
   * See [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] for explanation on compensation annualization.
   * </pre>
   *
   * <code>
   * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2;
   * </code>
   */
  public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange
      getAnnualizedBaseCompensationRange() {
    return annualizedBaseCompensationRange_ == null
        ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.getDefaultInstance()
        : annualizedBaseCompensationRange_;
  }
  /**
   *
   *
   * <pre>
   * Output only. Annualized base compensation range. Computed as
   * base compensation entry's [CompensationEntry.compensation][] times
   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
   * See [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] for explanation on compensation annualization.
   * </pre>
   *
   * <code>
   * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2;
   * </code>
   */
  public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder
      getAnnualizedBaseCompensationRangeOrBuilder() {
    return getAnnualizedBaseCompensationRange();
  }

  public static final int ANNUALIZED_TOTAL_COMPENSATION_RANGE_FIELD_NUMBER = 3;
  private com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange
      annualizedTotalCompensationRange_;
  /**
   *
   *
   * <pre>
   * Output only. Annualized total compensation range. Computed as
   * all compensation entries' [CompensationEntry.compensation][] times
   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
   * See [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] for explanation on compensation annualization.
   * </pre>
   *
   * <code>
   * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3;
   * </code>
   */
  public boolean hasAnnualizedTotalCompensationRange() {
    return annualizedTotalCompensationRange_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. Annualized total compensation range. Computed as
   * all compensation entries' [CompensationEntry.compensation][] times
   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
   * See [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] for explanation on compensation annualization.
   * </pre>
   *
   * <code>
   * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3;
   * </code>
   */
  public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange
      getAnnualizedTotalCompensationRange() {
    return annualizedTotalCompensationRange_ == null
        ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.getDefaultInstance()
        : annualizedTotalCompensationRange_;
  }
  /**
   *
   *
   * <pre>
   * Output only. Annualized total compensation range. Computed as
   * all compensation entries' [CompensationEntry.compensation][] times
   * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
   * See [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] for explanation on compensation annualization.
   * </pre>
   *
   * <code>
   * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3;
   * </code>
   */
  public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder
      getAnnualizedTotalCompensationRangeOrBuilder() {
    return getAnnualizedTotalCompensationRange();
  }

  private byte memoizedIsInitialized = -1;

  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    for (int i = 0; i < entries_.size(); i++) {
      output.writeMessage(1, entries_.get(i));
    }
    if (annualizedBaseCompensationRange_ != null) {
      output.writeMessage(2, getAnnualizedBaseCompensationRange());
    }
    if (annualizedTotalCompensationRange_ != null) {
      output.writeMessage(3, getAnnualizedTotalCompensationRange());
    }
    unknownFields.writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    for (int i = 0; i < entries_.size(); i++) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, entries_.get(i));
    }
    if (annualizedBaseCompensationRange_ != null) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              2, getAnnualizedBaseCompensationRange());
    }
    if (annualizedTotalCompensationRange_ != null) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              3, getAnnualizedTotalCompensationRange());
    }
    size += unknownFields.getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.cloud.talent.v4beta1.CompensationInfo)) {
      return super.equals(obj);
    }
    com.google.cloud.talent.v4beta1.CompensationInfo other =
        (com.google.cloud.talent.v4beta1.CompensationInfo) obj;

    if (!getEntriesList().equals(other.getEntriesList())) return false;
    if (hasAnnualizedBaseCompensationRange() != other.hasAnnualizedBaseCompensationRange())
      return false;
    if (hasAnnualizedBaseCompensationRange()) {
      if (!getAnnualizedBaseCompensationRange().equals(other.getAnnualizedBaseCompensationRange()))
        return false;
    }
    if (hasAnnualizedTotalCompensationRange() != other.hasAnnualizedTotalCompensationRange())
      return false;
    if (hasAnnualizedTotalCompensationRange()) {
      if (!getAnnualizedTotalCompensationRange()
          .equals(other.getAnnualizedTotalCompensationRange())) return false;
    }
    if (!unknownFields.equals(other.unknownFields)) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (getEntriesCount() > 0) {
      hash = (37 * hash) + ENTRIES_FIELD_NUMBER;
      hash = (53 * hash) + getEntriesList().hashCode();
    }
    if (hasAnnualizedBaseCompensationRange()) {
      hash = (37 * hash) + ANNUALIZED_BASE_COMPENSATION_RANGE_FIELD_NUMBER;
      hash = (53 * hash) + getAnnualizedBaseCompensationRange().hashCode();
    }
    if (hasAnnualizedTotalCompensationRange()) {
      hash = (37 * hash) + ANNUALIZED_TOTAL_COMPENSATION_RANGE_FIELD_NUMBER;
      hash = (53 * hash) + getAnnualizedTotalCompensationRange().hashCode();
    }
    hash = (29 * hash) + unknownFields.hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom(java.nio.ByteBuffer data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.talent.v4beta1.CompensationInfo parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.cloud.talent.v4beta1.CompensationInfo parseDelimitedFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input);
  }

  public static com.google.cloud.talent.v4beta1.CompensationInfo parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessageV3.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() {
    return newBuilder();
  }

  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }

  public static Builder newBuilder(com.google.cloud.talent.v4beta1.CompensationInfo prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }

  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }
  /**
   *
   *
   * <pre>
   * Job compensation details.
   * </pre>
   *
   * Protobuf type {@code google.cloud.talent.v4beta1.CompensationInfo}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.cloud.talent.v4beta1.CompensationInfo)
      com.google.cloud.talent.v4beta1.CompensationInfoOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.cloud.talent.v4beta1.CommonProto
          .internal_static_google_cloud_talent_v4beta1_CompensationInfo_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.cloud.talent.v4beta1.CommonProto
          .internal_static_google_cloud_talent_v4beta1_CompensationInfo_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.cloud.talent.v4beta1.CompensationInfo.class,
              com.google.cloud.talent.v4beta1.CompensationInfo.Builder.class);
    }

    // Construct using com.google.cloud.talent.v4beta1.CompensationInfo.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }

    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {
        getEntriesFieldBuilder();
      }
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      if (entriesBuilder_ == null) {
        entries_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
      } else {
        entriesBuilder_.clear();
      }
      if (annualizedBaseCompensationRangeBuilder_ == null) {
        annualizedBaseCompensationRange_ = null;
      } else {
        annualizedBaseCompensationRange_ = null;
        annualizedBaseCompensationRangeBuilder_ = null;
      }
      if (annualizedTotalCompensationRangeBuilder_ == null) {
        annualizedTotalCompensationRange_ = null;
      } else {
        annualizedTotalCompensationRange_ = null;
        annualizedTotalCompensationRangeBuilder_ = null;
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.cloud.talent.v4beta1.CommonProto
          .internal_static_google_cloud_talent_v4beta1_CompensationInfo_descriptor;
    }

    @java.lang.Override
    public com.google.cloud.talent.v4beta1.CompensationInfo getDefaultInstanceForType() {
      return com.google.cloud.talent.v4beta1.CompensationInfo.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.cloud.talent.v4beta1.CompensationInfo build() {
      com.google.cloud.talent.v4beta1.CompensationInfo result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.cloud.talent.v4beta1.CompensationInfo buildPartial() {
      com.google.cloud.talent.v4beta1.CompensationInfo result =
          new com.google.cloud.talent.v4beta1.CompensationInfo(this);
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (entriesBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          entries_ = java.util.Collections.unmodifiableList(entries_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.entries_ = entries_;
      } else {
        result.entries_ = entriesBuilder_.build();
      }
      if (annualizedBaseCompensationRangeBuilder_ == null) {
        result.annualizedBaseCompensationRange_ = annualizedBaseCompensationRange_;
      } else {
        result.annualizedBaseCompensationRange_ = annualizedBaseCompensationRangeBuilder_.build();
      }
      if (annualizedTotalCompensationRangeBuilder_ == null) {
        result.annualizedTotalCompensationRange_ = annualizedTotalCompensationRange_;
      } else {
        result.annualizedTotalCompensationRange_ = annualizedTotalCompensationRangeBuilder_.build();
      }
      result.bitField0_ = to_bitField0_;
      onBuilt();
      return result;
    }

    @java.lang.Override
    public Builder clone() {
      return super.clone();
    }

    @java.lang.Override
    public Builder setField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.setField(field, value);
    }

    @java.lang.Override
    public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) {
      return super.clearField(field);
    }

    @java.lang.Override
    public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) {
      return super.clearOneof(oneof);
    }

    @java.lang.Override
    public Builder setRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) {
      return super.setRepeatedField(field, index, value);
    }

    @java.lang.Override
    public Builder addRepeatedField(
        com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) {
      return super.addRepeatedField(field, value);
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.cloud.talent.v4beta1.CompensationInfo) {
        return mergeFrom((com.google.cloud.talent.v4beta1.CompensationInfo) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.cloud.talent.v4beta1.CompensationInfo other) {
      if (other == com.google.cloud.talent.v4beta1.CompensationInfo.getDefaultInstance())
        return this;
      if (entriesBuilder_ == null) {
        if (!other.entries_.isEmpty()) {
          if (entries_.isEmpty()) {
            entries_ = other.entries_;
            bitField0_ = (bitField0_ & ~0x00000001);
          } else {
            ensureEntriesIsMutable();
            entries_.addAll(other.entries_);
          }
          onChanged();
        }
      } else {
        if (!other.entries_.isEmpty()) {
          if (entriesBuilder_.isEmpty()) {
            entriesBuilder_.dispose();
            entriesBuilder_ = null;
            entries_ = other.entries_;
            bitField0_ = (bitField0_ & ~0x00000001);
            entriesBuilder_ =
                com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders
                    ? getEntriesFieldBuilder()
                    : null;
          } else {
            entriesBuilder_.addAllMessages(other.entries_);
          }
        }
      }
      if (other.hasAnnualizedBaseCompensationRange()) {
        mergeAnnualizedBaseCompensationRange(other.getAnnualizedBaseCompensationRange());
      }
      if (other.hasAnnualizedTotalCompensationRange()) {
        mergeAnnualizedTotalCompensationRange(other.getAnnualizedTotalCompensationRange());
      }
      this.mergeUnknownFields(other.unknownFields);
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      com.google.cloud.talent.v4beta1.CompensationInfo parsedMessage = null;
      try {
        parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        parsedMessage = (com.google.cloud.talent.v4beta1.CompensationInfo) e.getUnfinishedMessage();
        throw e.unwrapIOException();
      } finally {
        if (parsedMessage != null) {
          mergeFrom(parsedMessage);
        }
      }
      return this;
    }

    private int bitField0_;

    private java.util.List<com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry>
        entries_ = java.util.Collections.emptyList();

    private void ensureEntriesIsMutable() {
      if (!((bitField0_ & 0x00000001) != 0)) {
        entries_ =
            new java.util.ArrayList<
                com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry>(entries_);
        bitField0_ |= 0x00000001;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry,
            com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder,
            com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder>
        entriesBuilder_;

    /**
     *
     *
     * <pre>
     * Optional.
     * Job compensation information.
     * At most one entry can be of type
     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE], which is
     * referred as ** base compensation entry ** for the job.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1;
     * </code>
     */
    public java.util.List<com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry>
        getEntriesList() {
      if (entriesBuilder_ == null) {
        return java.util.Collections.unmodifiableList(entries_);
      } else {
        return entriesBuilder_.getMessageList();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Job compensation information.
     * At most one entry can be of type
     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE], which is
     * referred as ** base compensation entry ** for the job.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1;
     * </code>
     */
    public int getEntriesCount() {
      if (entriesBuilder_ == null) {
        return entries_.size();
      } else {
        return entriesBuilder_.getCount();
      }
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Job compensation information.
     * At most one entry can be of type
     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE], which is
     * referred as ** base compensation entry ** for the job.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1;
     * </code>
     */
    public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry getEntries(
        int index) {
      if (entriesBuilder_ == null) {
        return entries_.get(index);
      } else {
        return entriesBuilder_.getMessage(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Job compensation information.
     * At most one entry can be of type
     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE], which is
     * referred as ** base compensation entry ** for the job.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1;
     * </code>
     */
    public Builder setEntries(
        int index, com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry value) {
      if (entriesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureEntriesIsMutable();
        entries_.set(index, value);
        onChanged();
      } else {
        entriesBuilder_.setMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Job compensation information.
     * At most one entry can be of type
     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE], which is
     * referred as ** base compensation entry ** for the job.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1;
     * </code>
     */
    public Builder setEntries(
        int index,
        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder
            builderForValue) {
      if (entriesBuilder_ == null) {
        ensureEntriesIsMutable();
        entries_.set(index, builderForValue.build());
        onChanged();
      } else {
        entriesBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Job compensation information.
     * At most one entry can be of type
     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE], which is
     * referred as ** base compensation entry ** for the job.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1;
     * </code>
     */
    public Builder addEntries(
        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry value) {
      if (entriesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureEntriesIsMutable();
        entries_.add(value);
        onChanged();
      } else {
        entriesBuilder_.addMessage(value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Job compensation information.
     * At most one entry can be of type
     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE], which is
     * referred as ** base compensation entry ** for the job.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1;
     * </code>
     */
    public Builder addEntries(
        int index, com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry value) {
      if (entriesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureEntriesIsMutable();
        entries_.add(index, value);
        onChanged();
      } else {
        entriesBuilder_.addMessage(index, value);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Job compensation information.
     * At most one entry can be of type
     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE], which is
     * referred as ** base compensation entry ** for the job.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1;
     * </code>
     */
    public Builder addEntries(
        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder
            builderForValue) {
      if (entriesBuilder_ == null) {
        ensureEntriesIsMutable();
        entries_.add(builderForValue.build());
        onChanged();
      } else {
        entriesBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Job compensation information.
     * At most one entry can be of type
     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE], which is
     * referred as ** base compensation entry ** for the job.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1;
     * </code>
     */
    public Builder addEntries(
        int index,
        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder
            builderForValue) {
      if (entriesBuilder_ == null) {
        ensureEntriesIsMutable();
        entries_.add(index, builderForValue.build());
        onChanged();
      } else {
        entriesBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Job compensation information.
     * At most one entry can be of type
     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE], which is
     * referred as ** base compensation entry ** for the job.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1;
     * </code>
     */
    public Builder addAllEntries(
        java.lang.Iterable<
                ? extends com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry>
            values) {
      if (entriesBuilder_ == null) {
        ensureEntriesIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, entries_);
        onChanged();
      } else {
        entriesBuilder_.addAllMessages(values);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Job compensation information.
     * At most one entry can be of type
     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE], which is
     * referred as ** base compensation entry ** for the job.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1;
     * </code>
     */
    public Builder clearEntries() {
      if (entriesBuilder_ == null) {
        entries_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000001);
        onChanged();
      } else {
        entriesBuilder_.clear();
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Job compensation information.
     * At most one entry can be of type
     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE], which is
     * referred as ** base compensation entry ** for the job.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1;
     * </code>
     */
    public Builder removeEntries(int index) {
      if (entriesBuilder_ == null) {
        ensureEntriesIsMutable();
        entries_.remove(index);
        onChanged();
      } else {
        entriesBuilder_.remove(index);
      }
      return this;
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Job compensation information.
     * At most one entry can be of type
     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE], which is
     * referred as ** base compensation entry ** for the job.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1;
     * </code>
     */
    public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder
        getEntriesBuilder(int index) {
      return getEntriesFieldBuilder().getBuilder(index);
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Job compensation information.
     * At most one entry can be of type
     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE], which is
     * referred as ** base compensation entry ** for the job.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1;
     * </code>
     */
    public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder
        getEntriesOrBuilder(int index) {
      if (entriesBuilder_ == null) {
        return entries_.get(index);
      } else {
        return entriesBuilder_.getMessageOrBuilder(index);
      }
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Job compensation information.
     * At most one entry can be of type
     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE], which is
     * referred as ** base compensation entry ** for the job.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1;
     * </code>
     */
    public java.util.List<
            ? extends com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder>
        getEntriesOrBuilderList() {
      if (entriesBuilder_ != null) {
        return entriesBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(entries_);
      }
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Job compensation information.
     * At most one entry can be of type
     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE], which is
     * referred as ** base compensation entry ** for the job.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1;
     * </code>
     */
    public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder
        addEntriesBuilder() {
      return getEntriesFieldBuilder()
          .addBuilder(
              com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry
                  .getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Job compensation information.
     * At most one entry can be of type
     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE], which is
     * referred as ** base compensation entry ** for the job.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1;
     * </code>
     */
    public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder
        addEntriesBuilder(int index) {
      return getEntriesFieldBuilder()
          .addBuilder(
              index,
              com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry
                  .getDefaultInstance());
    }
    /**
     *
     *
     * <pre>
     * Optional.
     * Job compensation information.
     * At most one entry can be of type
     * [CompensationInfo.CompensationType.BASE][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.BASE], which is
     * referred as ** base compensation entry ** for the job.
     * </pre>
     *
     * <code>repeated .google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry entries = 1;
     * </code>
     */
    public java.util.List<
            com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder>
        getEntriesBuilderList() {
      return getEntriesFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilderV3<
            com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry,
            com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder,
            com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder>
        getEntriesFieldBuilder() {
      if (entriesBuilder_ == null) {
        entriesBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilderV3<
                com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry,
                com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.Builder,
                com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder>(
                entries_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean());
        entries_ = null;
      }
      return entriesBuilder_;
    }

    private com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange
        annualizedBaseCompensationRange_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange,
            com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder,
            com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder>
        annualizedBaseCompensationRangeBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. Annualized base compensation range. Computed as
     * base compensation entry's [CompensationEntry.compensation][] times
     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
     * See [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] for explanation on compensation annualization.
     * </pre>
     *
     * <code>
     * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2;
     * </code>
     */
    public boolean hasAnnualizedBaseCompensationRange() {
      return annualizedBaseCompensationRangeBuilder_ != null
          || annualizedBaseCompensationRange_ != null;
    }
    /**
     *
     *
     * <pre>
     * Output only. Annualized base compensation range. Computed as
     * base compensation entry's [CompensationEntry.compensation][] times
     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
     * See [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] for explanation on compensation annualization.
     * </pre>
     *
     * <code>
     * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2;
     * </code>
     */
    public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange
        getAnnualizedBaseCompensationRange() {
      if (annualizedBaseCompensationRangeBuilder_ == null) {
        return annualizedBaseCompensationRange_ == null
            ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange
                .getDefaultInstance()
            : annualizedBaseCompensationRange_;
      } else {
        return annualizedBaseCompensationRangeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Annualized base compensation range. Computed as
     * base compensation entry's [CompensationEntry.compensation][] times
     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
     * See [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] for explanation on compensation annualization.
     * </pre>
     *
     * <code>
     * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2;
     * </code>
     */
    public Builder setAnnualizedBaseCompensationRange(
        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) {
      if (annualizedBaseCompensationRangeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        annualizedBaseCompensationRange_ = value;
        onChanged();
      } else {
        annualizedBaseCompensationRangeBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Annualized base compensation range. Computed as
     * base compensation entry's [CompensationEntry.compensation][] times
     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
     * See [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] for explanation on compensation annualization.
     * </pre>
     *
     * <code>
     * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2;
     * </code>
     */
    public Builder setAnnualizedBaseCompensationRange(
        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder
            builderForValue) {
      if (annualizedBaseCompensationRangeBuilder_ == null) {
        annualizedBaseCompensationRange_ = builderForValue.build();
        onChanged();
      } else {
        annualizedBaseCompensationRangeBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Annualized base compensation range. Computed as
     * base compensation entry's [CompensationEntry.compensation][] times
     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
     * See [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] for explanation on compensation annualization.
     * </pre>
     *
     * <code>
     * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2;
     * </code>
     */
    public Builder mergeAnnualizedBaseCompensationRange(
        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) {
      if (annualizedBaseCompensationRangeBuilder_ == null) {
        if (annualizedBaseCompensationRange_ != null) {
          annualizedBaseCompensationRange_ =
              com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.newBuilder(
                      annualizedBaseCompensationRange_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          annualizedBaseCompensationRange_ = value;
        }
        onChanged();
      } else {
        annualizedBaseCompensationRangeBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Annualized base compensation range. Computed as
     * base compensation entry's [CompensationEntry.compensation][] times
     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
     * See [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] for explanation on compensation annualization.
     * </pre>
     *
     * <code>
     * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2;
     * </code>
     */
    public Builder clearAnnualizedBaseCompensationRange() {
      if (annualizedBaseCompensationRangeBuilder_ == null) {
        annualizedBaseCompensationRange_ = null;
        onChanged();
      } else {
        annualizedBaseCompensationRange_ = null;
        annualizedBaseCompensationRangeBuilder_ = null;
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Annualized base compensation range. Computed as
     * base compensation entry's [CompensationEntry.compensation][] times
     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
     * See [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] for explanation on compensation annualization.
     * </pre>
     *
     * <code>
     * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2;
     * </code>
     */
    public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder
        getAnnualizedBaseCompensationRangeBuilder() {

      onChanged();
      return getAnnualizedBaseCompensationRangeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. Annualized base compensation range. Computed as
     * base compensation entry's [CompensationEntry.compensation][] times
     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
     * See [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] for explanation on compensation annualization.
     * </pre>
     *
     * <code>
     * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2;
     * </code>
     */
    public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder
        getAnnualizedBaseCompensationRangeOrBuilder() {
      if (annualizedBaseCompensationRangeBuilder_ != null) {
        return annualizedBaseCompensationRangeBuilder_.getMessageOrBuilder();
      } else {
        return annualizedBaseCompensationRange_ == null
            ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange
                .getDefaultInstance()
            : annualizedBaseCompensationRange_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Annualized base compensation range. Computed as
     * base compensation entry's [CompensationEntry.compensation][] times
     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
     * See [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] for explanation on compensation annualization.
     * </pre>
     *
     * <code>
     * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_base_compensation_range = 2;
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange,
            com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder,
            com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder>
        getAnnualizedBaseCompensationRangeFieldBuilder() {
      if (annualizedBaseCompensationRangeBuilder_ == null) {
        annualizedBaseCompensationRangeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange,
                com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder,
                com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder>(
                getAnnualizedBaseCompensationRange(), getParentForChildren(), isClean());
        annualizedBaseCompensationRange_ = null;
      }
      return annualizedBaseCompensationRangeBuilder_;
    }

    private com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange
        annualizedTotalCompensationRange_;
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange,
            com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder,
            com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder>
        annualizedTotalCompensationRangeBuilder_;
    /**
     *
     *
     * <pre>
     * Output only. Annualized total compensation range. Computed as
     * all compensation entries' [CompensationEntry.compensation][] times
     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
     * See [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] for explanation on compensation annualization.
     * </pre>
     *
     * <code>
     * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3;
     * </code>
     */
    public boolean hasAnnualizedTotalCompensationRange() {
      return annualizedTotalCompensationRangeBuilder_ != null
          || annualizedTotalCompensationRange_ != null;
    }
    /**
     *
     *
     * <pre>
     * Output only. Annualized total compensation range. Computed as
     * all compensation entries' [CompensationEntry.compensation][] times
     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
     * See [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] for explanation on compensation annualization.
     * </pre>
     *
     * <code>
     * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3;
     * </code>
     */
    public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange
        getAnnualizedTotalCompensationRange() {
      if (annualizedTotalCompensationRangeBuilder_ == null) {
        return annualizedTotalCompensationRange_ == null
            ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange
                .getDefaultInstance()
            : annualizedTotalCompensationRange_;
      } else {
        return annualizedTotalCompensationRangeBuilder_.getMessage();
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Annualized total compensation range. Computed as
     * all compensation entries' [CompensationEntry.compensation][] times
     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
     * See [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] for explanation on compensation annualization.
     * </pre>
     *
     * <code>
     * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3;
     * </code>
     */
    public Builder setAnnualizedTotalCompensationRange(
        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) {
      if (annualizedTotalCompensationRangeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        annualizedTotalCompensationRange_ = value;
        onChanged();
      } else {
        annualizedTotalCompensationRangeBuilder_.setMessage(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Annualized total compensation range. Computed as
     * all compensation entries' [CompensationEntry.compensation][] times
     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
     * See [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] for explanation on compensation annualization.
     * </pre>
     *
     * <code>
     * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3;
     * </code>
     */
    public Builder setAnnualizedTotalCompensationRange(
        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder
            builderForValue) {
      if (annualizedTotalCompensationRangeBuilder_ == null) {
        annualizedTotalCompensationRange_ = builderForValue.build();
        onChanged();
      } else {
        annualizedTotalCompensationRangeBuilder_.setMessage(builderForValue.build());
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Annualized total compensation range. Computed as
     * all compensation entries' [CompensationEntry.compensation][] times
     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
     * See [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] for explanation on compensation annualization.
     * </pre>
     *
     * <code>
     * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3;
     * </code>
     */
    public Builder mergeAnnualizedTotalCompensationRange(
        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) {
      if (annualizedTotalCompensationRangeBuilder_ == null) {
        if (annualizedTotalCompensationRange_ != null) {
          annualizedTotalCompensationRange_ =
              com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.newBuilder(
                      annualizedTotalCompensationRange_)
                  .mergeFrom(value)
                  .buildPartial();
        } else {
          annualizedTotalCompensationRange_ = value;
        }
        onChanged();
      } else {
        annualizedTotalCompensationRangeBuilder_.mergeFrom(value);
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Annualized total compensation range. Computed as
     * all compensation entries' [CompensationEntry.compensation][] times
     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
     * See [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] for explanation on compensation annualization.
     * </pre>
     *
     * <code>
     * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3;
     * </code>
     */
    public Builder clearAnnualizedTotalCompensationRange() {
      if (annualizedTotalCompensationRangeBuilder_ == null) {
        annualizedTotalCompensationRange_ = null;
        onChanged();
      } else {
        annualizedTotalCompensationRange_ = null;
        annualizedTotalCompensationRangeBuilder_ = null;
      }

      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Annualized total compensation range. Computed as
     * all compensation entries' [CompensationEntry.compensation][] times
     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
     * See [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] for explanation on compensation annualization.
     * </pre>
     *
     * <code>
     * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3;
     * </code>
     */
    public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder
        getAnnualizedTotalCompensationRangeBuilder() {

      onChanged();
      return getAnnualizedTotalCompensationRangeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. Annualized total compensation range. Computed as
     * all compensation entries' [CompensationEntry.compensation][] times
     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
     * See [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] for explanation on compensation annualization.
     * </pre>
     *
     * <code>
     * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3;
     * </code>
     */
    public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder
        getAnnualizedTotalCompensationRangeOrBuilder() {
      if (annualizedTotalCompensationRangeBuilder_ != null) {
        return annualizedTotalCompensationRangeBuilder_.getMessageOrBuilder();
      } else {
        return annualizedTotalCompensationRange_ == null
            ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange
                .getDefaultInstance()
            : annualizedTotalCompensationRange_;
      }
    }
    /**
     *
     *
     * <pre>
     * Output only. Annualized total compensation range. Computed as
     * all compensation entries' [CompensationEntry.compensation][] times
     * [CompensationEntry.expected_units_per_year][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.expected_units_per_year].
     * See [CompensationEntry][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry] for explanation on compensation annualization.
     * </pre>
     *
     * <code>
     * .google.cloud.talent.v4beta1.CompensationInfo.CompensationRange annualized_total_compensation_range = 3;
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilderV3<
            com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange,
            com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder,
            com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder>
        getAnnualizedTotalCompensationRangeFieldBuilder() {
      if (annualizedTotalCompensationRangeBuilder_ == null) {
        annualizedTotalCompensationRangeBuilder_ =
            new com.google.protobuf.SingleFieldBuilderV3<
                com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange,
                com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder,
                com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder>(
                getAnnualizedTotalCompensationRange(), getParentForChildren(), isClean());
        annualizedTotalCompensationRange_ = null;
      }
      return annualizedTotalCompensationRangeBuilder_;
    }

    @java.lang.Override
    public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.setUnknownFields(unknownFields);
    }

    @java.lang.Override
    public final Builder mergeUnknownFields(
        final com.google.protobuf.UnknownFieldSet unknownFields) {
      return super.mergeUnknownFields(unknownFields);
    }

    // @@protoc_insertion_point(builder_scope:google.cloud.talent.v4beta1.CompensationInfo)
  }

  // @@protoc_insertion_point(class_scope:google.cloud.talent.v4beta1.CompensationInfo)
  private static final com.google.cloud.talent.v4beta1.CompensationInfo DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.cloud.talent.v4beta1.CompensationInfo();
  }

  public static com.google.cloud.talent.v4beta1.CompensationInfo getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<CompensationInfo> PARSER =
      new com.google.protobuf.AbstractParser<CompensationInfo>() {
        @java.lang.Override
        public CompensationInfo parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          return new CompensationInfo(input, extensionRegistry);
        }
      };

  public static com.google.protobuf.Parser<CompensationInfo> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<CompensationInfo> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.cloud.talent.v4beta1.CompensationInfo getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
