# flytekit.models.core.types

## Directory

### Classes

| Class | Description |
|-|-|
| [`BlobType`](https://www.union.ai/docs/v1/flyte/api-reference/flytekit-sdk/packages/flytekit.models.core.types/page.md#flytekitmodelscoretypesblobtype) | This type represents offloaded data and is typically used for things like files. |
| [`EnumType`](https://www.union.ai/docs/v1/flyte/api-reference/flytekit-sdk/packages/flytekit.models.core.types/page.md#flytekitmodelscoretypesenumtype) | Models _types_pb2. |

## flytekit.models.core.types.BlobType

This type represents offloaded data and is typically used for things like files.

### Parameters

```python
class BlobType(
    format,
    dimensionality,
)
```
| Parameter | Type | Description |
|-|-|-|
| `format` |  | |
| `dimensionality` |  | |

### Properties

| Property | Type | Description |
|-|-|-|
| `dimensionality` | `None` | An integer from BlobType.BlobDimensionality enum |
| `format` | `None` | A string describing the format of the underlying blob data. |
| `is_empty` | `None` |  |

### Methods

| Method | Description |
|-|-|
| [`from_flyte_idl()`](#from_flyte_idl) |  |
| [`serialize_to_string()`](#serialize_to_string) |  |
| [`short_string()`](#short_string) |  |
| [`to_flyte_idl()`](#to_flyte_idl) |  |

#### from_flyte_idl()

```python
def from_flyte_idl(
    proto,
)
```
| Parameter | Type | Description |
|-|-|-|
| `proto` |  | |

**Returns:** BlobType

#### serialize_to_string()

```python
def serialize_to_string()
```
#### short_string()

```python
def short_string()
```
**Returns:** Text

#### to_flyte_idl()

```python
def to_flyte_idl()
```
**Returns:** flyteidl.core.types_pb2.BlobType

## flytekit.models.core.types.EnumType

Models _types_pb2.EnumType

### Parameters

```python
class EnumType(
    values: typing.List[str],
)
```
| Parameter | Type | Description |
|-|-|-|
| `values` | `typing.List[str]` | |

### Properties

| Property | Type | Description |
|-|-|-|
| `is_empty` | `None` |  |
| `values` | `typing.List[str]` |  |

### Methods

| Method | Description |
|-|-|
| [`from_flyte_idl()`](#from_flyte_idl) |  |
| [`serialize_to_string()`](#serialize_to_string) |  |
| [`short_string()`](#short_string) |  |
| [`to_flyte_idl()`](#to_flyte_idl) |  |

#### from_flyte_idl()

```python
def from_flyte_idl(
    proto: _types_pb2.EnumType,
)
```
| Parameter | Type | Description |
|-|-|-|
| `proto` | `_types_pb2.EnumType` | |

#### serialize_to_string()

```python
def serialize_to_string()
```
#### short_string()

```python
def short_string()
```
**Returns:** Text

#### to_flyte_idl()

```python
def to_flyte_idl()
```

---
**Source**: https://github.com/unionai/unionai-docs/blob/main/content/api-reference/flytekit-sdk/packages/flytekit.models.core.types.md
**HTML**: https://www.union.ai/docs/v1/flyte/api-reference/flytekit-sdk/packages/flytekit.models.core.types/
