Struct gapi_grpc::google::cloud::dialogflow::v2::EntityType[][src]

pub struct EntityType {
    pub name: String,
    pub display_name: String,
    pub kind: i32,
    pub auto_expansion_mode: i32,
    pub entities: Vec<Entity>,
    pub enable_fuzzy_extraction: bool,
}

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.

Fields

name: String

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>.

display_name: String

Required. The name of the entity type.

kind: i32

Required. Indicates the kind of entity type.

auto_expansion_mode: i32

Optional. Indicates whether the entity type can be automatically expanded.

entities: Vec<Entity>

Optional. The collection of entity entries associated with the entity type.

enable_fuzzy_extraction: bool

Optional. Enables fuzzy entity extraction during classification.

Implementations

impl EntityType[src]

pub fn kind(&self) -> Kind[src]

Returns the enum value of kind, or the default if the field is set to an invalid enum value.

pub fn set_kind(&mut self, value: Kind)[src]

Sets kind to the provided enum value.

pub fn auto_expansion_mode(&self) -> AutoExpansionMode[src]

Returns the enum value of auto_expansion_mode, or the default if the field is set to an invalid enum value.

pub fn set_auto_expansion_mode(&mut self, value: AutoExpansionMode)[src]

Sets auto_expansion_mode to the provided enum value.

Trait Implementations

impl Clone for EntityType[src]

impl Debug for EntityType[src]

impl Default for EntityType[src]

impl Message for EntityType[src]

impl PartialEq<EntityType> for EntityType[src]

impl StructuralPartialEq for EntityType[src]

Auto Trait Implementations

impl RefUnwindSafe for EntityType

impl Send for EntityType

impl Sync for EntityType

impl Unpin for EntityType

impl UnwindSafe for EntityType

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]