Struct googapis::google::cloud::documentai::v1beta3::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 fetch_processor_types(
&mut self,
request: impl IntoRequest<FetchProcessorTypesRequest>
) -> Result<Response<FetchProcessorTypesResponse>, Status>
pub async fn fetch_processor_types(
&mut self,
request: impl IntoRequest<FetchProcessorTypesRequest>
) -> Result<Response<FetchProcessorTypesResponse>, Status>
Fetches processor types.
pub async fn list_processors(
&mut self,
request: impl IntoRequest<ListProcessorsRequest>
) -> Result<Response<ListProcessorsResponse>, Status>
pub async fn list_processors(
&mut self,
request: impl IntoRequest<ListProcessorsRequest>
) -> Result<Response<ListProcessorsResponse>, Status>
Lists all processors which belong to this project.
pub async fn create_processor(
&mut self,
request: impl IntoRequest<CreateProcessorRequest>
) -> Result<Response<Processor>, Status>
pub async fn create_processor(
&mut self,
request: impl IntoRequest<CreateProcessorRequest>
) -> Result<Response<Processor>, Status>
Creates a processor from the type processor that the user chose. The processor will be at “ENABLED” state by default after its creation.
pub async fn delete_processor(
&mut self,
request: impl IntoRequest<DeleteProcessorRequest>
) -> Result<Response<Operation>, Status>
pub async fn delete_processor(
&mut self,
request: impl IntoRequest<DeleteProcessorRequest>
) -> Result<Response<Operation>, Status>
Deletes the processor, unloads all deployed model artifacts if it was enabled and then deletes all artifacts associated with this processor.
pub async fn enable_processor(
&mut self,
request: impl IntoRequest<EnableProcessorRequest>
) -> Result<Response<Operation>, Status>
pub async fn enable_processor(
&mut self,
request: impl IntoRequest<EnableProcessorRequest>
) -> Result<Response<Operation>, Status>
Enables a processor
pub async fn disable_processor(
&mut self,
request: impl IntoRequest<DisableProcessorRequest>
) -> Result<Response<Operation>, Status>
pub async fn disable_processor(
&mut self,
request: impl IntoRequest<DisableProcessorRequest>
) -> Result<Response<Operation>, Status>
Disables a processor
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