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

The message that fully specifies the type of the packet.

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

## Namespace

Google \\ Cloud \\ VisionAI \\ V1 \\ PacketType

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ gstreamer_buffer_descriptor` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.GstreamerBufferDescriptor` GstreamerBufferDescriptor is the descriptor for gstreamer buffer type. |
| `↳ raw_image_descriptor` | `https://docs.cloud.google.com/php/docs/reference/cloud-visionai/latest/V1.RawImageDescriptor` RawImageDescriptor is the descriptor for the raw image type. |
| `↳ type` | `string` The type of the packet. Its possible values is codec dependent. The fully qualified type name is always the concatenation of the value in `type_class` together with the value in `type`, separated by a '/'. Note that specific codecs can define their own type hierarchy, and so the type string here can in fact be separated by multiple '/'s of its own. Please see the open source SDK for specific codec documentation. |

### getGstreamerBufferDescriptor

GstreamerBufferDescriptor is the descriptor for gstreamer buffer type.

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

### hasGstreamerBufferDescriptor

### setGstreamerBufferDescriptor

GstreamerBufferDescriptor is the descriptor for gstreamer buffer type.

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

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

### getRawImageDescriptor

RawImageDescriptor is the descriptor for the raw image type.

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

### hasRawImageDescriptor

### setRawImageDescriptor

RawImageDescriptor is the descriptor for the raw image type.

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

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

### getType

The type of the packet. Its possible values is codec dependent.

The fully qualified type name is always the concatenation of the
value in `type_class` together with the value in `type`, separated by a
'/'.
Note that specific codecs can define their own type hierarchy, and so the
type string here can in fact be separated by multiple '/'s of its own.
Please see the open source SDK for specific codec documentation.

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

### setType

The type of the packet. Its possible values is codec dependent.

The fully qualified type name is always the concatenation of the
value in `type_class` together with the value in `type`, separated by a
'/'.
Note that specific codecs can define their own type hierarchy, and so the
type string here can in fact be separated by multiple '/'s of its own.
Please see the open source SDK for specific codec documentation.

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

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

### getTypeDetails

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