Reference documentation and code samples for the Dialogflow CX V3 API class Google::Cloud::Dialogflow::CX::V3::EntityType.
Entities are extracted from user input and represent parameters that are meaningful to your application. For example, a date range, a proper name such as a geographic location or landmark, and so on. Entities represent actionable data for your application.
When you define an entity, you can also include synonyms that all map to that entity. For example, "soft drink", "soda", "pop", and so on.
There are three types of entities:
System - entities that are defined by the Dialogflow API for common data types such as date, time, currency, and so on. A system entity is represented by the
EntityType
type.Custom - entities that are defined by you that represent actionable data that is meaningful to your application. For example, you could define a
pizza.sauce
entity for red or white pizza sauce, apizza.cheese
entity for the different types of cheese on a pizza, apizza.topping
entity for different toppings, and so on. A custom entity is represented by theEntityType
type.User - entities that are built for an individual user such as favorites, preferences, playlists, and so on. A user entity is represented by the SessionEntityType type.
For more information about entity types, see the Dialogflow documentation.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#auto_expansion_mode
def auto_expansion_mode() -> ::Google::Cloud::Dialogflow::CX::V3::EntityType::AutoExpansionMode
- (::Google::Cloud::Dialogflow::CX::V3::EntityType::AutoExpansionMode) — Indicates whether the entity type can be automatically expanded.
#auto_expansion_mode=
def auto_expansion_mode=(value) -> ::Google::Cloud::Dialogflow::CX::V3::EntityType::AutoExpansionMode
- value (::Google::Cloud::Dialogflow::CX::V3::EntityType::AutoExpansionMode) — Indicates whether the entity type can be automatically expanded.
- (::Google::Cloud::Dialogflow::CX::V3::EntityType::AutoExpansionMode) — Indicates whether the entity type can be automatically expanded.
#display_name
def display_name() -> ::String
- (::String) — Required. The human-readable name of the entity type, unique within the agent.
#display_name=
def display_name=(value) -> ::String
- value (::String) — Required. The human-readable name of the entity type, unique within the agent.
- (::String) — Required. The human-readable name of the entity type, unique within the agent.
#enable_fuzzy_extraction
def enable_fuzzy_extraction() -> ::Boolean
- (::Boolean) — Enables fuzzy entity extraction during classification.
#enable_fuzzy_extraction=
def enable_fuzzy_extraction=(value) -> ::Boolean
- value (::Boolean) — Enables fuzzy entity extraction during classification.
- (::Boolean) — Enables fuzzy entity extraction during classification.
#entities
def entities() -> ::Array<::Google::Cloud::Dialogflow::CX::V3::EntityType::Entity>
- (::Array<::Google::Cloud::Dialogflow::CX::V3::EntityType::Entity>) — The collection of entity entries associated with the entity type.
#entities=
def entities=(value) -> ::Array<::Google::Cloud::Dialogflow::CX::V3::EntityType::Entity>
- value (::Array<::Google::Cloud::Dialogflow::CX::V3::EntityType::Entity>) — The collection of entity entries associated with the entity type.
- (::Array<::Google::Cloud::Dialogflow::CX::V3::EntityType::Entity>) — The collection of entity entries associated with the entity type.
#excluded_phrases
def excluded_phrases() -> ::Array<::Google::Cloud::Dialogflow::CX::V3::EntityType::ExcludedPhrase>
-
(::Array<::Google::Cloud::Dialogflow::CX::V3::EntityType::ExcludedPhrase>) — Collection of exceptional words and phrases that shouldn't be matched.
For example, if you have a size entity type with entry
giant
(an adjective), you might consider addinggiants
(a noun) as an exclusion. If the kind of entity type isKIND_MAP
, then the phrases specified by entities and excluded phrases should be mutually exclusive.
#excluded_phrases=
def excluded_phrases=(value) -> ::Array<::Google::Cloud::Dialogflow::CX::V3::EntityType::ExcludedPhrase>
-
value (::Array<::Google::Cloud::Dialogflow::CX::V3::EntityType::ExcludedPhrase>) — Collection of exceptional words and phrases that shouldn't be matched.
For example, if you have a size entity type with entry
giant
(an adjective), you might consider addinggiants
(a noun) as an exclusion. If the kind of entity type isKIND_MAP
, then the phrases specified by entities and excluded phrases should be mutually exclusive.
-
(::Array<::Google::Cloud::Dialogflow::CX::V3::EntityType::ExcludedPhrase>) — Collection of exceptional words and phrases that shouldn't be matched.
For example, if you have a size entity type with entry
giant
(an adjective), you might consider addinggiants
(a noun) as an exclusion. If the kind of entity type isKIND_MAP
, then the phrases specified by entities and excluded phrases should be mutually exclusive.
#kind
def kind() -> ::Google::Cloud::Dialogflow::CX::V3::EntityType::Kind
- (::Google::Cloud::Dialogflow::CX::V3::EntityType::Kind) — Required. Indicates the kind of entity type.
#kind=
def kind=(value) -> ::Google::Cloud::Dialogflow::CX::V3::EntityType::Kind
- value (::Google::Cloud::Dialogflow::CX::V3::EntityType::Kind) — Required. Indicates the kind of entity type.
- (::Google::Cloud::Dialogflow::CX::V3::EntityType::Kind) — Required. Indicates the kind of entity type.
#name
def name() -> ::String
-
(::String) — The unique identifier of the entity type.
Required for
EntityTypes.UpdateEntityType.
Format:
projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>
.
#name=
def name=(value) -> ::String
-
value (::String) — The unique identifier of the entity type.
Required for
EntityTypes.UpdateEntityType.
Format:
projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>
.
-
(::String) — The unique identifier of the entity type.
Required for
EntityTypes.UpdateEntityType.
Format:
projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/entityTypes/<EntityTypeID>
.
#redact
def redact() -> ::Boolean
- (::Boolean) — Indicates whether parameters of the entity type should be redacted in log. If redaction is enabled, page parameters and intent parameters referring to the entity type will be replaced by parameter name when logging.
#redact=
def redact=(value) -> ::Boolean
- value (::Boolean) — Indicates whether parameters of the entity type should be redacted in log. If redaction is enabled, page parameters and intent parameters referring to the entity type will be replaced by parameter name when logging.
- (::Boolean) — Indicates whether parameters of the entity type should be redacted in log. If redaction is enabled, page parameters and intent parameters referring to the entity type will be replaced by parameter name when logging.