Skip to content

Commit

Permalink
feat: Update documentai/v1beta3 protos: add support for boolean norma…
Browse files Browse the repository at this point in the history
…lized value

PiperOrigin-RevId: 359109762
  • Loading branch information
Google APIs authored and copybara-github committed Feb 23, 2021
1 parent d853543 commit 8c058c5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 5 deletions.
11 changes: 8 additions & 3 deletions google/cloud/documentai/v1beta3/document.proto
Original file line number Diff line number Diff line change
Expand Up @@ -418,6 +418,10 @@ message Document {
// https:
// github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto
google.type.PostalAddress address_value = 5;

// Boolean value. Can be used for entities with binary values, or for
// checkboxes.
bool boolean_value = 6;
}

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

// Canonical id. This will be a unique value in the entity list
// Optional. Canonical id. This will be a unique value in the entity list
// for this document.
string id = 7;
string id = 7 [(google.api.field_behavior) = OPTIONAL];

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

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

// Optional. The type of the layout element that is being referenced if any.
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/documentai/v1beta3/document_io.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2020 Google LLC
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/documentai/v1beta3/geometry.proto
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2020 Google LLC
// Copyright 2021 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down

0 comments on commit 8c058c5

Please sign in to comment.