Reference documentation and code samples for the Google Cloud Dialogflow V2 Client class EntityType.
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.
Generated from protobuf message google.cloud.dialogflow.v2.EntityType
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Dialogflow V2 Client - Class EntityType (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-dialogflow/latest/V2.EntityType)\n- [2.1.1](/php/docs/reference/cloud-dialogflow/2.1.1/V2.EntityType)\n- [2.0.1](/php/docs/reference/cloud-dialogflow/2.0.1/V2.EntityType)\n- [1.17.2](/php/docs/reference/cloud-dialogflow/1.17.2/V2.EntityType)\n- [1.16.0](/php/docs/reference/cloud-dialogflow/1.16.0/V2.EntityType)\n- [1.15.1](/php/docs/reference/cloud-dialogflow/1.15.1/V2.EntityType)\n- [1.14.0](/php/docs/reference/cloud-dialogflow/1.14.0/V2.EntityType)\n- [1.13.0](/php/docs/reference/cloud-dialogflow/1.13.0/V2.EntityType)\n- [1.12.3](/php/docs/reference/cloud-dialogflow/1.12.3/V2.EntityType)\n- [1.11.0](/php/docs/reference/cloud-dialogflow/1.11.0/V2.EntityType)\n- [1.10.2](/php/docs/reference/cloud-dialogflow/1.10.2/V2.EntityType)\n- [1.9.0](/php/docs/reference/cloud-dialogflow/1.9.0/V2.EntityType)\n- [1.8.0](/php/docs/reference/cloud-dialogflow/1.8.0/V2.EntityType)\n- [1.7.2](/php/docs/reference/cloud-dialogflow/1.7.2/V2.EntityType)\n- [1.6.0](/php/docs/reference/cloud-dialogflow/1.6.0/V2.EntityType)\n- [1.5.0](/php/docs/reference/cloud-dialogflow/1.5.0/V2.EntityType)\n- [1.4.0](/php/docs/reference/cloud-dialogflow/1.4.0/V2.EntityType)\n- [1.3.2](/php/docs/reference/cloud-dialogflow/1.3.2/V2.EntityType)\n- [1.2.0](/php/docs/reference/cloud-dialogflow/1.2.0/V2.EntityType)\n- [1.1.1](/php/docs/reference/cloud-dialogflow/1.1.1/V2.EntityType)\n- [1.0.1](/php/docs/reference/cloud-dialogflow/1.0.1/V2.EntityType) \nReference documentation and code samples for the Google Cloud Dialogflow V2 Client class EntityType.\n\nEach intent parameter has a type, called the entity type, which dictates\nexactly how data from an end-user expression is extracted.\n\nDialogflow provides predefined system entities that can match many common\ntypes of data. For example, there are system entities for matching dates,\ntimes, colors, email addresses, and so on. You can also create your own\ncustom entities for matching custom data. For example, you could define a\nvegetable entity that can match the types of vegetables available for\npurchase with a grocery store agent.\nFor more information, see the\n[Entity guide](https://cloud.google.com/dialogflow/docs/entities-overview).\n\nGenerated from protobuf message `google.cloud.dialogflow.v2.EntityType`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Dialogflow \\\\ V2\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getName\n\nThe unique identifier of the entity type.\n\nRequired for\n[EntityTypes.UpdateEntityType](/php/docs/reference/cloud-dialogflow/latest/V2.Client.EntityTypesClient#_Google_Cloud_Dialogflow_V2_Client_EntityTypesClient__updateEntityType__)\nand\n[EntityTypes.BatchUpdateEntityTypes](/php/docs/reference/cloud-dialogflow/latest/V2.Client.EntityTypesClient#_Google_Cloud_Dialogflow_V2_Client_EntityTypesClient__batchUpdateEntityTypes__)\nmethods. Format: `projects/\u003cProject ID\u003e/agent/entityTypes/\u003cEntity Type\nID\u003e`.\n\n### setName\n\nThe unique identifier of the entity type.\n\nRequired for\n[EntityTypes.UpdateEntityType](/php/docs/reference/cloud-dialogflow/latest/V2.Client.EntityTypesClient#_Google_Cloud_Dialogflow_V2_Client_EntityTypesClient__updateEntityType__)\nand\n[EntityTypes.BatchUpdateEntityTypes](/php/docs/reference/cloud-dialogflow/latest/V2.Client.EntityTypesClient#_Google_Cloud_Dialogflow_V2_Client_EntityTypesClient__batchUpdateEntityTypes__)\nmethods. Format: `projects/\u003cProject ID\u003e/agent/entityTypes/\u003cEntity Type\nID\u003e`.\n\n### getDisplayName\n\nRequired. The name of the entity type.\n\n### setDisplayName\n\nRequired. The name of the entity type.\n\n### getKind\n\nRequired. Indicates the kind of entity type.\n\n### setKind\n\nRequired. Indicates the kind of entity type.\n\n### getAutoExpansionMode\n\nOptional. Indicates whether the entity type can be automatically\nexpanded.\n\n### setAutoExpansionMode\n\nOptional. Indicates whether the entity type can be automatically\nexpanded.\n\n### getEntities\n\nOptional. The collection of entity entries associated with the entity type.\n\n### setEntities\n\nOptional. The collection of entity entries associated with the entity type.\n\n### getEnableFuzzyExtraction\n\nOptional. Enables fuzzy entity extraction during classification.\n\n### setEnableFuzzyExtraction\n\nOptional. Enables fuzzy entity extraction during classification."]]