Package com.google.cloud.billing.v1
Class PricingExpression.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<PricingExpression.Builder>
-
- com.google.cloud.billing.v1.PricingExpression.Builder
-
- All Implemented Interfaces:
PricingExpressionOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- PricingExpression
public static final class PricingExpression.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PricingExpression.Builder> implements PricingExpressionOrBuilder
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.
Protobuf typegoogle.cloud.billing.v1.PricingExpression
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PricingExpression.Builder
addAllTieredRates(Iterable<? extends PricingExpression.TierRate> values)
The list of tiered rates for this pricing.PricingExpression.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
PricingExpression.Builder
addTieredRates(int index, PricingExpression.TierRate value)
The list of tiered rates for this pricing.PricingExpression.Builder
addTieredRates(int index, PricingExpression.TierRate.Builder builderForValue)
The list of tiered rates for this pricing.PricingExpression.Builder
addTieredRates(PricingExpression.TierRate value)
The list of tiered rates for this pricing.PricingExpression.Builder
addTieredRates(PricingExpression.TierRate.Builder builderForValue)
The list of tiered rates for this pricing.PricingExpression.TierRate.Builder
addTieredRatesBuilder()
The list of tiered rates for this pricing.PricingExpression.TierRate.Builder
addTieredRatesBuilder(int index)
The list of tiered rates for this pricing.PricingExpression
build()
PricingExpression
buildPartial()
PricingExpression.Builder
clear()
PricingExpression.Builder
clearBaseUnit()
The base unit for the SKU which is the unit used in usage exports.PricingExpression.Builder
clearBaseUnitConversionFactor()
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.PricingExpression.Builder
clearBaseUnitDescription()
The base unit in human readable form.PricingExpression.Builder
clearDisplayQuantity()
The recommended quantity of units for displaying pricing info.PricingExpression.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
PricingExpression.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
PricingExpression.Builder
clearTieredRates()
The list of tiered rates for this pricing.PricingExpression.Builder
clearUsageUnit()
The short hand for unit of usage this pricing is specified in.PricingExpression.Builder
clearUsageUnitDescription()
The unit of usage in human readable form.PricingExpression.Builder
clone()
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.PricingExpression
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
double
getDisplayQuantity()
The recommended quantity of units for displaying pricing info.PricingExpression.TierRate
getTieredRates(int index)
The list of tiered rates for this pricing.PricingExpression.TierRate.Builder
getTieredRatesBuilder(int index)
The list of tiered rates for this pricing.List<PricingExpression.TierRate.Builder>
getTieredRatesBuilderList()
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.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
PricingExpression.Builder
mergeFrom(PricingExpression other)
PricingExpression.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
PricingExpression.Builder
mergeFrom(com.google.protobuf.Message other)
PricingExpression.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
PricingExpression.Builder
removeTieredRates(int index)
The list of tiered rates for this pricing.PricingExpression.Builder
setBaseUnit(String value)
The base unit for the SKU which is the unit used in usage exports.PricingExpression.Builder
setBaseUnitBytes(com.google.protobuf.ByteString value)
The base unit for the SKU which is the unit used in usage exports.PricingExpression.Builder
setBaseUnitConversionFactor(double value)
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.PricingExpression.Builder
setBaseUnitDescription(String value)
The base unit in human readable form.PricingExpression.Builder
setBaseUnitDescriptionBytes(com.google.protobuf.ByteString value)
The base unit in human readable form.PricingExpression.Builder
setDisplayQuantity(double value)
The recommended quantity of units for displaying pricing info.PricingExpression.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
PricingExpression.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
PricingExpression.Builder
setTieredRates(int index, PricingExpression.TierRate value)
The list of tiered rates for this pricing.PricingExpression.Builder
setTieredRates(int index, PricingExpression.TierRate.Builder builderForValue)
The list of tiered rates for this pricing.PricingExpression.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
PricingExpression.Builder
setUsageUnit(String value)
The short hand for unit of usage this pricing is specified in.PricingExpression.Builder
setUsageUnitBytes(com.google.protobuf.ByteString value)
The short hand for unit of usage this pricing is specified in.PricingExpression.Builder
setUsageUnitDescription(String value)
The unit of usage in human readable form.PricingExpression.Builder
setUsageUnitDescriptionBytes(com.google.protobuf.ByteString value)
The unit of usage in human readable form.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricingExpression.Builder>
-
clear
public PricingExpression.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricingExpression.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricingExpression.Builder>
-
getDefaultInstanceForType
public PricingExpression getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public PricingExpression build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PricingExpression buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PricingExpression.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricingExpression.Builder>
-
setField
public PricingExpression.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricingExpression.Builder>
-
clearField
public PricingExpression.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricingExpression.Builder>
-
clearOneof
public PricingExpression.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricingExpression.Builder>
-
setRepeatedField
public PricingExpression.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricingExpression.Builder>
-
addRepeatedField
public PricingExpression.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricingExpression.Builder>
-
mergeFrom
public PricingExpression.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PricingExpression.Builder>
-
mergeFrom
public PricingExpression.Builder mergeFrom(PricingExpression other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricingExpression.Builder>
-
mergeFrom
public PricingExpression.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PricingExpression.Builder>
- Throws:
IOException
-
getUsageUnit
public 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;
- Specified by:
getUsageUnit
in interfacePricingExpressionOrBuilder
- Returns:
- The usageUnit.
-
getUsageUnitBytes
public 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;
- Specified by:
getUsageUnitBytes
in interfacePricingExpressionOrBuilder
- Returns:
- The bytes for usageUnit.
-
setUsageUnit
public PricingExpression.Builder setUsageUnit(String value)
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;
- Parameters:
value
- The usageUnit to set.- Returns:
- This builder for chaining.
-
clearUsageUnit
public PricingExpression.Builder clearUsageUnit()
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:
- This builder for chaining.
-
setUsageUnitBytes
public PricingExpression.Builder setUsageUnitBytes(com.google.protobuf.ByteString value)
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;
- Parameters:
value
- The bytes for usageUnit to set.- Returns:
- This builder for chaining.
-
getDisplayQuantity
public 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;
- Specified by:
getDisplayQuantity
in interfacePricingExpressionOrBuilder
- Returns:
- The displayQuantity.
-
setDisplayQuantity
public PricingExpression.Builder setDisplayQuantity(double value)
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;
- Parameters:
value
- The displayQuantity to set.- Returns:
- This builder for chaining.
-
clearDisplayQuantity
public PricingExpression.Builder clearDisplayQuantity()
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:
- This builder for chaining.
-
getTieredRatesList
public 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;
- Specified by:
getTieredRatesList
in interfacePricingExpressionOrBuilder
-
getTieredRatesCount
public 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;
- Specified by:
getTieredRatesCount
in interfacePricingExpressionOrBuilder
-
getTieredRates
public 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;
- Specified by:
getTieredRates
in interfacePricingExpressionOrBuilder
-
setTieredRates
public PricingExpression.Builder setTieredRates(int index, PricingExpression.TierRate value)
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;
-
setTieredRates
public PricingExpression.Builder setTieredRates(int index, PricingExpression.TierRate.Builder builderForValue)
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;
-
addTieredRates
public PricingExpression.Builder addTieredRates(PricingExpression.TierRate value)
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;
-
addTieredRates
public PricingExpression.Builder addTieredRates(int index, PricingExpression.TierRate value)
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;
-
addTieredRates
public PricingExpression.Builder addTieredRates(PricingExpression.TierRate.Builder builderForValue)
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;
-
addTieredRates
public PricingExpression.Builder addTieredRates(int index, PricingExpression.TierRate.Builder builderForValue)
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;
-
addAllTieredRates
public PricingExpression.Builder addAllTieredRates(Iterable<? extends PricingExpression.TierRate> values)
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;
-
clearTieredRates
public PricingExpression.Builder clearTieredRates()
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;
-
removeTieredRates
public PricingExpression.Builder removeTieredRates(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;
-
getTieredRatesBuilder
public PricingExpression.TierRate.Builder getTieredRatesBuilder(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;
-
getTieredRatesOrBuilder
public 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;
- Specified by:
getTieredRatesOrBuilder
in interfacePricingExpressionOrBuilder
-
getTieredRatesOrBuilderList
public 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;
- Specified by:
getTieredRatesOrBuilderList
in interfacePricingExpressionOrBuilder
-
addTieredRatesBuilder
public PricingExpression.TierRate.Builder addTieredRatesBuilder()
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;
-
addTieredRatesBuilder
public PricingExpression.TierRate.Builder addTieredRatesBuilder(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;
-
getTieredRatesBuilderList
public List<PricingExpression.TierRate.Builder> getTieredRatesBuilderList()
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
public String getUsageUnitDescription()
The unit of usage in human readable form. Example: "gibi byte".
string usage_unit_description = 4;
- Specified by:
getUsageUnitDescription
in interfacePricingExpressionOrBuilder
- Returns:
- The usageUnitDescription.
-
getUsageUnitDescriptionBytes
public com.google.protobuf.ByteString getUsageUnitDescriptionBytes()
The unit of usage in human readable form. Example: "gibi byte".
string usage_unit_description = 4;
- Specified by:
getUsageUnitDescriptionBytes
in interfacePricingExpressionOrBuilder
- Returns:
- The bytes for usageUnitDescription.
-
setUsageUnitDescription
public PricingExpression.Builder setUsageUnitDescription(String value)
The unit of usage in human readable form. Example: "gibi byte".
string usage_unit_description = 4;
- Parameters:
value
- The usageUnitDescription to set.- Returns:
- This builder for chaining.
-
clearUsageUnitDescription
public PricingExpression.Builder clearUsageUnitDescription()
The unit of usage in human readable form. Example: "gibi byte".
string usage_unit_description = 4;
- Returns:
- This builder for chaining.
-
setUsageUnitDescriptionBytes
public PricingExpression.Builder setUsageUnitDescriptionBytes(com.google.protobuf.ByteString value)
The unit of usage in human readable form. Example: "gibi byte".
string usage_unit_description = 4;
- Parameters:
value
- The bytes for usageUnitDescription to set.- Returns:
- This builder for chaining.
-
getBaseUnit
public String getBaseUnit()
The base unit for the SKU which is the unit used in usage exports. Example: "By"
string base_unit = 5;
- Specified by:
getBaseUnit
in interfacePricingExpressionOrBuilder
- Returns:
- The baseUnit.
-
getBaseUnitBytes
public 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;
- Specified by:
getBaseUnitBytes
in interfacePricingExpressionOrBuilder
- Returns:
- The bytes for baseUnit.
-
setBaseUnit
public PricingExpression.Builder setBaseUnit(String value)
The base unit for the SKU which is the unit used in usage exports. Example: "By"
string base_unit = 5;
- Parameters:
value
- The baseUnit to set.- Returns:
- This builder for chaining.
-
clearBaseUnit
public PricingExpression.Builder clearBaseUnit()
The base unit for the SKU which is the unit used in usage exports. Example: "By"
string base_unit = 5;
- Returns:
- This builder for chaining.
-
setBaseUnitBytes
public PricingExpression.Builder setBaseUnitBytes(com.google.protobuf.ByteString value)
The base unit for the SKU which is the unit used in usage exports. Example: "By"
string base_unit = 5;
- Parameters:
value
- The bytes for baseUnit to set.- Returns:
- This builder for chaining.
-
getBaseUnitDescription
public String getBaseUnitDescription()
The base unit in human readable form. Example: "byte".
string base_unit_description = 6;
- Specified by:
getBaseUnitDescription
in interfacePricingExpressionOrBuilder
- Returns:
- The baseUnitDescription.
-
getBaseUnitDescriptionBytes
public com.google.protobuf.ByteString getBaseUnitDescriptionBytes()
The base unit in human readable form. Example: "byte".
string base_unit_description = 6;
- Specified by:
getBaseUnitDescriptionBytes
in interfacePricingExpressionOrBuilder
- Returns:
- The bytes for baseUnitDescription.
-
setBaseUnitDescription
public PricingExpression.Builder setBaseUnitDescription(String value)
The base unit in human readable form. Example: "byte".
string base_unit_description = 6;
- Parameters:
value
- The baseUnitDescription to set.- Returns:
- This builder for chaining.
-
clearBaseUnitDescription
public PricingExpression.Builder clearBaseUnitDescription()
The base unit in human readable form. Example: "byte".
string base_unit_description = 6;
- Returns:
- This builder for chaining.
-
setBaseUnitDescriptionBytes
public PricingExpression.Builder setBaseUnitDescriptionBytes(com.google.protobuf.ByteString value)
The base unit in human readable form. Example: "byte".
string base_unit_description = 6;
- Parameters:
value
- The bytes for baseUnitDescription to set.- Returns:
- This builder for chaining.
-
getBaseUnitConversionFactor
public 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;
- Specified by:
getBaseUnitConversionFactor
in interfacePricingExpressionOrBuilder
- Returns:
- The baseUnitConversionFactor.
-
setBaseUnitConversionFactor
public PricingExpression.Builder setBaseUnitConversionFactor(double value)
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;
- Parameters:
value
- The baseUnitConversionFactor to set.- Returns:
- This builder for chaining.
-
clearBaseUnitConversionFactor
public PricingExpression.Builder clearBaseUnitConversionFactor()
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:
- This builder for chaining.
-
setUnknownFields
public final PricingExpression.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricingExpression.Builder>
-
mergeUnknownFields
public final PricingExpression.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PricingExpression.Builder>
-
-