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.
Name | Description |
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.
Type | Description |
int |
setResult
The end result.
Name | Description |
var |
int
|
Type | Description |
$this |
getFinalInvocationId
Final invocation ID of the build, if there was one.
This field is only set on a status in BuildFinished event.
Type | Description |
string |
setFinalInvocationId
Final invocation ID of the build, if there was one.
This field is only set on a status in BuildFinished event.
Name | Description |
var |
string
|
Type | Description |
$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.
Type | Description |
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.
Type | Description |
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.
Name | Description |
var |
Google\Protobuf\Int32Value
|
Type | Description |
$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.
Name | Description |
var |
int|null
|
Type | Description |
$this |
getDetails
Fine-grained diagnostic information to complement the status.
Type | Description |
Google\Protobuf\Any|null |
hasDetails
clearDetails
setDetails
Fine-grained diagnostic information to complement the status.
Name | Description |
var |
Google\Protobuf\Any
|
Type | Description |
$this |