# Google Cloud Channel V1 Client - Class PriceTier (2.4.1)

2.4.1 (latest) 2.4.0 2.3.1 2.2.1 2.1.4 2.0.0 1.9.5 1.8.2 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.1 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Channel V1 Client class PriceTier.

Defines price at resource tier level.

For example, an offer with following definition :

- Tier 1: Provide 25% discount for all seats between 1 and 25.
- Tier 2: Provide 10% discount for all seats between 26 and 100.
- Tier 3: Provide flat 15% discount for all seats above 100. Each of these tiers is represented as a PriceTier.

Generated from protobuf message `google.cloud.channel.v1.PriceTier`

## Namespace

Google \\ Cloud \\ Channel \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ first_resource` | `int` First resource for which the tier price applies. |
| `↳ last_resource` | `int` Last resource for which the tier price applies. |
| `↳ price` | `https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.Price` Price of the tier. |

### getFirstResource

First resource for which the tier price applies.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setFirstResource

First resource for which the tier price applies.

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

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

### getLastResource

Last resource for which the tier price applies.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setLastResource

Last resource for which the tier price applies.

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

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

### getPrice

Price of the tier.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.Price|null` |   |

### hasPrice

### clearPrice

### setPrice

Price of the tier.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.Price` |

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