Google Cloud Build V1 Client - Class TimeSpan (0.12.0)

Reference documentation and code samples for the Google Cloud Build V1 Client class TimeSpan.

Start and end times for a build execution phase.

Generated from protobuf message google.devtools.cloudbuild.v1.TimeSpan

Namespace

Google \ Cloud \ Build \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ start_time Google\Protobuf\Timestamp

Start of time span.

↳ end_time Google\Protobuf\Timestamp

End of time span.

getStartTime

Start of time span.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasStartTime

clearStartTime

setStartTime

Start of time span.

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

getEndTime

End of time span.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasEndTime

clearEndTime

setEndTime

End of time span.

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