Struct google_api_proto::google::cloud::dialogflow::v2beta1::SessionEntityType
source · pub struct SessionEntityType {
pub name: String,
pub entity_override_mode: i32,
pub entities: Vec<Entity>,
}
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§
§name: String
Required. The unique identifier of this session entity type. Supported formats:
projects/<Project ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name>
projects/<Project ID>/locations/<Location ID>/agent/sessions/<Session ID>/entityTypes/<Entity Type Display Name>
projects/<Project ID>/agent/environments/<Environment ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>
projects/<Project ID>/locations/<Location ID>/agent/environments/ <Environment ID>/users/<User ID>/sessions/<Session ID>/entityTypes/<Entity Type Display Name>
If Location ID
is not specified we assume default ‘us’ location. 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: i32
Required. 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
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