Google Cloud Optimization V1 Client - Class Interval (1.0.2)

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

Interval of acceptable load amounts.

Generated from protobuf message google.cloud.optimization.v1.Vehicle.LoadLimit.Interval

Namespace

Google \ Cloud \ Optimization \ 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 must be ≤ max.

↳ 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 must be ≤ max.

getMin

A minimum acceptable load. Must be ≥ 0.

If they're both specified, min must be ≤ max.

Returns
Type Description
int|string

setMin

A minimum acceptable load. Must be ≥ 0.

If they're both specified, min must be ≤ max.

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 must be ≤ max.

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 must be ≤ max.

Parameter
Name Description
var int|string
Returns
Type Description
$this