# Grafeas V1 Client - Class SlsaProvenance (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 SlsaProvenance.

Generated from protobuf message `grafeas.v1.SlsaProvenance`

## Namespace

Grafeas \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ builder` | `https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.SlsaProvenance.SlsaBuilder` required |
| `↳ recipe` | `https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.SlsaProvenance.SlsaRecipe` Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). |
| `↳ metadata` | `https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.SlsaProvenance.SlsaMetadata` |
| `↳ materials` | `array<https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.SlsaProvenance.Material>` The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty. |

### getBuilder

required

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

### hasBuilder

### clearBuilder

### setBuilder

required

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

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

### getRecipe

Identifies the configuration used for the build.

When combined with materials, this SHOULD fully describe the build,
such that re-running this recipe results in bit-for-bit identical output
(if the build is reproducible).

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

### hasRecipe

### clearRecipe

### setRecipe

Identifies the configuration used for the build.

When combined with materials, this SHOULD fully describe the build,
such that re-running this recipe results in bit-for-bit identical output
(if the build is reproducible).

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

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

### getMetadata

Generated from protobuf field `.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;`

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

### hasMetadata

### clearMetadata

### setMetadata

Generated from protobuf field `.grafeas.v1.SlsaProvenance.SlsaMetadata metadata = 3;`

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

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

### getMaterials

The collection of artifacts that influenced the build including sources,
dependencies, build tools, base images, and so on. This is considered to be
incomplete unless metadata.completeness.materials is true. Unset or null is
equivalent to empty.

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

### setMaterials

The collection of artifacts that influenced the build including sources,
dependencies, build tools, base images, and so on. This is considered to be
incomplete unless metadata.completeness.materials is true. Unset or null is
equivalent to empty.

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

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