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.
Implements
Namespace: Google.Cloud.Dialogflow.V2
Assembly: Google.Cloud.Dialogflow.V2.dll
Syntax
public sealed class EntityType : IMessage<EntityType>, IEquatable<EntityType>, IDeepCloneable<EntityType>, IBufferMessage, IMessage
Constructors
EntityType()
Declaration
public EntityType()
EntityType(EntityType)
Declaration
public EntityType(EntityType other)
Parameters
Type | Name | Description |
---|---|---|
EntityType | other |
Properties
AutoExpansionMode
Optional. Indicates whether the entity type can be automatically expanded.
Declaration
public EntityType.Types.AutoExpansionMode AutoExpansionMode { get; set; }
Property Value
Type | Description |
---|---|
EntityType.Types.AutoExpansionMode |
DisplayName
Required. The name of the entity type.
Declaration
public string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
string |
EnableFuzzyExtraction
Optional. Enables fuzzy entity extraction during classification.
Declaration
public bool EnableFuzzyExtraction { get; set; }
Property Value
Type | Description |
---|---|
bool |
Entities
Optional. The collection of entity entries associated with the entity type.
Declaration
public RepeatedField<EntityType.Types.Entity> Entities { get; }
Property Value
Type | Description |
---|---|
RepeatedField<EntityType.Types.Entity> |
EntityTypeName
EntityTypeName-typed view over the Name resource name property.
Declaration
public EntityTypeName EntityTypeName { get; set; }
Property Value
Type | Description |
---|---|
EntityTypeName |
Kind
Required. Indicates the kind of entity type.
Declaration
public EntityType.Types.Kind Kind { get; set; }
Property Value
Type | Description |
---|---|
EntityType.Types.Kind |
Name
The unique identifier of the entity type.
Required for
[EntityTypes.UpdateEntityType][google.cloud.dialogflow.v2.EntityTypes.UpdateEntityType]
and
[EntityTypes.BatchUpdateEntityTypes][google.cloud.dialogflow.v2.EntityTypes.BatchUpdateEntityTypes]
methods. Format: projects/<Project ID>/agent/entityTypes/<Entity Type ID>
.
Declaration
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string |