Google Cloud Optimization V1 Client - Class BreakRequest (0.3.4)

Reference documentation and code samples for the Google Cloud Optimization V1 Client class BreakRequest.

The sequence of breaks (i.e. their number and order) that apply to each vehicle must be known beforehand. The repeated BreakRequest s 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).

Generated from protobuf message google.cloud.optimization.v1.BreakRule.BreakRequest

Namespace

Google \ Cloud \ Optimization \ V1 \ BreakRule

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ earliest_start_time
Google\Protobuf\Timestamp

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

↳ latest_start_time
Google\Protobuf\Timestamp

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

↳ min_duration
Google\Protobuf\Duration

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

getEarliestStartTime

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

Returns
Type
Description

hasEarliestStartTime

clearEarliestStartTime

setEarliestStartTime

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

Parameter
Name
Description
Returns
Type
Description
$this

getLatestStartTime

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

Returns
Type
Description

hasLatestStartTime

clearLatestStartTime

setLatestStartTime

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

Parameter
Name
Description
Returns
Type
Description
$this

getMinDuration

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

Returns
Type
Description

hasMinDuration

clearMinDuration

setMinDuration

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

Parameter
Name
Description
Returns
Type
Description
$this
Create a Mobile Website
View Site in Mobile | Classic
Share by: