Interface WeightOrBuilder

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

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      long getAmountMicros()
      Required.
      Weight.WeightUnit getUnit()
      Required.
      int getUnitValue()
      Required.
      boolean hasAmountMicros()
      Required.
      • 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

      • hasAmountMicros

        boolean hasAmountMicros()
         Required. The weight represented as a number in micros (1 million micros is
         an equivalent to one's currency standard unit, for example, 1 kg = 1000000
         micros).
         This field can also be set as infinity by setting to -1.
         This field only support -1 and positive value.
         
        optional int64 amount_micros = 1;
        Returns:
        Whether the amountMicros field is set.
      • getAmountMicros

        long getAmountMicros()
         Required. The weight represented as a number in micros (1 million micros is
         an equivalent to one's currency standard unit, for example, 1 kg = 1000000
         micros).
         This field can also be set as infinity by setting to -1.
         This field only support -1 and positive value.
         
        optional int64 amount_micros = 1;
        Returns:
        The amountMicros.
      • getUnitValue

        int getUnitValue()
         Required. The weight unit.
         Acceptable values are: kg and lb
         
        .google.shopping.type.Weight.WeightUnit unit = 2;
        Returns:
        The enum numeric value on the wire for unit.
      • getUnit

        Weight.WeightUnit getUnit()
         Required. The weight unit.
         Acceptable values are: kg and lb
         
        .google.shopping.type.Weight.WeightUnit unit = 2;
        Returns:
        The unit.