public interface DiscountComponentOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getDiscountAbsolute()
public abstract Money getDiscountAbsolute()Fixed value discount.
.google.type.Money discount_absolute = 4;
| Returns | |
|---|---|
| Type | Description |
com.google.type.Money |
The discountAbsolute. |
getDiscountAbsoluteOrBuilder()
public abstract MoneyOrBuilder getDiscountAbsoluteOrBuilder()Fixed value discount.
.google.type.Money discount_absolute = 4;
| Returns | |
|---|---|
| Type | Description |
com.google.type.MoneyOrBuilder |
|
getDiscountPercentage()
public abstract double getDiscountPercentage()Discount percentage, represented as decimal. For example, a 20% discount will be represented as 0.2.
double discount_percentage = 3;
| Returns | |
|---|---|
| Type | Description |
double |
The discountPercentage. |
getDiscountType()
public abstract DiscountType getDiscountType()Type of the discount.
.google.cloud.channel.v1.DiscountType discount_type = 2;
| Returns | |
|---|---|
| Type | Description |
DiscountType |
The discountType. |
getDiscountTypeValue()
public abstract int getDiscountTypeValue()Type of the discount.
.google.cloud.channel.v1.DiscountType discount_type = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for discountType. |
getDiscountValueCase()
public abstract DiscountComponent.DiscountValueCase getDiscountValueCase()| Returns | |
|---|---|
| Type | Description |
DiscountComponent.DiscountValueCase |
|
hasDiscountAbsolute()
public abstract boolean hasDiscountAbsolute()Fixed value discount.
.google.type.Money discount_absolute = 4;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the discountAbsolute field is set. |
hasDiscountPercentage()
public abstract boolean hasDiscountPercentage()Discount percentage, represented as decimal. For example, a 20% discount will be represented as 0.2.
double discount_percentage = 3;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the discountPercentage field is set. |