diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Document.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Document.java index bc73806c..6379e3cb 100644 --- a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Document.java +++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/Document.java @@ -34289,11 +34289,11 @@ public interface EntityOrBuilder * * *
- * 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];
*
* @return The id.
*/
@@ -34302,11 +34302,11 @@ public interface EntityOrBuilder
*
*
* - * 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];
*
* @return The bytes for id.
*/
@@ -34870,6 +34870,20 @@ public interface NormalizedValueOrBuilder
*/
com.google.type.PostalAddressOrBuilder getAddressValueOrBuilder();
+ /**
+ *
+ *
+ * + * Boolean value. Can be used for entities with binary values, or for + * checkboxes. + *+ * + *
bool boolean_value = 6;
+ *
+ * @return The booleanValue.
+ */
+ boolean getBooleanValue();
+
/**
*
*
@@ -35027,6 +35041,12 @@ private NormalizedValue(
structuredValueCase_ = 5;
break;
}
+ case 48:
+ {
+ structuredValueCase_ = 6;
+ structuredValue_ = input.readBool();
+ break;
+ }
default:
{
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -35073,6 +35093,7 @@ public enum StructuredValueCase
DATE_VALUE(3),
DATETIME_VALUE(4),
ADDRESS_VALUE(5),
+ BOOLEAN_VALUE(6),
STRUCTUREDVALUE_NOT_SET(0);
private final int value;
@@ -35099,6 +35120,8 @@ public static StructuredValueCase forNumber(int value) {
return DATETIME_VALUE;
case 5:
return ADDRESS_VALUE;
+ case 6:
+ return BOOLEAN_VALUE;
case 0:
return STRUCTUREDVALUE_NOT_SET;
default:
@@ -35343,6 +35366,27 @@ public com.google.type.PostalAddressOrBuilder getAddressValueOrBuilder() {
return com.google.type.PostalAddress.getDefaultInstance();
}
+ public static final int BOOLEAN_VALUE_FIELD_NUMBER = 6;
+ /**
+ *
+ *
+ * + * Boolean value. Can be used for entities with binary values, or for + * checkboxes. + *+ * + *
bool boolean_value = 6;
+ *
+ * @return The booleanValue.
+ */
+ @java.lang.Override
+ public boolean getBooleanValue() {
+ if (structuredValueCase_ == 6) {
+ return (java.lang.Boolean) structuredValue_;
+ }
+ return false;
+ }
+
public static final int TEXT_FIELD_NUMBER = 1;
private volatile java.lang.Object text_;
/**
@@ -35431,6 +35475,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
if (structuredValueCase_ == 5) {
output.writeMessage(5, (com.google.type.PostalAddress) structuredValue_);
}
+ if (structuredValueCase_ == 6) {
+ output.writeBool(6, (boolean) ((java.lang.Boolean) structuredValue_));
+ }
unknownFields.writeTo(output);
}
@@ -35463,6 +35510,11 @@ public int getSerializedSize() {
com.google.protobuf.CodedOutputStream.computeMessageSize(
5, (com.google.type.PostalAddress) structuredValue_);
}
+ if (structuredValueCase_ == 6) {
+ size +=
+ com.google.protobuf.CodedOutputStream.computeBoolSize(
+ 6, (boolean) ((java.lang.Boolean) structuredValue_));
+ }
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
@@ -35494,6 +35546,9 @@ public boolean equals(final java.lang.Object obj) {
case 5:
if (!getAddressValue().equals(other.getAddressValue())) return false;
break;
+ case 6:
+ if (getBooleanValue() != other.getBooleanValue()) return false;
+ break;
case 0:
default:
}
@@ -35527,6 +35582,10 @@ public int hashCode() {
hash = (37 * hash) + ADDRESS_VALUE_FIELD_NUMBER;
hash = (53 * hash) + getAddressValue().hashCode();
break;
+ case 6:
+ hash = (37 * hash) + BOOLEAN_VALUE_FIELD_NUMBER;
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBooleanValue());
+ break;
case 0:
default:
}
@@ -35744,6 +35803,9 @@ public com.google.cloud.documentai.v1beta3.Document.Entity.NormalizedValue build
result.structuredValue_ = addressValueBuilder_.build();
}
}
+ if (structuredValueCase_ == 6) {
+ result.structuredValue_ = structuredValue_;
+ }
result.text_ = text_;
result.structuredValueCase_ = structuredValueCase_;
onBuilt();
@@ -35827,6 +35889,11 @@ public Builder mergeFrom(
mergeAddressValue(other.getAddressValue());
break;
}
+ case BOOLEAN_VALUE:
+ {
+ setBooleanValue(other.getBooleanValue());
+ break;
+ }
case STRUCTUREDVALUE_NOT_SET:
{
break;
@@ -36768,6 +36835,64 @@ public com.google.type.PostalAddressOrBuilder getAddressValueOrBuilder() {
return addressValueBuilder_;
}
+ /**
+ *
+ *
+ * + * Boolean value. Can be used for entities with binary values, or for + * checkboxes. + *+ * + *
bool boolean_value = 6;
+ *
+ * @return The booleanValue.
+ */
+ public boolean getBooleanValue() {
+ if (structuredValueCase_ == 6) {
+ return (java.lang.Boolean) structuredValue_;
+ }
+ return false;
+ }
+ /**
+ *
+ *
+ * + * Boolean value. Can be used for entities with binary values, or for + * checkboxes. + *+ * + *
bool boolean_value = 6;
+ *
+ * @param value The booleanValue to set.
+ * @return This builder for chaining.
+ */
+ public Builder setBooleanValue(boolean value) {
+ structuredValueCase_ = 6;
+ structuredValue_ = value;
+ onChanged();
+ return this;
+ }
+ /**
+ *
+ *
+ * + * Boolean value. Can be used for entities with binary values, or for + * checkboxes. + *+ * + *
bool boolean_value = 6;
+ *
+ * @return This builder for chaining.
+ */
+ public Builder clearBooleanValue() {
+ if (structuredValueCase_ == 6) {
+ structuredValueCase_ = 0;
+ structuredValue_ = null;
+ onChanged();
+ }
+ return this;
+ }
+
private java.lang.Object text_ = "";
/**
*
@@ -37236,11 +37361,11 @@ public com.google.cloud.documentai.v1beta3.Document.PageAnchor getPageAnchor() {
*
*
* - * 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];
*
* @return The id.
*/
@@ -37260,11 +37385,11 @@ public java.lang.String getId() {
*
*
* - * 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];
*
* @return The bytes for id.
*/
@@ -38866,11 +38991,11 @@ public Builder clearPageAnchor() {
*
*
* - * 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];
*
* @return The id.
*/
@@ -38889,11 +39014,11 @@ public java.lang.String getId() {
*
*
* - * 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];
*
* @return The bytes for id.
*/
@@ -38912,11 +39037,11 @@ public com.google.protobuf.ByteString getIdBytes() {
*
*
* - * 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];
*
* @param value The id to set.
* @return This builder for chaining.
@@ -38934,11 +39059,11 @@ public Builder setId(java.lang.String value) {
*
*
* - * 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];
*
* @return This builder for chaining.
*/
@@ -38952,11 +39077,11 @@ public Builder clearId() {
*
*
* - * 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];
*
* @param value The bytes for id to set.
* @return This builder for chaining.
@@ -44988,7 +45113,8 @@ public interface PageRefOrBuilder
*
*
* - * 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];
@@ -45497,7 +45623,8 @@ private LayoutType(int value) {
*
*
* - * 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];
@@ -46062,7 +46189,8 @@ public Builder mergeFrom(
*
*
* - * 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];
@@ -46077,7 +46205,8 @@ public long getPage() {
*
*
* - * 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];
@@ -46095,7 +46224,8 @@ public Builder setPage(long value) {
*
*
* - * 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];
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProto.java b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProto.java
index af6a0c38..ab154508 100644
--- a/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProto.java
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/java/com/google/cloud/documentai/v1beta3/DocumentProto.java
@@ -177,7 +177,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "proto\032\026google/type/date.proto\032\032google/ty"
+ "pe/datetime.proto\032\027google/type/money.pro"
+ "to\032 google/type/postal_address.proto\032\034go"
- + "ogle/api/annotations.proto\"\245<\n\010Document\022"
+ + "ogle/api/annotations.proto\"\303<\n\010Document\022"
+ "\r\n\003uri\030\001 \001(\tH\000\022\021\n\007content\030\002 \001(\014H\000\022\021\n\tmim"
+ "e_type\030\003 \001(\t\022\014\n\004text\030\004 \001(\t\022D\n\013text_style"
+ "s\030\005 \003(\0132/.google.cloud.documentai.v1beta"
@@ -307,76 +307,77 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "beta3.Document.Page.DetectedLanguage\022\022\n\n"
+ "value_type\030\005 \001(\t\032=\n\020DetectedLanguage\022\025\n\r"
+ "language_code\030\001 \001(\t\022\022\n\nconfidence\030\002 \001(\002\032"
- + "\207\006\n\006Entity\022I\n\013text_anchor\030\001 \001(\01324.google"
+ + "\245\006\n\006Entity\022I\n\013text_anchor\030\001 \001(\01324.google"
+ ".cloud.documentai.v1beta3.Document.TextA"
+ "nchor\022\014\n\004type\030\002 \001(\t\022\024\n\014mention_text\030\003 \001("
+ "\t\022\022\n\nmention_id\030\004 \001(\t\022\027\n\nconfidence\030\005 \001("
+ "\002B\003\340A\001\022N\n\013page_anchor\030\006 \001(\01324.google.clo"
+ "ud.documentai.v1beta3.Document.PageAncho"
- + "rB\003\340A\001\022\n\n\002id\030\007 \001(\t\022_\n\020normalized_value\030\t"
- + " \001(\0132@.google.cloud.documentai.v1beta3.D"
- + "ocument.Entity.NormalizedValueB\003\340A\001\022I\n\np"
- + "roperties\030\n \003(\01320.google.cloud.documenta"
- + "i.v1beta3.Document.EntityB\003\340A\001\022M\n\nproven"
- + "ance\030\013 \001(\01324.google.cloud.documentai.v1b"
- + "eta3.Document.ProvenanceB\003\340A\001\022\025\n\010redacte"
- + "d\030\014 \001(\010B\003\340A\001\032\362\001\n\017NormalizedValue\022)\n\013mone"
- + "y_value\030\002 \001(\0132\022.google.type.MoneyH\000\022\'\n\nd"
- + "ate_value\030\003 \001(\0132\021.google.type.DateH\000\022/\n\016"
- + "datetime_value\030\004 \001(\0132\025.google.type.DateT"
- + "imeH\000\0223\n\raddress_value\030\005 \001(\0132\032.google.ty"
- + "pe.PostalAddressH\000\022\021\n\004text\030\001 \001(\tB\003\340A\002B\022\n"
- + "\020structured_value\032I\n\016EntityRelation\022\022\n\ns"
- + "ubject_id\030\001 \001(\t\022\021\n\tobject_id\030\002 \001(\t\022\020\n\010re"
- + "lation\030\003 \001(\t\032\322\001\n\013Translation\022I\n\013text_anc"
- + "hor\030\001 \001(\01324.google.cloud.documentai.v1be"
- + "ta3.Document.TextAnchor\022\025\n\rlanguage_code"
- + "\030\002 \001(\t\022\027\n\017translated_text\030\003 \001(\t\022H\n\nprove"
- + "nance\030\004 \003(\01324.google.cloud.documentai.v1"
- + "beta3.Document.Provenance\032\255\001\n\nTextAnchor"
- + "\022W\n\rtext_segments\030\001 \003(\0132@.google.cloud.d"
- + "ocumentai.v1beta3.Document.TextAnchor.Te"
- + "xtSegment\022\017\n\007content\030\002 \001(\t\0325\n\013TextSegmen"
- + "t\022\023\n\013start_index\030\001 \001(\003\022\021\n\tend_index\030\002 \001("
- + "\003\032\316\003\n\nPageAnchor\022O\n\tpage_refs\030\001 \003(\0132<.go"
- + "ogle.cloud.documentai.v1beta3.Document.P"
- + "ageAnchor.PageRef\032\356\002\n\007PageRef\022\021\n\004page\030\001 "
- + "\001(\003B\003\340A\002\022a\n\013layout_type\030\002 \001(\0162G.google.c"
- + "loud.documentai.v1beta3.Document.PageAnc"
- + "hor.PageRef.LayoutTypeB\003\340A\001\022\030\n\tlayout_id"
- + "\030\003 \001(\tB\005\030\001\340A\001\022I\n\rbounding_poly\030\004 \001(\0132-.g"
- + "oogle.cloud.documentai.v1beta3.BoundingP"
- + "olyB\003\340A\001\"\207\001\n\nLayoutType\022\033\n\027LAYOUT_TYPE_U"
- + "NSPECIFIED\020\000\022\t\n\005BLOCK\020\001\022\r\n\tPARAGRAPH\020\002\022\010"
- + "\n\004LINE\020\003\022\t\n\005TOKEN\020\004\022\022\n\016VISUAL_ELEMENT\020\005\022"
- + "\t\n\005TABLE\020\006\022\016\n\nFORM_FIELD\020\007\032\354\002\n\nProvenanc"
- + "e\022\020\n\010revision\030\001 \001(\005\022\n\n\002id\030\002 \001(\005\022L\n\007paren"
- + "ts\030\003 \003(\0132;.google.cloud.documentai.v1bet"
- + "a3.Document.Provenance.Parent\022P\n\004type\030\004 "
- + "\001(\0162B.google.cloud.documentai.v1beta3.Do"
- + "cument.Provenance.OperationType\032&\n\006Paren"
- + "t\022\020\n\010revision\030\001 \001(\005\022\n\n\002id\030\002 \001(\005\"x\n\rOpera"
- + "tionType\022\036\n\032OPERATION_TYPE_UNSPECIFIED\020\000"
- + "\022\007\n\003ADD\020\001\022\n\n\006REMOVE\020\002\022\013\n\007REPLACE\020\003\022\022\n\016EV"
- + "AL_REQUESTED\020\004\022\021\n\rEVAL_APPROVED\020\005\032\222\002\n\010Re"
- + "vision\022\017\n\005agent\030\004 \001(\tH\000\022\023\n\tprocessor\030\005 \001"
- + "(\tH\000\022\n\n\002id\030\001 \001(\t\022\016\n\006parent\030\002 \003(\005\022/\n\013crea"
- + "te_time\030\003 \001(\0132\032.google.protobuf.Timestam"
- + "p\022T\n\014human_review\030\006 \001(\0132>.google.cloud.d"
- + "ocumentai.v1beta3.Document.Revision.Huma"
- + "nReview\0323\n\013HumanReview\022\r\n\005state\030\001 \001(\t\022\025\n"
- + "\rstate_message\030\002 \001(\tB\010\n\006source\032\267\001\n\nTextC"
- + "hange\022I\n\013text_anchor\030\001 \001(\01324.google.clou"
- + "d.documentai.v1beta3.Document.TextAnchor"
- + "\022\024\n\014changed_text\030\002 \001(\t\022H\n\nprovenance\030\003 \003"
- + "(\01324.google.cloud.documentai.v1beta3.Doc"
- + "ument.ProvenanceB\010\n\006sourceB\352\001\n#com.googl"
- + "e.cloud.documentai.v1beta3B\rDocumentProt"
- + "oP\001ZIgoogle.golang.org/genproto/googleap"
- + "is/cloud/documentai/v1beta3;documentai\252\002"
- + "\037Google.Cloud.DocumentAI.V1Beta3\312\002\037Googl"
- + "e\\Cloud\\DocumentAI\\V1beta3\352\002\"Google::Clo"
- + "ud::DocumentAI::V1beta3b\006proto3"
+ + "rB\003\340A\001\022\017\n\002id\030\007 \001(\tB\003\340A\001\022_\n\020normalized_va"
+ + "lue\030\t \001(\0132@.google.cloud.documentai.v1be"
+ + "ta3.Document.Entity.NormalizedValueB\003\340A\001"
+ + "\022I\n\nproperties\030\n \003(\01320.google.cloud.docu"
+ + "mentai.v1beta3.Document.EntityB\003\340A\001\022M\n\np"
+ + "rovenance\030\013 \001(\01324.google.cloud.documenta"
+ + "i.v1beta3.Document.ProvenanceB\003\340A\001\022\025\n\010re"
+ + "dacted\030\014 \001(\010B\003\340A\001\032\213\002\n\017NormalizedValue\022)\n"
+ + "\013money_value\030\002 \001(\0132\022.google.type.MoneyH\000"
+ + "\022\'\n\ndate_value\030\003 \001(\0132\021.google.type.DateH"
+ + "\000\022/\n\016datetime_value\030\004 \001(\0132\025.google.type."
+ + "DateTimeH\000\0223\n\raddress_value\030\005 \001(\0132\032.goog"
+ + "le.type.PostalAddressH\000\022\027\n\rboolean_value"
+ + "\030\006 \001(\010H\000\022\021\n\004text\030\001 \001(\tB\003\340A\002B\022\n\020structure"
+ + "d_value\032I\n\016EntityRelation\022\022\n\nsubject_id\030"
+ + "\001 \001(\t\022\021\n\tobject_id\030\002 \001(\t\022\020\n\010relation\030\003 \001"
+ + "(\t\032\322\001\n\013Translation\022I\n\013text_anchor\030\001 \001(\0132"
+ + "4.google.cloud.documentai.v1beta3.Docume"
+ + "nt.TextAnchor\022\025\n\rlanguage_code\030\002 \001(\t\022\027\n\017"
+ + "translated_text\030\003 \001(\t\022H\n\nprovenance\030\004 \003("
+ + "\01324.google.cloud.documentai.v1beta3.Docu"
+ + "ment.Provenance\032\255\001\n\nTextAnchor\022W\n\rtext_s"
+ + "egments\030\001 \003(\0132@.google.cloud.documentai."
+ + "v1beta3.Document.TextAnchor.TextSegment\022"
+ + "\017\n\007content\030\002 \001(\t\0325\n\013TextSegment\022\023\n\013start"
+ + "_index\030\001 \001(\003\022\021\n\tend_index\030\002 \001(\003\032\316\003\n\nPage"
+ + "Anchor\022O\n\tpage_refs\030\001 \003(\0132<.google.cloud"
+ + ".documentai.v1beta3.Document.PageAnchor."
+ + "PageRef\032\356\002\n\007PageRef\022\021\n\004page\030\001 \001(\003B\003\340A\002\022a"
+ + "\n\013layout_type\030\002 \001(\0162G.google.cloud.docum"
+ + "entai.v1beta3.Document.PageAnchor.PageRe"
+ + "f.LayoutTypeB\003\340A\001\022\030\n\tlayout_id\030\003 \001(\tB\005\030\001"
+ + "\340A\001\022I\n\rbounding_poly\030\004 \001(\0132-.google.clou"
+ + "d.documentai.v1beta3.BoundingPolyB\003\340A\001\"\207"
+ + "\001\n\nLayoutType\022\033\n\027LAYOUT_TYPE_UNSPECIFIED"
+ + "\020\000\022\t\n\005BLOCK\020\001\022\r\n\tPARAGRAPH\020\002\022\010\n\004LINE\020\003\022\t"
+ + "\n\005TOKEN\020\004\022\022\n\016VISUAL_ELEMENT\020\005\022\t\n\005TABLE\020\006"
+ + "\022\016\n\nFORM_FIELD\020\007\032\354\002\n\nProvenance\022\020\n\010revis"
+ + "ion\030\001 \001(\005\022\n\n\002id\030\002 \001(\005\022L\n\007parents\030\003 \003(\0132;"
+ + ".google.cloud.documentai.v1beta3.Documen"
+ + "t.Provenance.Parent\022P\n\004type\030\004 \001(\0162B.goog"
+ + "le.cloud.documentai.v1beta3.Document.Pro"
+ + "venance.OperationType\032&\n\006Parent\022\020\n\010revis"
+ + "ion\030\001 \001(\005\022\n\n\002id\030\002 \001(\005\"x\n\rOperationType\022\036"
+ + "\n\032OPERATION_TYPE_UNSPECIFIED\020\000\022\007\n\003ADD\020\001\022"
+ + "\n\n\006REMOVE\020\002\022\013\n\007REPLACE\020\003\022\022\n\016EVAL_REQUEST"
+ + "ED\020\004\022\021\n\rEVAL_APPROVED\020\005\032\222\002\n\010Revision\022\017\n\005"
+ + "agent\030\004 \001(\tH\000\022\023\n\tprocessor\030\005 \001(\tH\000\022\n\n\002id"
+ + "\030\001 \001(\t\022\016\n\006parent\030\002 \003(\005\022/\n\013create_time\030\003 "
+ + "\001(\0132\032.google.protobuf.Timestamp\022T\n\014human"
+ + "_review\030\006 \001(\0132>.google.cloud.documentai."
+ + "v1beta3.Document.Revision.HumanReview\0323\n"
+ + "\013HumanReview\022\r\n\005state\030\001 \001(\t\022\025\n\rstate_mes"
+ + "sage\030\002 \001(\tB\010\n\006source\032\267\001\n\nTextChange\022I\n\013t"
+ + "ext_anchor\030\001 \001(\01324.google.cloud.document"
+ + "ai.v1beta3.Document.TextAnchor\022\024\n\014change"
+ + "d_text\030\002 \001(\t\022H\n\nprovenance\030\003 \003(\01324.googl"
+ + "e.cloud.documentai.v1beta3.Document.Prov"
+ + "enanceB\010\n\006sourceB\352\001\n#com.google.cloud.do"
+ + "cumentai.v1beta3B\rDocumentProtoP\001ZIgoogl"
+ + "e.golang.org/genproto/googleapis/cloud/d"
+ + "ocumentai/v1beta3;documentai\252\002\037Google.Cl"
+ + "oud.DocumentAI.V1Beta3\312\002\037Google\\Cloud\\Do"
+ + "cumentAI\\V1beta3\352\002\"Google::Cloud::Docume"
+ + "ntAI::V1beta3b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
@@ -646,7 +647,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_google_cloud_documentai_v1beta3_Document_Entity_NormalizedValue_descriptor,
new java.lang.String[] {
- "MoneyValue", "DateValue", "DatetimeValue", "AddressValue", "Text", "StructuredValue",
+ "MoneyValue",
+ "DateValue",
+ "DatetimeValue",
+ "AddressValue",
+ "BooleanValue",
+ "Text",
+ "StructuredValue",
});
internal_static_google_cloud_documentai_v1beta3_Document_EntityRelation_descriptor =
internal_static_google_cloud_documentai_v1beta3_Document_descriptor.getNestedTypes().get(4);
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document.proto b/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document.proto
index 31642871..2c790cbb 100644
--- a/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document.proto
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document.proto
@@ -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
@@ -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
@@ -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.
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_io.proto b/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_io.proto
index 4b543961..d364d4ab 100644
--- a/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_io.proto
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/document_io.proto
@@ -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.
diff --git a/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/geometry.proto b/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/geometry.proto
index 8ac46643..240faf1f 100644
--- a/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/geometry.proto
+++ b/proto-google-cloud-document-ai-v1beta3/src/main/proto/google/cloud/documentai/v1beta3/geometry.proto
@@ -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.
diff --git a/synth.metadata b/synth.metadata
index a7bd9e70..75ee8368 100644
--- a/synth.metadata
+++ b/synth.metadata
@@ -4,31 +4,31 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/java-document-ai.git",
- "sha": "83c52c9dbd63690e3e98d261a4660aa1040b51f0"
+ "sha": "00d4b9ef9b81be34ce3f96ea1f5326aef1a6ec61"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "af8f71dae961ee036a0ac52a1965270149a6b2c9",
- "internalRef": "358516065"
+ "sha": "8c058c505afc717966bc815075bdd11ff76618e5",
+ "internalRef": "359109762"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "af8f71dae961ee036a0ac52a1965270149a6b2c9",
- "internalRef": "358516065"
+ "sha": "8c058c505afc717966bc815075bdd11ff76618e5",
+ "internalRef": "359109762"
}
},
{
"git": {
"name": "googleapis",
"remote": "https://github.com/googleapis/googleapis.git",
- "sha": "af8f71dae961ee036a0ac52a1965270149a6b2c9",
- "internalRef": "358516065"
+ "sha": "8c058c505afc717966bc815075bdd11ff76618e5",
+ "internalRef": "359109762"
}
},
{