Class DocumentProcessorServiceGrpc.DocumentProcessorServiceBlockingStub

  • Enclosing class:
    DocumentProcessorServiceGrpc

    public static final class DocumentProcessorServiceGrpc.DocumentProcessorServiceBlockingStub
    extends io.grpc.stub.AbstractBlockingStub<DocumentProcessorServiceGrpc.DocumentProcessorServiceBlockingStub>
    A stub to allow clients to do synchronous rpc calls to service DocumentProcessorService.
     Service to call Document AI 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.
     
    • Method Detail

      • batchProcessDocuments

        public com.google.longrunning.Operation batchProcessDocuments​(BatchProcessRequest request)
         LRO endpoint to batch process many documents. The output is written
         to Cloud Storage as JSON in the [Document] format.
         
      • fetchProcessorTypes

        public FetchProcessorTypesResponse fetchProcessorTypes​(FetchProcessorTypesRequest request)
         Fetches processor types. Note that we don't use
         [ListProcessorTypes][google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorTypes]
         here, because it isn't paginated.
         
      • trainProcessorVersion

        public com.google.longrunning.Operation trainProcessorVersion​(TrainProcessorVersionRequest request)
         Trains a new processor version.
         Operation metadata is returned as
         [TrainProcessorVersionMetadata][google.cloud.documentai.v1beta3.TrainProcessorVersionMetadata].
         
      • deleteProcessorVersion

        public com.google.longrunning.Operation deleteProcessorVersion​(DeleteProcessorVersionRequest request)
         Deletes the processor version, all artifacts under the processor version
         will be deleted.
         
      • deployProcessorVersion

        public com.google.longrunning.Operation deployProcessorVersion​(DeployProcessorVersionRequest request)
         Deploys the processor version.
         
      • undeployProcessorVersion

        public com.google.longrunning.Operation undeployProcessorVersion​(UndeployProcessorVersionRequest request)
         Undeploys the processor version.
         
      • createProcessor

        public Processor createProcessor​(CreateProcessorRequest request)
         Creates a processor from the
         [ProcessorType][google.cloud.documentai.v1beta3.ProcessorType] provided.
         The processor will be at `ENABLED` state by default after its creation.
         
      • deleteProcessor

        public com.google.longrunning.Operation deleteProcessor​(DeleteProcessorRequest request)
         Deletes the processor, unloads all deployed model artifacts if it was
         enabled and then deletes all artifacts associated with this processor.
         
      • enableProcessor

        public com.google.longrunning.Operation enableProcessor​(EnableProcessorRequest request)
         Enables a processor
         
      • disableProcessor

        public com.google.longrunning.Operation disableProcessor​(DisableProcessorRequest request)
         Disables a processor
         
      • setDefaultProcessorVersion

        public com.google.longrunning.Operation setDefaultProcessorVersion​(SetDefaultProcessorVersionRequest request)
         Set the default (active) version of a
         [Processor][google.cloud.documentai.v1beta3.Processor] that will be used in
         [ProcessDocument][google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocument]
         and
         [BatchProcessDocuments][google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocuments].
         
      • reviewDocument

        public com.google.longrunning.Operation reviewDocument​(ReviewDocumentRequest request)
         Send a document for Human Review. The input document should be processed by
         the specified processor.
         
      • evaluateProcessorVersion

        public com.google.longrunning.Operation evaluateProcessorVersion​(EvaluateProcessorVersionRequest request)
         Evaluates a ProcessorVersion against annotated documents, producing an
         Evaluation.
         
      • importProcessorVersion

        public com.google.longrunning.Operation importProcessorVersion​(ImportProcessorVersionRequest request)
         Imports a processor version from source processor version.