@@ -34289,11 +34289,11 @@ public interface EntityOrBuilder
34289
34289
*
34290
34290
*
34291
34291
* <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
34293
34293
* for this document.
34294
34294
* </pre>
34295
34295
*
34296
- * <code>string id = 7;</code>
34296
+ * <code>string id = 7 [(.google.api.field_behavior) = OPTIONAL] ;</code>
34297
34297
*
34298
34298
* @return The id.
34299
34299
*/
@@ -34302,11 +34302,11 @@ public interface EntityOrBuilder
34302
34302
*
34303
34303
*
34304
34304
* <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
34306
34306
* for this document.
34307
34307
* </pre>
34308
34308
*
34309
- * <code>string id = 7;</code>
34309
+ * <code>string id = 7 [(.google.api.field_behavior) = OPTIONAL] ;</code>
34310
34310
*
34311
34311
* @return The bytes for id.
34312
34312
*/
@@ -34870,6 +34870,20 @@ public interface NormalizedValueOrBuilder
34870
34870
*/
34871
34871
com.google.type.PostalAddressOrBuilder getAddressValueOrBuilder();
34872
34872
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
+
34873
34887
/**
34874
34888
*
34875
34889
*
@@ -35027,6 +35041,12 @@ private NormalizedValue(
35027
35041
structuredValueCase_ = 5;
35028
35042
break;
35029
35043
}
35044
+ case 48:
35045
+ {
35046
+ structuredValueCase_ = 6;
35047
+ structuredValue_ = input.readBool();
35048
+ break;
35049
+ }
35030
35050
default:
35031
35051
{
35032
35052
if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -35073,6 +35093,7 @@ public enum StructuredValueCase
35073
35093
DATE_VALUE(3),
35074
35094
DATETIME_VALUE(4),
35075
35095
ADDRESS_VALUE(5),
35096
+ BOOLEAN_VALUE(6),
35076
35097
STRUCTUREDVALUE_NOT_SET(0);
35077
35098
private final int value;
35078
35099
@@ -35099,6 +35120,8 @@ public static StructuredValueCase forNumber(int value) {
35099
35120
return DATETIME_VALUE;
35100
35121
case 5:
35101
35122
return ADDRESS_VALUE;
35123
+ case 6:
35124
+ return BOOLEAN_VALUE;
35102
35125
case 0:
35103
35126
return STRUCTUREDVALUE_NOT_SET;
35104
35127
default:
@@ -35343,6 +35366,27 @@ public com.google.type.PostalAddressOrBuilder getAddressValueOrBuilder() {
35343
35366
return com.google.type.PostalAddress.getDefaultInstance();
35344
35367
}
35345
35368
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
+
35346
35390
public static final int TEXT_FIELD_NUMBER = 1;
35347
35391
private volatile java.lang.Object text_;
35348
35392
/**
@@ -35431,6 +35475,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
35431
35475
if (structuredValueCase_ == 5) {
35432
35476
output.writeMessage(5, (com.google.type.PostalAddress) structuredValue_);
35433
35477
}
35478
+ if (structuredValueCase_ == 6) {
35479
+ output.writeBool(6, (boolean) ((java.lang.Boolean) structuredValue_));
35480
+ }
35434
35481
unknownFields.writeTo(output);
35435
35482
}
35436
35483
@@ -35463,6 +35510,11 @@ public int getSerializedSize() {
35463
35510
com.google.protobuf.CodedOutputStream.computeMessageSize(
35464
35511
5, (com.google.type.PostalAddress) structuredValue_);
35465
35512
}
35513
+ if (structuredValueCase_ == 6) {
35514
+ size +=
35515
+ com.google.protobuf.CodedOutputStream.computeBoolSize(
35516
+ 6, (boolean) ((java.lang.Boolean) structuredValue_));
35517
+ }
35466
35518
size += unknownFields.getSerializedSize();
35467
35519
memoizedSize = size;
35468
35520
return size;
@@ -35494,6 +35546,9 @@ public boolean equals(final java.lang.Object obj) {
35494
35546
case 5:
35495
35547
if (!getAddressValue().equals(other.getAddressValue())) return false;
35496
35548
break;
35549
+ case 6:
35550
+ if (getBooleanValue() != other.getBooleanValue()) return false;
35551
+ break;
35497
35552
case 0:
35498
35553
default:
35499
35554
}
@@ -35527,6 +35582,10 @@ public int hashCode() {
35527
35582
hash = (37 * hash) + ADDRESS_VALUE_FIELD_NUMBER;
35528
35583
hash = (53 * hash) + getAddressValue().hashCode();
35529
35584
break;
35585
+ case 6:
35586
+ hash = (37 * hash) + BOOLEAN_VALUE_FIELD_NUMBER;
35587
+ hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getBooleanValue());
35588
+ break;
35530
35589
case 0:
35531
35590
default:
35532
35591
}
@@ -35744,6 +35803,9 @@ public com.google.cloud.documentai.v1beta3.Document.Entity.NormalizedValue build
35744
35803
result.structuredValue_ = addressValueBuilder_.build();
35745
35804
}
35746
35805
}
35806
+ if (structuredValueCase_ == 6) {
35807
+ result.structuredValue_ = structuredValue_;
35808
+ }
35747
35809
result.text_ = text_;
35748
35810
result.structuredValueCase_ = structuredValueCase_;
35749
35811
onBuilt();
@@ -35827,6 +35889,11 @@ public Builder mergeFrom(
35827
35889
mergeAddressValue(other.getAddressValue());
35828
35890
break;
35829
35891
}
35892
+ case BOOLEAN_VALUE:
35893
+ {
35894
+ setBooleanValue(other.getBooleanValue());
35895
+ break;
35896
+ }
35830
35897
case STRUCTUREDVALUE_NOT_SET:
35831
35898
{
35832
35899
break;
@@ -36768,6 +36835,64 @@ public com.google.type.PostalAddressOrBuilder getAddressValueOrBuilder() {
36768
36835
return addressValueBuilder_;
36769
36836
}
36770
36837
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
+
36771
36896
private java.lang.Object text_ = "";
36772
36897
/**
36773
36898
*
@@ -37236,11 +37361,11 @@ public com.google.cloud.documentai.v1beta3.Document.PageAnchor getPageAnchor() {
37236
37361
*
37237
37362
*
37238
37363
* <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
37240
37365
* for this document.
37241
37366
* </pre>
37242
37367
*
37243
- * <code>string id = 7;</code>
37368
+ * <code>string id = 7 [(.google.api.field_behavior) = OPTIONAL] ;</code>
37244
37369
*
37245
37370
* @return The id.
37246
37371
*/
@@ -37260,11 +37385,11 @@ public java.lang.String getId() {
37260
37385
*
37261
37386
*
37262
37387
* <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
37264
37389
* for this document.
37265
37390
* </pre>
37266
37391
*
37267
- * <code>string id = 7;</code>
37392
+ * <code>string id = 7 [(.google.api.field_behavior) = OPTIONAL] ;</code>
37268
37393
*
37269
37394
* @return The bytes for id.
37270
37395
*/
@@ -38866,11 +38991,11 @@ public Builder clearPageAnchor() {
38866
38991
*
38867
38992
*
38868
38993
* <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
38870
38995
* for this document.
38871
38996
* </pre>
38872
38997
*
38873
- * <code>string id = 7;</code>
38998
+ * <code>string id = 7 [(.google.api.field_behavior) = OPTIONAL] ;</code>
38874
38999
*
38875
39000
* @return The id.
38876
39001
*/
@@ -38889,11 +39014,11 @@ public java.lang.String getId() {
38889
39014
*
38890
39015
*
38891
39016
* <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
38893
39018
* for this document.
38894
39019
* </pre>
38895
39020
*
38896
- * <code>string id = 7;</code>
39021
+ * <code>string id = 7 [(.google.api.field_behavior) = OPTIONAL] ;</code>
38897
39022
*
38898
39023
* @return The bytes for id.
38899
39024
*/
@@ -38912,11 +39037,11 @@ public com.google.protobuf.ByteString getIdBytes() {
38912
39037
*
38913
39038
*
38914
39039
* <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
38916
39041
* for this document.
38917
39042
* </pre>
38918
39043
*
38919
- * <code>string id = 7;</code>
39044
+ * <code>string id = 7 [(.google.api.field_behavior) = OPTIONAL] ;</code>
38920
39045
*
38921
39046
* @param value The id to set.
38922
39047
* @return This builder for chaining.
@@ -38934,11 +39059,11 @@ public Builder setId(java.lang.String value) {
38934
39059
*
38935
39060
*
38936
39061
* <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
38938
39063
* for this document.
38939
39064
* </pre>
38940
39065
*
38941
- * <code>string id = 7;</code>
39066
+ * <code>string id = 7 [(.google.api.field_behavior) = OPTIONAL] ;</code>
38942
39067
*
38943
39068
* @return This builder for chaining.
38944
39069
*/
@@ -38952,11 +39077,11 @@ public Builder clearId() {
38952
39077
*
38953
39078
*
38954
39079
* <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
38956
39081
* for this document.
38957
39082
* </pre>
38958
39083
*
38959
- * <code>string id = 7;</code>
39084
+ * <code>string id = 7 [(.google.api.field_behavior) = OPTIONAL] ;</code>
38960
39085
*
38961
39086
* @param value The bytes for id to set.
38962
39087
* @return This builder for chaining.
@@ -44988,7 +45113,8 @@ public interface PageRefOrBuilder
44988
45113
*
44989
45114
*
44990
45115
* <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.
44992
45118
* </pre>
44993
45119
*
44994
45120
* <code>int64 page = 1 [(.google.api.field_behavior) = REQUIRED];</code>
@@ -45497,7 +45623,8 @@ private LayoutType(int value) {
45497
45623
*
45498
45624
*
45499
45625
* <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.
45501
45628
* </pre>
45502
45629
*
45503
45630
* <code>int64 page = 1 [(.google.api.field_behavior) = REQUIRED];</code>
@@ -46062,7 +46189,8 @@ public Builder mergeFrom(
46062
46189
*
46063
46190
*
46064
46191
* <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.
46066
46194
* </pre>
46067
46195
*
46068
46196
* <code>int64 page = 1 [(.google.api.field_behavior) = REQUIRED];</code>
@@ -46077,7 +46205,8 @@ public long getPage() {
46077
46205
*
46078
46206
*
46079
46207
* <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.
46081
46210
* </pre>
46082
46211
*
46083
46212
* <code>int64 page = 1 [(.google.api.field_behavior) = REQUIRED];</code>
@@ -46095,7 +46224,8 @@ public Builder setPage(long value) {
46095
46224
*
46096
46225
*
46097
46226
* <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.
46099
46229
* </pre>
46100
46230
*
46101
46231
* <code>int64 page = 1 [(.google.api.field_behavior) = REQUIRED];</code>
0 commit comments