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

MUST match
<https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto>. An
authenticated message of arbitrary type.

Generated from protobuf message `grafeas.v1.Envelope`

## Namespace

Grafeas \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ payload` | `string` |
| `↳ payload_type` | `string` |
| `↳ signatures` | `array<https://docs.cloud.google.com/php/docs/reference/grafeas/latest/V1.EnvelopeSignature>` |

### getPayload

Generated from protobuf field `bytes payload = 1;`

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

### setPayload

Generated from protobuf field `bytes payload = 1;`

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

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

### getPayloadType

Generated from protobuf field `string payload_type = 2;`

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

### setPayloadType

Generated from protobuf field `string payload_type = 2;`

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

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

### getSignatures

Generated from protobuf field `repeated .grafeas.v1.EnvelopeSignature signatures = 3;`

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

### setSignatures

Generated from protobuf field `repeated .grafeas.v1.EnvelopeSignature signatures = 3;`

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

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