Interface PercentageAdjustmentOrBuilder

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

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      com.google.type.Decimal getPercentage()
      The percentage of the bill to adjust.
      com.google.type.DecimalOrBuilder getPercentageOrBuilder()
      The percentage of the bill to adjust.
      boolean hasPercentage()
      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 Detail

      • 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

        com.google.type.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

        com.google.type.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;