Interface Vehicle.LoadLimitOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
Vehicle.LoadLimit, Vehicle.LoadLimit.Builder
Enclosing class:
Vehicle

public static interface Vehicle.LoadLimitOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
    double
    If the load ever exceeds [soft_max_load][google.cloud.optimization.v1.Vehicle.LoadLimit.soft_max_load] along this vehicle's route, the following cost penalty applies (only once per vehicle): (load - [soft_max_load][google.cloud.optimization.v1.Vehicle.LoadLimit.soft_max_load]) * [cost_per_unit_above_soft_max][google.cloud.optimization.v1.Vehicle.LoadLimit.cost_per_unit_above_soft_max].
    The acceptable load interval of the vehicle at the end of the route.
    The acceptable load interval of the vehicle at the end of the route.
    long
    The maximum acceptable amount of load.
    long
    A soft limit of the load.
    The acceptable load interval of the vehicle at the start of the route.
    The acceptable load interval of the vehicle at the start of the route.
    boolean
    The acceptable load interval of the vehicle at the end of the route.
    boolean
    The maximum acceptable amount of load.
    boolean
    The acceptable load interval of the vehicle at the start of the route.

    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

    • hasMaxLoad

      boolean hasMaxLoad()
       The maximum acceptable amount of load.
       
      optional int64 max_load = 1;
      Returns:
      Whether the maxLoad field is set.
    • getMaxLoad

      long getMaxLoad()
       The maximum acceptable amount of load.
       
      optional int64 max_load = 1;
      Returns:
      The maxLoad.
    • getSoftMaxLoad

      long getSoftMaxLoad()
       A soft limit of the load. See
       [cost_per_unit_above_soft_max][google.cloud.optimization.v1.Vehicle.LoadLimit.cost_per_unit_above_soft_max].
       
      int64 soft_max_load = 2;
      Returns:
      The softMaxLoad.
    • getCostPerUnitAboveSoftMax

      double getCostPerUnitAboveSoftMax()
       If the load ever exceeds
       [soft_max_load][google.cloud.optimization.v1.Vehicle.LoadLimit.soft_max_load]
       along this vehicle's route, the following cost penalty applies (only once
       per vehicle): (load -
       [soft_max_load][google.cloud.optimization.v1.Vehicle.LoadLimit.soft_max_load])
       * [cost_per_unit_above_soft_max][google.cloud.optimization.v1.Vehicle.LoadLimit.cost_per_unit_above_soft_max]. All costs
       add up and must be in the same unit as
       [Shipment.penalty_cost][google.cloud.optimization.v1.Shipment.penalty_cost].
       
      double cost_per_unit_above_soft_max = 3;
      Returns:
      The costPerUnitAboveSoftMax.
    • hasStartLoadInterval

      boolean hasStartLoadInterval()
       The acceptable load interval of the vehicle at the start of the route.
       
      .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4;
      Returns:
      Whether the startLoadInterval field is set.
    • getStartLoadInterval

      Vehicle.LoadLimit.Interval getStartLoadInterval()
       The acceptable load interval of the vehicle at the start of the route.
       
      .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4;
      Returns:
      The startLoadInterval.
    • getStartLoadIntervalOrBuilder

      Vehicle.LoadLimit.IntervalOrBuilder getStartLoadIntervalOrBuilder()
       The acceptable load interval of the vehicle at the start of the route.
       
      .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval start_load_interval = 4;
    • hasEndLoadInterval

      boolean hasEndLoadInterval()
       The acceptable load interval of the vehicle at the end of the route.
       
      .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5;
      Returns:
      Whether the endLoadInterval field is set.
    • getEndLoadInterval

      Vehicle.LoadLimit.Interval getEndLoadInterval()
       The acceptable load interval of the vehicle at the end of the route.
       
      .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5;
      Returns:
      The endLoadInterval.
    • getEndLoadIntervalOrBuilder

      Vehicle.LoadLimit.IntervalOrBuilder getEndLoadIntervalOrBuilder()
       The acceptable load interval of the vehicle at the end of the route.
       
      .google.cloud.optimization.v1.Vehicle.LoadLimit.Interval end_load_interval = 5;