Google Cloud Build V1 Client - Class BuildEvent (0.3.8)

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

An event representing some state change that occurred in the build. This message does not include field for uniquely identifying an event.

Generated from protobuf message google.devtools.build.v1.BuildEvent

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ event_time
Google\Protobuf\Timestamp

The timestamp of this event.

↳ invocation_attempt_started
↳ invocation_attempt_finished
↳ build_enqueued
↳ build_finished
Google\Cloud\Build\V1\BuildEvent\BuildFinished

The build has finished. Set when the build is terminated.

↳ console_output
Google\Cloud\Build\V1\BuildEvent\ConsoleOutput

An event containing printed text.

↳ component_stream_finished
Google\Cloud\Build\V1\BuildEvent\BuildComponentStreamFinished

Indicates the end of a build event stream (with the same StreamId) from a build component executing the requested build task. *** This field does not indicate the WatchBuild RPC is finished. ***

↳ bazel_event
Google\Protobuf\Any

Structured build event generated by Bazel about its execution progress.

↳ build_execution_event
Google\Protobuf\Any

An event that contains supplemental tool-specific information about build execution.

↳ source_fetch_event
Google\Protobuf\Any

An event that contains supplemental tool-specific information about source fetching.

getEventTime

The timestamp of this event.

Returns
Type
Description

hasEventTime

clearEventTime

setEventTime

The timestamp of this event.

Parameter
Name
Description
Returns
Type
Description
$this

getInvocationAttemptStarted

An invocation attempt has started.

hasInvocationAttemptStarted

setInvocationAttemptStarted

An invocation attempt has started.

Returns
Type
Description
$this

getInvocationAttemptFinished

An invocation attempt has finished.

hasInvocationAttemptFinished

setInvocationAttemptFinished

An invocation attempt has finished.

Returns
Type
Description
$this

getBuildEnqueued

The build is enqueued.

Returns
Type
Description

hasBuildEnqueued

setBuildEnqueued

The build is enqueued.

Parameter
Name
Description
Returns
Type
Description
$this

getBuildFinished

The build has finished. Set when the build is terminated.

Returns
Type
Description

hasBuildFinished

setBuildFinished

The build has finished. Set when the build is terminated.

Parameter
Name
Description
Returns
Type
Description
$this

getConsoleOutput

An event containing printed text.

Returns
Type
Description

hasConsoleOutput

setConsoleOutput

An event containing printed text.

Parameter
Name
Description
Returns
Type
Description
$this

getComponentStreamFinished

Indicates the end of a build event stream (with the same StreamId) from a build component executing the requested build task.

*** This field does not indicate the WatchBuild RPC is finished. ***

hasComponentStreamFinished

setComponentStreamFinished

Indicates the end of a build event stream (with the same StreamId) from a build component executing the requested build task.

*** This field does not indicate the WatchBuild RPC is finished. ***

Returns
Type
Description
$this

getBazelEvent

Structured build event generated by Bazel about its execution progress.

Returns
Type
Description

hasBazelEvent

setBazelEvent

Structured build event generated by Bazel about its execution progress.

Parameter
Name
Description
Returns
Type
Description
$this

getBuildExecutionEvent

An event that contains supplemental tool-specific information about build execution.

Returns
Type
Description

hasBuildExecutionEvent

setBuildExecutionEvent

An event that contains supplemental tool-specific information about build execution.

Parameter
Name
Description
Returns
Type
Description
$this

getSourceFetchEvent

An event that contains supplemental tool-specific information about source fetching.

Returns
Type
Description

hasSourceFetchEvent

setSourceFetchEvent

An event that contains supplemental tool-specific information about source fetching.

Parameter
Name
Description
Returns
Type
Description
$this

getEvent

Returns
Type
Description
string
Design a Mobile Site
View Site in Mobile | Classic
Share by: