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 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()