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

      size = 0;
      if (type_
          != com.google.cloud.talent.v4.CompensationInfo.CompensationType
              .COMPENSATION_TYPE_UNSPECIFIED
              .getNumber()) {
        size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_);
      }
      if (unit_
          != com.google.cloud.talent.v4.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.v4.CompensationInfo.CompensationRange)
                    compensationAmount_);
      }
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, description_);
      }
      if (((bitField0_ & 0x00000001) != 0)) {
        size +=
            com.google.protobuf.CodedOutputStream.computeMessageSize(6, getExpectedUnitsPerYear());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }
<pre>
Expected number of units paid each year. If not specified, when
[Job.employment_types][google.cloud.talent.v4.Job.employment_types] is
FULLTIME, a default value is inferred based on
[unit][google.cloud.talent.v4.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-talent/proto-google-cloud-talent-v4/src/main/java/com/google/cloud/talent/v4/CompensationInfo.java