# Google Cloud Billing V1 Client - Class TierRate (2.2.2)

2.2.2 (latest) 2.2.1 2.1.3 2.0.1 1.9.8 1.8.0 1.7.5 1.6.0 1.5.6 Reference documentation and code samples for the Google Cloud Billing V1 Client class TierRate.

The price rate indicating starting usage and its corresponding price.

Generated from protobuf message `google.cloud.billing.v1.PricingExpression.TierRate`

## Namespace

Google \\ Cloud \\ Billing \\ V1 \\ PricingExpression

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ start_usage_amount` | `float` Usage is priced at this rate only after this amount. Example: start_usage_amount of 10 indicates that the usage will be priced at the unit_price after the first 10 usage_units. |
| `↳ unit_price` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Money.html` The price per unit of usage. Example: unit_price of amount $10 indicates that each unit will cost $10. |

### getStartUsageAmount

Usage is priced at this rate only after this amount.

Example: start_usage_amount of 10 indicates that the usage will be priced
at the unit_price after the first 10 usage_units.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `float` |   |

### setStartUsageAmount

Usage is priced at this rate only after this amount.

Example: start_usage_amount of 10 indicates that the usage will be priced
at the unit_price after the first 10 usage_units.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `float` |

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

### getUnitPrice

The price per unit of usage.

Example: unit_price of amount $10 indicates that each unit will cost $10.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Money.html|null` |   |

### hasUnitPrice

### clearUnitPrice

### setUnitPrice

The price per unit of usage.

Example: unit_price of amount $10 indicates that each unit will cost $10.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Type.Money.html` |

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