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

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,
}

Represents an entity type. Entity types serve as a tool for extracting parameter values from natural language queries.

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

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

impl<T> WithSubscriber for T[src]