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 | |
---|---|
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
Returns | |
---|---|
Type | Description |
int|string |
setMin
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.
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.
Parameter | |
---|---|
Name | Description |
var |
int|string
|
Returns | |
---|---|
Type | Description |
$this |