Package com.google.cloud.billing.v1
Class PricingExpression.TierRate.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PricingExpression.TierRate.Builder>
com.google.cloud.billing.v1.PricingExpression.TierRate.Builder
- All Implemented Interfaces:
PricingExpression.TierRateOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PricingExpression.TierRate
public static final class PricingExpression.TierRate.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PricingExpression.TierRate.Builder>
implements PricingExpression.TierRateOrBuilder
The price rate indicating starting usage and its corresponding price.Protobuf type
google.cloud.billing.v1.PricingExpression.TierRate-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Usage is priced at this rate only after this amount.The price per unit of usage.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptordoubleUsage is priced at this rate only after this amount.The price per unit of usage.The price per unit of usage.The price per unit of usage.booleanThe price per unit of usage.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnitPrice(Money value) The price per unit of usage.setStartUsageAmount(double value) Usage is priced at this rate only after this amount.setUnitPrice(Money value) The price per unit of usage.setUnitPrice(Money.Builder builderForValue) The price per unit of usage.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PricingExpression.TierRate.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<PricingExpression.TierRate.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<PricingExpression.TierRate.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PricingExpression.TierRate.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PricingExpression.TierRate.Builder>
-
mergeFrom
public PricingExpression.TierRate.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PricingExpression.TierRate.Builder>- Throws:
IOException
-
getStartUsageAmount
public double getStartUsageAmount()Usage is priced at this rate only after this amount. Example: start_usage_amount of 10 indicates that the usage will be priced at the unit_price after the first 10 usage_units.
double start_usage_amount = 1;- Specified by:
getStartUsageAmountin interfacePricingExpression.TierRateOrBuilder- Returns:
- The startUsageAmount.
-
setStartUsageAmount
Usage is priced at this rate only after this amount. Example: start_usage_amount of 10 indicates that the usage will be priced at the unit_price after the first 10 usage_units.
double start_usage_amount = 1;- Parameters:
value- The startUsageAmount to set.- Returns:
- This builder for chaining.
-
clearStartUsageAmount
Usage is priced at this rate only after this amount. Example: start_usage_amount of 10 indicates that the usage will be priced at the unit_price after the first 10 usage_units.
double start_usage_amount = 1;- Returns:
- This builder for chaining.
-
hasUnitPrice
public boolean hasUnitPrice()The price per unit of usage. Example: unit_price of amount $10 indicates that each unit will cost $10.
.google.type.Money unit_price = 2;- Specified by:
hasUnitPricein interfacePricingExpression.TierRateOrBuilder- Returns:
- Whether the unitPrice field is set.
-
getUnitPrice
The price per unit of usage. Example: unit_price of amount $10 indicates that each unit will cost $10.
.google.type.Money unit_price = 2;- Specified by:
getUnitPricein interfacePricingExpression.TierRateOrBuilder- Returns:
- The unitPrice.
-
setUnitPrice
The price per unit of usage. Example: unit_price of amount $10 indicates that each unit will cost $10.
.google.type.Money unit_price = 2; -
setUnitPrice
The price per unit of usage. Example: unit_price of amount $10 indicates that each unit will cost $10.
.google.type.Money unit_price = 2; -
mergeUnitPrice
The price per unit of usage. Example: unit_price of amount $10 indicates that each unit will cost $10.
.google.type.Money unit_price = 2; -
clearUnitPrice
The price per unit of usage. Example: unit_price of amount $10 indicates that each unit will cost $10.
.google.type.Money unit_price = 2; -
getUnitPriceBuilder
The price per unit of usage. Example: unit_price of amount $10 indicates that each unit will cost $10.
.google.type.Money unit_price = 2; -
getUnitPriceOrBuilder
The price per unit of usage. Example: unit_price of amount $10 indicates that each unit will cost $10.
.google.type.Money unit_price = 2;- Specified by:
getUnitPriceOrBuilderin interfacePricingExpression.TierRateOrBuilder
-