@@ -34289,11 +34289,11 @@ public interface EntityOrBuilder
3428934289 *
3429034290 *
3429134291 * <pre>
34292- * Canonical id. This will be a unique value in the entity list
34292+ * Optional. Canonical id. This will be a unique value in the entity list
3429334293 * for this document.
3429434294 * </pre>
3429534295 *
34296- * <code>string id = 7;</code>
34296+ * <code>string id = 7 [(.google.api.field_behavior) = OPTIONAL] ;</code>
3429734297 *
3429834298 * @return The id.
3429934299 */
@@ -34302,11 +34302,11 @@ public interface EntityOrBuilder
3430234302 *
3430334303 *
3430434304 * <pre>
34305- * Canonical id. This will be a unique value in the entity list
34305+ * Optional. Canonical id. This will be a unique value in the entity list
3430634306 * for this document.
3430734307 * </pre>
3430834308 *
34309- * <code>string id = 7;</code>
34309+ * <code>string id = 7 [(.google.api.field_behavior) = OPTIONAL] ;</code>
3431034310 *
3431134311 * @return The bytes for id.
3431234312 */
@@ -34870,6 +34870,20 @@ public interface NormalizedValueOrBuilder
3487034870 */
3487134871 com.google.type.PostalAddressOrBuilder getAddressValueOrBuilder();
3487234872
34873+ /**
34874+ *
34875+ *
34876+ * <pre>
34877+ * Boolean value. Can be used for entities with binary values, or for
34878+ * checkboxes.
34879+ * </pre>
34880+ *
34881+ * <code>bool boolean_value = 6;</code>
34882+ *
34883+ * @return The booleanValue.
34884+ */
34885+ boolean getBooleanValue();
34886+
3487334887 /**
3487434888 *
3487534889 *
@@ -35027,6 +35041,12 @@ private NormalizedValue(
3502735041 structuredValueCase_ = 5;
3502835042 break;
3502935043 }
35044+ case 48:
35045+ {
35046+ structuredValueCase_ = 6;
35047+ structuredValue_ = input.readBool();
35048+ break;
35049+ }
3503035050 default:
3503135051 {
3503235052 if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -35073,6 +35093,7 @@ public enum StructuredValueCase
3507335093 DATE_VALUE(3),
3507435094 DATETIME_VALUE(4),
3507535095 ADDRESS_VALUE(5),
35096+ BOOLEAN_VALUE(6),
3507635097 STRUCTUREDVALUE_NOT_SET(0);
3507735098 private final int value;
3507835099
@@ -35099,6 +35120,8 @@ public static StructuredValueCase forNumber(int value) {
3509935120 return DATETIME_VALUE;
3510035121 case 5:
3510135122 return ADDRESS_VALUE;
35123+ case 6:
35124+ return BOOLEAN_VALUE;
3510235125 case 0:
3510335126 return STRUCTUREDVALUE_NOT_SET;
3510435127 default:
@@ -35343,6 +35366,27 @@ public com.google.type.PostalAddressOrBuilder getAddressValueOrBuilder() {
3534335366 return com.google.type.PostalAddress.getDefaultInstance();
3534435367 }
3534535368
35369+ public static final int BOOLEAN_VALUE_FIELD_NUMBER = 6;
35370+ /**
35371+ *
35372+ *
35373+ * <pre>
35374+ * Boolean value. Can be used for entities with binary values, or for
35375+ * checkboxes.
35376+ * </pre>
35377+ *
35378+ * <code>bool boolean_value = 6;</code>
35379+ *
35380+ * @return The booleanValue.
35381+ */
35382+ @java.lang.Override
35383+ public boolean getBooleanValue() {
35384+ if (structuredValueCase_ == 6) {
35385+ return (java.lang.Boolean) structuredValue_;
35386+ }
35387+ return false;
35388+ }
35389+
3534635390 public static final int TEXT_FIELD_NUMBER = 1;
3534735391 private volatile java.lang.Object text_;
3534835392 /**
@@ -35431,6 +35475,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
3543135475 if (structuredValueCase_ == 5) {
3543235476 output.writeMessage(5, (com.google.type.PostalAddress) structuredValue_);
3543335477 }
35478+ if (structuredValueCase_ == 6) {
35479+ output.writeBool(6, (boolean) ((java.lang.Boolean) structuredValue_));
35480+ }
3543435481 unknownFields.writeTo(output);
3543535482 }
3543635483
@@ -35463,6 +35510,11 @@ public int getSerializedSize() {
3546335510 com.google.protobuf.CodedOutputStream.computeMessageSize(
3546435511 5, (com.google.type.PostalAddress) structuredValue_);
3546535512 }
35513+ if (structuredValueCase_ == 6) {
35514+ size +=
35515+ com.google.protobuf.CodedOutputStream.computeBoolSize(
35516+ 6, (boolean) ((java.lang.Boolean) structuredValue_));
35517+ }
3546635518 size += unknownFields.getSerializedSize();
3546735519 memoizedSize = size;
3546835520 return size;
@@ -35494,6 +35546,9 @@ public boolean equals(final java.lang.Object obj) {
3549435546 case 5:
3549535547 if (!getAddressValue().equals(other.getAddressValue())) return false;
3549635548 break;
35549+ case 6:
35550+ if (getBooleanValue() != other.getBooleanValue()) return false;
35551+ break;
3549735552 case 0:
3549835553 default:
3549935554 }
@@ -35527,6 +35582,10 @@ public int hashCode() {
3552735582 hash = (37 * hash) + ADDRESS_VALUE_FIELD_NUMBER;
3552835583 hash = (53 * hash) + getAddressValue().hashCode();
3552935584 break;
35585+ case 6:
35586+ hash = (37 * hash) + BOOLEAN_VALUE_FIELD_NUMBER;
35587+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBooleanValue());
35588+ break;
3553035589 case 0:
3553135590 default:
3553235591 }
@@ -35744,6 +35803,9 @@ public com.google.cloud.documentai.v1beta3.Document.Entity.NormalizedValue build
3574435803 result.structuredValue_ = addressValueBuilder_.build();
3574535804 }
3574635805 }
35806+ if (structuredValueCase_ == 6) {
35807+ result.structuredValue_ = structuredValue_;
35808+ }
3574735809 result.text_ = text_;
3574835810 result.structuredValueCase_ = structuredValueCase_;
3574935811 onBuilt();
@@ -35827,6 +35889,11 @@ public Builder mergeFrom(
3582735889 mergeAddressValue(other.getAddressValue());
3582835890 break;
3582935891 }
35892+ case BOOLEAN_VALUE:
35893+ {
35894+ setBooleanValue(other.getBooleanValue());
35895+ break;
35896+ }
3583035897 case STRUCTUREDVALUE_NOT_SET:
3583135898 {
3583235899 break;
@@ -36768,6 +36835,64 @@ public com.google.type.PostalAddressOrBuilder getAddressValueOrBuilder() {
3676836835 return addressValueBuilder_;
3676936836 }
3677036837
36838+ /**
36839+ *
36840+ *
36841+ * <pre>
36842+ * Boolean value. Can be used for entities with binary values, or for
36843+ * checkboxes.
36844+ * </pre>
36845+ *
36846+ * <code>bool boolean_value = 6;</code>
36847+ *
36848+ * @return The booleanValue.
36849+ */
36850+ public boolean getBooleanValue() {
36851+ if (structuredValueCase_ == 6) {
36852+ return (java.lang.Boolean) structuredValue_;
36853+ }
36854+ return false;
36855+ }
36856+ /**
36857+ *
36858+ *
36859+ * <pre>
36860+ * Boolean value. Can be used for entities with binary values, or for
36861+ * checkboxes.
36862+ * </pre>
36863+ *
36864+ * <code>bool boolean_value = 6;</code>
36865+ *
36866+ * @param value The booleanValue to set.
36867+ * @return This builder for chaining.
36868+ */
36869+ public Builder setBooleanValue(boolean value) {
36870+ structuredValueCase_ = 6;
36871+ structuredValue_ = value;
36872+ onChanged();
36873+ return this;
36874+ }
36875+ /**
36876+ *
36877+ *
36878+ * <pre>
36879+ * Boolean value. Can be used for entities with binary values, or for
36880+ * checkboxes.
36881+ * </pre>
36882+ *
36883+ * <code>bool boolean_value = 6;</code>
36884+ *
36885+ * @return This builder for chaining.
36886+ */
36887+ public Builder clearBooleanValue() {
36888+ if (structuredValueCase_ == 6) {
36889+ structuredValueCase_ = 0;
36890+ structuredValue_ = null;
36891+ onChanged();
36892+ }
36893+ return this;
36894+ }
36895+
3677136896 private java.lang.Object text_ = "";
3677236897 /**
3677336898 *
@@ -37236,11 +37361,11 @@ public com.google.cloud.documentai.v1beta3.Document.PageAnchor getPageAnchor() {
3723637361 *
3723737362 *
3723837363 * <pre>
37239- * Canonical id. This will be a unique value in the entity list
37364+ * Optional. Canonical id. This will be a unique value in the entity list
3724037365 * for this document.
3724137366 * </pre>
3724237367 *
37243- * <code>string id = 7;</code>
37368+ * <code>string id = 7 [(.google.api.field_behavior) = OPTIONAL] ;</code>
3724437369 *
3724537370 * @return The id.
3724637371 */
@@ -37260,11 +37385,11 @@ public java.lang.String getId() {
3726037385 *
3726137386 *
3726237387 * <pre>
37263- * Canonical id. This will be a unique value in the entity list
37388+ * Optional. Canonical id. This will be a unique value in the entity list
3726437389 * for this document.
3726537390 * </pre>
3726637391 *
37267- * <code>string id = 7;</code>
37392+ * <code>string id = 7 [(.google.api.field_behavior) = OPTIONAL] ;</code>
3726837393 *
3726937394 * @return The bytes for id.
3727037395 */
@@ -38866,11 +38991,11 @@ public Builder clearPageAnchor() {
3886638991 *
3886738992 *
3886838993 * <pre>
38869- * Canonical id. This will be a unique value in the entity list
38994+ * Optional. Canonical id. This will be a unique value in the entity list
3887038995 * for this document.
3887138996 * </pre>
3887238997 *
38873- * <code>string id = 7;</code>
38998+ * <code>string id = 7 [(.google.api.field_behavior) = OPTIONAL] ;</code>
3887438999 *
3887539000 * @return The id.
3887639001 */
@@ -38889,11 +39014,11 @@ public java.lang.String getId() {
3888939014 *
3889039015 *
3889139016 * <pre>
38892- * Canonical id. This will be a unique value in the entity list
39017+ * Optional. Canonical id. This will be a unique value in the entity list
3889339018 * for this document.
3889439019 * </pre>
3889539020 *
38896- * <code>string id = 7;</code>
39021+ * <code>string id = 7 [(.google.api.field_behavior) = OPTIONAL] ;</code>
3889739022 *
3889839023 * @return The bytes for id.
3889939024 */
@@ -38912,11 +39037,11 @@ public com.google.protobuf.ByteString getIdBytes() {
3891239037 *
3891339038 *
3891439039 * <pre>
38915- * Canonical id. This will be a unique value in the entity list
39040+ * Optional. Canonical id. This will be a unique value in the entity list
3891639041 * for this document.
3891739042 * </pre>
3891839043 *
38919- * <code>string id = 7;</code>
39044+ * <code>string id = 7 [(.google.api.field_behavior) = OPTIONAL] ;</code>
3892039045 *
3892139046 * @param value The id to set.
3892239047 * @return This builder for chaining.
@@ -38934,11 +39059,11 @@ public Builder setId(java.lang.String value) {
3893439059 *
3893539060 *
3893639061 * <pre>
38937- * Canonical id. This will be a unique value in the entity list
39062+ * Optional. Canonical id. This will be a unique value in the entity list
3893839063 * for this document.
3893939064 * </pre>
3894039065 *
38941- * <code>string id = 7;</code>
39066+ * <code>string id = 7 [(.google.api.field_behavior) = OPTIONAL] ;</code>
3894239067 *
3894339068 * @return This builder for chaining.
3894439069 */
@@ -38952,11 +39077,11 @@ public Builder clearId() {
3895239077 *
3895339078 *
3895439079 * <pre>
38955- * Canonical id. This will be a unique value in the entity list
39080+ * Optional. Canonical id. This will be a unique value in the entity list
3895639081 * for this document.
3895739082 * </pre>
3895839083 *
38959- * <code>string id = 7;</code>
39084+ * <code>string id = 7 [(.google.api.field_behavior) = OPTIONAL] ;</code>
3896039085 *
3896139086 * @param value The bytes for id to set.
3896239087 * @return This builder for chaining.
@@ -44988,7 +45113,8 @@ public interface PageRefOrBuilder
4498845113 *
4498945114 *
4499045115 * <pre>
44991- * Required. Index into the [Document.pages][google.cloud.documentai.v1beta3.Document.pages] element
45116+ * Required. Index into the [Document.pages][google.cloud.documentai.v1beta3.Document.pages] element, for example using
45117+ * [Document.pages][page_refs.page] to locate the related page element.
4499245118 * </pre>
4499345119 *
4499445120 * <code>int64 page = 1 [(.google.api.field_behavior) = REQUIRED];</code>
@@ -45497,7 +45623,8 @@ private LayoutType(int value) {
4549745623 *
4549845624 *
4549945625 * <pre>
45500- * Required. Index into the [Document.pages][google.cloud.documentai.v1beta3.Document.pages] element
45626+ * Required. Index into the [Document.pages][google.cloud.documentai.v1beta3.Document.pages] element, for example using
45627+ * [Document.pages][page_refs.page] to locate the related page element.
4550145628 * </pre>
4550245629 *
4550345630 * <code>int64 page = 1 [(.google.api.field_behavior) = REQUIRED];</code>
@@ -46062,7 +46189,8 @@ public Builder mergeFrom(
4606246189 *
4606346190 *
4606446191 * <pre>
46065- * Required. Index into the [Document.pages][google.cloud.documentai.v1beta3.Document.pages] element
46192+ * Required. Index into the [Document.pages][google.cloud.documentai.v1beta3.Document.pages] element, for example using
46193+ * [Document.pages][page_refs.page] to locate the related page element.
4606646194 * </pre>
4606746195 *
4606846196 * <code>int64 page = 1 [(.google.api.field_behavior) = REQUIRED];</code>
@@ -46077,7 +46205,8 @@ public long getPage() {
4607746205 *
4607846206 *
4607946207 * <pre>
46080- * Required. Index into the [Document.pages][google.cloud.documentai.v1beta3.Document.pages] element
46208+ * Required. Index into the [Document.pages][google.cloud.documentai.v1beta3.Document.pages] element, for example using
46209+ * [Document.pages][page_refs.page] to locate the related page element.
4608146210 * </pre>
4608246211 *
4608346212 * <code>int64 page = 1 [(.google.api.field_behavior) = REQUIRED];</code>
@@ -46095,7 +46224,8 @@ public Builder setPage(long value) {
4609546224 *
4609646225 *
4609746226 * <pre>
46098- * Required. Index into the [Document.pages][google.cloud.documentai.v1beta3.Document.pages] element
46227+ * Required. Index into the [Document.pages][google.cloud.documentai.v1beta3.Document.pages] element, for example using
46228+ * [Document.pages][page_refs.page] to locate the related page element.
4609946229 * </pre>
4610046230 *
4610146231 * <code>int64 page = 1 [(.google.api.field_behavior) = REQUIRED];</code>
0 commit comments