pub struct GoogleCloudDialogflowV2EntityType {
pub auto_expansion_mode: Option<String>,
pub display_name: Option<String>,
pub enable_fuzzy_extraction: Option<bool>,
pub entities: Option<Vec<GoogleCloudDialogflowV2EntityTypeEntity>>,
pub kind: Option<String>,
pub name: Option<String>,
}
Expand description
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.
§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).
- agent entity types create projects (request|response)
- agent entity types get projects (response)
- agent entity types patch projects (request|response)
- locations agent entity types create projects (request|response)
- locations agent entity types get projects (response)
- locations agent entity types patch projects (request|response)
Fields§
§auto_expansion_mode: Option<String>
Optional. Indicates whether the entity type can be automatically expanded.
display_name: Option<String>
Required. The name of the entity type.
enable_fuzzy_extraction: Option<bool>
Optional. Enables fuzzy entity extraction during classification.
entities: Option<Vec<GoogleCloudDialogflowV2EntityTypeEntity>>
Optional. The collection of entity entries associated with the entity type.
kind: Option<String>
Required. Indicates the kind of entity type.
name: Option<String>
The unique identifier of the entity type. Required for EntityTypes.UpdateEntityType and EntityTypes.BatchUpdateEntityTypes methods. Format: projects//agent/entityTypes/
.
Trait Implementations§
Source§impl Clone for GoogleCloudDialogflowV2EntityType
impl Clone for GoogleCloudDialogflowV2EntityType
Source§fn clone(&self) -> GoogleCloudDialogflowV2EntityType
fn clone(&self) -> GoogleCloudDialogflowV2EntityType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Default for GoogleCloudDialogflowV2EntityType
impl Default for GoogleCloudDialogflowV2EntityType
Source§fn default() -> GoogleCloudDialogflowV2EntityType
fn default() -> GoogleCloudDialogflowV2EntityType
Source§impl<'de> Deserialize<'de> for GoogleCloudDialogflowV2EntityType
impl<'de> Deserialize<'de> for GoogleCloudDialogflowV2EntityType
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 GoogleCloudDialogflowV2EntityType
impl ResponseResult for GoogleCloudDialogflowV2EntityType
Auto Trait Implementations§
impl Freeze for GoogleCloudDialogflowV2EntityType
impl RefUnwindSafe for GoogleCloudDialogflowV2EntityType
impl Send for GoogleCloudDialogflowV2EntityType
impl Sync for GoogleCloudDialogflowV2EntityType
impl Unpin for GoogleCloudDialogflowV2EntityType
impl UnwindSafe for GoogleCloudDialogflowV2EntityType
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