Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

feat: Added Training and Evaluation functions, request, responses and metadata to document_processor_service.proto #463

Merged
merged 2 commits into from
Feb 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions google/cloud/documentai/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,18 @@
EnableProcessorMetadata,
EnableProcessorRequest,
EnableProcessorResponse,
EvaluateProcessorVersionMetadata,
EvaluateProcessorVersionRequest,
EvaluateProcessorVersionResponse,
FetchProcessorTypesRequest,
FetchProcessorTypesResponse,
GetEvaluationRequest,
GetProcessorRequest,
GetProcessorTypeRequest,
GetProcessorVersionRequest,
HumanReviewStatus,
ListEvaluationsRequest,
ListEvaluationsResponse,
ListProcessorsRequest,
ListProcessorsResponse,
ListProcessorTypesRequest,
Expand All @@ -72,11 +78,15 @@
SetDefaultProcessorVersionMetadata,
SetDefaultProcessorVersionRequest,
SetDefaultProcessorVersionResponse,
TrainProcessorVersionMetadata,
TrainProcessorVersionRequest,
TrainProcessorVersionResponse,
UndeployProcessorVersionMetadata,
UndeployProcessorVersionRequest,
UndeployProcessorVersionResponse,
)
from google.cloud.documentai_v1.types.document_schema import DocumentSchema
from google.cloud.documentai_v1.types.evaluation import Evaluation, EvaluationReference
from google.cloud.documentai_v1.types.geometry import (
BoundingPoly,
NormalizedVertex,
Expand Down Expand Up @@ -114,12 +124,18 @@
"EnableProcessorMetadata",
"EnableProcessorRequest",
"EnableProcessorResponse",
"EvaluateProcessorVersionMetadata",
"EvaluateProcessorVersionRequest",
"EvaluateProcessorVersionResponse",
"FetchProcessorTypesRequest",
"FetchProcessorTypesResponse",
"GetEvaluationRequest",
"GetProcessorRequest",
"GetProcessorTypeRequest",
"GetProcessorVersionRequest",
"HumanReviewStatus",
"ListEvaluationsRequest",
"ListEvaluationsResponse",
"ListProcessorsRequest",
"ListProcessorsResponse",
"ListProcessorTypesRequest",
Expand All @@ -134,10 +150,15 @@
"SetDefaultProcessorVersionMetadata",
"SetDefaultProcessorVersionRequest",
"SetDefaultProcessorVersionResponse",
"TrainProcessorVersionMetadata",
"TrainProcessorVersionRequest",
"TrainProcessorVersionResponse",
"UndeployProcessorVersionMetadata",
"UndeployProcessorVersionRequest",
"UndeployProcessorVersionResponse",
"DocumentSchema",
"Evaluation",
"EvaluationReference",
"BoundingPoly",
"NormalizedVertex",
"Vertex",
Expand Down
21 changes: 21 additions & 0 deletions google/cloud/documentai_v1/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,12 +50,18 @@
EnableProcessorMetadata,
EnableProcessorRequest,
EnableProcessorResponse,
EvaluateProcessorVersionMetadata,
EvaluateProcessorVersionRequest,
EvaluateProcessorVersionResponse,
FetchProcessorTypesRequest,
FetchProcessorTypesResponse,
GetEvaluationRequest,
GetProcessorRequest,
GetProcessorTypeRequest,
GetProcessorVersionRequest,
HumanReviewStatus,
ListEvaluationsRequest,
ListEvaluationsResponse,
ListProcessorsRequest,
ListProcessorsResponse,
ListProcessorTypesRequest,
Expand All @@ -70,11 +76,15 @@
SetDefaultProcessorVersionMetadata,
SetDefaultProcessorVersionRequest,
SetDefaultProcessorVersionResponse,
TrainProcessorVersionMetadata,
TrainProcessorVersionRequest,
TrainProcessorVersionResponse,
UndeployProcessorVersionMetadata,
UndeployProcessorVersionRequest,
UndeployProcessorVersionResponse,
)
from .types.document_schema import DocumentSchema
from .types.evaluation import Evaluation, EvaluationReference
from .types.geometry import BoundingPoly, NormalizedVertex, Vertex
from .types.operation_metadata import CommonOperationMetadata
from .types.processor import Processor, ProcessorVersion
Expand Down Expand Up @@ -107,15 +117,23 @@
"EnableProcessorMetadata",
"EnableProcessorRequest",
"EnableProcessorResponse",
"EvaluateProcessorVersionMetadata",
"EvaluateProcessorVersionRequest",
"EvaluateProcessorVersionResponse",
"Evaluation",
"EvaluationReference",
"FetchProcessorTypesRequest",
"FetchProcessorTypesResponse",
"GcsDocument",
"GcsDocuments",
"GcsPrefix",
"GetEvaluationRequest",
"GetProcessorRequest",
"GetProcessorTypeRequest",
"GetProcessorVersionRequest",
"HumanReviewStatus",
"ListEvaluationsRequest",
"ListEvaluationsResponse",
"ListProcessorTypesRequest",
"ListProcessorTypesResponse",
"ListProcessorVersionsRequest",
Expand All @@ -135,6 +153,9 @@
"SetDefaultProcessorVersionMetadata",
"SetDefaultProcessorVersionRequest",
"SetDefaultProcessorVersionResponse",
"TrainProcessorVersionMetadata",
"TrainProcessorVersionRequest",
"TrainProcessorVersionResponse",
"UndeployProcessorVersionMetadata",
"UndeployProcessorVersionRequest",
"UndeployProcessorVersionResponse",
Expand Down
60 changes: 60 additions & 0 deletions google/cloud/documentai_v1/gapic_metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,21 @@
"enable_processor"
]
},
"EvaluateProcessorVersion": {
"methods": [
"evaluate_processor_version"
]
},
"FetchProcessorTypes": {
"methods": [
"fetch_processor_types"
]
},
"GetEvaluation": {
"methods": [
"get_evaluation"
]
},
"GetProcessor": {
"methods": [
"get_processor"
Expand All @@ -65,6 +75,11 @@
"get_processor_version"
]
},
"ListEvaluations": {
"methods": [
"list_evaluations"
]
},
"ListProcessorTypes": {
"methods": [
"list_processor_types"
Expand Down Expand Up @@ -95,6 +110,11 @@
"set_default_processor_version"
]
},
"TrainProcessorVersion": {
"methods": [
"train_processor_version"
]
},
"UndeployProcessorVersion": {
"methods": [
"undeploy_processor_version"
Expand Down Expand Up @@ -140,11 +160,21 @@
"enable_processor"
]
},
"EvaluateProcessorVersion": {
"methods": [
"evaluate_processor_version"
]
},
"FetchProcessorTypes": {
"methods": [
"fetch_processor_types"
]
},
"GetEvaluation": {
"methods": [
"get_evaluation"
]
},
"GetProcessor": {
"methods": [
"get_processor"
Expand All @@ -160,6 +190,11 @@
"get_processor_version"
]
},
"ListEvaluations": {
"methods": [
"list_evaluations"
]
},
"ListProcessorTypes": {
"methods": [
"list_processor_types"
Expand Down Expand Up @@ -190,6 +225,11 @@
"set_default_processor_version"
]
},
"TrainProcessorVersion": {
"methods": [
"train_processor_version"
]
},
"UndeployProcessorVersion": {
"methods": [
"undeploy_processor_version"
Expand Down Expand Up @@ -235,11 +275,21 @@
"enable_processor"
]
},
"EvaluateProcessorVersion": {
"methods": [
"evaluate_processor_version"
]
},
"FetchProcessorTypes": {
"methods": [
"fetch_processor_types"
]
},
"GetEvaluation": {
"methods": [
"get_evaluation"
]
},
"GetProcessor": {
"methods": [
"get_processor"
Expand All @@ -255,6 +305,11 @@
"get_processor_version"
]
},
"ListEvaluations": {
"methods": [
"list_evaluations"
]
},
"ListProcessorTypes": {
"methods": [
"list_processor_types"
Expand Down Expand Up @@ -285,6 +340,11 @@
"set_default_processor_version"
]
},
"TrainProcessorVersion": {
"methods": [
"train_processor_version"
]
},
"UndeployProcessorVersion": {
"methods": [
"undeploy_processor_version"
Expand Down
Loading