# Google Cloud Channel V1 Client - Class ConditionalOverride (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 ConditionalOverride.

Specifies the override to conditionally apply.

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

## Namespace

Google \\ Cloud \\ Channel \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ adjustment` | `https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.RepricingAdjustment` Required. Information about the applied override's adjustment. |
| `↳ rebilling_basis` | `int` Required. The [RebillingBasis](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.RebillingBasis) to use for the applied override. Shows the relative cost based on your repricing costs. |
| `↳ repricing_condition` | `https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.RepricingCondition` Required. Specifies the condition which, if met, will apply the override. |

### getAdjustment

Required. Information about the applied override's adjustment.

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

### hasAdjustment

### clearAdjustment

### setAdjustment

Required. Information about the applied override's adjustment.

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

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

### getRebillingBasis

Required. The [RebillingBasis](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.RebillingBasis) to
use for the applied override. Shows the relative cost based on your
repricing costs.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [RebillingBasis](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.RebillingBasis). |

### setRebillingBasis

Required. The [RebillingBasis](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.RebillingBasis) to
use for the applied override. Shows the relative cost based on your
repricing costs.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [RebillingBasis](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.RebillingBasis). |

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

### getRepricingCondition

Required. Specifies the condition which, if met, will apply the override.

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

### hasRepricingCondition

### clearRepricingCondition

### setRepricingCondition

Required. Specifies the condition which, if met, will apply the override.

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

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