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

The actual payload that contains the SBOM Reference data.

The payload follows the intoto statement specification. See
<https://github.com/in-toto/attestation/blob/main/spec/v1.0/statement.md>
for more details.

Generated from protobuf message `grafeas.v1.SbomReferenceIntotoPayload`

## Namespace

Grafeas \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `string` Identifier for the schema of the Statement. |
| `↳ predicate_type` | `string` URI identifying the type of the Predicate. |
| `↳ subject` | `array<https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.Subject>` Set of software artifacts that the attestation applies to. Each element represents a single software artifact. |
| `↳ predicate` | `https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.SbomReferenceIntotoPredicate` Additional parameters of the Predicate. Includes the actual data about the SBOM. |

### getType

Identifier for the schema of the Statement.

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

### setType

Identifier for the schema of the Statement.

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

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

### getPredicateType

URI identifying the type of the Predicate.

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

### setPredicateType

URI identifying the type of the Predicate.

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

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

### getSubject

Set of software artifacts that the attestation applies to. Each element
represents a single software artifact.

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

### setSubject

Set of software artifacts that the attestation applies to. Each element
represents a single software artifact.

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

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

### getPredicate

Additional parameters of the Predicate. Includes the actual data about the
SBOM.

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

### hasPredicate

### clearPredicate

### setPredicate

Additional parameters of the Predicate. Includes the actual data about the
SBOM.

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

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