# Google Maps Route Optimization V1 Client - Class Interval (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 Interval.

Interval of acceptable load amounts.

Generated from protobuf message `google.maps.routeoptimization.v1.Vehicle.LoadLimit.Interval`

## Namespace

Google \\ Maps \\ RouteOptimization \\ V1 \\ Vehicle \\ LoadLimit

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ min` | `int|string` A minimum acceptable load. Must be ≥ 0. If they're both specified, [min](https://docs.cloud.google.com/php/docs/reference/maps-routeoptimization/latest/V1.Vehicle.LoadLimit.Interval#_Google_Maps_RouteOptimization_V1_Vehicle_LoadLimit_Interval__getMin__) must be ≤ [max](https://docs.cloud.google.com/php/docs/reference/maps-routeoptimization/latest/V1.Vehicle.LoadLimit.Interval#_Google_Maps_RouteOptimization_V1_Vehicle_LoadLimit_Interval__getMax__). |
| `↳ max` | `int|string` A maximum acceptable load. Must be ≥ 0. If unspecified, the maximum load is unrestricted by this message. If they're both specified, [min](https://docs.cloud.google.com/php/docs/reference/maps-routeoptimization/latest/V1.Vehicle.LoadLimit.Interval#_Google_Maps_RouteOptimization_V1_Vehicle_LoadLimit_Interval__getMin__) must be ≤ [max](https://docs.cloud.google.com/php/docs/reference/maps-routeoptimization/latest/V1.Vehicle.LoadLimit.Interval#_Google_Maps_RouteOptimization_V1_Vehicle_LoadLimit_Interval__getMax__). |

### getMin

A minimum acceptable load. Must be ≥ 0.

If they're both specified,
[min](https://docs.cloud.google.com/php/docs/reference/maps-routeoptimization/latest/V1.Vehicle.LoadLimit.Interval#_Google_Maps_RouteOptimization_V1_Vehicle_LoadLimit_Interval__getMin__)
must be ≤
[max](https://docs.cloud.google.com/php/docs/reference/maps-routeoptimization/latest/V1.Vehicle.LoadLimit.Interval#_Google_Maps_RouteOptimization_V1_Vehicle_LoadLimit_Interval__getMax__).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### setMin

A minimum acceptable load. Must be ≥ 0.

If they're both specified,
[min](https://docs.cloud.google.com/php/docs/reference/maps-routeoptimization/latest/V1.Vehicle.LoadLimit.Interval#_Google_Maps_RouteOptimization_V1_Vehicle_LoadLimit_Interval__getMin__)
must be ≤
[max](https://docs.cloud.google.com/php/docs/reference/maps-routeoptimization/latest/V1.Vehicle.LoadLimit.Interval#_Google_Maps_RouteOptimization_V1_Vehicle_LoadLimit_Interval__getMax__).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

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

### getMax

A maximum acceptable load. Must be ≥ 0. If unspecified, the maximum
load is unrestricted by this message.

If they're both specified,
[min](https://docs.cloud.google.com/php/docs/reference/maps-routeoptimization/latest/V1.Vehicle.LoadLimit.Interval#_Google_Maps_RouteOptimization_V1_Vehicle_LoadLimit_Interval__getMin__)
must be ≤
[max](https://docs.cloud.google.com/php/docs/reference/maps-routeoptimization/latest/V1.Vehicle.LoadLimit.Interval#_Google_Maps_RouteOptimization_V1_Vehicle_LoadLimit_Interval__getMax__).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int|string` |   |

### hasMax

### clearMax

### setMax

A maximum acceptable load. Must be ≥ 0. If unspecified, the maximum
load is unrestricted by this message.

If they're both specified,
[min](https://docs.cloud.google.com/php/docs/reference/maps-routeoptimization/latest/V1.Vehicle.LoadLimit.Interval#_Google_Maps_RouteOptimization_V1_Vehicle_LoadLimit_Interval__getMin__)
must be ≤
[max](https://docs.cloud.google.com/php/docs/reference/maps-routeoptimization/latest/V1.Vehicle.LoadLimit.Interval#_Google_Maps_RouteOptimization_V1_Vehicle_LoadLimit_Interval__getMax__).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int|string` |

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