Google Cloud Optimization V1 Client - Class Delay (0.1.9)

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

Deprecated: Use ShipmentRoute.Transition.delay_duration instead. Time interval spent on the route resulting from a TransitionAttributes.delay.

Generated from protobuf message google.cloud.optimization.v1.ShipmentRoute.Delay

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ start_time Google\Protobuf\Timestamp

Start of the delay.

↳ duration Google\Protobuf\Duration

Duration of the delay.

getStartTime

Start of the delay.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasStartTime

clearStartTime

setStartTime

Start of the delay.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getDuration

Duration of the delay.

Returns
TypeDescription
Google\Protobuf\Duration|null

hasDuration

clearDuration

setDuration

Duration of the delay.

Parameter
NameDescription
var Google\Protobuf\Duration
Returns
TypeDescription
$this