Struct google_cognitive_apis::api::grpc::google::cloud::dialogflow::cx::v3::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.v3.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
sourceimpl 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
sourceimpl Clone for SessionEntityType
impl Clone for SessionEntityType
sourcefn clone(&self) -> SessionEntityType
fn clone(&self) -> SessionEntityType
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for SessionEntityType
impl Debug for SessionEntityType
sourceimpl Default for SessionEntityType
impl Default for SessionEntityType
sourceimpl Message for SessionEntityType
impl Message for SessionEntityType
sourcefn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Returns the encoded length of the message without a length delimiter.
sourcefn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
Encodes the message to a buffer. Read more
sourcefn encode_to_vec(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn encode_to_vec(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Encodes the message to a newly allocated buffer.
sourcefn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
Encodes the message with a length-delimiter to a buffer. Read more
sourcefn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>ⓘNotable traits for Vec<u8, A>impl<A> Write for Vec<u8, A> where
A: Allocator,
A: Allocator,
Encodes the message with a length-delimiter to a newly allocated buffer.
sourcefn 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,
Decodes an instance of the message from a buffer. Read more
sourcefn 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,
Decodes a length-delimited instance of the message from the buffer.
sourcefn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
Decodes an instance of the message from a buffer, and merges it into self
. Read more
sourcefn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
sourceimpl PartialEq<SessionEntityType> for SessionEntityType
impl PartialEq<SessionEntityType> for SessionEntityType
sourcefn eq(&self, other: &SessionEntityType) -> bool
fn eq(&self, other: &SessionEntityType) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
impl StructuralPartialEq for SessionEntityType
Auto Trait Implementations
impl RefUnwindSafe for SessionEntityType
impl Send for SessionEntityType
impl Sync for SessionEntityType
impl Unpin for SessionEntityType
impl UnwindSafe for SessionEntityType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Instruments this type with the provided Span
, returning an
Instrumented
wrapper. Read more
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
sourcefn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
Wrap the input message T
in a tonic::Request