Package com.google.cloud.channel.v1
Interface DiscountComponentOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
DiscountComponent,DiscountComponent.Builder
@Generated
public interface DiscountComponentOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionFixed value discount.Fixed value discount.doubleDiscount percentage, represented as decimal.Type of the discount.intType of the discount.booleanFixed value discount.booleanDiscount percentage, represented as decimal.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
-
hasDiscountPercentage
boolean hasDiscountPercentage()Discount percentage, represented as decimal. For example, a 20% discount will be represented as 0.2.
double discount_percentage = 3;- Returns:
- Whether the discountPercentage field is set.
-
getDiscountPercentage
double getDiscountPercentage()Discount percentage, represented as decimal. For example, a 20% discount will be represented as 0.2.
double discount_percentage = 3;- Returns:
- The discountPercentage.
-
hasDiscountAbsolute
boolean hasDiscountAbsolute()Fixed value discount.
.google.type.Money discount_absolute = 4;- Returns:
- Whether the discountAbsolute field is set.
-
getDiscountAbsolute
Money getDiscountAbsolute()Fixed value discount.
.google.type.Money discount_absolute = 4;- Returns:
- The discountAbsolute.
-
getDiscountAbsoluteOrBuilder
MoneyOrBuilder getDiscountAbsoluteOrBuilder()Fixed value discount.
.google.type.Money discount_absolute = 4; -
getDiscountTypeValue
int getDiscountTypeValue()Type of the discount.
.google.cloud.channel.v1.DiscountType discount_type = 2;- Returns:
- The enum numeric value on the wire for discountType.
-
getDiscountType
DiscountType getDiscountType()Type of the discount.
.google.cloud.channel.v1.DiscountType discount_type = 2;- Returns:
- The discountType.
-
getDiscountValueCase
DiscountComponent.DiscountValueCase getDiscountValueCase()
-