Represents a DocumentUnderstandingService
Inheritance
$protobuf.rpc.Service > protos.google.cloud.documentai.v1beta2.DocumentUnderstandingServicePackage
@google-cloud/documentai!Constructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new DocumentUnderstandingService 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.v1beta2.IBatchProcessDocumentsRequest, callback: google.cloud.documentai.v1beta2.DocumentUnderstandingService.BatchProcessDocumentsCallback): void;
Calls BatchProcessDocuments.
Name | Description |
request |
IBatchProcessDocumentsRequest
BatchProcessDocumentsRequest message or plain object |
callback |
google.cloud.documentai.v1beta2.DocumentUnderstandingService.BatchProcessDocumentsCallback
Node-style callback called with the error, if any, and Operation |
Type | Description |
void |
batchProcessDocuments(request)
public batchProcessDocuments(request: google.cloud.documentai.v1beta2.IBatchProcessDocumentsRequest): Promise<google.longrunning.Operation>;
Calls BatchProcessDocuments.
Name | Description |
request |
IBatchProcessDocumentsRequest
BatchProcessDocumentsRequest 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): DocumentUnderstandingService;
Creates new DocumentUnderstandingService 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 |
DocumentUnderstandingService | RPC service. Useful where requests and/or responses are streamed. |
processDocument(request, callback)
public processDocument(request: google.cloud.documentai.v1beta2.IProcessDocumentRequest, callback: google.cloud.documentai.v1beta2.DocumentUnderstandingService.ProcessDocumentCallback): void;
Calls ProcessDocument.
Name | Description |
request |
IProcessDocumentRequest
ProcessDocumentRequest message or plain object |
callback |
google.cloud.documentai.v1beta2.DocumentUnderstandingService.ProcessDocumentCallback
Node-style callback called with the error, if any, and Document |
Type | Description |
void |
processDocument(request)
public processDocument(request: google.cloud.documentai.v1beta2.IProcessDocumentRequest): Promise<google.cloud.documentai.v1beta2.Document>;
Calls ProcessDocument.
Name | Description |
request |
IProcessDocumentRequest
ProcessDocumentRequest message or plain object |
Type | Description |
Promise<google.cloud.documentai.v1beta2.Document> | Promise |