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