Skip to content

Commit

Permalink
feat: add EVAL_SKIPPED value to the Provenance.OperationType enum in …
Browse files Browse the repository at this point in the history
…document.proto.

PiperOrigin-RevId: 363478455
  • Loading branch information
Google APIs authored and copybara-github committed Mar 17, 2021
1 parent a941929 commit 4fb2f3e
Showing 1 changed file with 21 additions and 26 deletions.
47 changes: 21 additions & 26 deletions google/cloud/documentai/v1beta3/document.proto
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

0 comments on commit 4fb2f3e

Please sign in to comment.