Interface PercentageAdjustmentOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
PercentageAdjustment, PercentageAdjustment.Builder

@Generated public interface PercentageAdjustmentOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    The percentage of the bill to adjust.
    The percentage of the bill to adjust.
    boolean
    The percentage of the bill to adjust.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • hasPercentage

      boolean hasPercentage()
       The percentage of the bill to adjust.
       For example:
       Mark down by 1% => "-1.00"
       Mark up by 1%   => "1.00"
       Pass-Through    => "0.00"
       
      .google.type.Decimal percentage = 2;
      Returns:
      Whether the percentage field is set.
    • getPercentage

      Decimal getPercentage()
       The percentage of the bill to adjust.
       For example:
       Mark down by 1% => "-1.00"
       Mark up by 1%   => "1.00"
       Pass-Through    => "0.00"
       
      .google.type.Decimal percentage = 2;
      Returns:
      The percentage.
    • getPercentageOrBuilder

      DecimalOrBuilder getPercentageOrBuilder()
       The percentage of the bill to adjust.
       For example:
       Mark down by 1% => "-1.00"
       Mark up by 1%   => "1.00"
       Pass-Through    => "0.00"
       
      .google.type.Decimal percentage = 2;