pub struct DocumentProcessingConfig {
pub name: String,
pub chunking_config: Option<ChunkingConfig>,
pub default_parsing_config: Option<ParsingConfig>,
pub parsing_config_overrides: BTreeMap<String, ParsingConfig>,
}
Expand description
A singleton resource of [DataStore][google.cloud.discoveryengine.v1beta.DataStore]. It’s empty when [DataStore][google.cloud.discoveryengine.v1beta.DataStore] is created, which defaults to digital parser. The first call to [DataStoreService.UpdateDocumentProcessingConfig][] method will initialize the config.
Fields§
§name: String
The full resource name of the Document Processing Config.
Format:
projects/*/locations/*/collections/*/dataStores/*/documentProcessingConfig
.
chunking_config: Option<ChunkingConfig>
Whether chunking mode is enabled.
default_parsing_config: Option<ParsingConfig>
Configurations for default Document parser. If not specified, we will configure it as default DigitalParsingConfig, and the default parsing config will be applied to all file types for Document parsing.
parsing_config_overrides: BTreeMap<String, ParsingConfig>
Map from file type to override the default parsing configuration based on the file type. Supported keys:
pdf
: Override parsing config for PDF files, either digital parsing, ocr parsing or layout parsing is supported.html
: Override parsing config for HTML files, only digital parsing and layout parsing are supported.docx
: Override parsing config for DOCX files, only digital parsing and layout parsing are supported.pptx
: Override parsing config for PPTX files, only digital parsing and layout parsing are supported.xlsx
: Override parsing config for XLSX files, only digital parsing and layout parsing are supported.
Trait Implementations§
source§impl Clone for DocumentProcessingConfig
impl Clone for DocumentProcessingConfig
source§fn clone(&self) -> DocumentProcessingConfig
fn clone(&self) -> DocumentProcessingConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DocumentProcessingConfig
impl Debug for DocumentProcessingConfig
source§impl Default for DocumentProcessingConfig
impl Default for DocumentProcessingConfig
source§impl Message for DocumentProcessingConfig
impl Message for DocumentProcessingConfig
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 DocumentProcessingConfig
impl PartialEq for DocumentProcessingConfig
source§fn eq(&self, other: &DocumentProcessingConfig) -> bool
fn eq(&self, other: &DocumentProcessingConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DocumentProcessingConfig
Auto Trait Implementations§
impl Freeze for DocumentProcessingConfig
impl RefUnwindSafe for DocumentProcessingConfig
impl Send for DocumentProcessingConfig
impl Sync for DocumentProcessingConfig
impl Unpin for DocumentProcessingConfig
impl UnwindSafe for DocumentProcessingConfig
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