# Google Cloud Talent Solution V4 Client - Class CompensationInfo (2.3.0)

2.3.0 (latest) 2.2.1 2.1.3 2.0.2 1.3.5 1.2.2 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Talent Solution V4 Client class CompensationInfo.

Job compensation details.

Generated from protobuf message `google.cloud.talent.v4.CompensationInfo`

## Namespace

Google \\ Cloud \\ Talent \\ V4

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ entries` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompensationInfo.CompensationEntry>` Job compensation information. At most one entry can be of type [CompensationInfo.CompensationType.BASE](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompensationInfo.CompensationType#_Google_Cloud_Talent_V4_CompensationInfo_CompensationType__BASE), which is referred as **base compensation entry** for the job. |
| `↳ annualized_base_compensation_range` | `https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompensationInfo.CompensationRange` Output only. Annualized base compensation range. Computed as base compensation entry's [CompensationEntry.amount](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompensationInfo.CompensationEntry#_Google_Cloud_Talent_V4_CompensationInfo_CompensationEntry__getAmount__) times [CompensationEntry.expected_units_per_year](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompensationInfo.CompensationEntry#_Google_Cloud_Talent_V4_CompensationInfo_CompensationEntry__getExpectedUnitsPerYear__). See [CompensationEntry](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompensationInfo.CompensationEntry) for explanation on compensation annualization. |
| `↳ annualized_total_compensation_range` | `https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompensationInfo.CompensationRange` Output only. Annualized total compensation range. Computed as all compensation entries' [CompensationEntry.amount](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompensationInfo.CompensationEntry#_Google_Cloud_Talent_V4_CompensationInfo_CompensationEntry__getAmount__) times [CompensationEntry.expected_units_per_year](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompensationInfo.CompensationEntry#_Google_Cloud_Talent_V4_CompensationInfo_CompensationEntry__getExpectedUnitsPerYear__). See [CompensationEntry](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompensationInfo.CompensationEntry) for explanation on compensation annualization. |

### getEntries

Job compensation information.

At most one entry can be of type
[CompensationInfo.CompensationType.BASE](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompensationInfo.CompensationType#_Google_Cloud_Talent_V4_CompensationInfo_CompensationType__BASE),
which is referred as **base compensation entry** for the job.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompensationInfo.CompensationEntry>` |   |

### setEntries

Job compensation information.

At most one entry can be of type
[CompensationInfo.CompensationType.BASE](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompensationInfo.CompensationType#_Google_Cloud_Talent_V4_CompensationInfo_CompensationType__BASE),
which is referred as **base compensation entry** for the job.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompensationInfo.CompensationEntry>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAnnualizedBaseCompensationRange

Output only. Annualized base compensation range. Computed as base
compensation entry's
[CompensationEntry.amount](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompensationInfo.CompensationEntry#_Google_Cloud_Talent_V4_CompensationInfo_CompensationEntry__getAmount__)
times
[CompensationEntry.expected_units_per_year](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompensationInfo.CompensationEntry#_Google_Cloud_Talent_V4_CompensationInfo_CompensationEntry__getExpectedUnitsPerYear__).

See
[CompensationEntry](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompensationInfo.CompensationEntry)
for explanation on compensation annualization.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompensationInfo.CompensationRange|null` |   |

### hasAnnualizedBaseCompensationRange

### clearAnnualizedBaseCompensationRange

### setAnnualizedBaseCompensationRange

Output only. Annualized base compensation range. Computed as base
compensation entry's
[CompensationEntry.amount](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompensationInfo.CompensationEntry#_Google_Cloud_Talent_V4_CompensationInfo_CompensationEntry__getAmount__)
times
[CompensationEntry.expected_units_per_year](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompensationInfo.CompensationEntry#_Google_Cloud_Talent_V4_CompensationInfo_CompensationEntry__getExpectedUnitsPerYear__).

See
[CompensationEntry](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompensationInfo.CompensationEntry)
for explanation on compensation annualization.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompensationInfo.CompensationRange` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAnnualizedTotalCompensationRange

Output only. Annualized total compensation range. Computed as all
compensation entries'
[CompensationEntry.amount](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompensationInfo.CompensationEntry#_Google_Cloud_Talent_V4_CompensationInfo_CompensationEntry__getAmount__)
times
[CompensationEntry.expected_units_per_year](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompensationInfo.CompensationEntry#_Google_Cloud_Talent_V4_CompensationInfo_CompensationEntry__getExpectedUnitsPerYear__).

See
[CompensationEntry](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompensationInfo.CompensationEntry)
for explanation on compensation annualization.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompensationInfo.CompensationRange|null` |   |

### hasAnnualizedTotalCompensationRange

### clearAnnualizedTotalCompensationRange

### setAnnualizedTotalCompensationRange

Output only. Annualized total compensation range. Computed as all
compensation entries'
[CompensationEntry.amount](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompensationInfo.CompensationEntry#_Google_Cloud_Talent_V4_CompensationInfo_CompensationEntry__getAmount__)
times
[CompensationEntry.expected_units_per_year](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompensationInfo.CompensationEntry#_Google_Cloud_Talent_V4_CompensationInfo_CompensationEntry__getExpectedUnitsPerYear__).

See
[CompensationEntry](https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompensationInfo.CompensationEntry)
for explanation on compensation annualization.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-talent/latest/V4.CompensationInfo.CompensationRange` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |