Skip to content

Commit

Permalink
feat: add EVAL_SKIPPED value to the Provenance.OperationType enum (#191)
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 363478455
Source-Author: Google APIs <noreply@google.com>
Source-Date: Wed Mar 17 12:20:53 2021 -0700
Source-Repo: googleapis/googleapis
Source-Sha: 4fb2f3e141fb4a62c434e1964db0fd2f2763aa08
Source-Link: googleapis/googleapis@4fb2f3e
  • Loading branch information
yoshi-automation committed Apr 7, 2021
1 parent 0db54a1 commit d328de0
Show file tree
Hide file tree
Showing 5 changed files with 58 additions and 36 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -396,27 +396,19 @@ message Document {
// known. If this field is present, the 'text' field is still populated.
oneof structured_value {
// Money value. See also:
//
// https:
// github.com/googleapis/googleapis/blob/master/google/type/money.proto
// https://github.com/googleapis/googleapis/blob/master/google/type/money.proto
google.type.Money money_value = 2;

// Date value. Includes year, month, day. See also:
//
// https:
// github.com/googleapis/googleapis/blob/master/google/type/date.proto
// https://github.com/googleapis/googleapis/blob/master/google/type/date.proto
google.type.Date date_value = 3;

// DateTime value. Includes date, time, and timezone. See also:
//
// https:
// github.com/googleapis/googleapis/blob/master/google/type/datetime.proto
// https://github.com/googleapis/googleapis/blob/master/google/type/datetime.proto
google.type.DateTime datetime_value = 4;

// Postal address. See also:
//
// https:
// github.com/googleapis/googleapis/blob/master/google/type/postal_address.proto
// 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
Expand All @@ -434,18 +426,18 @@ message Document {
string text = 1 [(google.api.field_behavior) = REQUIRED];
}

// Provenance of the entity.
// Optional. Provenance of the entity.
// Text anchor indexing into the [Document.text][google.cloud.documentai.v1beta3.Document.text].
TextAnchor text_anchor = 1;
TextAnchor text_anchor = 1 [(google.api.field_behavior) = OPTIONAL];

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

// Text value in the document e.g. `1600 Amphitheatre Pkwy`.
string mention_text = 3;
// Optional. Text value in the document e.g. `1600 Amphitheatre Pkwy`.
string mention_text = 3 [(google.api.field_behavior) = OPTIONAL];

// Deprecated. Use `id` field instead.
string mention_id = 4;
// Optional. Deprecated. Use `id` field instead.
string mention_id = 4 [(google.api.field_behavior) = OPTIONAL];

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

// Element is review and approved at human review, confidence will be set
// to 1.0
// Element is reviewed and approved at human review, confidence will be
// set to 1.0.
EVAL_APPROVED = 5;

// Element is skipped in the validation process.
EVAL_SKIPPED = 6;
}

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

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

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

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

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

// Styles for the [Document.text][google.cloud.documentai.v1beta3.Document.text].
repeated Style text_styles = 5;
Expand Down
3 changes: 2 additions & 1 deletion packages/google-cloud-documentai/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions packages/google-cloud-documentai/protos/protos.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 26 additions & 7 deletions packages/google-cloud-documentai/protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions packages/google-cloud-documentai/synth.metadata
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
"sha": "0c6dd7aa98ebee634ec62568237f7ee17034ad08",
"internalRef": "361590205"
"sha": "4fb2f3e141fb4a62c434e1964db0fd2f2763aa08",
"internalRef": "363478455"
}
},
{
Expand Down

0 comments on commit d328de0

Please sign in to comment.