Struct google_api_proto::google::cloud::discoveryengine::v1::search_request::ContentSearchSpec
source · pub struct ContentSearchSpec {
pub snippet_spec: Option<SnippetSpec>,
pub summary_spec: Option<SummarySpec>,
pub extractive_content_spec: Option<ExtractiveContentSpec>,
pub search_result_mode: i32,
pub chunk_spec: Option<ChunkSpec>,
}
Expand description
A specification for configuring the behavior of content search.
Fields§
§snippet_spec: Option<SnippetSpec>
If snippetSpec
is not specified, snippets are not included in the
search response.
summary_spec: Option<SummarySpec>
If summarySpec
is not specified, summaries are not included in the
search response.
extractive_content_spec: Option<ExtractiveContentSpec>
If there is no extractive_content_spec provided, there will be no extractive answer in the search response.
search_result_mode: i32
Specifies the search result mode. If unspecified, the
search result mode defaults to DOCUMENTS
.
chunk_spec: Option<ChunkSpec>
Specifies the chunk spec to be returned from the search response. Only available if the [SearchRequest.ContentSearchSpec.search_result_mode][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.search_result_mode] is set to [CHUNKS][google.cloud.discoveryengine.v1.SearchRequest.ContentSearchSpec.SearchResultMode.CHUNKS]
Implementations§
source§impl ContentSearchSpec
impl ContentSearchSpec
sourcepub fn search_result_mode(&self) -> SearchResultMode
pub fn search_result_mode(&self) -> SearchResultMode
Returns the enum value of search_result_mode
, or the default if the field is set to an invalid enum value.
sourcepub fn set_search_result_mode(&mut self, value: SearchResultMode)
pub fn set_search_result_mode(&mut self, value: SearchResultMode)
Sets search_result_mode
to the provided enum value.
Trait Implementations§
source§impl Clone for ContentSearchSpec
impl Clone for ContentSearchSpec
source§fn clone(&self) -> ContentSearchSpec
fn clone(&self) -> ContentSearchSpec
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ContentSearchSpec
impl Debug for ContentSearchSpec
source§impl Default for ContentSearchSpec
impl Default for ContentSearchSpec
source§impl Message for ContentSearchSpec
impl Message for ContentSearchSpec
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for ContentSearchSpec
impl PartialEq for ContentSearchSpec
source§fn eq(&self, other: &ContentSearchSpec) -> bool
fn eq(&self, other: &ContentSearchSpec) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ContentSearchSpec
Auto Trait Implementations§
impl Freeze for ContentSearchSpec
impl RefUnwindSafe for ContentSearchSpec
impl Send for ContentSearchSpec
impl Sync for ContentSearchSpec
impl Unpin for ContentSearchSpec
impl UnwindSafe for ContentSearchSpec
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<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