Google Cloud Build V1 Client - Class BuildStatus (0.3.8)

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

Status used for both invocation attempt and overall build completion.

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

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ result int

The end result.

↳ final_invocation_id string

Final invocation ID of the build, if there was one. This field is only set on a status in BuildFinished event.

↳ build_tool_exit_code Google\Protobuf\Int32Value

Build tool exit code. Integer value returned by the executed build tool. Might not be available in some cases, e.g., a build timeout.

↳ details Google\Protobuf\Any

Fine-grained diagnostic information to complement the status.

getResult

The end result.

Returns
TypeDescription
int

setResult

The end result.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getFinalInvocationId

Final invocation ID of the build, if there was one.

This field is only set on a status in BuildFinished event.

Returns
TypeDescription
string

setFinalInvocationId

Final invocation ID of the build, if there was one.

This field is only set on a status in BuildFinished event.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getBuildToolExitCode

Build tool exit code. Integer value returned by the executed build tool.

Might not be available in some cases, e.g., a build timeout.

Returns
TypeDescription
Google\Protobuf\Int32Value|null

hasBuildToolExitCode

clearBuildToolExitCode

getBuildToolExitCodeValue

Returns the unboxed value from getBuildToolExitCode()

Build tool exit code. Integer value returned by the executed build tool. Might not be available in some cases, e.g., a build timeout.

Returns
TypeDescription
int|null

setBuildToolExitCode

Build tool exit code. Integer value returned by the executed build tool.

Might not be available in some cases, e.g., a build timeout.

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

setBuildToolExitCodeValue

Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object.

Build tool exit code. Integer value returned by the executed build tool. Might not be available in some cases, e.g., a build timeout.

Parameter
NameDescription
var int|null
Returns
TypeDescription
$this

getDetails

Fine-grained diagnostic information to complement the status.

Returns
TypeDescription
Google\Protobuf\Any|null

hasDetails

clearDetails

setDetails

Fine-grained diagnostic information to complement the status.

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