# Class PacketType (0.5.1)

0.5.1 (latest) 0.5.0 0.4.0 0.3.0 0.2.0 0.1.10

    PacketType(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The message that represents the data type of a packet.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `type_class` | `str` The type class of the packet. Its possible values are: "gst", "protobuf", and "string". |
| `type_descriptor` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-visionai/latest/google.cloud.visionai_v1alpha1.types.PacketType.TypeDescriptor` The type descriptor. |

## Classes

### TypeDescriptor

    TypeDescriptor(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The message that fully specifies the type of the packet.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>