Package com.google.cloud.channel.v1
Class Price.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Price.Builder>
com.google.cloud.channel.v1.Price.Builder
- All Implemented Interfaces:
PriceOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Price
public static final class Price.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Price.Builder>
implements PriceOrBuilder
Represents the price of the Offer.Protobuf type
google.cloud.channel.v1.Price-
Method Summary
Modifier and TypeMethodDescriptionaddAllDiscountComponents(Iterable<? extends DiscountComponent> values) Breakdown of the discount into its components.addDiscountComponents(int index, DiscountComponent value) Breakdown of the discount into its components.addDiscountComponents(int index, DiscountComponent.Builder builderForValue) Breakdown of the discount into its components.Breakdown of the discount into its components.addDiscountComponents(DiscountComponent.Builder builderForValue) Breakdown of the discount into its components.Breakdown of the discount into its components.addDiscountComponentsBuilder(int index) Breakdown of the discount into its components.build()clear()Base price.Discount percentage, represented as decimal.Breakdown of the discount into its components.Effective Price after applying the discounts.Link to external price list, such as link to Google Voice rate card.The time period with respect to which base and effective prices are defined.Base price.Base price.Base price.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptordoubleDiscount percentage, represented as decimal.getDiscountComponents(int index) Breakdown of the discount into its components.getDiscountComponentsBuilder(int index) Breakdown of the discount into its components.Breakdown of the discount into its components.intBreakdown of the discount into its components.Breakdown of the discount into its components.getDiscountComponentsOrBuilder(int index) Breakdown of the discount into its components.List<? extends DiscountComponentOrBuilder>Breakdown of the discount into its components.Effective Price after applying the discounts.Effective Price after applying the discounts.Effective Price after applying the discounts.Link to external price list, such as link to Google Voice rate card.com.google.protobuf.ByteStringLink to external price list, such as link to Google Voice rate card.The time period with respect to which base and effective prices are defined.The time period with respect to which base and effective prices are defined.The time period with respect to which base and effective prices are defined.booleanBase price.booleanEffective Price after applying the discounts.booleanThe time period with respect to which base and effective prices are defined.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeBasePrice(Money value) Base price.mergeEffectivePrice(Money value) Effective Price after applying the discounts.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergePricePeriod(Period value) The time period with respect to which base and effective prices are defined.removeDiscountComponents(int index) Breakdown of the discount into its components.setBasePrice(Money value) Base price.setBasePrice(Money.Builder builderForValue) Base price.setDiscount(double value) Discount percentage, represented as decimal.setDiscountComponents(int index, DiscountComponent value) Breakdown of the discount into its components.setDiscountComponents(int index, DiscountComponent.Builder builderForValue) Breakdown of the discount into its components.setEffectivePrice(Money value) Effective Price after applying the discounts.setEffectivePrice(Money.Builder builderForValue) Effective Price after applying the discounts.setExternalPriceUri(String value) Link to external price list, such as link to Google Voice rate card.setExternalPriceUriBytes(com.google.protobuf.ByteString value) Link to external price list, such as link to Google Voice rate card.setPricePeriod(Period value) The time period with respect to which base and effective prices are defined.setPricePeriod(Period.Builder builderForValue) The time period with respect to which base and effective prices are defined.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<Price.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<Price.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<Price.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<Price.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Price.Builder>
-
mergeFrom
public Price.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<Price.Builder>- Throws:
IOException
-
hasBasePrice
public boolean hasBasePrice()Base price.
.google.type.Money base_price = 1;- Specified by:
hasBasePricein interfacePriceOrBuilder- Returns:
- Whether the basePrice field is set.
-
getBasePrice
Base price.
.google.type.Money base_price = 1;- Specified by:
getBasePricein interfacePriceOrBuilder- Returns:
- The basePrice.
-
setBasePrice
Base price.
.google.type.Money base_price = 1; -
setBasePrice
Base price.
.google.type.Money base_price = 1; -
mergeBasePrice
Base price.
.google.type.Money base_price = 1; -
clearBasePrice
Base price.
.google.type.Money base_price = 1; -
getBasePriceBuilder
Base price.
.google.type.Money base_price = 1; -
getBasePriceOrBuilder
Base price.
.google.type.Money base_price = 1;- Specified by:
getBasePriceOrBuilderin interfacePriceOrBuilder
-
getDiscount
public double getDiscount()Discount percentage, represented as decimal. For example, a 20% discount will be represent as 0.2.
double discount = 2;- Specified by:
getDiscountin interfacePriceOrBuilder- Returns:
- The discount.
-
setDiscount
Discount percentage, represented as decimal. For example, a 20% discount will be represent as 0.2.
double discount = 2;- Parameters:
value- The discount to set.- Returns:
- This builder for chaining.
-
clearDiscount
Discount percentage, represented as decimal. For example, a 20% discount will be represent as 0.2.
double discount = 2;- Returns:
- This builder for chaining.
-
hasEffectivePrice
public boolean hasEffectivePrice()Effective Price after applying the discounts.
.google.type.Money effective_price = 3;- Specified by:
hasEffectivePricein interfacePriceOrBuilder- Returns:
- Whether the effectivePrice field is set.
-
getEffectivePrice
Effective Price after applying the discounts.
.google.type.Money effective_price = 3;- Specified by:
getEffectivePricein interfacePriceOrBuilder- Returns:
- The effectivePrice.
-
setEffectivePrice
Effective Price after applying the discounts.
.google.type.Money effective_price = 3; -
setEffectivePrice
Effective Price after applying the discounts.
.google.type.Money effective_price = 3; -
mergeEffectivePrice
Effective Price after applying the discounts.
.google.type.Money effective_price = 3; -
clearEffectivePrice
Effective Price after applying the discounts.
.google.type.Money effective_price = 3; -
getEffectivePriceBuilder
Effective Price after applying the discounts.
.google.type.Money effective_price = 3; -
getEffectivePriceOrBuilder
Effective Price after applying the discounts.
.google.type.Money effective_price = 3;- Specified by:
getEffectivePriceOrBuilderin interfacePriceOrBuilder
-
hasPricePeriod
public boolean hasPricePeriod()The time period with respect to which base and effective prices are defined. Example: 1 month, 6 months, 1 year, etc.
.google.cloud.channel.v1.Period price_period = 6;- Specified by:
hasPricePeriodin interfacePriceOrBuilder- Returns:
- Whether the pricePeriod field is set.
-
getPricePeriod
The time period with respect to which base and effective prices are defined. Example: 1 month, 6 months, 1 year, etc.
.google.cloud.channel.v1.Period price_period = 6;- Specified by:
getPricePeriodin interfacePriceOrBuilder- Returns:
- The pricePeriod.
-
setPricePeriod
The time period with respect to which base and effective prices are defined. Example: 1 month, 6 months, 1 year, etc.
.google.cloud.channel.v1.Period price_period = 6; -
setPricePeriod
The time period with respect to which base and effective prices are defined. Example: 1 month, 6 months, 1 year, etc.
.google.cloud.channel.v1.Period price_period = 6; -
mergePricePeriod
The time period with respect to which base and effective prices are defined. Example: 1 month, 6 months, 1 year, etc.
.google.cloud.channel.v1.Period price_period = 6; -
clearPricePeriod
The time period with respect to which base and effective prices are defined. Example: 1 month, 6 months, 1 year, etc.
.google.cloud.channel.v1.Period price_period = 6; -
getPricePeriodBuilder
The time period with respect to which base and effective prices are defined. Example: 1 month, 6 months, 1 year, etc.
.google.cloud.channel.v1.Period price_period = 6; -
getPricePeriodOrBuilder
The time period with respect to which base and effective prices are defined. Example: 1 month, 6 months, 1 year, etc.
.google.cloud.channel.v1.Period price_period = 6;- Specified by:
getPricePeriodOrBuilderin interfacePriceOrBuilder
-
getExternalPriceUri
Link to external price list, such as link to Google Voice rate card.
string external_price_uri = 4;- Specified by:
getExternalPriceUriin interfacePriceOrBuilder- Returns:
- The externalPriceUri.
-
getExternalPriceUriBytes
public com.google.protobuf.ByteString getExternalPriceUriBytes()Link to external price list, such as link to Google Voice rate card.
string external_price_uri = 4;- Specified by:
getExternalPriceUriBytesin interfacePriceOrBuilder- Returns:
- The bytes for externalPriceUri.
-
setExternalPriceUri
Link to external price list, such as link to Google Voice rate card.
string external_price_uri = 4;- Parameters:
value- The externalPriceUri to set.- Returns:
- This builder for chaining.
-
clearExternalPriceUri
Link to external price list, such as link to Google Voice rate card.
string external_price_uri = 4;- Returns:
- This builder for chaining.
-
setExternalPriceUriBytes
Link to external price list, such as link to Google Voice rate card.
string external_price_uri = 4;- Parameters:
value- The bytes for externalPriceUri to set.- Returns:
- This builder for chaining.
-
getDiscountComponentsList
Breakdown of the discount into its components. This will be empty if there is no discount present.
repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;- Specified by:
getDiscountComponentsListin interfacePriceOrBuilder
-
getDiscountComponentsCount
public int getDiscountComponentsCount()Breakdown of the discount into its components. This will be empty if there is no discount present.
repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;- Specified by:
getDiscountComponentsCountin interfacePriceOrBuilder
-
getDiscountComponents
Breakdown of the discount into its components. This will be empty if there is no discount present.
repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;- Specified by:
getDiscountComponentsin interfacePriceOrBuilder
-
setDiscountComponents
Breakdown of the discount into its components. This will be empty if there is no discount present.
repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; -
setDiscountComponents
Breakdown of the discount into its components. This will be empty if there is no discount present.
repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; -
addDiscountComponents
Breakdown of the discount into its components. This will be empty if there is no discount present.
repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; -
addDiscountComponents
Breakdown of the discount into its components. This will be empty if there is no discount present.
repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; -
addDiscountComponents
Breakdown of the discount into its components. This will be empty if there is no discount present.
repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; -
addDiscountComponents
Breakdown of the discount into its components. This will be empty if there is no discount present.
repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; -
addAllDiscountComponents
Breakdown of the discount into its components. This will be empty if there is no discount present.
repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; -
clearDiscountComponents
Breakdown of the discount into its components. This will be empty if there is no discount present.
repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; -
removeDiscountComponents
Breakdown of the discount into its components. This will be empty if there is no discount present.
repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; -
getDiscountComponentsBuilder
Breakdown of the discount into its components. This will be empty if there is no discount present.
repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; -
getDiscountComponentsOrBuilder
Breakdown of the discount into its components. This will be empty if there is no discount present.
repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;- Specified by:
getDiscountComponentsOrBuilderin interfacePriceOrBuilder
-
getDiscountComponentsOrBuilderList
Breakdown of the discount into its components. This will be empty if there is no discount present.
repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;- Specified by:
getDiscountComponentsOrBuilderListin interfacePriceOrBuilder
-
addDiscountComponentsBuilder
Breakdown of the discount into its components. This will be empty if there is no discount present.
repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; -
addDiscountComponentsBuilder
Breakdown of the discount into its components. This will be empty if there is no discount present.
repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5; -
getDiscountComponentsBuilderList
Breakdown of the discount into its components. This will be empty if there is no discount present.
repeated .google.cloud.channel.v1.DiscountComponent discount_components = 5;
-