pub struct GoogleCloudDialogflowCxV3EntityType {
pub auto_expansion_mode: Option<String>,
pub display_name: Option<String>,
pub enable_fuzzy_extraction: Option<bool>,
pub entities: Option<Vec<GoogleCloudDialogflowCxV3EntityTypeEntity>>,
pub excluded_phrases: Option<Vec<GoogleCloudDialogflowCxV3EntityTypeExcludedPhrase>>,
pub kind: Option<String>,
pub name: Option<String>,
pub redact: Option<bool>,
}
Expand description
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 type. For more information about entity types, see the Dialogflow documentation.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- locations agents entity types create projects (request|response)
- locations agents entity types get projects (response)
- locations agents entity types patch projects (request|response)
Fields§
§auto_expansion_mode: Option<String>
Indicates whether the entity type can be automatically expanded.
display_name: Option<String>
Required. The human-readable name of the entity type, unique within the agent.
enable_fuzzy_extraction: Option<bool>
Enables fuzzy entity extraction during classification.
entities: Option<Vec<GoogleCloudDialogflowCxV3EntityTypeEntity>>
The collection of entity entries associated with the entity type.
excluded_phrases: Option<Vec<GoogleCloudDialogflowCxV3EntityTypeExcludedPhrase>>
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 adding giants
(a noun) as an exclusion. If the kind of entity type is KIND_MAP
, then the phrases specified by entities and excluded phrases should be mutually exclusive.
kind: Option<String>
Required. Indicates the kind of entity type.
name: Option<String>
The unique identifier of the entity type. Required for EntityTypes.UpdateEntityType. Format: projects//locations//agents//entityTypes/
.
redact: Option<bool>
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.
Trait Implementations§
Source§impl Clone for GoogleCloudDialogflowCxV3EntityType
impl Clone for GoogleCloudDialogflowCxV3EntityType
Source§fn clone(&self) -> GoogleCloudDialogflowCxV3EntityType
fn clone(&self) -> GoogleCloudDialogflowCxV3EntityType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for GoogleCloudDialogflowCxV3EntityType
impl Default for GoogleCloudDialogflowCxV3EntityType
Source§fn default() -> GoogleCloudDialogflowCxV3EntityType
fn default() -> GoogleCloudDialogflowCxV3EntityType
Source§impl<'de> Deserialize<'de> for GoogleCloudDialogflowCxV3EntityType
impl<'de> Deserialize<'de> for GoogleCloudDialogflowCxV3EntityType
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
impl RequestValue for GoogleCloudDialogflowCxV3EntityType
impl ResponseResult for GoogleCloudDialogflowCxV3EntityType
Auto Trait Implementations§
impl Freeze for GoogleCloudDialogflowCxV3EntityType
impl RefUnwindSafe for GoogleCloudDialogflowCxV3EntityType
impl Send for GoogleCloudDialogflowCxV3EntityType
impl Sync for GoogleCloudDialogflowCxV3EntityType
impl Unpin for GoogleCloudDialogflowCxV3EntityType
impl UnwindSafe for GoogleCloudDialogflowCxV3EntityType
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more