Enum google_api_proto::google::cloud::dialogflow::cx::v3::import_intents_request::MergeOption
source · #[repr(i32)]pub enum MergeOption {
Unspecified = 0,
Reject = 1,
Replace = 2,
Merge = 3,
Rename = 4,
ReportConflict = 5,
Keep = 6,
}
Expand description
Merge option when display name conflicts exist during import.
Variants§
Unspecified = 0
Unspecified. Should not be used.
Reject = 1
DEPRECATED: Please use [REPORT_CONFLICT][ImportIntentsRequest.REPORT_CONFLICT] instead. Fail the request if there are intents whose display names conflict with the display names of intents in the agent.
Replace = 2
Replace the original intent in the agent with the new intent when display name conflicts exist.
Merge = 3
Merge the original intent with the new intent when display name conflicts exist.
Rename = 4
Create new intents with new display names to differentiate them from the existing intents when display name conflicts exist.
ReportConflict = 5
Report conflict information if display names conflict is detected. Otherwise, import intents.
Keep = 6
Keep the original intent and discard the conflicting new intent when display name conflicts exist.
Implementations§
source§impl MergeOption
impl MergeOption
source§impl MergeOption
impl MergeOption
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 MergeOption
impl Clone for MergeOption
source§fn clone(&self) -> MergeOption
fn clone(&self) -> MergeOption
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for MergeOption
impl Debug for MergeOption
source§impl Default for MergeOption
impl Default for MergeOption
source§fn default() -> MergeOption
fn default() -> MergeOption
source§impl From<MergeOption> for i32
impl From<MergeOption> for i32
source§fn from(value: MergeOption) -> i32
fn from(value: MergeOption) -> i32
source§impl Hash for MergeOption
impl Hash for MergeOption
source§impl Ord for MergeOption
impl Ord for MergeOption
source§fn cmp(&self, other: &MergeOption) -> Ordering
fn cmp(&self, other: &MergeOption) -> 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 MergeOption
impl PartialEq for MergeOption
source§fn eq(&self, other: &MergeOption) -> bool
fn eq(&self, other: &MergeOption) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for MergeOption
impl PartialOrd for MergeOption
source§fn partial_cmp(&self, other: &MergeOption) -> Option<Ordering>
fn partial_cmp(&self, other: &MergeOption) -> 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 MergeOption
impl TryFrom<i32> for MergeOption
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<MergeOption, UnknownEnumValue>
fn try_from(value: i32) -> Result<MergeOption, UnknownEnumValue>
impl Copy for MergeOption
impl Eq for MergeOption
impl StructuralPartialEq for MergeOption
Auto Trait Implementations§
impl Freeze for MergeOption
impl RefUnwindSafe for MergeOption
impl Send for MergeOption
impl Sync for MergeOption
impl Unpin for MergeOption
impl UnwindSafe for MergeOption
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