Skip to content
This repository was archived by the owner on Nov 9, 2023. It is now read-only.

Commit eb329e5

Browse files
fix: mark Document.Entity.type as REQUIRED in all versions (#817)
- [ ] Regenerate this pull request now. fix: remove Document.Entity.bounding_poly_for_demo_frontend from v1beta2 The type field was always required by the backend, so this formally breaking change can likely be accepted without bumping the major version. Field removal is in beta version so can be accepted as well. PiperOrigin-RevId: 444656928 Source-Link: googleapis/googleapis@a0d4c5c Source-Link: https://github.com/googleapis/googleapis-gen/commit/d3a3f6dde18ec3721fceba933e4327a7b6dd2c2d Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDNhM2Y2ZGRlMThlYzM3MjFmY2ViYTkzM2U0MzI3YTdiNmRkMmMyZCJ9 chore(bazel): update version of Protobuf to v3.20.1 PiperOrigin-RevId: 444328399 Source-Link: googleapis/googleapis@c7ca416 Source-Link: https://github.com/googleapis/googleapis-gen/commit/d61705453a62b3ecda78aa30c192840ebc5a8a90 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZDYxNzA1NDUzYTYyYjNlY2RhNzhhYTMwYzE5Mjg0MGViYzVhOGE5MCJ9
1 parent fc7d2c4 commit eb329e5

File tree

107 files changed

+1097
-849
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

107 files changed

+1097
-849
lines changed

proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchDocumentsInputConfig.java

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,8 @@ private BatchDocumentsInputConfig(
111111
}
112112
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
113113
throw e.setUnfinishedMessage(this);
114+
} catch (com.google.protobuf.UninitializedMessageException e) {
115+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
114116
} catch (java.io.IOException e) {
115117
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
116118
} finally {
@@ -783,8 +785,9 @@ public Builder mergeGcsPrefix(com.google.cloud.documentai.v1.GcsPrefix value) {
783785
} else {
784786
if (sourceCase_ == 1) {
785787
gcsPrefixBuilder_.mergeFrom(value);
788+
} else {
789+
gcsPrefixBuilder_.setMessage(value);
786790
}
787-
gcsPrefixBuilder_.setMessage(value);
788791
}
789792
sourceCase_ = 1;
790793
return this;
@@ -992,8 +995,9 @@ public Builder mergeGcsDocuments(com.google.cloud.documentai.v1.GcsDocuments val
992995
} else {
993996
if (sourceCase_ == 2) {
994997
gcsDocumentsBuilder_.mergeFrom(value);
998+
} else {
999+
gcsDocumentsBuilder_.setMessage(value);
9951000
}
996-
gcsDocumentsBuilder_.setMessage(value);
9971001
}
9981002
sourceCase_ = 2;
9991003
return this;

proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessMetadata.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,8 @@ private BatchProcessMetadata(
144144
}
145145
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
146146
throw e.setUnfinishedMessage(this);
147+
} catch (com.google.protobuf.UninitializedMessageException e) {
148+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
147149
} catch (java.io.IOException e) {
148150
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
149151
} finally {
@@ -660,6 +662,8 @@ private IndividualProcessStatus(
660662
}
661663
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
662664
throw e.setUnfinishedMessage(this);
665+
} catch (com.google.protobuf.UninitializedMessageException e) {
666+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
663667
} catch (java.io.IOException e) {
664668
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
665669
} finally {

proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessRequest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,8 @@ private BatchProcessRequest(
127127
}
128128
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
129129
throw e.setUnfinishedMessage(this);
130+
} catch (com.google.protobuf.UninitializedMessageException e) {
131+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
130132
} catch (java.io.IOException e) {
131133
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
132134
} finally {

proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BatchProcessResponse.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ private BatchProcessResponse(
7979
}
8080
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
8181
throw e.setUnfinishedMessage(this);
82+
} catch (com.google.protobuf.UninitializedMessageException e) {
83+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
8284
} catch (java.io.IOException e) {
8385
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
8486
} finally {

proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/BoundingPoly.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,8 @@ private BoundingPoly(
106106
}
107107
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
108108
throw e.setUnfinishedMessage(this);
109+
} catch (com.google.protobuf.UninitializedMessageException e) {
110+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
109111
} catch (java.io.IOException e) {
110112
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
111113
} finally {

proto-google-cloud-document-ai-v1/src/main/java/com/google/cloud/documentai/v1/CommonOperationMetadata.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,8 @@ private CommonOperationMetadata(
126126
}
127127
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
128128
throw e.setUnfinishedMessage(this);
129+
} catch (com.google.protobuf.UninitializedMessageException e) {
130+
throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this);
129131
} catch (java.io.IOException e) {
130132
throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this);
131133
} finally {

0 commit comments

Comments
 (0)