@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>

@return The unit.
java-talent/proto-google-cloud-talent-v4beta1/src/main/java/com/google/cloud/talent/v4beta1/CompensationInfo.java