[][src]Struct gcp_client::google::cloud::dialogflow::v2beta1::entity_types_client::EntityTypesClient

pub struct EntityTypesClient<T> { /* fields omitted */ }

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, a pizza.cheese entity for the different types of cheese on a pizza, a pizza.topping entity for different toppings, and so on. A custom entity is represented by the EntityType 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][google.cloud.dialogflow.v2beta1.SessionEntityType] type.

For more information about entity types, see the Dialogflow documentation.

Implementations

impl<T> EntityTypesClient<T> where
    T: GrpcService<BoxBody>,
    T::ResponseBody: Body + HttpBody + Send + 'static,
    T::Error: Into<StdError>,
    <T::ResponseBody as HttpBody>::Error: Into<StdError> + Send
[src]

pub fn new(inner: T) -> Self[src]

pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self[src]

pub async fn list_entity_types<'_>(
    &'_ mut self,
    request: impl IntoRequest<ListEntityTypesRequest>
) -> Result<Response<ListEntityTypesResponse>, Status>
[src]

Returns the list of all entity types in the specified agent.

pub async fn get_entity_type<'_>(
    &'_ mut self,
    request: impl IntoRequest<GetEntityTypeRequest>
) -> Result<Response<EntityType>, Status>
[src]

Retrieves the specified entity type.

pub async fn create_entity_type<'_>(
    &'_ mut self,
    request: impl IntoRequest<CreateEntityTypeRequest>
) -> Result<Response<EntityType>, Status>
[src]

Creates an entity type in the specified agent.

pub async fn update_entity_type<'_>(
    &'_ mut self,
    request: impl IntoRequest<UpdateEntityTypeRequest>
) -> Result<Response<EntityType>, Status>
[src]

Updates the specified entity type.

pub async fn delete_entity_type<'_>(
    &'_ mut self,
    request: impl IntoRequest<DeleteEntityTypeRequest>
) -> Result<Response<()>, Status>
[src]

Deletes the specified entity type.

pub async fn batch_update_entity_types<'_>(
    &'_ mut self,
    request: impl IntoRequest<BatchUpdateEntityTypesRequest>
) -> Result<Response<Operation>, Status>
[src]

Updates/Creates multiple entity types in the specified agent.

Operation <response: [BatchUpdateEntityTypesResponse][google.cloud.dialogflow.v2beta1.BatchUpdateEntityTypesResponse]>

pub async fn batch_delete_entity_types<'_>(
    &'_ mut self,
    request: impl IntoRequest<BatchDeleteEntityTypesRequest>
) -> Result<Response<Operation>, Status>
[src]

Deletes entity types in the specified agent.

Operation <response: [google.protobuf.Empty][google.protobuf.Empty]>

pub async fn batch_create_entities<'_>(
    &'_ mut self,
    request: impl IntoRequest<BatchCreateEntitiesRequest>
) -> Result<Response<Operation>, Status>
[src]

Creates multiple new entities in the specified entity type.

Operation <response: [google.protobuf.Empty][google.protobuf.Empty]>

pub async fn batch_update_entities<'_>(
    &'_ mut self,
    request: impl IntoRequest<BatchUpdateEntitiesRequest>
) -> Result<Response<Operation>, Status>
[src]

Updates or creates multiple entities in the specified entity type. This method does not affect entities in the entity type that aren't explicitly specified in the request.

Operation <response: [google.protobuf.Empty][google.protobuf.Empty]>

pub async fn batch_delete_entities<'_>(
    &'_ mut self,
    request: impl IntoRequest<BatchDeleteEntitiesRequest>
) -> Result<Response<Operation>, Status>
[src]

Deletes entities in the specified entity type.

Operation <response: [google.protobuf.Empty][google.protobuf.Empty]>

Trait Implementations

impl<T: Clone> Clone for EntityTypesClient<T>[src]

impl<T> Debug for EntityTypesClient<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for EntityTypesClient<T>

impl<T> Send for EntityTypesClient<T> where
    T: Send

impl<T> Sync for EntityTypesClient<T> where
    T: Sync

impl<T> Unpin for EntityTypesClient<T> where
    T: Unpin

impl<T> !UnwindSafe for EntityTypesClient<T>

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]