Interface Vehicle.LoadLimit.IntervalOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      long getMax()
      A maximum acceptable load.
      long getMin()
      A minimum acceptable load.
      boolean hasMax()
      A maximum acceptable load.
      • 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

      • getMin

        long getMin()
         A minimum acceptable load. Must be ≥ 0.
         If they're both specified,
         [min][google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.min] must
         be ≤
         [max][google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.max].
         
        int64 min = 1;
        Returns:
        The min.
      • hasMax

        boolean hasMax()
         A maximum acceptable load. Must be ≥ 0. If unspecified, the maximum
         load is unrestricted by this message.
         If they're both specified,
         [min][google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.min] must
         be ≤
         [max][google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.max].
         
        optional int64 max = 2;
        Returns:
        Whether the max field is set.
      • getMax

        long getMax()
         A maximum acceptable load. Must be ≥ 0. If unspecified, the maximum
         load is unrestricted by this message.
         If they're both specified,
         [min][google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.min] must
         be ≤
         [max][google.cloud.optimization.v1.Vehicle.LoadLimit.Interval.max].
         
        optional int64 max = 2;
        Returns:
        The max.