Enum google_api_proto::google::cloud::dialogflow::cx::v3::session_entity_type::EntityOverrideMode
source · #[repr(i32)]pub enum EntityOverrideMode {
Unspecified = 0,
Override = 1,
Supplement = 2,
}
Expand description
The types of modifications for the session entity type.
Variants§
Unspecified = 0
Not specified. This value should be never used.
Override = 1
The collection of session entities overrides the collection of entities in the corresponding custom entity type.
Supplement = 2
The collection of session entities extends the collection of entities in the corresponding custom entity type.
Note: Even in this override mode calls to ListSessionEntityTypes
,
GetSessionEntityType
, CreateSessionEntityType
and
UpdateSessionEntityType
only return the additional entities added in
this session entity type. If you want to get the supplemented list,
please call
[EntityTypes.GetEntityType][google.cloud.dialogflow.cx.v3.EntityTypes.GetEntityType]
on the custom entity type and merge.
Implementations§
source§impl EntityOverrideMode
impl EntityOverrideMode
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for EntityOverrideMode
impl Clone for EntityOverrideMode
source§fn clone(&self) -> EntityOverrideMode
fn clone(&self) -> EntityOverrideMode
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for EntityOverrideMode
impl Debug for EntityOverrideMode
source§impl Default for EntityOverrideMode
impl Default for EntityOverrideMode
source§fn default() -> EntityOverrideMode
fn default() -> EntityOverrideMode
source§impl From<EntityOverrideMode> for i32
impl From<EntityOverrideMode> for i32
source§fn from(value: EntityOverrideMode) -> i32
fn from(value: EntityOverrideMode) -> i32
source§impl Hash for EntityOverrideMode
impl Hash for EntityOverrideMode
source§impl Ord for EntityOverrideMode
impl Ord for EntityOverrideMode
source§fn cmp(&self, other: &EntityOverrideMode) -> Ordering
fn cmp(&self, other: &EntityOverrideMode) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for EntityOverrideMode
impl PartialEq for EntityOverrideMode
source§fn eq(&self, other: &EntityOverrideMode) -> bool
fn eq(&self, other: &EntityOverrideMode) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for EntityOverrideMode
impl PartialOrd for EntityOverrideMode
source§fn partial_cmp(&self, other: &EntityOverrideMode) -> Option<Ordering>
fn partial_cmp(&self, other: &EntityOverrideMode) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for EntityOverrideMode
impl TryFrom<i32> for EntityOverrideMode
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<EntityOverrideMode, DecodeError>
fn try_from(value: i32) -> Result<EntityOverrideMode, DecodeError>
impl Copy for EntityOverrideMode
impl Eq for EntityOverrideMode
impl StructuralPartialEq for EntityOverrideMode
Auto Trait Implementations§
impl Freeze for EntityOverrideMode
impl RefUnwindSafe for EntityOverrideMode
impl Send for EntityOverrideMode
impl Sync for EntityOverrideMode
impl Unpin for EntityOverrideMode
impl UnwindSafe for EntityOverrideMode
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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