public interface PriceOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getBasePrice()
public abstract Money getBasePrice()Base price.
.google.type.Money base_price = 1;
| Returns | |
|---|---|
| Type | Description |
com.google.type.Money |
The basePrice. |
getBasePriceOrBuilder()
public abstract MoneyOrBuilder getBasePriceOrBuilder()Base price.
.google.type.Money base_price = 1;
| Returns | |
|---|---|
| Type | Description |
com.google.type.MoneyOrBuilder |
|
getDiscount()
public abstract double getDiscount()Discount percentage, represented as decimal. For example, a 20% discount will be represent as 0.2.
double discount = 2;
| Returns | |
|---|---|
| Type | Description |
double |
The discount. |
getDiscountComponents(int index)
public abstract DiscountComponent getDiscountComponents(int index)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;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DiscountComponent |
|
getDiscountComponentsCount()
public abstract 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;
| Returns | |
|---|---|
| Type | Description |
int |
|
getDiscountComponentsList()
public abstract 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;
| Returns | |
|---|---|
| Type | Description |
List<DiscountComponent> |
|
getDiscountComponentsOrBuilder(int index)
public abstract DiscountComponentOrBuilder getDiscountComponentsOrBuilder(int index)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;
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DiscountComponentOrBuilder |
|
getDiscountComponentsOrBuilderList()
public abstract 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;
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.channel.v1.DiscountComponentOrBuilder> |
|
getEffectivePrice()
public abstract Money getEffectivePrice()Effective Price after applying the discounts.
.google.type.Money effective_price = 3;
| Returns | |
|---|---|
| Type | Description |
com.google.type.Money |
The effectivePrice. |
getEffectivePriceOrBuilder()
public abstract MoneyOrBuilder getEffectivePriceOrBuilder()Effective Price after applying the discounts.
.google.type.Money effective_price = 3;
| Returns | |
|---|---|
| Type | Description |
com.google.type.MoneyOrBuilder |
|
getExternalPriceUri()
public abstract String getExternalPriceUri()Link to external price list, such as link to Google Voice rate card.
string external_price_uri = 4;
| Returns | |
|---|---|
| Type | Description |
String |
The externalPriceUri. |
getExternalPriceUriBytes()
public abstract ByteString getExternalPriceUriBytes()Link to external price list, such as link to Google Voice rate card.
string external_price_uri = 4;
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for externalPriceUri. |
getPricePeriod()
public abstract 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 | |
|---|---|
| Type | Description |
Period |
The pricePeriod. |
getPricePeriodOrBuilder()
public abstract 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;
| Returns | |
|---|---|
| Type | Description |
PeriodOrBuilder |
|
hasBasePrice()
public abstract boolean hasBasePrice()Base price.
.google.type.Money base_price = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the basePrice field is set. |
hasEffectivePrice()
public abstract boolean hasEffectivePrice()Effective Price after applying the discounts.
.google.type.Money effective_price = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the effectivePrice field is set. |
hasPricePeriod()
public abstract 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 | |
|---|---|
| Type | Description |
boolean |
Whether the pricePeriod field is set. |