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
public interface PriceOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description com.google.type.MoneygetBasePrice()Base price.com.google.type.MoneyOrBuildergetBasePriceOrBuilder()Base price.doublegetDiscount()Discount percentage, represented as decimal.com.google.type.MoneygetEffectivePrice()Effective Price after applying the discounts.com.google.type.MoneyOrBuildergetEffectivePriceOrBuilder()Effective Price after applying the discounts.StringgetExternalPriceUri()Link to external price list, such as link to Google Voice rate card.com.google.protobuf.ByteStringgetExternalPriceUriBytes()Link to external price list, such as link to Google Voice rate card.booleanhasBasePrice()Base price.booleanhasEffectivePrice()Effective Price after applying the discounts.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasBasePrice
boolean hasBasePrice()
Base price.
.google.type.Money base_price = 1;- Returns:
- Whether the basePrice field is set.
-
getBasePrice
com.google.type.Money getBasePrice()
Base price.
.google.type.Money base_price = 1;- Returns:
- The basePrice.
-
getBasePriceOrBuilder
com.google.type.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
com.google.type.Money getEffectivePrice()
Effective Price after applying the discounts.
.google.type.Money effective_price = 3;- Returns:
- The effectivePrice.
-
getEffectivePriceOrBuilder
com.google.type.MoneyOrBuilder getEffectivePriceOrBuilder()
Effective Price after applying the discounts.
.google.type.Money effective_price = 3;
-
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.
-
-