# Cloud Talent Solution V4beta1 API - Class Google::Cloud::Talent::V4beta1::CompensationInfo::CompensationRange (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::CompensationRange.

Compensation range.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #max_compensation

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

**Returns**

- ([::Google::Type::Money](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Type-Money)) --- 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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Type-Money#Google__Type__Money_currency_code_instance_ "Google::Type::Money#currency_code (method)") of min_compensation.

### #max_compensation=

    def max_compensation=(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)) --- 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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Type-Money#Google__Type__Money_currency_code_instance_ "Google::Type::Money#currency_code (method)") of min_compensation.
**Returns**

- ([::Google::Type::Money](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Type-Money)) --- 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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Type-Money#Google__Type__Money_currency_code_instance_ "Google::Type::Money#currency_code (method)") of min_compensation.

### #min_compensation

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

**Returns**

- ([::Google::Type::Money](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Type-Money)) --- 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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Type-Money#Google__Type__Money_currency_code_instance_ "Google::Type::Money#currency_code (method)") of max_compensation.

### #min_compensation=

    def min_compensation=(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)) --- 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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Type-Money#Google__Type__Money_currency_code_instance_ "Google::Type::Money#currency_code (method)") of max_compensation.
**Returns**

- ([::Google::Type::Money](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Type-Money)) --- 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](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-talent-v4beta1/latest/Google-Type-Money#Google__Type__Money_currency_code_instance_ "Google::Type::Money#currency_code (method)") of max_compensation.