Struct google_api_proto::google::cloud::contentwarehouse::v1::IngestPipelineConfig
source · pub struct IngestPipelineConfig {
pub document_acl_policy: Option<Policy>,
pub enable_document_text_extraction: bool,
pub folder: String,
pub cloud_function: String,
}
Expand description
The ingestion pipeline config.
Fields§
§document_acl_policy: Option<Policy>
The document level acl policy config. This refers to an Identity and Access (IAM) policy, which specifies access controls for all documents ingested by the pipeline. The [role][google.iam.v1.Binding.role] and [members][google.iam.v1.Binding.role] under the policy needs to be specified.
The following roles are supported for document level acl control:
- roles/contentwarehouse.documentAdmin
- roles/contentwarehouse.documentEditor
- roles/contentwarehouse.documentViewer
The following members are supported for document level acl control:
- user:user-email@example.com
- group:group-email@example.com Note that for documents searched with LLM, only single level user or group acl check is supported.
enable_document_text_extraction: bool
The document text extraction enabled flag. If the flag is set to true, DWH will perform text extraction on the raw document.
folder: String
Optional. The name of the folder to which all ingested documents will be
linked during ingestion process. Format is
projects/{project}/locations/{location}/documents/{folder_id}
cloud_function: String
The Cloud Function resource name. The Cloud Function needs to live inside
consumer project and is accessible to Document AI Warehouse P4SA.
Only Cloud Functions V2 is supported. Cloud function execution should
complete within 5 minutes or this file ingestion may fail due to timeout.
Format: <https://{region}-{project_id}.cloudfunctions.net/{cloud_function}
>
The following keys are available the request json payload.
- display_name
- properties
- plain_text
- reference_id
- document_schema_name
- raw_document_path
- raw_document_file_type
The following keys from the cloud function json response payload will be ingested to the Document AI Warehouse as part of Document proto content and/or related information. The original values will be overridden if any key is present in the response.
- display_name
- properties
- plain_text
- document_acl_policy
- folder
Trait Implementations§
source§impl Clone for IngestPipelineConfig
impl Clone for IngestPipelineConfig
source§fn clone(&self) -> IngestPipelineConfig
fn clone(&self) -> IngestPipelineConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for IngestPipelineConfig
impl Debug for IngestPipelineConfig
source§impl Default for IngestPipelineConfig
impl Default for IngestPipelineConfig
source§impl Message for IngestPipelineConfig
impl Message for IngestPipelineConfig
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 IngestPipelineConfig
impl PartialEq for IngestPipelineConfig
source§fn eq(&self, other: &IngestPipelineConfig) -> bool
fn eq(&self, other: &IngestPipelineConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for IngestPipelineConfig
Auto Trait Implementations§
impl !Freeze for IngestPipelineConfig
impl RefUnwindSafe for IngestPipelineConfig
impl Send for IngestPipelineConfig
impl Sync for IngestPipelineConfig
impl Unpin for IngestPipelineConfig
impl UnwindSafe for IngestPipelineConfig
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