public interface SubscriptionCostOrBuilder extends MessageOrBuilder
Implements
MessageOrBuilderMethods
getAmount()
public abstract Price getAmount()
The amount the buyer has to pay per subscription period.
.google.shopping.type.Price amount = 3;
Returns | |
---|---|
Type | Description |
com.google.shopping.type.Price |
The amount. |
getAmountOrBuilder()
public abstract PriceOrBuilder getAmountOrBuilder()
The amount the buyer has to pay per subscription period.
.google.shopping.type.Price amount = 3;
Returns | |
---|---|
Type | Description |
com.google.shopping.type.PriceOrBuilder |
getPeriod()
public abstract SubscriptionPeriod getPeriod()
The type of subscription period. Supported values are:
- "
month
" - "
year
"
.google.shopping.merchant.products.v1beta.SubscriptionPeriod period = 1;
Returns | |
---|---|
Type | Description |
SubscriptionPeriod |
The period. |
getPeriodLength()
public abstract long getPeriodLength()
The number of subscription periods the buyer has to pay.
int64 period_length = 2;
Returns | |
---|---|
Type | Description |
long |
The periodLength. |
getPeriodValue()
public abstract int getPeriodValue()
The type of subscription period. Supported values are:
- "
month
" - "
year
"
.google.shopping.merchant.products.v1beta.SubscriptionPeriod period = 1;
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for period. |
hasAmount()
public abstract boolean hasAmount()
The amount the buyer has to pay per subscription period.
.google.shopping.type.Price amount = 3;
Returns | |
---|---|
Type | Description |
boolean |
Whether the amount field is set. |