Package com.google.cloud.optimization.v1
Interface Vehicle.LoadLimit.IntervalOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Vehicle.LoadLimit.Interval
,Vehicle.LoadLimit.Interval.Builder
- Enclosing class:
- Vehicle.LoadLimit
public static interface Vehicle.LoadLimit.IntervalOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
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.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.
-
-