Package com.google.cloud.channel.v1
Interface PriceOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Price,Price.Builder
@Generated
public interface PriceOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionBase price.Base price.doubleDiscount percentage, represented as decimal.getDiscountComponents(int index) 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.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.booleanBase price.booleanEffective Price after applying the discounts.booleanThe time period with respect to which base and effective prices are defined.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasBasePrice
boolean hasBasePrice()Base price.
.google.type.Money base_price = 1;- Returns:
- Whether the basePrice field is set.
-
getBasePrice
Money getBasePrice()Base price.
.google.type.Money base_price = 1;- Returns:
- The basePrice.
-
getBasePriceOrBuilder
MoneyOrBuilder getBasePriceOrBuilder()Base price.
.google.type.Money base_price = 1; -
getDiscount
double getDiscount()Discount percentage, represented as decimal. For example, a 20% discount will be represent as 0.2.
double discount = 2;- Returns:
- The discount.
-
hasEffectivePrice
boolean hasEffectivePrice()Effective Price after applying the discounts.
.google.type.Money effective_price = 3;- Returns:
- Whether the effectivePrice field is set.
-
getEffectivePrice
Money getEffectivePrice()Effective Price after applying the discounts.
.google.type.Money effective_price = 3;- Returns:
- The effectivePrice.
-
getEffectivePriceOrBuilder
MoneyOrBuilder getEffectivePriceOrBuilder()Effective Price after applying the discounts.
.google.type.Money effective_price = 3; -
hasPricePeriod
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;- Returns:
- Whether the pricePeriod field is set.
-
getPricePeriod
Period 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;- Returns:
- The pricePeriod.
-
getPricePeriodOrBuilder
PeriodOrBuilder 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; -
getExternalPriceUri
String getExternalPriceUri()Link to external price list, such as link to Google Voice rate card.
string external_price_uri = 4;- Returns:
- The externalPriceUri.
-
getExternalPriceUriBytes
com.google.protobuf.ByteString getExternalPriceUriBytes()Link to external price list, such as link to Google Voice rate card.
string external_price_uri = 4;- Returns:
- The bytes for externalPriceUri.
-
getDiscountComponentsList
List<DiscountComponent> 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; -
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; -
getDiscountComponentsCount
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; -
getDiscountComponentsOrBuilderList
List<? extends DiscountComponentOrBuilder> 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; -
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;
-