Class protos.google.cloud.documentai.v1beta1.DocumentUnderstandingService (3.0.2)

Represents a DocumentUnderstandingService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.documentai.v1beta1.DocumentUnderstandingService

Package

@google-cloud/documentai!

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new DocumentUnderstandingService service.

Parameters
NameDescription
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.v1beta1.IBatchProcessDocumentsRequest, callback: google.cloud.documentai.v1beta1.DocumentUnderstandingService.BatchProcessDocumentsCallback): void;

Calls BatchProcessDocuments.

Parameters
NameDescription
request IBatchProcessDocumentsRequest

BatchProcessDocumentsRequest message or plain object

callback google.cloud.documentai.v1beta1.DocumentUnderstandingService.BatchProcessDocumentsCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

batchProcessDocuments(request)

public batchProcessDocuments(request: google.cloud.documentai.v1beta1.IBatchProcessDocumentsRequest): Promise<google.longrunning.Operation>;

Calls BatchProcessDocuments.

Parameter
NameDescription
request IBatchProcessDocumentsRequest

BatchProcessDocumentsRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
DocumentUnderstandingService

RPC service. Useful where requests and/or responses are streamed.