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

Generated from protobuf message `grafeas.v1.InTotoSlsaProvenanceV1`

## Namespace

Grafeas \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `string` InToto spec defined at <https://github.com/in-toto/attestation/tree/main/spec#statement> |
| `↳ subject` | `array<https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.Subject>` |
| `↳ predicate_type` | `string` |
| `↳ predicate` | `https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.InTotoSlsaProvenanceV1.SlsaProvenanceV1` |

### getType

InToto spec defined at
<https://github.com/in-toto/attestation/tree/main/spec#statement>

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

### setType

InToto spec defined at
<https://github.com/in-toto/attestation/tree/main/spec#statement>

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

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

### getSubject

Generated from protobuf field `repeated .grafeas.v1.Subject subject = 2;`

| **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

Generated from protobuf field `repeated .grafeas.v1.Subject subject = 2;`

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

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

### getPredicateType

Generated from protobuf field `string predicate_type = 3;`

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

### setPredicateType

Generated from protobuf field `string predicate_type = 3;`

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

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

### getPredicate

Generated from protobuf field `.grafeas.v1.InTotoSlsaProvenanceV1.SlsaProvenanceV1 predicate = 4;`

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

### hasPredicate

### clearPredicate

### setPredicate

Generated from protobuf field `.grafeas.v1.InTotoSlsaProvenanceV1.SlsaProvenanceV1 predicate = 4;`

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

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