Reference documentation and code samples for the Dialogflow V2 API class Google::Cloud::Dialogflow::V2::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.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#auto_expansion_mode
def auto_expansion_mode() -> ::Google::Cloud::Dialogflow::V2::EntityType::AutoExpansionMode
- (::Google::Cloud::Dialogflow::V2::EntityType::AutoExpansionMode) — Optional. Indicates whether the entity type can be automatically expanded.
#auto_expansion_mode=
def auto_expansion_mode=(value) -> ::Google::Cloud::Dialogflow::V2::EntityType::AutoExpansionMode
- value (::Google::Cloud::Dialogflow::V2::EntityType::AutoExpansionMode) — Optional. Indicates whether the entity type can be automatically expanded.
- (::Google::Cloud::Dialogflow::V2::EntityType::AutoExpansionMode) — Optional. Indicates whether the entity type can be automatically expanded.
#display_name
def display_name() -> ::String
- (::String) — Required. The name of the entity type.
#display_name=
def display_name=(value) -> ::String
- value (::String) — Required. The name of the entity type.
- (::String) — Required. The name of the entity type.
#enable_fuzzy_extraction
def enable_fuzzy_extraction() -> ::Boolean
- (::Boolean) — Optional. Enables fuzzy entity extraction during classification.
#enable_fuzzy_extraction=
def enable_fuzzy_extraction=(value) -> ::Boolean
- value (::Boolean) — Optional. Enables fuzzy entity extraction during classification.
- (::Boolean) — Optional. Enables fuzzy entity extraction during classification.
#entities
def entities() -> ::Array<::Google::Cloud::Dialogflow::V2::EntityType::Entity>
- (::Array<::Google::Cloud::Dialogflow::V2::EntityType::Entity>) — Optional. The collection of entity entries associated with the entity type.
#entities=
def entities=(value) -> ::Array<::Google::Cloud::Dialogflow::V2::EntityType::Entity>
- value (::Array<::Google::Cloud::Dialogflow::V2::EntityType::Entity>) — Optional. The collection of entity entries associated with the entity type.
- (::Array<::Google::Cloud::Dialogflow::V2::EntityType::Entity>) — Optional. The collection of entity entries associated with the entity type.
#kind
def kind() -> ::Google::Cloud::Dialogflow::V2::EntityType::Kind
- (::Google::Cloud::Dialogflow::V2::EntityType::Kind) — Required. Indicates the kind of entity type.
#kind=
def kind=(value) -> ::Google::Cloud::Dialogflow::V2::EntityType::Kind
- value (::Google::Cloud::Dialogflow::V2::EntityType::Kind) — Required. Indicates the kind of entity type.
- (::Google::Cloud::Dialogflow::V2::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
and
EntityTypes.BatchUpdateEntityTypes
methods. Format:
projects/<Project ID>/agent/entityTypes/<Entity Type ID>
.
#name=
def name=(value) -> ::String
-
value (::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>
.
-
(::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>
.