# Class EntityType (2.48.0)

2.48.0 (latest) 2.47.0 2.46.0 2.45.0 2.44.0 2.43.0 2.42.0 2.41.2 2.40.0 2.39.1 2.38.0 2.37.0 2.36.0 2.35.0 2.34.0 2.33.0 2.32.0 2.30.2 2.29.0 2.28.3 2.27.0 2.26.0 2.25.0 2.24.1 2.23.3 2.22.0 2.21.0 2.20.0 2.19.1 2.18.0 2.17.0 2.16.1 2.15.2 2.14.1 2.13.0 2.12.0 2.11.0 2.10.0 2.9.1 2.8.1 2.7.1 2.6.0 2.5.0 2.4.0 2.3.0 2.2.0 2.1.2 2.0.0 1.1.3 1.0.0 0.8.0 0.7.2

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

Each intent parameter has a type, called the entity type, which
dictates exactly how data from an end-user expression is extracted.

Dialogflow provides predefined system entities that can match many
common types of data. For example, there are system entities for
matching dates, times, colors, email addresses, and so on. You can
also create your own custom entities for matching custom data. For
example, you could define a vegetable entity that can match the
types of vegetables available for purchase with a grocery store
agent.

For more information, see the `Entity
guide <https://cloud.google.com/dialogflow/docs/entities-overview>`__.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` The unique identifier of the entity type. Required for EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes methods. Format: `projects/`. |
| `display_name` | `str` Required. The name of the entity type. |
| `kind` | `https://docs.cloud.google.com/python/docs/reference/dialogflow/latest/google.cloud.dialogflow_v2.types.EntityType.Kind` Required. Indicates the kind of entity type. |
| `auto_expansion_mode` | `https://docs.cloud.google.com/python/docs/reference/dialogflow/latest/google.cloud.dialogflow_v2.types.EntityType.AutoExpansionMode` Optional. Indicates whether the entity type can be automatically expanded. |
| `entities` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/dialogflow/latest/google.cloud.dialogflow_v2.types.EntityType.Entity]` Optional. The collection of entity entries associated with the entity type. |
| `enable_fuzzy_extraction` | `bool` Optional. Enables fuzzy entity extraction during classification. |

## Classes

### AutoExpansionMode

    AutoExpansionMode(value)

Represents different entity type expansion modes. Automated
expansion allows an agent to recognize values that have not been
explicitly listed in the entity (for example, new kinds of
shopping list items).

### Entity

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

An **entity entry** for an associated entity type.

### Kind

    Kind(value)

Represents kinds of entities.