Cloud Document AI v1beta3 API - Class DocumentProcessorServiceClientImpl (2.0.0-beta07)

Stay organized with collections Save and categorize content based on your preferences.
public sealed class DocumentProcessorServiceClientImpl : DocumentProcessorServiceClient

Reference documentation and code samples for the Cloud Document AI v1beta3 API class DocumentProcessorServiceClientImpl.

DocumentProcessorService client wrapper implementation, for convenient use.

Inheritance

Object > DocumentProcessorServiceClient > DocumentProcessorServiceClientImpl

Namespace

Google.Cloud.DocumentAI.V1Beta3

Assembly

Google.Cloud.DocumentAI.V1Beta3.dll

Remarks

Service to call Cloud DocumentAI 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.

Constructors

DocumentProcessorServiceClientImpl(DocumentProcessorService.DocumentProcessorServiceClient, DocumentProcessorServiceSettings, ILogger)

public DocumentProcessorServiceClientImpl(DocumentProcessorService.DocumentProcessorServiceClient grpcClient, DocumentProcessorServiceSettings settings, ILogger logger)

Constructs a client wrapper for the DocumentProcessorService service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientDocumentProcessorService.DocumentProcessorServiceClient

The underlying gRPC client.

settingsDocumentProcessorServiceSettings

The base DocumentProcessorServiceSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

BatchProcessDocumentsOperationsClient

public override OperationsClient BatchProcessDocumentsOperationsClient { get; }

The long-running operations client for BatchProcessDocuments.

Property Value
TypeDescription
OperationsClient
Overrides

DeleteProcessorOperationsClient

public override OperationsClient DeleteProcessorOperationsClient { get; }

The long-running operations client for DeleteProcessor.

Property Value
TypeDescription
OperationsClient
Overrides

DeleteProcessorVersionOperationsClient

public override OperationsClient DeleteProcessorVersionOperationsClient { get; }

The long-running operations client for DeleteProcessorVersion.

Property Value
TypeDescription
OperationsClient
Overrides

DeployProcessorVersionOperationsClient

public override OperationsClient DeployProcessorVersionOperationsClient { get; }

The long-running operations client for DeployProcessorVersion.

Property Value
TypeDescription
OperationsClient
Overrides

DisableProcessorOperationsClient

public override OperationsClient DisableProcessorOperationsClient { get; }

The long-running operations client for DisableProcessor.

Property Value
TypeDescription
OperationsClient
Overrides

EnableProcessorOperationsClient

public override OperationsClient EnableProcessorOperationsClient { get; }

The long-running operations client for EnableProcessor.

Property Value
TypeDescription
OperationsClient
Overrides

EvaluateProcessorVersionOperationsClient

public override OperationsClient EvaluateProcessorVersionOperationsClient { get; }

The long-running operations client for EvaluateProcessorVersion.

Property Value
TypeDescription
OperationsClient
Overrides

GrpcClient

public override DocumentProcessorService.DocumentProcessorServiceClient GrpcClient { get; }

The underlying gRPC DocumentProcessorService client

Property Value
TypeDescription
DocumentProcessorService.DocumentProcessorServiceClient
Overrides

LocationsClient

public override LocationsClient LocationsClient { get; }

The LocationsClient associated with this client.

Property Value
TypeDescription
LocationsClient
Overrides

ReviewDocumentOperationsClient

public override OperationsClient ReviewDocumentOperationsClient { get; }

The long-running operations client for ReviewDocument.

Property Value
TypeDescription
OperationsClient
Overrides

SetDefaultProcessorVersionOperationsClient

public override OperationsClient SetDefaultProcessorVersionOperationsClient { get; }

The long-running operations client for SetDefaultProcessorVersion.

Property Value
TypeDescription
OperationsClient
Overrides

TrainProcessorVersionOperationsClient

public override OperationsClient TrainProcessorVersionOperationsClient { get; }

The long-running operations client for TrainProcessorVersion.

Property Value
TypeDescription
OperationsClient
Overrides

UndeployProcessorVersionOperationsClient

public override OperationsClient UndeployProcessorVersionOperationsClient { get; }

The long-running operations client for UndeployProcessorVersion.

Property Value
TypeDescription
OperationsClient
Overrides

Methods

BatchProcessDocuments(BatchProcessRequest, CallSettings)

public override Operation<BatchProcessResponse, BatchProcessMetadata> BatchProcessDocuments(BatchProcessRequest request, CallSettings callSettings = null)

LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format.

Parameters
NameDescription
requestBatchProcessRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<BatchProcessResponse, BatchProcessMetadata>

The RPC response.

Overrides

BatchProcessDocumentsAsync(BatchProcessRequest, CallSettings)

public override async Task<Operation<BatchProcessResponse, BatchProcessMetadata>> BatchProcessDocumentsAsync(BatchProcessRequest request, CallSettings callSettings = null)

LRO endpoint to batch process many documents. The output is written to Cloud Storage as JSON in the [Document] format.

Parameters
NameDescription
requestBatchProcessRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<BatchProcessResponse, BatchProcessMetadata>>

A Task containing the RPC response.

Overrides

CreateProcessor(CreateProcessorRequest, CallSettings)

public override Processor CreateProcessor(CreateProcessorRequest request, CallSettings callSettings = null)

Creates a processor from the type processor that the user chose. The processor will be at "ENABLED" state by default after its creation.

Parameters
NameDescription
requestCreateProcessorRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Processor

The RPC response.

Overrides

CreateProcessorAsync(CreateProcessorRequest, CallSettings)

public override Task<Processor> CreateProcessorAsync(CreateProcessorRequest request, CallSettings callSettings = null)

Creates a processor from the type processor that the user chose. The processor will be at "ENABLED" state by default after its creation.

Parameters
NameDescription
requestCreateProcessorRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Processor>

A Task containing the RPC response.

Overrides

DeleteProcessor(DeleteProcessorRequest, CallSettings)

public override Operation<Empty, DeleteProcessorMetadata> DeleteProcessor(DeleteProcessorRequest request, CallSettings callSettings = null)

Deletes the processor, unloads all deployed model artifacts if it was enabled and then deletes all artifacts associated with this processor.

Parameters
NameDescription
requestDeleteProcessorRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, DeleteProcessorMetadata>

The RPC response.

Overrides

DeleteProcessorAsync(DeleteProcessorRequest, CallSettings)

public override async Task<Operation<Empty, DeleteProcessorMetadata>> DeleteProcessorAsync(DeleteProcessorRequest request, CallSettings callSettings = null)

Deletes the processor, unloads all deployed model artifacts if it was enabled and then deletes all artifacts associated with this processor.

Parameters
NameDescription
requestDeleteProcessorRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Empty, DeleteProcessorMetadata>>

A Task containing the RPC response.

Overrides

DeleteProcessorVersion(DeleteProcessorVersionRequest, CallSettings)

public override Operation<Empty, DeleteProcessorVersionMetadata> DeleteProcessorVersion(DeleteProcessorVersionRequest request, CallSettings callSettings = null)

Deletes the processor version, all artifacts under the processor version will be deleted.

Parameters
NameDescription
requestDeleteProcessorVersionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<Empty, DeleteProcessorVersionMetadata>

The RPC response.

Overrides

DeleteProcessorVersionAsync(DeleteProcessorVersionRequest, CallSettings)

public override async Task<Operation<Empty, DeleteProcessorVersionMetadata>> DeleteProcessorVersionAsync(DeleteProcessorVersionRequest request, CallSettings callSettings = null)

Deletes the processor version, all artifacts under the processor version will be deleted.

Parameters
NameDescription
requestDeleteProcessorVersionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<Empty, DeleteProcessorVersionMetadata>>

A Task containing the RPC response.

Overrides

DeployProcessorVersion(DeployProcessorVersionRequest, CallSettings)

public override Operation<DeployProcessorVersionResponse, DeployProcessorVersionMetadata> DeployProcessorVersion(DeployProcessorVersionRequest request, CallSettings callSettings = null)

Deploys the processor version.

Parameters
NameDescription
requestDeployProcessorVersionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<DeployProcessorVersionResponse, DeployProcessorVersionMetadata>

The RPC response.

Overrides

DeployProcessorVersionAsync(DeployProcessorVersionRequest, CallSettings)

public override async Task<Operation<DeployProcessorVersionResponse, DeployProcessorVersionMetadata>> DeployProcessorVersionAsync(DeployProcessorVersionRequest request, CallSettings callSettings = null)

Deploys the processor version.

Parameters
NameDescription
requestDeployProcessorVersionRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Task<Operation<DeployProcessorVersionResponse, DeployProcessorVersionMetadata>>

A Task containing the RPC response.

Overrides

DisableProcessor(DisableProcessorRequest, CallSettings)

public override Operation<DisableProcessorResponse, DisableProcessorMetadata> DisableProcessor(DisableProcessorRequest request, CallSettings callSettings = null)

Disables a processor

Parameters
NameDescription
requestDisableProcessorRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Operation<DisableProcessorResponse, DisableProcessorMetadata>

The RPC response.

Overrides

DisableProcessorAsync(DisableProcessorRequest, CallSettings)

public override async Task<Operation<DisableProcessorResponse, DisableProcessorMetadata>> DisableProcessorAsync(DisableProcessorRequest request, CallSettings callSettings = null)

Disables a processor

Parameters
NameDescription
requestDisableProcessorRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription