Package com.google.cloud.billing.v1
Interface PricingExpressionOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
PricingExpression
,PricingExpression.Builder
public interface PricingExpressionOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getBaseUnit()
The base unit for the SKU which is the unit used in usage exports.com.google.protobuf.ByteString
getBaseUnitBytes()
The base unit for the SKU which is the unit used in usage exports.double
getBaseUnitConversionFactor()
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.String
getBaseUnitDescription()
The base unit in human readable form.com.google.protobuf.ByteString
getBaseUnitDescriptionBytes()
The base unit in human readable form.double
getDisplayQuantity()
The recommended quantity of units for displaying pricing info.PricingExpression.TierRate
getTieredRates(int index)
The list of tiered rates for this pricing.int
getTieredRatesCount()
The list of tiered rates for this pricing.List<PricingExpression.TierRate>
getTieredRatesList()
The list of tiered rates for this pricing.PricingExpression.TierRateOrBuilder
getTieredRatesOrBuilder(int index)
The list of tiered rates for this pricing.List<? extends PricingExpression.TierRateOrBuilder>
getTieredRatesOrBuilderList()
The list of tiered rates for this pricing.String
getUsageUnit()
The short hand for unit of usage this pricing is specified in.com.google.protobuf.ByteString
getUsageUnitBytes()
The short hand for unit of usage this pricing is specified in.String
getUsageUnitDescription()
The unit of usage in human readable form.com.google.protobuf.ByteString
getUsageUnitDescriptionBytes()
The unit of usage in human readable form.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getUsageUnit
String getUsageUnit()
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".
string usage_unit = 1;
- Returns:
- The usageUnit.
-
getUsageUnitBytes
com.google.protobuf.ByteString getUsageUnitBytes()
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".
string usage_unit = 1;
- Returns:
- The bytes for usageUnit.
-
getDisplayQuantity
double getDisplayQuantity()
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"
double display_quantity = 2;
- Returns:
- The displayQuantity.
-
getTieredRatesList
List<PricingExpression.TierRate> getTieredRatesList()
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.
repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
-
getTieredRates
PricingExpression.TierRate getTieredRates(int index)
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.
repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
-
getTieredRatesCount
int getTieredRatesCount()
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.
repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
-
getTieredRatesOrBuilderList
List<? extends PricingExpression.TierRateOrBuilder> getTieredRatesOrBuilderList()
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.
repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
-
getTieredRatesOrBuilder
PricingExpression.TierRateOrBuilder getTieredRatesOrBuilder(int index)
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.
repeated .google.cloud.billing.v1.PricingExpression.TierRate tiered_rates = 3;
-
getUsageUnitDescription
String getUsageUnitDescription()
The unit of usage in human readable form. Example: "gibi byte".
string usage_unit_description = 4;
- Returns:
- The usageUnitDescription.
-
getUsageUnitDescriptionBytes
com.google.protobuf.ByteString getUsageUnitDescriptionBytes()
The unit of usage in human readable form. Example: "gibi byte".
string usage_unit_description = 4;
- Returns:
- The bytes for usageUnitDescription.
-
getBaseUnit
String getBaseUnit()
The base unit for the SKU which is the unit used in usage exports. Example: "By"
string base_unit = 5;
- Returns:
- The baseUnit.
-
getBaseUnitBytes
com.google.protobuf.ByteString getBaseUnitBytes()
The base unit for the SKU which is the unit used in usage exports. Example: "By"
string base_unit = 5;
- Returns:
- The bytes for baseUnit.
-
getBaseUnitDescription
String getBaseUnitDescription()
The base unit in human readable form. Example: "byte".
string base_unit_description = 6;
- Returns:
- The baseUnitDescription.
-
getBaseUnitDescriptionBytes
com.google.protobuf.ByteString getBaseUnitDescriptionBytes()
The base unit in human readable form. Example: "byte".
string base_unit_description = 6;
- Returns:
- The bytes for baseUnitDescription.
-
getBaseUnitConversionFactor
double getBaseUnitConversionFactor()
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.
double base_unit_conversion_factor = 7;
- Returns:
- The baseUnitConversionFactor.
-
-