Skip to content

Commit 4fb2f3e

Browse files
Google APIscopybara-github
Google APIs
authored andcommitted
feat: add EVAL_SKIPPED value to the Provenance.OperationType enum in document.proto.
PiperOrigin-RevId: 363478455
1 parent a941929 commit 4fb2f3e

File tree

1 file changed

+21
-26
lines changed

1 file changed

+21
-26
lines changed

google/cloud/documentai/v1beta3/document.proto

+21-26
Original file line numberDiff line numberDiff line change
@@ -396,27 +396,19 @@ message Document {
396396
// known. If this field is present, the 'text' field is still populated.
397397
oneof structured_value {
398398
// Money value. See also:
399-
//
400-
// https:
401-
// github.com/googleapis/googleapis/blob/master/google/type/money.proto
399+
// https://github.com/googleapis/googleapis/blob/master/google/type/money.proto
402400
google.type.Money money_value = 2;
403401

404402
// Date value. Includes year, month, day. See also:
405-
//
406-
// https:
407-
// github.com/googleapis/googleapis/blob/master/google/type/date.proto
403+
// https://github.com/googleapis/googleapis/blob/master/google/type/date.proto
408404
google.type.Date date_value = 3;
409405

410406
// DateTime value. Includes date, time, and timezone. See also:
411-
//
412-
// https:
413-
// github.com/googleapis/googleapis/blob/master/google/type/datetime.proto
407+
// https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto
414408
google.type.DateTime datetime_value = 4;
415409

416410
// Postal address. See also:
417-
//
418-
// https:
419-
// github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto
411+
// https://github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto
420412
google.type.PostalAddress address_value = 5;
421413

422414
// Boolean value. Can be used for entities with binary values, or for
@@ -434,18 +426,18 @@ message Document {
434426
string text = 1 [(google.api.field_behavior) = REQUIRED];
435427
}
436428

437-
// Provenance of the entity.
429+
// Optional. Provenance of the entity.
438430
// Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text].
439-
TextAnchor text_anchor = 1;
431+
TextAnchor text_anchor = 1 [(google.api.field_behavior) = OPTIONAL];
440432

441433
// Entity type from a schema e.g. `Address`.
442434
string type = 2;
443435

444-
// Text value in the document e.g. `1600 Amphitheatre Pkwy`.
445-
string mention_text = 3;
436+
// Optional. Text value in the document e.g. `1600 Amphitheatre Pkwy`.
437+
string mention_text = 3 [(google.api.field_behavior) = OPTIONAL];
446438

447-
// Deprecated. Use `id` field instead.
448-
string mention_id = 4;
439+
// Optional. Deprecated. Use `id` field instead.
440+
string mention_id = 4 [(google.api.field_behavior) = OPTIONAL];
449441

450442
// Optional. Confidence of detected Schema entity. Range [0, 1].
451443
float confidence = 5 [(google.api.field_behavior) = OPTIONAL];
@@ -594,9 +586,12 @@ message Document {
594586
// Element is requested for human review.
595587
EVAL_REQUESTED = 4;
596588

597-
// Element is review and approved at human review, confidence will be set
598-
// to 1.0
589+
// Element is reviewed and approved at human review, confidence will be
590+
// set to 1.0.
599591
EVAL_APPROVED = 5;
592+
593+
// Element is skipped in the validation process.
594+
EVAL_SKIPPED = 6;
600595
}
601596

602597
// The index of the revision that produced this element.
@@ -669,26 +664,26 @@ message Document {
669664

670665
// Original source document from the user.
671666
oneof source {
672-
// Currently supports Google Cloud Storage URI of the form
667+
// Optional. Currently supports Google Cloud Storage URI of the form
673668
// `gs://bucket_name/object_name`. Object versioning is not supported.
674669
// See [Google Cloud Storage Request
675670
// URIs](https://cloud.google.com/storage/docs/reference-uris) for more
676671
// info.
677-
string uri = 1;
672+
string uri = 1 [(google.api.field_behavior) = OPTIONAL];
678673

679-
// Inline document content, represented as a stream of bytes.
674+
// Optional. Inline document content, represented as a stream of bytes.
680675
// Note: As with all `bytes` fields, protobuffers use a pure binary
681676
// representation, whereas JSON representations use base64.
682-
bytes content = 2;
677+
bytes content = 2 [(google.api.field_behavior) = OPTIONAL];
683678
}
684679

685680
// An IANA published MIME type (also referred to as media type). For more
686681
// information, see
687682
// https://www.iana.org/assignments/media-types/media-types.xhtml.
688683
string mime_type = 3;
689684

690-
// UTF-8 encoded text in reading order from the document.
691-
string text = 4;
685+
// Optional. UTF-8 encoded text in reading order from the document.
686+
string text = 4 [(google.api.field_behavior) = OPTIONAL];
692687

693688
// Styles for the [Document.text][google.cloud.documentai.v1beta3.Document.text].
694689
repeated Style text_styles = 5;

0 commit comments

Comments
 (0)