3.10.0 (latest) 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.3.0 2.2.0

    public sealed class PricingExpression : IMessage<PricingExpression>, IEquatable<PricingExpression>, IDeepCloneable<PricingExpression>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Billing v1 API class PricingExpression.

Expresses a mathematical pricing formula. For Example:-

`usage_unit: GBy`
`tiered_rates:`
`[start_usage_amount: 20, unit_price: $10]`
`[start_usage_amount: 100, unit_price: $5]`

The above expresses a pricing formula where the first 20GB is free, the
next 80GB is priced at $10 per GB followed by $5 per GB for additional
usage.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> PricingExpression

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[PricingExpression](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.PricingExpression.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PricingExpression](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.PricingExpression.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[PricingExpression](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.PricingExpression.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Billing.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Billing.V1/latest/Google.Cloud.Billing.V1.md.txt)

## Assembly

Google.Cloud.Billing.V1.dll

## Constructors

### PricingExpression()

    public PricingExpression()

### PricingExpression(PricingExpression)

    public PricingExpression(PricingExpression other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `PricingExpression` |

## Properties

### BaseUnit

    public string BaseUnit { get; set; }

The base unit for the SKU which is the unit used in usage exports.
Example: "By"

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### BaseUnitConversionFactor

    public double BaseUnitConversionFactor { get; set; }

Conversion factor for converting from price per usage_unit to price per
base_unit, and start_usage_amount to start_usage_amount in base_unit.
unit_price / base_unit_conversion_factor = price per base_unit.
start_usage_amount \* base_unit_conversion_factor = start_usage_amount in
base_unit.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `double` |   |

### BaseUnitDescription

    public string BaseUnitDescription { get; set; }

The base unit in human readable form.
Example: "byte".

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### DisplayQuantity

    public double DisplayQuantity { get; set; }

The recommended quantity of units for displaying pricing info. When
displaying pricing info it is recommended to display:
(unit_price \* display_quantity) per display_quantity usage_unit.
This field does not affect the pricing formula and is for display purposes
only.
Example: If the unit_price is "0.0001 USD", the usage_unit is "GB" and
the display_quantity is "1000" then the recommended way of displaying the
pricing info is "0.10 USD per 1000 GB"

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `double` |   |

### TieredRates

    public RepeatedField<PricingExpression.Types.TierRate> TieredRates { get; }

The list of tiered rates for this pricing. The total cost is computed by
applying each of the tiered rates on usage. This repeated list is sorted
by ascending order of start_usage_amount.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldPricingExpressionTypesTierRate` |   |

### UsageUnit

    public string UsageUnit { get; set; }

The short hand for unit of usage this pricing is specified in.
Example: usage_unit of "GiBy" means that usage is specified in "Gibi Byte".

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### UsageUnitDescription

    public string UsageUnitDescription { get; set; }

The unit of usage in human readable form.
Example: "gibi byte".

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |