# Cloud Talent Solution V4beta1 API - Class Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationEntry (v0.19.0)

0.19.0 (latest) 0.18.1 0.17.1 0.16.0 0.15.0 0.14.1 0.13.0 0.12.0 0.11.1 0.10.2 0.9.0 0.8.1 0.7.0 0.6.1 0.5.0 0.4.6 Reference documentation and code samples for the Cloud Talent Solution V4beta1 API class Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationEntry.

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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompensationInfo-CompensationEntry#Google__Cloud__Talent__V4beta1__CompensationInfo__CompensationEntry_amount_instance_ "Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationEntry#amount (method)") or [range](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompensationInfo-CompensationEntry#Google__Cloud__Talent__V4beta1__CompensationInfo__CompensationEntry_range_instance_ "Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationEntry#range (method)").
- and its [expected_units_per_year](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompensationInfo-CompensationEntry#Google__Cloud__Talent__V4beta1__CompensationInfo__CompensationEntry_expected_units_per_year_instance_ "Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationEntry#expected_units_per_year (method)") is set or can be derived. Its annualized range is determined as ([amount](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompensationInfo-CompensationEntry#Google__Cloud__Talent__V4beta1__CompensationInfo__CompensationEntry_amount_instance_ "Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationEntry#amount (method)") or [range](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompensationInfo-CompensationEntry#Google__Cloud__Talent__V4beta1__CompensationInfo__CompensationEntry_range_instance_ "Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationEntry#range (method)")) times [expected_units_per_year](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompensationInfo-CompensationEntry#Google__Cloud__Talent__V4beta1__CompensationInfo__CompensationEntry_expected_units_per_year_instance_ "Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationEntry#expected_units_per_year (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #amount

    def amount() -> ::Google::Type::Money

**Returns**

- ([::Google::Type::Money](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Type-Money)) --- Compensation amount.


  Note: The following fields are mutually exclusive: `amount`, `range`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #amount=

    def amount=(value) -> ::Google::Type::Money

**Parameter**

- **value** ([::Google::Type::Money](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Type-Money)) --- Compensation amount.


  Note: The following fields are mutually exclusive: `amount`, `range`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Type::Money](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Type-Money)) --- Compensation amount.


  Note: The following fields are mutually exclusive: `amount`, `range`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #description

    def description() -> ::String

**Returns**

- (::String) --- Compensation description. For example, could indicate equity terms or provide additional context to an estimated bonus.

### #description=

    def description=(value) -> ::String

**Parameter**

- **value** (::String) --- Compensation description. For example, could indicate equity terms or provide additional context to an estimated bonus.
**Returns**

- (::String) --- Compensation description. For example, could indicate equity terms or provide additional context to an estimated bonus.

### #expected_units_per_year

    def expected_units_per_year() -> ::Google::Protobuf::DoubleValue

**Returns**

- ([::Google::Protobuf::DoubleValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Protobuf-DoubleValue)) ---

  Expected number of units paid each year. If not specified, when
  [Job.employment_types](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-Job#Google__Cloud__Talent__V4beta1__Job_employment_types_instance_ "Google::Cloud::Talent::V4beta1::Job#employment_types (method)")
  is FULLTIME, a default value is inferred based on
  [unit](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompensationInfo-CompensationEntry#Google__Cloud__Talent__V4beta1__CompensationInfo__CompensationEntry_unit_instance_ "Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationEntry#unit (method)").
  Default values:
  - HOURLY: 2080
  - DAILY: 260
  - WEEKLY: 52
  - MONTHLY: 12
  - ANNUAL: 1

### #expected_units_per_year=

    def expected_units_per_year=(value) -> ::Google::Protobuf::DoubleValue

**Parameter**

- **value** ([::Google::Protobuf::DoubleValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Protobuf-DoubleValue)) ---

  Expected number of units paid each year. If not specified, when
  [Job.employment_types](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-Job#Google__Cloud__Talent__V4beta1__Job_employment_types_instance_ "Google::Cloud::Talent::V4beta1::Job#employment_types (method)")
  is FULLTIME, a default value is inferred based on
  [unit](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompensationInfo-CompensationEntry#Google__Cloud__Talent__V4beta1__CompensationInfo__CompensationEntry_unit_instance_ "Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationEntry#unit (method)").
  Default values:
  - HOURLY: 2080
  - DAILY: 260
  - WEEKLY: 52
  - MONTHLY: 12
  - ANNUAL: 1
**Returns**

- ([::Google::Protobuf::DoubleValue](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Protobuf-DoubleValue)) ---

  Expected number of units paid each year. If not specified, when
  [Job.employment_types](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-Job#Google__Cloud__Talent__V4beta1__Job_employment_types_instance_ "Google::Cloud::Talent::V4beta1::Job#employment_types (method)")
  is FULLTIME, a default value is inferred based on
  [unit](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompensationInfo-CompensationEntry#Google__Cloud__Talent__V4beta1__CompensationInfo__CompensationEntry_unit_instance_ "Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationEntry#unit (method)").
  Default values:
  - HOURLY: 2080
  - DAILY: 260
  - WEEKLY: 52
  - MONTHLY: 12
  - ANNUAL: 1

### #range

    def range() -> ::Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationRange

**Returns**

- ([::Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationRange](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompensationInfo-CompensationRange)) --- Compensation range.


  Note: The following fields are mutually exclusive: `range`, `amount`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #range=

    def range=(value) -> ::Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationRange

**Parameter**

- **value** ([::Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationRange](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompensationInfo-CompensationRange)) --- Compensation range.


  Note: The following fields are mutually exclusive: `range`, `amount`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationRange](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompensationInfo-CompensationRange)) --- Compensation range.


  Note: The following fields are mutually exclusive: `range`, `amount`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #type

    def type() -> ::Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationType

**Returns**

- ([::Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompensationInfo-CompensationType)) --- Compensation type.


  Default is
  [CompensationType.COMPENSATION_TYPE_UNSPECIFIED](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompensationInfo-CompensationType#Google__Cloud__Talent__V4beta1__CompensationInfo__CompensationType__COMPENSATION_TYPE_UNSPECIFIED "Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationType::COMPENSATION_TYPE_UNSPECIFIED (constant)").

### #type=

    def type=(value) -> ::Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationType

**Parameter**

- **value** ([::Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompensationInfo-CompensationType)) --- Compensation type.


  Default is
  [CompensationType.COMPENSATION_TYPE_UNSPECIFIED](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompensationInfo-CompensationType#Google__Cloud__Talent__V4beta1__CompensationInfo__CompensationType__COMPENSATION_TYPE_UNSPECIFIED "Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationType::COMPENSATION_TYPE_UNSPECIFIED (constant)").
**Returns**

- ([::Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationType](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompensationInfo-CompensationType)) --- Compensation type.


  Default is
  [CompensationType.COMPENSATION_TYPE_UNSPECIFIED](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompensationInfo-CompensationType#Google__Cloud__Talent__V4beta1__CompensationInfo__CompensationType__COMPENSATION_TYPE_UNSPECIFIED "Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationType::COMPENSATION_TYPE_UNSPECIFIED (constant)").

### #unit

    def unit() -> ::Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationUnit

**Returns**

- ([::Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationUnit](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompensationInfo-CompensationUnit)) --- Frequency of the specified amount.


  Default is
  [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompensationInfo-CompensationUnit#Google__Cloud__Talent__V4beta1__CompensationInfo__CompensationUnit__COMPENSATION_UNIT_UNSPECIFIED "Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationUnit::COMPENSATION_UNIT_UNSPECIFIED (constant)").

### #unit=

    def unit=(value) -> ::Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationUnit

**Parameter**

- **value** ([::Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationUnit](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompensationInfo-CompensationUnit)) --- Frequency of the specified amount.


  Default is
  [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompensationInfo-CompensationUnit#Google__Cloud__Talent__V4beta1__CompensationInfo__CompensationUnit__COMPENSATION_UNIT_UNSPECIFIED "Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationUnit::COMPENSATION_UNIT_UNSPECIFIED (constant)").
**Returns**

- ([::Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationUnit](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompensationInfo-CompensationUnit)) --- Frequency of the specified amount.


  Default is
  [CompensationUnit.COMPENSATION_UNIT_UNSPECIFIED](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Cloud-Talent-V4beta1-CompensationInfo-CompensationUnit#Google__Cloud__Talent__V4beta1__CompensationInfo__CompensationUnit__COMPENSATION_UNIT_UNSPECIFIED "Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationUnit::COMPENSATION_UNIT_UNSPECIFIED (constant)").