Enum google_api_proto::google::cloud::dialogflow::v2::document::KnowledgeType
source · #[repr(i32)]pub enum KnowledgeType {
Unspecified = 0,
Faq = 1,
ExtractiveQa = 2,
ArticleSuggestion = 3,
AgentFacingSmartReply = 4,
}
Expand description
The knowledge type of document content.
Variants§
Unspecified = 0
The type is unspecified or arbitrary.
Faq = 1
The document content contains question and answer pairs as either HTML or CSV. Typical FAQ HTML formats are parsed accurately, but unusual formats may fail to be parsed.
CSV must have questions in the first column and answers in the second, with no header. Because of this explicit format, they are always parsed accurately.
ExtractiveQa = 2
Documents for which unstructured text is extracted and used for question answering.
ArticleSuggestion = 3
The entire document content as a whole can be used for query results. Only for Contact Center Solutions on Dialogflow.
AgentFacingSmartReply = 4
The document contains agent-facing Smart Reply entries.
Implementations§
source§impl KnowledgeType
impl KnowledgeType
source§impl KnowledgeType
impl KnowledgeType
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 KnowledgeType
impl Clone for KnowledgeType
source§fn clone(&self) -> KnowledgeType
fn clone(&self) -> KnowledgeType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for KnowledgeType
impl Debug for KnowledgeType
source§impl Default for KnowledgeType
impl Default for KnowledgeType
source§fn default() -> KnowledgeType
fn default() -> KnowledgeType
source§impl From<KnowledgeType> for i32
impl From<KnowledgeType> for i32
source§fn from(value: KnowledgeType) -> i32
fn from(value: KnowledgeType) -> i32
source§impl Hash for KnowledgeType
impl Hash for KnowledgeType
source§impl Ord for KnowledgeType
impl Ord for KnowledgeType
source§fn cmp(&self, other: &KnowledgeType) -> Ordering
fn cmp(&self, other: &KnowledgeType) -> 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 KnowledgeType
impl PartialEq for KnowledgeType
source§fn eq(&self, other: &KnowledgeType) -> bool
fn eq(&self, other: &KnowledgeType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for KnowledgeType
impl PartialOrd for KnowledgeType
source§fn partial_cmp(&self, other: &KnowledgeType) -> Option<Ordering>
fn partial_cmp(&self, other: &KnowledgeType) -> 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 KnowledgeType
impl TryFrom<i32> for KnowledgeType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<KnowledgeType, DecodeError>
fn try_from(value: i32) -> Result<KnowledgeType, DecodeError>
impl Copy for KnowledgeType
impl Eq for KnowledgeType
impl StructuralPartialEq for KnowledgeType
Auto Trait Implementations§
impl Freeze for KnowledgeType
impl RefUnwindSafe for KnowledgeType
impl Send for KnowledgeType
impl Sync for KnowledgeType
impl Unpin for KnowledgeType
impl UnwindSafe for KnowledgeType
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