# Grafeas V1 Client - Class BuildProvenance (1.7.0)

1.7.0 (latest) 1.6.0 1.5.0 1.4.0 1.3.2 1.2.2 1.1.3 1.0.0 0.10.3 0.9.0 0.8.3 0.7.1 0.6.0 0.5.0 0.4.4 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`

## Namespace

Grafeas \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `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<https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.Command>` Commands requested by the build. |
| `↳ built_artifacts` | `array<https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.Artifact>` Output of the build. |
| `↳ create_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Time at which the build was created. |
| `↳ start_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Time at which execution of the build was started. |
| `↳ end_time` | `https://protobuf.dev/reference/php/api-docs/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` | `https://docs.cloud.google.com/php/docs/reference/grafeas/latest/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|https://protobuf.dev/reference/php/api-docs/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** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setId

Required. Unique identifier of the build.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getProjectId

ID of the project.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setProjectId

ID of the project.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCommands

Commands requested by the build.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.Command>` |   |

### setCommands

Commands requested by the build.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.Command>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getBuiltArtifacts

Output of the build.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.Artifact>` |   |

### setBuiltArtifacts

Output of the build.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.Artifact>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCreateTime

Time at which the build was created.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasCreateTime

### clearCreateTime

### setCreateTime

Time at which the build was created.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getStartTime

Time at which execution of the build was started.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasStartTime

### clearStartTime

### setStartTime

Time at which execution of the build was started.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getEndTime

Time at which execution of the build was finished.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasEndTime

### clearEndTime

### setEndTime

Time at which execution of the build was finished.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$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** ||
|---|---|
| **Type** | **Description** |
| `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** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLogsUri

URI where any logs for this provenance were written.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setLogsUri

URI where any logs for this provenance were written.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSourceProvenance

Details of the Source input to the build.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.Source|null` |   |

### hasSourceProvenance

### clearSourceProvenance

### setSourceProvenance

Details of the Source input to the build.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.Source` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getTriggerId

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setTriggerId

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getBuildOptions

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/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** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getBuilderVersion

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setBuilderVersion

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |