Enum google_api_proto::google::cloud::discoveryengine::v1::answer::AnswerSkippedReason
source · #[repr(i32)]pub enum AnswerSkippedReason {
Unspecified = 0,
AdversarialQueryIgnored = 1,
NonAnswerSeekingQueryIgnored = 2,
OutOfDomainQueryIgnored = 3,
PotentialPolicyViolation = 4,
NoRelevantContent = 5,
JailBreakingQueryIgnored = 6,
CustomerPolicyViolation = 7,
}
Expand description
An enum for answer skipped reasons.
Variants§
Unspecified = 0
Default value. The answer skipped reason is not specified.
AdversarialQueryIgnored = 1
The adversarial query ignored case.
NonAnswerSeekingQueryIgnored = 2
The non-answer seeking query ignored case.
OutOfDomainQueryIgnored = 3
The out-of-domain query ignored case.
Google skips the answer if there are no high-relevance search results.
PotentialPolicyViolation = 4
The potential policy violation case.
Google skips the answer if there is a potential policy violation detected. This includes content that may be violent or toxic.
NoRelevantContent = 5
The no relevant content case.
Google skips the answer if there is no relevant content in the retrieved search results.
JailBreakingQueryIgnored = 6
The jail-breaking query ignored case.
For example, “Reply in the tone of a competing company’s CEO”. Google skips the answer if the query is classified as a jail-breaking query.
CustomerPolicyViolation = 7
The customer policy violation case.
Google skips the summary if there is a customer policy violation detected. The policy is defined by the customer.
Implementations§
source§impl AnswerSkippedReason
impl AnswerSkippedReason
sourcepub fn from_i32(value: i32) -> Option<AnswerSkippedReason>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<AnswerSkippedReason>
Converts an i32
to a AnswerSkippedReason
, or None
if value
is not a valid variant.
source§impl AnswerSkippedReason
impl AnswerSkippedReason
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 AnswerSkippedReason
impl Clone for AnswerSkippedReason
source§fn clone(&self) -> AnswerSkippedReason
fn clone(&self) -> AnswerSkippedReason
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AnswerSkippedReason
impl Debug for AnswerSkippedReason
source§impl Default for AnswerSkippedReason
impl Default for AnswerSkippedReason
source§fn default() -> AnswerSkippedReason
fn default() -> AnswerSkippedReason
source§impl From<AnswerSkippedReason> for i32
impl From<AnswerSkippedReason> for i32
source§fn from(value: AnswerSkippedReason) -> i32
fn from(value: AnswerSkippedReason) -> i32
source§impl Hash for AnswerSkippedReason
impl Hash for AnswerSkippedReason
source§impl Ord for AnswerSkippedReason
impl Ord for AnswerSkippedReason
source§fn cmp(&self, other: &AnswerSkippedReason) -> Ordering
fn cmp(&self, other: &AnswerSkippedReason) -> 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 AnswerSkippedReason
impl PartialEq for AnswerSkippedReason
source§fn eq(&self, other: &AnswerSkippedReason) -> bool
fn eq(&self, other: &AnswerSkippedReason) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for AnswerSkippedReason
impl PartialOrd for AnswerSkippedReason
source§fn partial_cmp(&self, other: &AnswerSkippedReason) -> Option<Ordering>
fn partial_cmp(&self, other: &AnswerSkippedReason) -> 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 AnswerSkippedReason
impl TryFrom<i32> for AnswerSkippedReason
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<AnswerSkippedReason, UnknownEnumValue>
fn try_from(value: i32) -> Result<AnswerSkippedReason, UnknownEnumValue>
impl Copy for AnswerSkippedReason
impl Eq for AnswerSkippedReason
impl StructuralPartialEq for AnswerSkippedReason
Auto Trait Implementations§
impl Freeze for AnswerSkippedReason
impl RefUnwindSafe for AnswerSkippedReason
impl Send for AnswerSkippedReason
impl Sync for AnswerSkippedReason
impl Unpin for AnswerSkippedReason
impl UnwindSafe for AnswerSkippedReason
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