Content-Length: 467027 | pFad | https://github.com/googleapis/googleapis/commit/a2cdee8aeb9238bb3c422e1e2acfa03a106cac00

28 feat: Added EvaluationReference to evaluation.proto · googleapis/googleapis@a2cdee8 · GitHub
Skip to content

Commit a2cdee8

Browse files
Google APIscopybara-github
Google APIs
authored andcommitted
feat: Added EvaluationReference to evaluation.proto
feat: Added latest_evaluation to processor.proto chore!: Updated TrainProcessorVersion parent to correctly be a Processor, rather than ProcessorVersion BREAKING CHANGE: The TrainProcessorVersion parent was incorrectly annotated. PiperOrigin-RevId: 507577968
1 parent b213338 commit a2cdee8

File tree

4 files changed

+43
-13
lines changed

4 files changed

+43
-13
lines changed

google/cloud/documentai/v1beta3/document.proto

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -739,22 +739,29 @@ message Document {
739739
// Remove an element identified by `parent`.
740740
REMOVE = 2;
741741

742-
// Replace an element identified by `parent`.
743-
REPLACE = 3;
742+
// Updates any fields within the given provenance scope of the message. It
743+
// 'overwrites' the fields rather than replacing them. This is
744+
// especially relevant when we just want to update a field value of an
745+
// entity without also affecting all the child properties.
746+
UPDATE = 7;
744747

745-
// Request human review for the element identified by `parent`.
746-
EVAL_REQUESTED = 4;
748+
// Currently unused. Replace an element identified by `parent`.
749+
REPLACE = 3 [deprecated = true];
747750

748-
// Element is reviewed and approved at human review, confidence will be
749-
// set to 1.0.
750-
EVAL_APPROVED = 5;
751+
// Deprecated. Request human review for the element identified by
752+
// `parent`.
753+
EVAL_REQUESTED = 4 [deprecated = true];
751754

752-
// Element is skipped in the validation process.
753-
EVAL_SKIPPED = 6;
755+
// Deprecated. Element is reviewed and approved at human review,
756+
// confidence will be set to 1.0.
757+
EVAL_APPROVED = 5 [deprecated = true];
758+
759+
// Deprecated. Element is skipped in the validation process.
760+
EVAL_SKIPPED = 6 [deprecated = true];
754761
}
755762

756763
// The index of the revision that produced this element.
757-
int32 revision = 1;
764+
int32 revision = 1 [deprecated = true];
758765

759766
// The Id of this operation. Needs to be unique within the scope of the
760767
// revision.
@@ -790,7 +797,8 @@ message Document {
790797
string processor = 5;
791798
}
792799

793-
// Id of the revision. Unique within the context of the document.
800+
// Id of the revision, internally generated by doc proto storage.
801+
// Unique within the context of the document.
794802
string id = 1;
795803

796804
// The revisions that this revision is based on. This can include one or
@@ -803,7 +811,8 @@ message Document {
803811
// `provenance.parent.revision` fields that index into this field.
804812
repeated string parent_ids = 7;
805813

806-
// The time that the revision was created.
814+
// The time that the revision was created, internally generated by
815+
// doc proto storage at the time of create.
807816
google.protobuf.Timestamp create_time = 3;
808817

809818
// Human Review information of this revision.

google/cloud/documentai/v1beta3/document_processor_service.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -879,7 +879,7 @@ message TrainProcessorVersionRequest {
879879
string parent = 1 [
880880
(google.api.field_behavior) = REQUIRED,
881881
(google.api.resource_reference) = {
882-
child_type: "documentai.googleapis.com/ProcessorVersion"
882+
type: "documentai.googleapis.com/Processor"
883883
}
884884
];
885885

google/cloud/documentai/v1beta3/evaluation.proto

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,23 @@ option java_package = "com.google.cloud.documentai.v1beta3";
2727
option php_namespace = "Google\\Cloud\\DocumentAI\\V1beta3";
2828
option ruby_package = "Google::Cloud::DocumentAI::V1beta3";
2929

30+
// Gives a short summary of an evaluation, and links to the evaluation itself.
31+
message EvaluationReference {
32+
// The resource name of the Long Running Operation for the evaluation.
33+
string operation = 1;
34+
35+
// The resource name of the evaluation.
36+
string evaluation = 2 [(google.api.resource_reference) = {
37+
type: "documentai.googleapis.com/Evaluation"
38+
}];
39+
40+
// An aggregate of the statistics for the evaluation with fuzzy matching on.
41+
Evaluation.Metrics aggregate_metrics = 4;
42+
43+
// An aggregate of the statistics for the evaluation with fuzzy matching off.
44+
Evaluation.Metrics aggregate_metrics_exact = 5;
45+
}
46+
3047
// An evaluation of a ProcessorVersion's performance.
3148
message Evaluation {
3249
option (google.api.resource) = {

google/cloud/documentai/v1beta3/processor.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ package google.cloud.documentai.v1beta3;
1919
import "google/api/field_behavior.proto";
2020
import "google/api/resource.proto";
2121
import "google/cloud/documentai/v1beta3/document_schema.proto";
22+
import "google/cloud/documentai/v1beta3/evaluation.proto";
2223
import "google/protobuf/timestamp.proto";
2324

2425
option csharp_namespace = "Google.Cloud.DocumentAI.V1Beta3";
@@ -96,6 +97,9 @@ message ProcessorVersion {
9697
// The time the processor version was created.
9798
google.protobuf.Timestamp create_time = 7;
9899

100+
// The most recently invoked evaluation for the processor version.
101+
EvaluationReference latest_evaluation = 8;
102+
99103
// The KMS key name used for encryption.
100104
string kms_key_name = 9;
101105

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/googleapis/googleapis/commit/a2cdee8aeb9238bb3c422e1e2acfa03a106cac00

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy