Interface Sku.SkuPrice.TieredPriceOrBuilder (0.1.0)

public static interface Sku.SkuPrice.TieredPriceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getPriceTiers(int index)

public abstract Sku.SkuPrice.TieredPrice.PriceTier getPriceTiers(int index)

Output only. The list of price tiers for the SKU, ordered by the start_amount.

The tiers are non-overlapping and are collectively bounded below by zero and unbounded above to cover the entire range of possible metric usage. Each tier is bounded below inclusively by its start_amount and bounded above exclusively by the start_amount of the next tier, or else unbounded above if there is no next tier.

Usage of the metric is aggregated by customer billing account on a monthly basis and billed in a graduated manner according to the price tiers, with each marginal unit of usage priced accoring to the tier in which it falls.

repeated .google.cloud.commerceproducer.v1beta.Sku.SkuPrice.TieredPrice.PriceTier price_tiers = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Sku.SkuPrice.TieredPrice.PriceTier

getPriceTiersCount()

public abstract int getPriceTiersCount()

Output only. The list of price tiers for the SKU, ordered by the start_amount.

The tiers are non-overlapping and are collectively bounded below by zero and unbounded above to cover the entire range of possible metric usage. Each tier is bounded below inclusively by its start_amount and bounded above exclusively by the start_amount of the next tier, or else unbounded above if there is no next tier.

Usage of the metric is aggregated by customer billing account on a monthly basis and billed in a graduated manner according to the price tiers, with each marginal unit of usage priced accoring to the tier in which it falls.

repeated .google.cloud.commerceproducer.v1beta.Sku.SkuPrice.TieredPrice.PriceTier price_tiers = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

getPriceTiersList()

public abstract List<Sku.SkuPrice.TieredPrice.PriceTier> getPriceTiersList()

Output only. The list of price tiers for the SKU, ordered by the start_amount.

The tiers are non-overlapping and are collectively bounded below by zero and unbounded above to cover the entire range of possible metric usage. Each tier is bounded below inclusively by its start_amount and bounded above exclusively by the start_amount of the next tier, or else unbounded above if there is no next tier.

Usage of the metric is aggregated by customer billing account on a monthly basis and billed in a graduated manner according to the price tiers, with each marginal unit of usage priced accoring to the tier in which it falls.

repeated .google.cloud.commerceproducer.v1beta.Sku.SkuPrice.TieredPrice.PriceTier price_tiers = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<PriceTier>

getPriceTiersOrBuilder(int index)

public abstract Sku.SkuPrice.TieredPrice.PriceTierOrBuilder getPriceTiersOrBuilder(int index)

Output only. The list of price tiers for the SKU, ordered by the start_amount.

The tiers are non-overlapping and are collectively bounded below by zero and unbounded above to cover the entire range of possible metric usage. Each tier is bounded below inclusively by its start_amount and bounded above exclusively by the start_amount of the next tier, or else unbounded above if there is no next tier.

Usage of the metric is aggregated by customer billing account on a monthly basis and billed in a graduated manner according to the price tiers, with each marginal unit of usage priced accoring to the tier in which it falls.

repeated .google.cloud.commerceproducer.v1beta.Sku.SkuPrice.TieredPrice.PriceTier price_tiers = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
Sku.SkuPrice.TieredPrice.PriceTierOrBuilder

getPriceTiersOrBuilderList()

public abstract List<? extends Sku.SkuPrice.TieredPrice.PriceTierOrBuilder> getPriceTiersOrBuilderList()

Output only. The list of price tiers for the SKU, ordered by the start_amount.

The tiers are non-overlapping and are collectively bounded below by zero and unbounded above to cover the entire range of possible metric usage. Each tier is bounded below inclusively by its start_amount and bounded above exclusively by the start_amount of the next tier, or else unbounded above if there is no next tier.

Usage of the metric is aggregated by customer billing account on a monthly basis and billed in a graduated manner according to the price tiers, with each marginal unit of usage priced accoring to the tier in which it falls.

repeated .google.cloud.commerceproducer.v1beta.Sku.SkuPrice.TieredPrice.PriceTier price_tiers = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
List<? extends com.google.cloud.commerceproducer.v1beta.Sku.SkuPrice.TieredPrice.PriceTierOrBuilder>

getPriceUnitCount()

public abstract Decimal getPriceUnitCount()

Output only. Scaling the unit by the price_unit_count forms the composite "price unit" which is priced by the price tiers.

This scaling factor is in addition to any numerical prefix symbol on the unit, so the same composite "price unit" can be represented in several ways, differing only in their presentation to users.

Examples:

  • $1 per 1 bytes : unit = By, price_unit_count = 1
  • $1000 per 1 kilobytes : unit = kBy, price_unit_count = 1
  • $5000 per 5 kilobytes : unit = kBy, price_unit_count = 5

.google.type.Decimal price_unit_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.Decimal

The priceUnitCount.

getPriceUnitCountOrBuilder()

public abstract DecimalOrBuilder getPriceUnitCountOrBuilder()

Output only. Scaling the unit by the price_unit_count forms the composite "price unit" which is priced by the price tiers.

This scaling factor is in addition to any numerical prefix symbol on the unit, so the same composite "price unit" can be represented in several ways, differing only in their presentation to users.

Examples:

  • $1 per 1 bytes : unit = By, price_unit_count = 1
  • $1000 per 1 kilobytes : unit = kBy, price_unit_count = 1
  • $5000 per 5 kilobytes : unit = kBy, price_unit_count = 5

.google.type.Decimal price_unit_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
com.google.type.DecimalOrBuilder

getUnit()

public abstract String getUnit()

Output only. Usage unit used for defining price tiers and for scaling with the price_unit_count to form the composite price unit.

See https://ucum.org/ucum.html for the format of the price unit. A unitless dimension, such as a count, is represented as 1.

string unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The unit.

getUnitBytes()

public abstract ByteString getUnitBytes()

Output only. Usage unit used for defining price tiers and for scaling with the price_unit_count to form the composite price unit.

See https://ucum.org/ucum.html for the format of the price unit. A unitless dimension, such as a count, is represented as 1.

string unit = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for unit.

getUnitDescription()

public abstract String getUnitDescription()

Output only. The display description of the unit, supplied at time of onboarding. This value is recommended to be set at least for dimensionless metrics, but may be empty if no description was provided at time of onboarding.

string unit_description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The unitDescription.

getUnitDescriptionBytes()

public abstract ByteString getUnitDescriptionBytes()

Output only. The display description of the unit, supplied at time of onboarding. This value is recommended to be set at least for dimensionless metrics, but may be empty if no description was provided at time of onboarding.

string unit_description = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for unitDescription.

hasPriceUnitCount()

public abstract boolean hasPriceUnitCount()

Output only. Scaling the unit by the price_unit_count forms the composite "price unit" which is priced by the price tiers.

This scaling factor is in addition to any numerical prefix symbol on the unit, so the same composite "price unit" can be represented in several ways, differing only in their presentation to users.

Examples:

  • $1 per 1 bytes : unit = By, price_unit_count = 1
  • $1000 per 1 kilobytes : unit = kBy, price_unit_count = 1
  • $5000 per 5 kilobytes : unit = kBy, price_unit_count = 5

.google.type.Decimal price_unit_count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the priceUnitCount field is set.