Skip to content

Commit 8c058c5

Browse files
Google APIscopybara-github
authored andcommitted
feat: Update documentai/v1beta3 protos: add support for boolean normalized value
PiperOrigin-RevId: 359109762
1 parent d853543 commit 8c058c5

3 files changed

Lines changed: 10 additions & 5 deletions

File tree

google/cloud/documentai/v1beta3/document.proto

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,10 @@ message Document {
418418
// https:
419419
// github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto
420420
google.type.PostalAddress address_value = 5;
421+
422+
// Boolean value. Can be used for entities with binary values, or for
423+
// checkboxes.
424+
bool boolean_value = 6;
421425
}
422426

423427
// Required. Normalized entity value stored as a string. This field is populated for
@@ -450,9 +454,9 @@ message Document {
450454
// page where it was found.
451455
PageAnchor page_anchor = 6 [(google.api.field_behavior) = OPTIONAL];
452456

453-
// Canonical id. This will be a unique value in the entity list
457+
// Optional. Canonical id. This will be a unique value in the entity list
454458
// for this document.
455-
string id = 7;
459+
string id = 7 [(google.api.field_behavior) = OPTIONAL];
456460

457461
// Optional. Normalized entity value. Absent if the extracted value could not be
458462
// converted or the type (e.g. address) is not supported for certain
@@ -559,7 +563,8 @@ message Document {
559563
FORM_FIELD = 7;
560564
}
561565

562-
// Required. Index into the [Document.pages][google.cloud.documentai.v1beta3.Document.pages] element
566+
// Required. Index into the [Document.pages][google.cloud.documentai.v1beta3.Document.pages] element, for example using
567+
// [Document.pages][page_refs.page] to locate the related page element.
563568
int64 page = 1 [(google.api.field_behavior) = REQUIRED];
564569

565570
// Optional. The type of the layout element that is being referenced if any.

google/cloud/documentai/v1beta3/document_io.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

google/cloud/documentai/v1beta3/geometry.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Google LLC
1+
// Copyright 2021 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)