Class DocumentProcessorServiceConnection (2.13.0)

This interface defines virtual methods for each of the user-facing overload sets in DocumentProcessorServiceClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type DocumentProcessorServiceClient.

To create a concrete instance, see MakeDocumentProcessorServiceConnection().

For mocking, see documentai_v1_mocks::MockDocumentProcessorServiceConnection.

Functions

virtual options()

Returns
Type Description
Options

virtual ProcessDocument(google::cloud::documentai::v1::ProcessRequest const &)

Parameter
Name Description
request google::cloud::documentai::v1::ProcessRequest const &
Returns
Type Description
StatusOr< google::cloud::documentai::v1::ProcessResponse >

virtual BatchProcessDocuments(google::cloud::documentai::v1::BatchProcessRequest const &)

Parameter
Name Description
request google::cloud::documentai::v1::BatchProcessRequest const &
Returns
Type Description
future< StatusOr< google::cloud::documentai::v1::BatchProcessResponse > >

virtual FetchProcessorTypes(google::cloud::documentai::v1::FetchProcessorTypesRequest const &)

Parameter
Name Description
request google::cloud::documentai::v1::FetchProcessorTypesRequest const &
Returns
Type Description
StatusOr< google::cloud::documentai::v1::FetchProcessorTypesResponse >

virtual ListProcessorTypes(google::cloud::documentai::v1::ListProcessorTypesRequest)

Parameter
Name Description
request google::cloud::documentai::v1::ListProcessorTypesRequest
Returns
Type Description
StreamRange< google::cloud::documentai::v1::ProcessorType >

virtual GetProcessorType(google::cloud::documentai::v1::GetProcessorTypeRequest const &)

Parameter
Name Description
request google::cloud::documentai::v1::GetProcessorTypeRequest const &
Returns
Type Description
StatusOr< google::cloud::documentai::v1::ProcessorType >

virtual ListProcessors(google::cloud::documentai::v1::ListProcessorsRequest)

Parameter
Name Description
request google::cloud::documentai::v1::ListProcessorsRequest
Returns
Type Description
StreamRange< google::cloud::documentai::v1::Processor >

virtual GetProcessor(google::cloud::documentai::v1::GetProcessorRequest const &)

Parameter
Name Description
request google::cloud::documentai::v1::GetProcessorRequest const &
Returns
Type Description
StatusOr< google::cloud::documentai::v1::Processor >

virtual TrainProcessorVersion(google::cloud::documentai::v1::TrainProcessorVersionRequest const &)

Parameter
Name Description
request google::cloud::documentai::v1::TrainProcessorVersionRequest const &
Returns
Type Description
future< StatusOr< google::cloud::documentai::v1::TrainProcessorVersionResponse > >

virtual GetProcessorVersion(google::cloud::documentai::v1::GetProcessorVersionRequest const &)

Parameter
Name Description
request google::cloud::documentai::v1::GetProcessorVersionRequest const &
Returns
Type Description
StatusOr< google::cloud::documentai::v1::ProcessorVersion >

virtual ListProcessorVersions(google::cloud::documentai::v1::ListProcessorVersionsRequest)

Parameter
Name Description
request google::cloud::documentai::v1::ListProcessorVersionsRequest
Returns
Type Description
StreamRange< google::cloud::documentai::v1::ProcessorVersion >

virtual DeleteProcessorVersion(google::cloud::documentai::v1::DeleteProcessorVersionRequest const &)

Parameter
Name Description
request google::cloud::documentai::v1::DeleteProcessorVersionRequest const &
Returns
Type Description
future< StatusOr< google::cloud::documentai::v1::DeleteProcessorVersionMetadata > >

virtual DeployProcessorVersion(google::cloud::documentai::v1::DeployProcessorVersionRequest const &)

Parameter
Name Description
request google::cloud::documentai::v1::DeployProcessorVersionRequest const &
Returns
Type Description
future< StatusOr< google::cloud::documentai::v1::DeployProcessorVersionResponse > >

virtual UndeployProcessorVersion(google::cloud::documentai::v1::UndeployProcessorVersionRequest const &)

Parameter
Name Description
request google::cloud::documentai::v1::UndeployProcessorVersionRequest const &
Returns
Type Description
future< StatusOr< google::cloud::documentai::v1::UndeployProcessorVersionResponse > >

virtual CreateProcessor(google::cloud::documentai::v1::CreateProcessorRequest const &)

Parameter
Name Description
request google::cloud::documentai::v1::CreateProcessorRequest const &
Returns
Type Description
StatusOr< google::cloud::documentai::v1::Processor >

virtual DeleteProcessor(google::cloud::documentai::v1::DeleteProcessorRequest const &)

Parameter
Name Description
request google::cloud::documentai::v1::DeleteProcessorRequest const &
Returns
Type Description
future< StatusOr< google::cloud::documentai::v1::DeleteProcessorMetadata > >

virtual EnableProcessor(google::cloud::documentai::v1::EnableProcessorRequest const &)

Parameter
Name Description
request google::cloud::documentai::v1::EnableProcessorRequest const &
Returns
Type Description
future< StatusOr< google::cloud::documentai::v1::EnableProcessorResponse > >

virtual DisableProcessor(google::cloud::documentai::v1::DisableProcessorRequest const &)

Parameter
Name Description
request google::cloud::documentai::v1::DisableProcessorRequest const &
Returns
Type Description
future< StatusOr< google::cloud::documentai::v1::DisableProcessorResponse > >

virtual SetDefaultProcessorVersion(google::cloud::documentai::v1::SetDefaultProcessorVersionRequest const &)

Parameter
Name Description
request google::cloud::documentai::v1::SetDefaultProcessorVersionRequest const &
Returns
Type Description
future< StatusOr< google::cloud::documentai::v1::SetDefaultProcessorVersionResponse > >

virtual ReviewDocument(google::cloud::documentai::v1::ReviewDocumentRequest const &)

Parameter
Name Description
request google::cloud::documentai::v1::ReviewDocumentRequest const &
Returns
Type Description
future< StatusOr< google::cloud::documentai::v1::ReviewDocumentResponse > >

virtual EvaluateProcessorVersion(google::cloud::documentai::v1::EvaluateProcessorVersionRequest const &)

Parameter
Name Description
request google::cloud::documentai::v1::EvaluateProcessorVersionRequest const &
Returns
Type Description
future< StatusOr< google::cloud::documentai::v1::EvaluateProcessorVersionResponse > >

virtual GetEvaluation(google::cloud::documentai::v1::GetEvaluationRequest const &)

Parameter
Name Description
request google::cloud::documentai::v1::GetEvaluationRequest const &
Returns
Type Description
StatusOr< google::cloud::documentai::v1::Evaluation >

virtual ListEvaluations(google::cloud::documentai::v1::ListEvaluationsRequest)

Parameter
Name Description
request google::cloud::documentai::v1::ListEvaluationsRequest
Returns
Type Description
StreamRange< google::cloud::documentai::v1::Evaluation >