#[non_exhaustive]pub struct SessionEntityType {
pub name: String,
pub entity_override_mode: EntityOverrideMode,
pub entities: Vec<Entity>,
/* private fields */
}participants or session-entity-types or sessions only.Expand description
A session represents a conversation between a Dialogflow agent and an end-user. You can create special entities, called session entities, during a session. Session entities can extend or replace custom entity types and only exist during the session that they were created for. All session data, including session entities, is stored by Dialogflow for 20 minutes.
For more information, see the session entity guide.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringRequired. The unique identifier of this session entity type. Format:
projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name>, or projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>.
If Environment ID is not specified, we assume default ‘draft’
environment. If User ID is not specified, we assume default ‘-’ user.
<Entity Type Display Name> must be the display name of an existing entity
type in the same agent that will be overridden or supplemented.
entity_override_mode: EntityOverrideModeRequired. Indicates whether the additional data should override or supplement the custom entity type definition.
entities: Vec<Entity>Required. The collection of entities associated with this session entity type.
Implementations§
Source§impl SessionEntityType
impl SessionEntityType
pub fn new() -> Self
Sourcepub fn set_entity_override_mode<T: Into<EntityOverrideMode>>(self, v: T) -> Self
pub fn set_entity_override_mode<T: Into<EntityOverrideMode>>(self, v: T) -> Self
Sets the value of entity_override_mode.
§Example
use google_cloud_dialogflow_v2::model::session_entity_type::EntityOverrideMode;
let x0 = SessionEntityType::new().set_entity_override_mode(EntityOverrideMode::Override);
let x1 = SessionEntityType::new().set_entity_override_mode(EntityOverrideMode::Supplement);Sourcepub fn set_entities<T, V>(self, v: T) -> Self
pub fn set_entities<T, V>(self, v: T) -> Self
Trait Implementations§
Source§impl Clone for SessionEntityType
impl Clone for SessionEntityType
Source§fn clone(&self) -> SessionEntityType
fn clone(&self) -> SessionEntityType
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more