Google Cloud Optimization V1 Client - Class PBBreak (0.4.0)

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

Data representing the execution of a break.

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

Namespace

Google \ Cloud \ Optimization \ V1 \ ShipmentRoute

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ start_time Google\Protobuf\Timestamp

Start time of a break.

↳ duration Google\Protobuf\Duration

Duration of a break.

getStartTime

Start time of a break.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasStartTime

clearStartTime

setStartTime

Start time of a break.

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

getDuration

Duration of a break.

Returns
TypeDescription
Google\Protobuf\Duration|null

hasDuration

clearDuration

setDuration

Duration of a break.

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