public sealed class EntityType : IMessage<EntityType>, IEquatable<EntityType>, IDeepCloneable<EntityType>, IBufferMessage, IMessage
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.
Inheritance
System.Object > EntityTypeImplements
IMessage<EntityType>, IEquatable<EntityType>, IDeepCloneable<EntityType>, IBufferMessage, IMessageNamespace
Google.Cloud.Dialogflow.V2Assembly
Google.Cloud.Dialogflow.V2.dll
Constructors
EntityType()
public EntityType()
EntityType(EntityType)
public EntityType(EntityType other)
Parameter | |
---|---|
Name | Description |
other | EntityType |
Properties
AutoExpansionMode
public EntityType.Types.AutoExpansionMode AutoExpansionMode { get; set; }
Optional. Indicates whether the entity type can be automatically expanded.
Property Value | |
---|---|
Type | Description |
EntityType.Types.AutoExpansionMode |
DisplayName
public string DisplayName { get; set; }
Required. The name of the entity type.
Property Value | |
---|---|
Type | Description |
String |
EnableFuzzyExtraction
public bool EnableFuzzyExtraction { get; set; }
Optional. Enables fuzzy entity extraction during classification.
Property Value | |
---|---|
Type | Description |
Boolean |
Entities
public RepeatedField<EntityType.Types.Entity> Entities { get; }
Optional. The collection of entity entries associated with the entity type.
Property Value | |
---|---|
Type | Description |
RepeatedField<EntityType.Types.Entity> |
EntityTypeName
public EntityTypeName EntityTypeName { get; set; }
EntityTypeName-typed view over the Name resource name property.
Property Value | |
---|---|
Type | Description |
EntityTypeName |
Kind
public EntityType.Types.Kind Kind { get; set; }
Required. Indicates the kind of entity type.
Property Value | |
---|---|
Type | Description |
EntityType.Types.Kind |
Name
public string Name { get; set; }
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}
.
Property Value | |
---|---|
Type | Description |
String |