Class protos.google.cloud.documentai.v1beta3.DocumentProcessorService (3.2.1)

Represents a DocumentProcessorService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.documentai.v1beta3.DocumentProcessorService

Package

@google-cloud/documentai

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new DocumentProcessorService 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.v1beta3.IBatchProcessRequest, callback: google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocumentsCallback): void;

Calls BatchProcessDocuments.

Parameters
NameDescription
request IBatchProcessRequest

BatchProcessRequest message or plain object

callback google.cloud.documentai.v1beta3.DocumentProcessorService.BatchProcessDocumentsCallback

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

Returns
TypeDescription
void

batchProcessDocuments(request)

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

Calls BatchProcessDocuments.

Parameter
NameDescription
request IBatchProcessRequest

BatchProcessRequest 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): DocumentProcessorService;

Creates new DocumentProcessorService 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
DocumentProcessorService

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

createProcessor(request, callback)

public createProcessor(request: google.cloud.documentai.v1beta3.ICreateProcessorRequest, callback: google.cloud.documentai.v1beta3.DocumentProcessorService.CreateProcessorCallback): void;

Calls CreateProcessor.

Parameters
NameDescription
request ICreateProcessorRequest

CreateProcessorRequest message or plain object

callback google.cloud.documentai.v1beta3.DocumentProcessorService.CreateProcessorCallback

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

Returns
TypeDescription
void

createProcessor(request)

public createProcessor(request: google.cloud.documentai.v1beta3.ICreateProcessorRequest): Promise<google.cloud.documentai.v1beta3.Processor>;

Calls CreateProcessor.

Parameter
NameDescription
request ICreateProcessorRequest

CreateProcessorRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.documentai.v1beta3.Processor>

Promise

deleteProcessor(request, callback)

public deleteProcessor(request: google.cloud.documentai.v1beta3.IDeleteProcessorRequest, callback: google.cloud.documentai.v1beta3.DocumentProcessorService.DeleteProcessorCallback): void;

Calls DeleteProcessor.

Parameters
NameDescription
request IDeleteProcessorRequest

DeleteProcessorRequest message or plain object

callback google.cloud.documentai.v1beta3.DocumentProcessorService.DeleteProcessorCallback

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

Returns
TypeDescription
void

deleteProcessor(request)

public deleteProcessor(request: google.cloud.documentai.v1beta3.IDeleteProcessorRequest): Promise<google.longrunning.Operation>;

Calls DeleteProcessor.

Parameter
NameDescription
request IDeleteProcessorRequest

DeleteProcessorRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

disableProcessor(request, callback)

public disableProcessor(request: google.cloud.documentai.v1beta3.IDisableProcessorRequest, callback: google.cloud.documentai.v1beta3.DocumentProcessorService.DisableProcessorCallback): void;

Calls DisableProcessor.

Parameters
NameDescription
request IDisableProcessorRequest

DisableProcessorRequest message or plain object

callback google.cloud.documentai.v1beta3.DocumentProcessorService.DisableProcessorCallback

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

Returns
TypeDescription
void

disableProcessor(request)

public disableProcessor(request: google.cloud.documentai.v1beta3.IDisableProcessorRequest): Promise<google.longrunning.Operation>;

Calls DisableProcessor.

Parameter
NameDescription
request IDisableProcessorRequest

DisableProcessorRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

enableProcessor(request, callback)

public enableProcessor(request: google.cloud.documentai.v1beta3.IEnableProcessorRequest, callback: google.cloud.documentai.v1beta3.DocumentProcessorService.EnableProcessorCallback): void;

Calls EnableProcessor.

Parameters
NameDescription
request google.cloud.documentai.v1beta3.IEnableProcessorRequest

EnableProcessorRequest message or plain object

callback google.cloud.documentai.v1beta3.DocumentProcessorService.EnableProcessorCallback

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

Returns
TypeDescription
void

enableProcessor(request)

public enableProcessor(request: google.cloud.documentai.v1beta3.IEnableProcessorRequest): Promise<google.longrunning.Operation>;

Calls EnableProcessor.

Parameter
NameDescription
request google.cloud.documentai.v1beta3.IEnableProcessorRequest

EnableProcessorRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise

fetchProcessorTypes(request, callback)

public fetchProcessorTypes(request: google.cloud.documentai.v1beta3.IFetchProcessorTypesRequest, callback: google.cloud.documentai.v1beta3.DocumentProcessorService.FetchProcessorTypesCallback): void;

Calls FetchProcessorTypes.

Parameters
NameDescription
request IFetchProcessorTypesRequest

FetchProcessorTypesRequest message or plain object

callback google.cloud.documentai.v1beta3.DocumentProcessorService.FetchProcessorTypesCallback

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

Returns
TypeDescription
void

fetchProcessorTypes(request)

public fetchProcessorTypes(request: google.cloud.documentai.v1beta3.IFetchProcessorTypesRequest): Promise<google.cloud.documentai.v1beta3.FetchProcessorTypesResponse>;

Calls FetchProcessorTypes.

Parameter
NameDescription
request IFetchProcessorTypesRequest

FetchProcessorTypesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.documentai.v1beta3.FetchProcessorTypesResponse>

Promise

listProcessors(request, callback)

public listProcessors(request: google.cloud.documentai.v1beta3.IListProcessorsRequest, callback: google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorsCallback): void;

Calls ListProcessors.

Parameters
NameDescription
request IListProcessorsRequest

ListProcessorsRequest message or plain object

callback google.cloud.documentai.v1beta3.DocumentProcessorService.ListProcessorsCallback

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

Returns
TypeDescription
void

listProcessors(request)

public listProcessors(request: google.cloud.documentai.v1beta3.IListProcessorsRequest): Promise<google.cloud.documentai.v1beta3.ListProcessorsResponse>;

Calls ListProcessors.

Parameter
NameDescription
request IListProcessorsRequest

ListProcessorsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.documentai.v1beta3.ListProcessorsResponse>

Promise

processDocument(request, callback)

public processDocument(request: google.cloud.documentai.v1beta3.IProcessRequest, callback: google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocumentCallback): void;

Calls ProcessDocument.

Parameters
NameDescription
request IProcessRequest

ProcessRequest message or plain object

callback google.cloud.documentai.v1beta3.DocumentProcessorService.ProcessDocumentCallback

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

Returns
TypeDescription
void

processDocument(request)

public processDocument(request: google.cloud.documentai.v1beta3.IProcessRequest): Promise<google.cloud.documentai.v1beta3.ProcessResponse>;

Calls ProcessDocument.

Parameter
NameDescription
request IProcessRequest

ProcessRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.documentai.v1beta3.ProcessResponse>

Promise

reviewDocument(request, callback)

public reviewDocument(request: google.cloud.documentai.v1beta3.IReviewDocumentRequest, callback: google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocumentCallback): void;

Calls ReviewDocument.

Parameters
NameDescription
request IReviewDocumentRequest

ReviewDocumentRequest message or plain object

callback google.cloud.documentai.v1beta3.DocumentProcessorService.ReviewDocumentCallback

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

Returns
TypeDescription
void

reviewDocument(request)

public reviewDocument(request: google.cloud.documentai.v1beta3.IReviewDocumentRequest): Promise<google.longrunning.Operation>;

Calls ReviewDocument.

Parameter
NameDescription
request IReviewDocumentRequest

ReviewDocumentRequest message or plain object

Returns
TypeDescription
Promise<google.longrunning.Operation>

Promise