@@ -396,27 +396,19 @@ message Document {
396
396
// known. If this field is present, the 'text' field is still populated.
397
397
oneof structured_value {
398
398
// 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
402
400
google.type.Money money_value = 2 ;
403
401
404
402
// 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
408
404
google.type.Date date_value = 3 ;
409
405
410
406
// 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
414
408
google.type.DateTime datetime_value = 4 ;
415
409
416
410
// 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
420
412
google.type.PostalAddress address_value = 5 ;
421
413
422
414
// Boolean value. Can be used for entities with binary values, or for
@@ -434,18 +426,18 @@ message Document {
434
426
string text = 1 [(google.api.field_behavior ) = REQUIRED ];
435
427
}
436
428
437
- // Provenance of the entity.
429
+ // Optional. Provenance of the entity.
438
430
// 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 ] ;
440
432
441
433
// Entity type from a schema e.g. `Address`.
442
434
string type = 2 ;
443
435
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 ] ;
446
438
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 ] ;
449
441
450
442
// Optional. Confidence of detected Schema entity. Range [0, 1].
451
443
float confidence = 5 [(google.api.field_behavior ) = OPTIONAL ];
@@ -594,9 +586,12 @@ message Document {
594
586
// Element is requested for human review.
595
587
EVAL_REQUESTED = 4 ;
596
588
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.
599
591
EVAL_APPROVED = 5 ;
592
+
593
+ // Element is skipped in the validation process.
594
+ EVAL_SKIPPED = 6 ;
600
595
}
601
596
602
597
// The index of the revision that produced this element.
@@ -669,26 +664,26 @@ message Document {
669
664
670
665
// Original source document from the user.
671
666
oneof source {
672
- // Currently supports Google Cloud Storage URI of the form
667
+ // Optional. Currently supports Google Cloud Storage URI of the form
673
668
// `gs://bucket_name/object_name`. Object versioning is not supported.
674
669
// See [Google Cloud Storage Request
675
670
// URIs](https://cloud.google.com/storage/docs/reference-uris) for more
676
671
// info.
677
- string uri = 1 ;
672
+ string uri = 1 [ (google.api .field_behavior ) = OPTIONAL ] ;
678
673
679
- // Inline document content, represented as a stream of bytes.
674
+ // Optional. Inline document content, represented as a stream of bytes.
680
675
// Note: As with all `bytes` fields, protobuffers use a pure binary
681
676
// representation, whereas JSON representations use base64.
682
- bytes content = 2 ;
677
+ bytes content = 2 [ (google.api .field_behavior ) = OPTIONAL ] ;
683
678
}
684
679
685
680
// An IANA published MIME type (also referred to as media type). For more
686
681
// information, see
687
682
// https://www.iana.org/assignments/media-types/media-types.xhtml.
688
683
string mime_type = 3 ;
689
684
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 ] ;
692
687
693
688
// Styles for the [Document.text][google.cloud.documentai.v1beta3.Document.text].
694
689
repeated Style text_styles = 5 ;
0 commit comments