Cloud Optimization v1 API - Class Vehicle.Types.LoadLimit.Types.Interval (2.1.0)

public sealed class Interval : IMessage<Vehicle.Types.LoadLimit.Types.Interval>, IEquatable<Vehicle.Types.LoadLimit.Types.Interval>, IDeepCloneable<Vehicle.Types.LoadLimit.Types.Interval>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Optimization v1 API class Vehicle.Types.LoadLimit.Types.Interval.

Interval of acceptable load amounts.

Inheritance

Object > Vehicle.Types.LoadLimit.Types.Interval

Namespace

Google.Cloud.Optimization.V1

Assembly

Google.Cloud.Optimization.V1.dll

Constructors

Interval()

public Interval()

Interval(Vehicle.Types.LoadLimit.Types.Interval)

public Interval(Vehicle.Types.LoadLimit.Types.Interval other)
Parameter
NameDescription
otherVehicle.Types.LoadLimit.Types.Interval

Properties

HasMax

public bool HasMax { get; }

Gets whether the "max" field is set

Property Value
TypeDescription
Boolean

Max

public long Max { get; set; }

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].

Property Value
TypeDescription
Int64

Min

public long Min { get; set; }

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].

Property Value
TypeDescription
Int64