# Google Cloud Vision Ai V1 Client - Class Packet (0.3.0)

0.3.0 (latest) 0.2.0 0.1.0 Reference documentation and code samples for the Google Cloud Vision Ai V1 Client class Packet.

The quanta of datum that the series accepts.

Generated from protobuf message `google.cloud.visionai.v1.Packet`

## Namespace

Google \\ Cloud \\ VisionAI \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ header` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.PacketHeader` The packet header. |
| `↳ payload` | `string` The payload of the packet. |

### getHeader

The packet header.

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

### hasHeader

### clearHeader

### setHeader

The packet header.

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

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

### getPayload

The payload of the packet.

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

### setPayload

The payload of the packet.

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

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