Google Cloud Optimization V1 Client - Class Interval (0.2.0)

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
int|string

setMin

A minimum acceptable load. Must be ≥ 0.

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

Parameter
NameDescription
var int|string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var int|string
Returns
TypeDescription
$this