Grafeas V1 Client - Class BuildProvenance (0.6.0)

Reference documentation and code samples for the Grafeas V1 Client class BuildProvenance.

Provenance of a build. Contains all information needed to verify the full details about the build from source to completion.

Generated from protobuf message grafeas.v1.BuildProvenance

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ id string

Required. Unique identifier of the build.

↳ project_id string

ID of the project.

↳ commands array<Grafeas\V1\Command>

Commands requested by the build.

↳ built_artifacts array<Grafeas\V1\Artifact>

Output of the build.

↳ create_time Google\Protobuf\Timestamp

Time at which the build was created.

↳ start_time Google\Protobuf\Timestamp

Time at which execution of the build was started.

↳ end_time Google\Protobuf\Timestamp

Time at which execution of the build was finished.

↳ creator string

E-mail address of the user who initiated this build. Note that this was the user's e-mail address at the time the build was initiated; this address may not represent the same end-user for all time.

↳ logs_uri string

URI where any logs for this provenance were written.

↳ source_provenance Grafeas\V1\Source

Details of the Source input to the build.

↳ trigger_id string

Trigger identifier if the build was triggered automatically; empty if not.

↳ build_options array|Google\Protobuf\Internal\MapField

Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.

↳ builder_version string

Version string of the builder at the time this build was executed.

getId

Required. Unique identifier of the build.

Returns
TypeDescription
string

setId

Required. Unique identifier of the build.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProjectId

ID of the project.

Returns
TypeDescription
string

setProjectId

ID of the project.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getCommands

Commands requested by the build.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setCommands

Commands requested by the build.

Parameter
NameDescription
var array<Grafeas\V1\Command>
Returns
TypeDescription
$this

getBuiltArtifacts

Output of the build.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setBuiltArtifacts

Output of the build.

Parameter
NameDescription
var array<Grafeas\V1\Artifact>
Returns
TypeDescription
$this

getCreateTime

Time at which the build was created.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasCreateTime

clearCreateTime

setCreateTime

Time at which the build was created.

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

getStartTime

Time at which execution of the build was started.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasStartTime

clearStartTime

setStartTime

Time at which execution of the build was started.

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

getEndTime

Time at which execution of the build was finished.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasEndTime

clearEndTime

setEndTime

Time at which execution of the build was finished.

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

getCreator

E-mail address of the user who initiated this build. Note that this was the user's e-mail address at the time the build was initiated; this address may not represent the same end-user for all time.

Returns
TypeDescription
string

setCreator

E-mail address of the user who initiated this build. Note that this was the user's e-mail address at the time the build was initiated; this address may not represent the same end-user for all time.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLogsUri

URI where any logs for this provenance were written.

Returns
TypeDescription
string

setLogsUri

URI where any logs for this provenance were written.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSourceProvenance

Details of the Source input to the build.

Returns
TypeDescription
Grafeas\V1\Source|null

hasSourceProvenance

clearSourceProvenance

setSourceProvenance

Details of the Source input to the build.

Parameter
NameDescription
var Grafeas\V1\Source
Returns
TypeDescription
$this

getTriggerId

Trigger identifier if the build was triggered automatically; empty if not.

Returns
TypeDescription
string

setTriggerId

Trigger identifier if the build was triggered automatically; empty if not.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getBuildOptions

Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.

Returns
TypeDescription
Google\Protobuf\Internal\MapField

setBuildOptions

Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.

Parameter
NameDescription
var array|Google\Protobuf\Internal\MapField
Returns
TypeDescription
$this

getBuilderVersion

Version string of the builder at the time this build was executed.

Returns
TypeDescription
string

setBuilderVersion

Version string of the builder at the time this build was executed.

Parameter
NameDescription
var string
Returns
TypeDescription
$this