# Google Cloud Vision Ai V1 Client - Class PacketType (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 PacketType.

The message that represents the data type of a packet.

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

## Namespace

Google \\ Cloud \\ VisionAI \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type_class` | `string` The type class of the packet. Its possible values are: "gst", "protobuf", and "string". |
| `↳ type_descriptor` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.PacketType.TypeDescriptor` The type descriptor. |

### getTypeClass

The type class of the packet. Its possible values are:
"gst", "protobuf", and "string".

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

### setTypeClass

The type class of the packet. Its possible values are:
"gst", "protobuf", and "string".

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

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

### getTypeDescriptor

The type descriptor.

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

### hasTypeDescriptor

### clearTypeDescriptor

### setTypeDescriptor

The type descriptor.

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

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