Cloud Optimization v1 API - Class BreakRule.Types.BreakRequest (2.2.0)

public sealed class BreakRule.Types.BreakRequest : IMessage<BreakRule.Types.BreakRequest>, IEquatable<BreakRule.Types.BreakRequest>, IDeepCloneable<BreakRule.Types.BreakRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Cloud Optimization v1 API class BreakRule.Types.BreakRequest.

The sequence of breaks (i.e. their number and order) that apply to each vehicle must be known beforehand. The repeated BreakRequests define that sequence, in the order in which they must occur. Their time windows (earliest_start_time / latest_start_time) may overlap, but they must be compatible with the order (this is checked).

Inheritance

object > BreakRule.Types.BreakRequest

Namespace

Google.Cloud.Optimization.V1

Assembly

Google.Cloud.Optimization.V1.dll

Constructors

BreakRequest()

public BreakRequest()

BreakRequest(BreakRequest)

public BreakRequest(BreakRule.Types.BreakRequest other)
Parameter
NameDescription
otherBreakRuleTypesBreakRequest

Properties

EarliestStartTime

public Timestamp EarliestStartTime { get; set; }

Required. Lower bound (inclusive) on the start of the break.

Property Value
TypeDescription
Timestamp

LatestStartTime

public Timestamp LatestStartTime { get; set; }

Required. Upper bound (inclusive) on the start of the break.

Property Value
TypeDescription
Timestamp

MinDuration

public Duration MinDuration { get; set; }

Required. Minimum duration of the break. Must be positive.

Property Value
TypeDescription
Duration