# Google Maps Route Optimization V1 Client - Class BreakRequest (0.6.2)

0.6.2 (latest) 0.6.1 0.5.1 0.4.1 0.3.3 0.2.0 0.1.0 Reference documentation and code samples for the Google Maps Route 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.maps.routeoptimization.v1.BreakRule.BreakRequest`

## Namespace

Google \\ Maps \\ RouteOptimization \\ V1 \\ BreakRule

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ earliest_start_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Required. Lower bound (inclusive) on the start of the break. |
| `↳ latest_start_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Required. Upper bound (inclusive) on the start of the break. |
| `↳ min_duration` | `https://protobuf.dev/reference/php/api-docs/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** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasEarliestStartTime

### clearEarliestStartTime

### setEarliestStartTime

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLatestStartTime

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasLatestStartTime

### clearLatestStartTime

### setLatestStartTime

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMinDuration

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration|null` |   |

### hasMinDuration

### clearMinDuration

### setMinDuration

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Duration` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |