Represents a DocumentProcessorService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.documentai.v1.DocumentProcessorServicePackage
@google-cloud/documentai!Constructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new DocumentProcessorService service.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Methods
batchProcessDocuments(request, callback)
public batchProcessDocuments(request: google.cloud.documentai.v1.IBatchProcessRequest, callback: google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocumentsCallback): void;
Calls BatchProcessDocuments.
Name | Description |
request |
google.cloud.documentai.v1.IBatchProcessRequest
BatchProcessRequest message or plain object |
callback |
google.cloud.documentai.v1.DocumentProcessorService.BatchProcessDocumentsCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
batchProcessDocuments(request)
public batchProcessDocuments(request: google.cloud.documentai.v1.IBatchProcessRequest): Promise<google.longrunning.Operation>;
Calls BatchProcessDocuments.
Name | Description |
request |
google.cloud.documentai.v1.IBatchProcessRequest
BatchProcessRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): DocumentProcessorService;
Creates new DocumentProcessorService service using the specified rpc implementation.
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Type | Description |
DocumentProcessorService | RPC service. Useful where requests and/or responses are streamed. |
processDocument(request, callback)
public processDocument(request: google.cloud.documentai.v1.IProcessRequest, callback: google.cloud.documentai.v1.DocumentProcessorService.ProcessDocumentCallback): void;
Calls ProcessDocument.
Name | Description |
request |
google.cloud.documentai.v1.IProcessRequest
ProcessRequest message or plain object |
callback |
google.cloud.documentai.v1.DocumentProcessorService.ProcessDocumentCallback
Node-style callback called with the error, if any, and ProcessResponse |
Type | Description |
void |
processDocument(request)
public processDocument(request: google.cloud.documentai.v1.IProcessRequest): Promise<google.cloud.documentai.v1.ProcessResponse>;
Calls ProcessDocument.
Name | Description |
request |
google.cloud.documentai.v1.IProcessRequest
ProcessRequest message or plain object |
Type | Description |
Promise<google.cloud.documentai.v1.ProcessResponse> | Promise |
reviewDocument(request, callback)
public reviewDocument(request: google.cloud.documentai.v1.IReviewDocumentRequest, callback: google.cloud.documentai.v1.DocumentProcessorService.ReviewDocumentCallback): void;
Calls ReviewDocument.
Name | Description |
request |
google.cloud.documentai.v1.IReviewDocumentRequest
ReviewDocumentRequest message or plain object |
callback |
google.cloud.documentai.v1.DocumentProcessorService.ReviewDocumentCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
reviewDocument(request)
public reviewDocument(request: google.cloud.documentai.v1.IReviewDocumentRequest): Promise<google.longrunning.Operation>;
Calls ReviewDocument.
Name | Description |
request |
google.cloud.documentai.v1.IReviewDocumentRequest
ReviewDocumentRequest message or plain object |
Type | Description |
Promise<google.longrunning.Operation> | Promise |