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
Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
string
The unique identifier of the entity type. Required for EntityTypes.UpdateEntityType
and EntityTypes.BatchUpdateEntityTypes
methods. Format: projects/<Project ID>/agent/entityTypes/<Entity Type ID>
.
↳ display_name
string
Required. The name of the entity type.
↳ kind
int
Required. Indicates the kind of entity type.
↳ auto_expansion_mode
int
Optional. Indicates whether the entity type can be automatically expanded.
↳ entities
array< Google\Cloud\Dialogflow\V2\EntityType\Entity
>
Optional. The collection of entity entries associated with the entity type.
↳ enable_fuzzy_extraction
bool
Optional. Enables fuzzy entity extraction during classification.
getName
The unique identifier of the entity type.
Required for EntityTypes.UpdateEntityType
and EntityTypes.BatchUpdateEntityTypes
methods. Format: projects/<Project ID>/agent/entityTypes/<Entity Type
ID>
.
string
setName
The unique identifier of the entity type.
Required for EntityTypes.UpdateEntityType
and EntityTypes.BatchUpdateEntityTypes
methods. Format: projects/<Project ID>/agent/entityTypes/<Entity Type
ID>
.
var
string
$this
getDisplayName
Required. The name of the entity type.
string
setDisplayName
Required. The name of the entity type.
var
string
$this
getKind
Required. Indicates the kind of entity type.
int
setKind
Required. Indicates the kind of entity type.
var
int
$this
getAutoExpansionMode
Optional. Indicates whether the entity type can be automatically expanded.
int
setAutoExpansionMode
Optional. Indicates whether the entity type can be automatically expanded.
var
int
$this
getEntities
Optional. The collection of entity entries associated with the entity type.
setEntities
Optional. The collection of entity entries associated with the entity type.
$this
getEnableFuzzyExtraction
Optional. Enables fuzzy entity extraction during classification.
bool
setEnableFuzzyExtraction
Optional. Enables fuzzy entity extraction during classification.
var
bool
$this