/*
 * Copyright 2023 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// 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
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
    return new CompensationInfo();
  }

  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;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static CompensationType valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire 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() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      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;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static CompensationUnit valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire 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() {
      if (this == UNRECOGNIZED) {
        throw new java.lang.IllegalStateException(
            "Can't get the descriptor of an unrecognized enum value.");
      }
      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>
     * Compensation type.
     *
     * Default is
     * [CompensationType.COMPENSATION_TYPE_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.COMPENSATION_TYPE_UNSPECIFIED].
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1;</code>
     *
     * @return The enum numeric value on the wire for type.
     */
    int getTypeValue();
    /**
     *
     *
     * <pre>
     * Compensation type.
     *
     * Default is
     * [CompensationType.COMPENSATION_TYPE_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.COMPENSATION_TYPE_UNSPECIFIED].
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1;</code>
     *
     * @return The type.
     */
    com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType getType();

    /**
     *
     *
     * <pre>
     * Frequency of the specified amount.
     *
     * Default is
     * [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED].
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2;</code>
     *
     * @return The enum numeric value on the wire for unit.
     */
    int getUnitValue();
    /**
     *
     *
     * <pre>
     * Frequency of the specified amount.
     *
     * Default is
     * [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED].
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2;</code>
     *
     * @return The unit.
     */
    com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit getUnit();

    /**
     *
     *
     * <pre>
     * Compensation amount.
     * </pre>
     *
     * <code>.google.type.Money amount = 3;</code>
     *
     * @return Whether the amount field is set.
     */
    boolean hasAmount();
    /**
     *
     *
     * <pre>
     * Compensation amount.
     * </pre>
     *
     * <code>.google.type.Money amount = 3;</code>
     *
     * @return The amount.
     */
    com.google.type.Money getAmount();
    /**
     *
     *
     * <pre>
     * Compensation amount.
     * </pre>
     *
     * <code>.google.type.Money amount = 3;</code>
     */
    com.google.type.MoneyOrBuilder getAmountOrBuilder();

    /**
     *
     *
     * <pre>
     * Compensation range.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4;</code>
     *
     * @return Whether the range field is set.
     */
    boolean hasRange();
    /**
     *
     *
     * <pre>
     * Compensation range.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4;</code>
     *
     * @return The range.
     */
    com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange getRange();
    /**
     *
     *
     * <pre>
     * Compensation range.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4;</code>
     */
    com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder getRangeOrBuilder();

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

    /**
     *
     *
     * <pre>
     * 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>
     *
     * @return Whether the expectedUnitsPerYear field is set.
     */
    boolean hasExpectedUnitsPerYear();
    /**
     *
     *
     * <pre>
     * 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>
     *
     * @return The expectedUnitsPerYear.
     */
    com.google.protobuf.DoubleValue getExpectedUnitsPerYear();
    /**
     *
     *
     * <pre>
     * 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();

    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
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      return new CompensationEntry();
    }

    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;

    @SuppressWarnings("serial")
    private java.lang.Object compensationAmount_;

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

      private CompensationAmountCase(int value) {
        this.value = value;
      }
      /**
       * @param value The number of the enum to look for.
       * @return The enum associated with the given number.
       * @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_ = 0;
    /**
     *
     *
     * <pre>
     * Compensation type.
     *
     * Default is
     * [CompensationType.COMPENSATION_TYPE_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.COMPENSATION_TYPE_UNSPECIFIED].
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1;</code>
     *
     * @return The enum numeric value on the wire for type.
     */
    @java.lang.Override
    public int getTypeValue() {
      return type_;
    }
    /**
     *
     *
     * <pre>
     * Compensation type.
     *
     * Default is
     * [CompensationType.COMPENSATION_TYPE_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.COMPENSATION_TYPE_UNSPECIFIED].
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1;</code>
     *
     * @return The type.
     */
    @java.lang.Override
    public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType getType() {
      com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType result =
          com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType.forNumber(type_);
      return result == null
          ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType.UNRECOGNIZED
          : result;
    }

    public static final int UNIT_FIELD_NUMBER = 2;
    private int unit_ = 0;
    /**
     *
     *
     * <pre>
     * Frequency of the specified amount.
     *
     * Default is
     * [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED].
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2;</code>
     *
     * @return The enum numeric value on the wire for unit.
     */
    @java.lang.Override
    public int getUnitValue() {
      return unit_;
    }
    /**
     *
     *
     * <pre>
     * Frequency of the specified amount.
     *
     * Default is
     * [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED].
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2;</code>
     *
     * @return The unit.
     */
    @java.lang.Override
    public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit getUnit() {
      com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit result =
          com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.forNumber(unit_);
      return result == null
          ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.UNRECOGNIZED
          : result;
    }

    public static final int AMOUNT_FIELD_NUMBER = 3;
    /**
     *
     *
     * <pre>
     * Compensation amount.
     * </pre>
     *
     * <code>.google.type.Money amount = 3;</code>
     *
     * @return Whether the amount field is set.
     */
    @java.lang.Override
    public boolean hasAmount() {
      return compensationAmountCase_ == 3;
    }
    /**
     *
     *
     * <pre>
     * Compensation amount.
     * </pre>
     *
     * <code>.google.type.Money amount = 3;</code>
     *
     * @return The amount.
     */
    @java.lang.Override
    public com.google.type.Money getAmount() {
      if (compensationAmountCase_ == 3) {
        return (com.google.type.Money) compensationAmount_;
      }
      return com.google.type.Money.getDefaultInstance();
    }
    /**
     *
     *
     * <pre>
     * Compensation amount.
     * </pre>
     *
     * <code>.google.type.Money amount = 3;</code>
     */
    @java.lang.Override
    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>
     * Compensation range.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4;</code>
     *
     * @return Whether the range field is set.
     */
    @java.lang.Override
    public boolean hasRange() {
      return compensationAmountCase_ == 4;
    }
    /**
     *
     *
     * <pre>
     * Compensation range.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4;</code>
     *
     * @return The range.
     */
    @java.lang.Override
    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>
     * Compensation range.
     * </pre>
     *
     * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4;</code>
     */
    @java.lang.Override
    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;

    @SuppressWarnings("serial")
    private volatile java.lang.Object description_ = "";
    /**
     *
     *
     * <pre>
     * Compensation description.  For example, could
     * indicate equity terms or provide additional context to an estimated
     * bonus.
     * </pre>
     *
     * <code>string description = 5;</code>
     *
     * @return The description.
     */
    @java.lang.Override
    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>
     * Compensation description.  For example, could
     * indicate equity terms or provide additional context to an estimated
     * bonus.
     * </pre>
     *
     * <code>string description = 5;</code>
     *
     * @return The bytes for description.
     */
    @java.lang.Override
    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>
     * 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>
     *
     * @return Whether the expectedUnitsPerYear field is set.
     */
    @java.lang.Override
    public boolean hasExpectedUnitsPerYear() {
      return expectedUnitsPerYear_ != null;
    }
    /**
     *
     *
     * <pre>
     * 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>
     *
     * @return The expectedUnitsPerYear.
     */
    @java.lang.Override
    public com.google.protobuf.DoubleValue getExpectedUnitsPerYear() {
      return expectedUnitsPerYear_ == null
          ? com.google.protobuf.DoubleValue.getDefaultInstance()
          : expectedUnitsPerYear_;
    }
    /**
     *
     *
     * <pre>
     * 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>
     */
    @java.lang.Override
    public com.google.protobuf.DoubleValueOrBuilder getExpectedUnitsPerYearOrBuilder() {
      return expectedUnitsPerYear_ == null
          ? com.google.protobuf.DoubleValue.getDefaultInstance()
          : expectedUnitsPerYear_;
    }

    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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 5, description_);
      }
      if (expectedUnitsPerYear_ != null) {
        output.writeMessage(6, getExpectedUnitsPerYear());
      }
      getUnknownFields().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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_);
      }
      if (expectedUnitsPerYear_ != null) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(6, getExpectedUnitsPerYear());
      }
      size += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {}

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        type_ = 0;
        unit_ = 0;
        if (amountBuilder_ != null) {
          amountBuilder_.clear();
        }
        if (rangeBuilder_ != null) {
          rangeBuilder_.clear();
        }
        description_ = "";
        expectedUnitsPerYear_ = null;
        if (expectedUnitsPerYearBuilder_ != null) {
          expectedUnitsPerYearBuilder_.dispose();
          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);
        if (bitField0_ != 0) {
          buildPartial0(result);
        }
        buildPartialOneofs(result);
        onBuilt();
        return result;
      }

      private void buildPartial0(
          com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.type_ = type_;
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.unit_ = unit_;
        }
        if (((from_bitField0_ & 0x00000010) != 0)) {
          result.description_ = description_;
        }
        if (((from_bitField0_ & 0x00000020) != 0)) {
          result.expectedUnitsPerYear_ =
              expectedUnitsPerYearBuilder_ == null
                  ? expectedUnitsPerYear_
                  : expectedUnitsPerYearBuilder_.build();
        }
      }

      private void buildPartialOneofs(
          com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry result) {
        result.compensationAmountCase_ = compensationAmountCase_;
        result.compensationAmount_ = this.compensationAmount_;
        if (compensationAmountCase_ == 3 && amountBuilder_ != null) {
          result.compensationAmount_ = amountBuilder_.build();
        }
        if (compensationAmountCase_ == 4 && rangeBuilder_ != null) {
          result.compensationAmount_ = rangeBuilder_.build();
        }
      }

      @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_;
          bitField0_ |= 0x00000010;
          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.getUnknownFields());
        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 {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 8:
                {
                  type_ = input.readEnum();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 8
              case 16:
                {
                  unit_ = input.readEnum();
                  bitField0_ |= 0x00000002;
                  break;
                } // case 16
              case 26:
                {
                  input.readMessage(getAmountFieldBuilder().getBuilder(), extensionRegistry);
                  compensationAmountCase_ = 3;
                  break;
                } // case 26
              case 34:
                {
                  input.readMessage(getRangeFieldBuilder().getBuilder(), extensionRegistry);
                  compensationAmountCase_ = 4;
                  break;
                } // case 34
              case 42:
                {
                  description_ = input.readStringRequireUtf8();
                  bitField0_ |= 0x00000010;
                  break;
                } // case 42
              case 50:
                {
                  input.readMessage(
                      getExpectedUnitsPerYearFieldBuilder().getBuilder(), extensionRegistry);
                  bitField0_ |= 0x00000020;
                  break;
                } // case 50
              default:
                {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        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 bitField0_;

      private int type_ = 0;
      /**
       *
       *
       * <pre>
       * Compensation type.
       *
       * Default is
       * [CompensationType.COMPENSATION_TYPE_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.COMPENSATION_TYPE_UNSPECIFIED].
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1;</code>
       *
       * @return The enum numeric value on the wire for type.
       */
      @java.lang.Override
      public int getTypeValue() {
        return type_;
      }
      /**
       *
       *
       * <pre>
       * Compensation type.
       *
       * Default is
       * [CompensationType.COMPENSATION_TYPE_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.COMPENSATION_TYPE_UNSPECIFIED].
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1;</code>
       *
       * @param value The enum numeric value on the wire for type to set.
       * @return This builder for chaining.
       */
      public Builder setTypeValue(int value) {
        type_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Compensation type.
       *
       * Default is
       * [CompensationType.COMPENSATION_TYPE_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.COMPENSATION_TYPE_UNSPECIFIED].
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1;</code>
       *
       * @return The type.
       */
      @java.lang.Override
      public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType getType() {
        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType result =
            com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType.forNumber(type_);
        return result == null
            ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType.UNRECOGNIZED
            : result;
      }
      /**
       *
       *
       * <pre>
       * Compensation type.
       *
       * Default is
       * [CompensationType.COMPENSATION_TYPE_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.COMPENSATION_TYPE_UNSPECIFIED].
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1;</code>
       *
       * @param value The type to set.
       * @return This builder for chaining.
       */
      public Builder setType(
          com.google.cloud.talent.v4beta1.CompensationInfo.CompensationType value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000001;
        type_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Compensation type.
       *
       * Default is
       * [CompensationType.COMPENSATION_TYPE_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo.CompensationType.COMPENSATION_TYPE_UNSPECIFIED].
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationType type = 1;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearType() {
        bitField0_ = (bitField0_ & ~0x00000001);
        type_ = 0;
        onChanged();
        return this;
      }

      private int unit_ = 0;
      /**
       *
       *
       * <pre>
       * Frequency of the specified amount.
       *
       * Default is
       * [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED].
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2;</code>
       *
       * @return The enum numeric value on the wire for unit.
       */
      @java.lang.Override
      public int getUnitValue() {
        return unit_;
      }
      /**
       *
       *
       * <pre>
       * Frequency of the specified amount.
       *
       * Default is
       * [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED].
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2;</code>
       *
       * @param value The enum numeric value on the wire for unit to set.
       * @return This builder for chaining.
       */
      public Builder setUnitValue(int value) {
        unit_ = value;
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Frequency of the specified amount.
       *
       * Default is
       * [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED].
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2;</code>
       *
       * @return The unit.
       */
      @java.lang.Override
      public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit getUnit() {
        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit result =
            com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.forNumber(unit_);
        return result == null
            ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.UNRECOGNIZED
            : result;
      }
      /**
       *
       *
       * <pre>
       * Frequency of the specified amount.
       *
       * Default is
       * [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED].
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2;</code>
       *
       * @param value The unit to set.
       * @return This builder for chaining.
       */
      public Builder setUnit(
          com.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000002;
        unit_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Frequency of the specified amount.
       *
       * Default is
       * [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED][google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED].
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationUnit unit = 2;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearUnit() {
        bitField0_ = (bitField0_ & ~0x00000002);
        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>
       * Compensation amount.
       * </pre>
       *
       * <code>.google.type.Money amount = 3;</code>
       *
       * @return Whether the amount field is set.
       */
      @java.lang.Override
      public boolean hasAmount() {
        return compensationAmountCase_ == 3;
      }
      /**
       *
       *
       * <pre>
       * Compensation amount.
       * </pre>
       *
       * <code>.google.type.Money amount = 3;</code>
       *
       * @return The amount.
       */
      @java.lang.Override
      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>
       * 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>
       * 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>
       * 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);
          } else {
            amountBuilder_.setMessage(value);
          }
        }
        compensationAmountCase_ = 3;
        return this;
      }
      /**
       *
       *
       * <pre>
       * 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>
       * Compensation amount.
       * </pre>
       *
       * <code>.google.type.Money amount = 3;</code>
       */
      public com.google.type.Money.Builder getAmountBuilder() {
        return getAmountFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * Compensation amount.
       * </pre>
       *
       * <code>.google.type.Money amount = 3;</code>
       */
      @java.lang.Override
      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>
       * 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>
       * Compensation range.
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4;</code>
       *
       * @return Whether the range field is set.
       */
      @java.lang.Override
      public boolean hasRange() {
        return compensationAmountCase_ == 4;
      }
      /**
       *
       *
       * <pre>
       * Compensation range.
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4;</code>
       *
       * @return The range.
       */
      @java.lang.Override
      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>
       * 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>
       * 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>
       * 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);
          } else {
            rangeBuilder_.setMessage(value);
          }
        }
        compensationAmountCase_ = 4;
        return this;
      }
      /**
       *
       *
       * <pre>
       * 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>
       * 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>
       * Compensation range.
       * </pre>
       *
       * <code>.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange range = 4;</code>
       */
      @java.lang.Override
      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>
       * 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>
       * Compensation description.  For example, could
       * indicate equity terms or provide additional context to an estimated
       * bonus.
       * </pre>
       *
       * <code>string description = 5;</code>
       *
       * @return The description.
       */
      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>
       * Compensation description.  For example, could
       * indicate equity terms or provide additional context to an estimated
       * bonus.
       * </pre>
       *
       * <code>string description = 5;</code>
       *
       * @return The bytes for description.
       */
      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>
       * Compensation description.  For example, could
       * indicate equity terms or provide additional context to an estimated
       * bonus.
       * </pre>
       *
       * <code>string description = 5;</code>
       *
       * @param value The description to set.
       * @return This builder for chaining.
       */
      public Builder setDescription(java.lang.String value) {
        if (value == null) {
          throw new NullPointerException();
        }
        description_ = value;
        bitField0_ |= 0x00000010;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Compensation description.  For example, could
       * indicate equity terms or provide additional context to an estimated
       * bonus.
       * </pre>
       *
       * <code>string description = 5;</code>
       *
       * @return This builder for chaining.
       */
      public Builder clearDescription() {
        description_ = getDefaultInstance().getDescription();
        bitField0_ = (bitField0_ & ~0x00000010);
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * Compensation description.  For example, could
       * indicate equity terms or provide additional context to an estimated
       * bonus.
       * </pre>
       *
       * <code>string description = 5;</code>
       *
       * @param value The bytes for description to set.
       * @return This builder for chaining.
       */
      public Builder setDescriptionBytes(com.google.protobuf.ByteString value) {
        if (value == null) {
          throw new NullPointerException();
        }
        checkByteStringIsUtf8(value);
        description_ = value;
        bitField0_ |= 0x00000010;
        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>
       * 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>
       *
       * @return Whether the expectedUnitsPerYear field is set.
       */
      public boolean hasExpectedUnitsPerYear() {
        return ((bitField0_ & 0x00000020) != 0);
      }
      /**
       *
       *
       * <pre>
       * 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>
       *
       * @return The expectedUnitsPerYear.
       */
      public com.google.protobuf.DoubleValue getExpectedUnitsPerYear() {
        if (expectedUnitsPerYearBuilder_ == null) {
          return expectedUnitsPerYear_ == null
              ? com.google.protobuf.DoubleValue.getDefaultInstance()
              : expectedUnitsPerYear_;
        } else {
          return expectedUnitsPerYearBuilder_.getMessage();
        }
      }
      /**
       *
       *
       * <pre>
       * 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;
        } else {
          expectedUnitsPerYearBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000020;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * 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();
        } else {
          expectedUnitsPerYearBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000020;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * 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 (((bitField0_ & 0x00000020) != 0)
              && expectedUnitsPerYear_ != null
              && expectedUnitsPerYear_ != com.google.protobuf.DoubleValue.getDefaultInstance()) {
            getExpectedUnitsPerYearBuilder().mergeFrom(value);
          } else {
            expectedUnitsPerYear_ = value;
          }
        } else {
          expectedUnitsPerYearBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000020;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * 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() {
        bitField0_ = (bitField0_ & ~0x00000020);
        expectedUnitsPerYear_ = null;
        if (expectedUnitsPerYearBuilder_ != null) {
          expectedUnitsPerYearBuilder_.dispose();
          expectedUnitsPerYearBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * 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() {
        bitField0_ |= 0x00000020;
        onChanged();
        return getExpectedUnitsPerYearFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * 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>
       * 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 {
            Builder builder = newBuilder();
            try {
              builder.mergeFrom(input, extensionRegistry);
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              throw e.setUnfinishedMessage(builder.buildPartial());
            } catch (com.google.protobuf.UninitializedMessageException e) {
              throw e.asInvalidProtocolBufferException()
                  .setUnfinishedMessage(builder.buildPartial());
            } catch (java.io.IOException e) {
              throw new com.google.protobuf.InvalidProtocolBufferException(e)
                  .setUnfinishedMessage(builder.buildPartial());
            }
            return builder.buildPartial();
          }
        };

    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>
     * 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>
     *
     * @return Whether the maxCompensation field is set.
     */
    boolean hasMaxCompensation();
    /**
     *
     *
     * <pre>
     * 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>
     *
     * @return The maxCompensation.
     */
    com.google.type.Money getMaxCompensation();
    /**
     *
     *
     * <pre>
     * 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>
     * 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>
     *
     * @return Whether the minCompensation field is set.
     */
    boolean hasMinCompensation();
    /**
     *
     *
     * <pre>
     * 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>
     *
     * @return The minCompensation.
     */
    com.google.type.Money getMinCompensation();
    /**
     *
     *
     * <pre>
     * 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
    @SuppressWarnings({"unused"})
    protected java.lang.Object newInstance(UnusedPrivateParameter unused) {
      return new CompensationRange();
    }

    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>
     * 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>
     *
     * @return Whether the maxCompensation field is set.
     */
    @java.lang.Override
    public boolean hasMaxCompensation() {
      return maxCompensation_ != null;
    }
    /**
     *
     *
     * <pre>
     * 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>
     *
     * @return The maxCompensation.
     */
    @java.lang.Override
    public com.google.type.Money getMaxCompensation() {
      return maxCompensation_ == null
          ? com.google.type.Money.getDefaultInstance()
          : maxCompensation_;
    }
    /**
     *
     *
     * <pre>
     * 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>
     */
    @java.lang.Override
    public com.google.type.MoneyOrBuilder getMaxCompensationOrBuilder() {
      return maxCompensation_ == null
          ? com.google.type.Money.getDefaultInstance()
          : maxCompensation_;
    }

    public static final int MIN_COMPENSATION_FIELD_NUMBER = 1;
    private com.google.type.Money minCompensation_;
    /**
     *
     *
     * <pre>
     * 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>
     *
     * @return Whether the minCompensation field is set.
     */
    @java.lang.Override
    public boolean hasMinCompensation() {
      return minCompensation_ != null;
    }
    /**
     *
     *
     * <pre>
     * 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>
     *
     * @return The minCompensation.
     */
    @java.lang.Override
    public com.google.type.Money getMinCompensation() {
      return minCompensation_ == null
          ? com.google.type.Money.getDefaultInstance()
          : minCompensation_;
    }
    /**
     *
     *
     * <pre>
     * 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>
     */
    @java.lang.Override
    public com.google.type.MoneyOrBuilder getMinCompensationOrBuilder() {
      return minCompensation_ == null
          ? com.google.type.Money.getDefaultInstance()
          : minCompensation_;
    }

    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());
      }
      getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {}

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

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        maxCompensation_ = null;
        if (maxCompensationBuilder_ != null) {
          maxCompensationBuilder_.dispose();
          maxCompensationBuilder_ = null;
        }
        minCompensation_ = null;
        if (minCompensationBuilder_ != null) {
          minCompensationBuilder_.dispose();
          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 (bitField0_ != 0) {
          buildPartial0(result);
        }
        onBuilt();
        return result;
      }

      private void buildPartial0(
          com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.maxCompensation_ =
              maxCompensationBuilder_ == null ? maxCompensation_ : maxCompensationBuilder_.build();
        }
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.minCompensation_ =
              minCompensationBuilder_ == null ? minCompensation_ : minCompensationBuilder_.build();
        }
      }

      @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.getUnknownFields());
        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 {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 10:
                {
                  input.readMessage(
                      getMinCompensationFieldBuilder().getBuilder(), extensionRegistry);
                  bitField0_ |= 0x00000002;
                  break;
                } // case 10
              case 18:
                {
                  input.readMessage(
                      getMaxCompensationFieldBuilder().getBuilder(), extensionRegistry);
                  bitField0_ |= 0x00000001;
                  break;
                } // case 18
              default:
                {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }

      private int bitField0_;

      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>
       * 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>
       *
       * @return Whether the maxCompensation field is set.
       */
      public boolean hasMaxCompensation() {
        return ((bitField0_ & 0x00000001) != 0);
      }
      /**
       *
       *
       * <pre>
       * 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>
       *
       * @return The maxCompensation.
       */
      public com.google.type.Money getMaxCompensation() {
        if (maxCompensationBuilder_ == null) {
          return maxCompensation_ == null
              ? com.google.type.Money.getDefaultInstance()
              : maxCompensation_;
        } else {
          return maxCompensationBuilder_.getMessage();
        }
      }
      /**
       *
       *
       * <pre>
       * 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;
        } else {
          maxCompensationBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * 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();
        } else {
          maxCompensationBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * 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 (((bitField0_ & 0x00000001) != 0)
              && maxCompensation_ != null
              && maxCompensation_ != com.google.type.Money.getDefaultInstance()) {
            getMaxCompensationBuilder().mergeFrom(value);
          } else {
            maxCompensation_ = value;
          }
        } else {
          maxCompensationBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * 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() {
        bitField0_ = (bitField0_ & ~0x00000001);
        maxCompensation_ = null;
        if (maxCompensationBuilder_ != null) {
          maxCompensationBuilder_.dispose();
          maxCompensationBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * 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() {
        bitField0_ |= 0x00000001;
        onChanged();
        return getMaxCompensationFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * 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>
       * 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>
       * 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>
       *
       * @return Whether the minCompensation field is set.
       */
      public boolean hasMinCompensation() {
        return ((bitField0_ & 0x00000002) != 0);
      }
      /**
       *
       *
       * <pre>
       * 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>
       *
       * @return The minCompensation.
       */
      public com.google.type.Money getMinCompensation() {
        if (minCompensationBuilder_ == null) {
          return minCompensation_ == null
              ? com.google.type.Money.getDefaultInstance()
              : minCompensation_;
        } else {
          return minCompensationBuilder_.getMessage();
        }
      }
      /**
       *
       *
       * <pre>
       * 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;
        } else {
          minCompensationBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * 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();
        } else {
          minCompensationBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * 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 (((bitField0_ & 0x00000002) != 0)
              && minCompensation_ != null
              && minCompensation_ != com.google.type.Money.getDefaultInstance()) {
            getMinCompensationBuilder().mergeFrom(value);
          } else {
            minCompensation_ = value;
          }
        } else {
          minCompensationBuilder_.mergeFrom(value);
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * 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() {
        bitField0_ = (bitField0_ & ~0x00000002);
        minCompensation_ = null;
        if (minCompensationBuilder_ != null) {
          minCompensationBuilder_.dispose();
          minCompensationBuilder_ = null;
        }
        onChanged();
        return this;
      }
      /**
       *
       *
       * <pre>
       * 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() {
        bitField0_ |= 0x00000002;
        onChanged();
        return getMinCompensationFieldBuilder().getBuilder();
      }
      /**
       *
       *
       * <pre>
       * 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>
       * 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 {
            Builder builder = newBuilder();
            try {
              builder.mergeFrom(input, extensionRegistry);
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              throw e.setUnfinishedMessage(builder.buildPartial());
            } catch (com.google.protobuf.UninitializedMessageException e) {
              throw e.asInvalidProtocolBufferException()
                  .setUnfinishedMessage(builder.buildPartial());
            } catch (java.io.IOException e) {
              throw new com.google.protobuf.InvalidProtocolBufferException(e)
                  .setUnfinishedMessage(builder.buildPartial());
            }
            return builder.buildPartial();
          }
        };

    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;
    }
  }

  public static final int ENTRIES_FIELD_NUMBER = 1;

  @SuppressWarnings("serial")
  private java.util.List<com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry>
      entries_;
  /**
   *
   *
   * <pre>
   * 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>
   */
  @java.lang.Override
  public java.util.List<com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry>
      getEntriesList() {
    return entries_;
  }
  /**
   *
   *
   * <pre>
   * 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>
   */
  @java.lang.Override
  public java.util.List<
          ? extends com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntryOrBuilder>
      getEntriesOrBuilderList() {
    return entries_;
  }
  /**
   *
   *
   * <pre>
   * 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>
   */
  @java.lang.Override
  public int getEntriesCount() {
    return entries_.size();
  }
  /**
   *
   *
   * <pre>
   * 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>
   */
  @java.lang.Override
  public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry getEntries(int index) {
    return entries_.get(index);
  }
  /**
   *
   *
   * <pre>
   * 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>
   */
  @java.lang.Override
  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.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
   * 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the annualizedBaseCompensationRange field is set.
   */
  @java.lang.Override
  public boolean hasAnnualizedBaseCompensationRange() {
    return annualizedBaseCompensationRange_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. Annualized base compensation range. Computed as base
   * compensation entry's
   * [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
   * 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The annualizedBaseCompensationRange.
   */
  @java.lang.Override
  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.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
   * 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder
      getAnnualizedBaseCompensationRangeOrBuilder() {
    return annualizedBaseCompensationRange_ == null
        ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.getDefaultInstance()
        : annualizedBaseCompensationRange_;
  }

  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.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
   * 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return Whether the annualizedTotalCompensationRange field is set.
   */
  @java.lang.Override
  public boolean hasAnnualizedTotalCompensationRange() {
    return annualizedTotalCompensationRange_ != null;
  }
  /**
   *
   *
   * <pre>
   * Output only. Annualized total compensation range. Computed as all
   * compensation entries'
   * [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
   * 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   *
   * @return The annualizedTotalCompensationRange.
   */
  @java.lang.Override
  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.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
   * 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
   * </code>
   */
  @java.lang.Override
  public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRangeOrBuilder
      getAnnualizedTotalCompensationRangeOrBuilder() {
    return annualizedTotalCompensationRange_ == null
        ? com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.getDefaultInstance()
        : annualizedTotalCompensationRange_;
  }

  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());
    }
    getUnknownFields().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 += getUnknownFields().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 (!getUnknownFields().equals(other.getUnknownFields())) 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) + getUnknownFields().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() {}

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      if (entriesBuilder_ == null) {
        entries_ = java.util.Collections.emptyList();
      } else {
        entries_ = null;
        entriesBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000001);
      annualizedBaseCompensationRange_ = null;
      if (annualizedBaseCompensationRangeBuilder_ != null) {
        annualizedBaseCompensationRangeBuilder_.dispose();
        annualizedBaseCompensationRangeBuilder_ = null;
      }
      annualizedTotalCompensationRange_ = null;
      if (annualizedTotalCompensationRangeBuilder_ != null) {
        annualizedTotalCompensationRangeBuilder_.dispose();
        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);
      buildPartialRepeatedFields(result);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      onBuilt();
      return result;
    }

    private void buildPartialRepeatedFields(
        com.google.cloud.talent.v4beta1.CompensationInfo result) {
      if (entriesBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)) {
          entries_ = java.util.Collections.unmodifiableList(entries_);
          bitField0_ = (bitField0_ & ~0x00000001);
        }
        result.entries_ = entries_;
      } else {
        result.entries_ = entriesBuilder_.build();
      }
    }

    private void buildPartial0(com.google.cloud.talent.v4beta1.CompensationInfo result) {
      int from_bitField0_ = bitField0_;
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.annualizedBaseCompensationRange_ =
            annualizedBaseCompensationRangeBuilder_ == null
                ? annualizedBaseCompensationRange_
                : annualizedBaseCompensationRangeBuilder_.build();
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.annualizedTotalCompensationRange_ =
            annualizedTotalCompensationRangeBuilder_ == null
                ? annualizedTotalCompensationRange_
                : annualizedTotalCompensationRangeBuilder_.build();
      }
    }

    @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.getUnknownFields());
      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 {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10:
              {
                com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry m =
                    input.readMessage(
                        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.parser(),
                        extensionRegistry);
                if (entriesBuilder_ == null) {
                  ensureEntriesIsMutable();
                  entries_.add(m);
                } else {
                  entriesBuilder_.addMessage(m);
                }
                break;
              } // case 10
            case 18:
              {
                input.readMessage(
                    getAnnualizedBaseCompensationRangeFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000002;
                break;
              } // case 18
            case 26:
              {
                input.readMessage(
                    getAnnualizedTotalCompensationRangeFieldBuilder().getBuilder(),
                    extensionRegistry);
                bitField0_ |= 0x00000004;
                break;
              } // case 26
            default:
              {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      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>
     * 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>
     * 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>
     * 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>
     * 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>
     * 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>
     * 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>
     * 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>
     * 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>
     * 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>
     * 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>
     * 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>
     * 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>
     * 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>
     * 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>
     * 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>
     * 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>
     * 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>
     * 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.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
     * 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the annualizedBaseCompensationRange field is set.
     */
    public boolean hasAnnualizedBaseCompensationRange() {
      return ((bitField0_ & 0x00000002) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. Annualized base compensation range. Computed as base
     * compensation entry's
     * [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
     * 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The annualizedBaseCompensationRange.
     */
    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.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
     * 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setAnnualizedBaseCompensationRange(
        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) {
      if (annualizedBaseCompensationRangeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        annualizedBaseCompensationRange_ = value;
      } else {
        annualizedBaseCompensationRangeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Annualized base compensation range. Computed as base
     * compensation entry's
     * [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
     * 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setAnnualizedBaseCompensationRange(
        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder
            builderForValue) {
      if (annualizedBaseCompensationRangeBuilder_ == null) {
        annualizedBaseCompensationRange_ = builderForValue.build();
      } else {
        annualizedBaseCompensationRangeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Annualized base compensation range. Computed as base
     * compensation entry's
     * [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
     * 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeAnnualizedBaseCompensationRange(
        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) {
      if (annualizedBaseCompensationRangeBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)
            && annualizedBaseCompensationRange_ != null
            && annualizedBaseCompensationRange_
                != com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange
                    .getDefaultInstance()) {
          getAnnualizedBaseCompensationRangeBuilder().mergeFrom(value);
        } else {
          annualizedBaseCompensationRange_ = value;
        }
      } else {
        annualizedBaseCompensationRangeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Annualized base compensation range. Computed as base
     * compensation entry's
     * [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
     * 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearAnnualizedBaseCompensationRange() {
      bitField0_ = (bitField0_ & ~0x00000002);
      annualizedBaseCompensationRange_ = null;
      if (annualizedBaseCompensationRangeBuilder_ != null) {
        annualizedBaseCompensationRangeBuilder_.dispose();
        annualizedBaseCompensationRangeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Annualized base compensation range. Computed as base
     * compensation entry's
     * [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
     * 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder
        getAnnualizedBaseCompensationRangeBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return getAnnualizedBaseCompensationRangeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. Annualized base compensation range. Computed as base
     * compensation entry's
     * [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
     * 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </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.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
     * 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </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.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
     * 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return Whether the annualizedTotalCompensationRange field is set.
     */
    public boolean hasAnnualizedTotalCompensationRange() {
      return ((bitField0_ & 0x00000004) != 0);
    }
    /**
     *
     *
     * <pre>
     * Output only. Annualized total compensation range. Computed as all
     * compensation entries'
     * [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
     * 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     *
     * @return The annualizedTotalCompensationRange.
     */
    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.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
     * 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setAnnualizedTotalCompensationRange(
        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) {
      if (annualizedTotalCompensationRangeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        annualizedTotalCompensationRange_ = value;
      } else {
        annualizedTotalCompensationRangeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Annualized total compensation range. Computed as all
     * compensation entries'
     * [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
     * 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder setAnnualizedTotalCompensationRange(
        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder
            builderForValue) {
      if (annualizedTotalCompensationRangeBuilder_ == null) {
        annualizedTotalCompensationRange_ = builderForValue.build();
      } else {
        annualizedTotalCompensationRangeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Annualized total compensation range. Computed as all
     * compensation entries'
     * [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
     * 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder mergeAnnualizedTotalCompensationRange(
        com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange value) {
      if (annualizedTotalCompensationRangeBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0)
            && annualizedTotalCompensationRange_ != null
            && annualizedTotalCompensationRange_
                != com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange
                    .getDefaultInstance()) {
          getAnnualizedTotalCompensationRangeBuilder().mergeFrom(value);
        } else {
          annualizedTotalCompensationRange_ = value;
        }
      } else {
        annualizedTotalCompensationRangeBuilder_.mergeFrom(value);
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Annualized total compensation range. Computed as all
     * compensation entries'
     * [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
     * 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public Builder clearAnnualizedTotalCompensationRange() {
      bitField0_ = (bitField0_ & ~0x00000004);
      annualizedTotalCompensationRange_ = null;
      if (annualizedTotalCompensationRangeBuilder_ != null) {
        annualizedTotalCompensationRangeBuilder_.dispose();
        annualizedTotalCompensationRangeBuilder_ = null;
      }
      onChanged();
      return this;
    }
    /**
     *
     *
     * <pre>
     * Output only. Annualized total compensation range. Computed as all
     * compensation entries'
     * [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
     * 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </code>
     */
    public com.google.cloud.talent.v4beta1.CompensationInfo.CompensationRange.Builder
        getAnnualizedTotalCompensationRangeBuilder() {
      bitField0_ |= 0x00000004;
      onChanged();
      return getAnnualizedTotalCompensationRangeFieldBuilder().getBuilder();
    }
    /**
     *
     *
     * <pre>
     * Output only. Annualized total compensation range. Computed as all
     * compensation entries'
     * [CompensationEntry.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
     * 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </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.amount][google.cloud.talent.v4beta1.CompensationInfo.CompensationEntry.amount]
     * 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 [(.google.api.field_behavior) = OUTPUT_ONLY];
     * </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 {
          Builder builder = newBuilder();
          try {
            builder.mergeFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(builder.buildPartial());
          } catch (com.google.protobuf.UninitializedMessageException e) {
            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e)
                .setUnfinishedMessage(builder.buildPartial());
          }
          return builder.buildPartial();
        }
      };

  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;
  }
}
