Struct google_api_proto::google::cloud::dialogflow::cx::v3beta1::SessionEntityType
source · pub struct SessionEntityType {
pub name: String,
pub entity_override_mode: i32,
pub entities: Vec<Entity>,
}
Expand description
Session entity types are referred to as User entity types and are entities that are built for an individual user such as favorites, preferences, playlists, and so on.
You can redefine a session entity type at the session level to extend or replace a [custom entity type][google.cloud.dialogflow.cx.v3beta1.EntityType] at the user session level (we refer to the entity types defined at the agent level as “custom entity types”).
Note: session entity types apply to all queries, regardless of the language.
For more information about entity types, see the Dialogflow documentation.
Fields§
§name: String
Required. The unique identifier of the session entity type.
Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/sessions/<Session ID>/entityTypes/<Entity Type ID>
or projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/environments/<Environment ID>/sessions/<Session ID>/entityTypes/<Entity Type ID>
. If Environment ID
is not specified, we assume default ‘draft’
environment.
entity_override_mode: i32
Required. Indicates whether the additional data should override or supplement the custom entity type definition.
entities: Vec<Entity>
Required. The collection of entities to override or supplement the custom entity type.
Implementations§
source§impl SessionEntityType
impl SessionEntityType
sourcepub fn entity_override_mode(&self) -> EntityOverrideMode
pub fn entity_override_mode(&self) -> EntityOverrideMode
Returns the enum value of entity_override_mode
, or the default if the field is set to an invalid enum value.
sourcepub fn set_entity_override_mode(&mut self, value: EntityOverrideMode)
pub fn set_entity_override_mode(&mut self, value: EntityOverrideMode)
Sets entity_override_mode
to the provided enum value.
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 moresource§impl Debug for SessionEntityType
impl Debug for SessionEntityType
source§impl Default for SessionEntityType
impl Default for SessionEntityType
source§impl Message for SessionEntityType
impl Message for SessionEntityType
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
self
.source§impl PartialEq for SessionEntityType
impl PartialEq for SessionEntityType
source§fn eq(&self, other: &SessionEntityType) -> bool
fn eq(&self, other: &SessionEntityType) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SessionEntityType
Auto Trait Implementations§
impl Freeze for SessionEntityType
impl RefUnwindSafe for SessionEntityType
impl Send for SessionEntityType
impl Sync for SessionEntityType
impl Unpin for SessionEntityType
impl UnwindSafe for SessionEntityType
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request