Interface Vehicle.DurationLimitOrBuilder

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

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      double getCostPerHourAfterSoftMax()
      Cost per hour incurred if the `soft_max_duration` threshold is violated.
      double getCostPerSquareHourAfterQuadraticSoftMax()
      Cost per square hour incurred if the `quadratic_soft_max_duration` threshold is violated.
      com.google.protobuf.Duration getMaxDuration()
      A hard limit constraining the duration to be at most max_duration.
      com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder()
      A hard limit constraining the duration to be at most max_duration.
      com.google.protobuf.Duration getQuadraticSoftMaxDuration()
      A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost, quadratic in the duration.
      com.google.protobuf.DurationOrBuilder getQuadraticSoftMaxDurationOrBuilder()
      A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost, quadratic in the duration.
      com.google.protobuf.Duration getSoftMaxDuration()
      A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost.
      com.google.protobuf.DurationOrBuilder getSoftMaxDurationOrBuilder()
      A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost.
      boolean hasCostPerHourAfterSoftMax()
      Cost per hour incurred if the `soft_max_duration` threshold is violated.
      boolean hasCostPerSquareHourAfterQuadraticSoftMax()
      Cost per square hour incurred if the `quadratic_soft_max_duration` threshold is violated.
      boolean hasMaxDuration()
      A hard limit constraining the duration to be at most max_duration.
      boolean hasQuadraticSoftMaxDuration()
      A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost, quadratic in the duration.
      boolean hasSoftMaxDuration()
      A soft limit not enforcing a maximum duration limit, but when violated makes the route incur a cost.
      • 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

      • hasMaxDuration

        boolean hasMaxDuration()
         A hard limit constraining the duration to be at most max_duration.
         
        .google.protobuf.Duration max_duration = 1;
        Returns:
        Whether the maxDuration field is set.
      • getMaxDuration

        com.google.protobuf.Duration getMaxDuration()
         A hard limit constraining the duration to be at most max_duration.
         
        .google.protobuf.Duration max_duration = 1;
        Returns:
        The maxDuration.
      • getMaxDurationOrBuilder

        com.google.protobuf.DurationOrBuilder getMaxDurationOrBuilder()
         A hard limit constraining the duration to be at most max_duration.
         
        .google.protobuf.Duration max_duration = 1;
      • hasSoftMaxDuration

        boolean hasSoftMaxDuration()
         A soft limit not enforcing a maximum duration limit, but when violated
         makes the route incur a cost. This cost adds up to other costs defined in
         the model, with the same unit.
        
         If defined, `soft_max_duration` must be nonnegative. If max_duration is
         also defined, `soft_max_duration` must be less than max_duration.
         
        .google.protobuf.Duration soft_max_duration = 2;
        Returns:
        Whether the softMaxDuration field is set.
      • getSoftMaxDuration

        com.google.protobuf.Duration getSoftMaxDuration()
         A soft limit not enforcing a maximum duration limit, but when violated
         makes the route incur a cost. This cost adds up to other costs defined in
         the model, with the same unit.
        
         If defined, `soft_max_duration` must be nonnegative. If max_duration is
         also defined, `soft_max_duration` must be less than max_duration.
         
        .google.protobuf.Duration soft_max_duration = 2;
        Returns:
        The softMaxDuration.
      • getSoftMaxDurationOrBuilder

        com.google.protobuf.DurationOrBuilder getSoftMaxDurationOrBuilder()
         A soft limit not enforcing a maximum duration limit, but when violated
         makes the route incur a cost. This cost adds up to other costs defined in
         the model, with the same unit.
        
         If defined, `soft_max_duration` must be nonnegative. If max_duration is
         also defined, `soft_max_duration` must be less than max_duration.
         
        .google.protobuf.Duration soft_max_duration = 2;
      • hasCostPerHourAfterSoftMax

        boolean hasCostPerHourAfterSoftMax()
         Cost per hour incurred if the `soft_max_duration` threshold is violated.
         The additional cost is 0 if the duration is under the threshold,
         otherwise the cost depends on the duration as follows:
         ```
           cost_per_hour_after_soft_max * (duration - soft_max_duration)
         ```
         The cost must be nonnegative.
         
        optional double cost_per_hour_after_soft_max = 3;
        Returns:
        Whether the costPerHourAfterSoftMax field is set.
      • getCostPerHourAfterSoftMax

        double getCostPerHourAfterSoftMax()
         Cost per hour incurred if the `soft_max_duration` threshold is violated.
         The additional cost is 0 if the duration is under the threshold,
         otherwise the cost depends on the duration as follows:
         ```
           cost_per_hour_after_soft_max * (duration - soft_max_duration)
         ```
         The cost must be nonnegative.
         
        optional double cost_per_hour_after_soft_max = 3;
        Returns:
        The costPerHourAfterSoftMax.
      • hasQuadraticSoftMaxDuration

        boolean hasQuadraticSoftMaxDuration()
         A soft limit not enforcing a maximum duration limit, but when violated
         makes the route incur a cost, quadratic in the duration. This cost adds
         up to other costs defined in the model, with the same unit.
        
         If defined, `quadratic_soft_max_duration` must be nonnegative. If
         `max_duration` is also defined, `quadratic_soft_max_duration` must be
         less than `max_duration`, and the difference must be no larger than one
         day:
        
            `max_duration - quadratic_soft_max_duration <= 86400 seconds`
         
        .google.protobuf.Duration quadratic_soft_max_duration = 4;
        Returns:
        Whether the quadraticSoftMaxDuration field is set.
      • getQuadraticSoftMaxDuration

        com.google.protobuf.Duration getQuadraticSoftMaxDuration()
         A soft limit not enforcing a maximum duration limit, but when violated
         makes the route incur a cost, quadratic in the duration. This cost adds
         up to other costs defined in the model, with the same unit.
        
         If defined, `quadratic_soft_max_duration` must be nonnegative. If
         `max_duration` is also defined, `quadratic_soft_max_duration` must be
         less than `max_duration`, and the difference must be no larger than one
         day:
        
            `max_duration - quadratic_soft_max_duration <= 86400 seconds`
         
        .google.protobuf.Duration quadratic_soft_max_duration = 4;
        Returns:
        The quadraticSoftMaxDuration.
      • getQuadraticSoftMaxDurationOrBuilder

        com.google.protobuf.DurationOrBuilder getQuadraticSoftMaxDurationOrBuilder()
         A soft limit not enforcing a maximum duration limit, but when violated
         makes the route incur a cost, quadratic in the duration. This cost adds
         up to other costs defined in the model, with the same unit.
        
         If defined, `quadratic_soft_max_duration` must be nonnegative. If
         `max_duration` is also defined, `quadratic_soft_max_duration` must be
         less than `max_duration`, and the difference must be no larger than one
         day:
        
            `max_duration - quadratic_soft_max_duration <= 86400 seconds`
         
        .google.protobuf.Duration quadratic_soft_max_duration = 4;
      • hasCostPerSquareHourAfterQuadraticSoftMax

        boolean hasCostPerSquareHourAfterQuadraticSoftMax()
         Cost per square hour incurred if the
         `quadratic_soft_max_duration` threshold is violated.
        
         The additional cost is 0 if the duration is under the threshold,
         otherwise the cost depends on the duration as follows:
        
         ```
           cost_per_square_hour_after_quadratic_soft_max *
           (duration - quadratic_soft_max_duration)^2
         ```
        
         The cost must be nonnegative.
         
        optional double cost_per_square_hour_after_quadratic_soft_max = 5;
        Returns:
        Whether the costPerSquareHourAfterQuadraticSoftMax field is set.
      • getCostPerSquareHourAfterQuadraticSoftMax

        double getCostPerSquareHourAfterQuadraticSoftMax()
         Cost per square hour incurred if the
         `quadratic_soft_max_duration` threshold is violated.
        
         The additional cost is 0 if the duration is under the threshold,
         otherwise the cost depends on the duration as follows:
        
         ```
           cost_per_square_hour_after_quadratic_soft_max *
           (duration - quadratic_soft_max_duration)^2
         ```
        
         The cost must be nonnegative.
         
        optional double cost_per_square_hour_after_quadratic_soft_max = 5;
        Returns:
        The costPerSquareHourAfterQuadraticSoftMax.