Struct googapis::google::cloud::documentai::v1::document_processor_service_client::DocumentProcessorServiceClient [−][src]
pub struct DocumentProcessorServiceClient<T> { /* fields omitted */ }Expand description
Service to call Cloud DocumentAI to process documents according to the processor’s definition. Processors are built using state-of-the-art Google AI such as natural language, computer vision, and translation to extract structured information from unstructured or semi-structured documents.
Implementations
impl<T> DocumentProcessorServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
impl<T> DocumentProcessorServiceClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
pub fn with_interceptor<F>(
inner: T,
interceptor: F
) -> DocumentProcessorServiceClient<InterceptedService<T, F>> where
F: Interceptor,
T: Service<Request<BoxBody>, Response = Response<<T as GrpcService<BoxBody>>::ResponseBody>>,
<T as Service<Request<BoxBody>>>::Error: Into<StdError> + Send + Sync,
Compress requests with gzip.
This requires the server to support it otherwise it might respond with an error.
Enable decompressing responses with gzip.
pub async fn process_document(
&mut self,
request: impl IntoRequest<ProcessRequest>
) -> Result<Response<ProcessResponse>, Status>
pub async fn process_document(
&mut self,
request: impl IntoRequest<ProcessRequest>
) -> Result<Response<ProcessResponse>, Status>
Processes a single document.
pub async fn batch_process_documents(
&mut self,
request: impl IntoRequest<BatchProcessRequest>
) -> Result<Response<Operation>, Status>
pub async fn batch_process_documents(
&mut self,
request: impl IntoRequest<BatchProcessRequest>
) -> Result<Response<Operation>, Status>
LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format.
pub async fn review_document(
&mut self,
request: impl IntoRequest<ReviewDocumentRequest>
) -> Result<Response<Operation>, Status>
pub async fn review_document(
&mut self,
request: impl IntoRequest<ReviewDocumentRequest>
) -> Result<Response<Operation>, Status>
Send a document for Human Review. The input document should be processed by the specified processor.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for DocumentProcessorServiceClient<T> where
T: RefUnwindSafe,
impl<T> Send for DocumentProcessorServiceClient<T> where
T: Send,
impl<T> Sync for DocumentProcessorServiceClient<T> where
T: Sync,
impl<T> Unpin for DocumentProcessorServiceClient<T> where
T: Unpin,
impl<T> UnwindSafe for DocumentProcessorServiceClient<T> where
T: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more