@@ -35347,6 +35347,33 @@ public interface TextAnchorOrBuilder
3534735347 */
3534835348 com.google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegmentOrBuilder
3534935349 getTextSegmentsOrBuilder(int index);
35350+
35351+ /**
35352+ *
35353+ *
35354+ * <pre>
35355+ * Contains the content of the text span so that users do
35356+ * not have to look it up in the text_segments.
35357+ * </pre>
35358+ *
35359+ * <code>string content = 2;</code>
35360+ *
35361+ * @return The content.
35362+ */
35363+ java.lang.String getContent();
35364+ /**
35365+ *
35366+ *
35367+ * <pre>
35368+ * Contains the content of the text span so that users do
35369+ * not have to look it up in the text_segments.
35370+ * </pre>
35371+ *
35372+ * <code>string content = 2;</code>
35373+ *
35374+ * @return The bytes for content.
35375+ */
35376+ com.google.protobuf.ByteString getContentBytes();
3535035377 }
3535135378 /**
3535235379 *
@@ -35369,6 +35396,7 @@ private TextAnchor(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
3536935396
3537035397 private TextAnchor() {
3537135398 textSegments_ = java.util.Collections.emptyList();
35399+ content_ = "";
3537235400 }
3537335401
3537435402 @java.lang.Override
@@ -35416,6 +35444,13 @@ private TextAnchor(
3541635444 extensionRegistry));
3541735445 break;
3541835446 }
35447+ case 18:
35448+ {
35449+ java.lang.String s = input.readStringRequireUtf8();
35450+
35451+ content_ = s;
35452+ break;
35453+ }
3541935454 default:
3542035455 {
3542135456 if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) {
@@ -36217,6 +36252,57 @@ public com.google.cloud.documentai.v1beta2.Document.TextAnchor.TextSegment getTe
3621736252 return textSegments_.get(index);
3621836253 }
3621936254
36255+ public static final int CONTENT_FIELD_NUMBER = 2;
36256+ private volatile java.lang.Object content_;
36257+ /**
36258+ *
36259+ *
36260+ * <pre>
36261+ * Contains the content of the text span so that users do
36262+ * not have to look it up in the text_segments.
36263+ * </pre>
36264+ *
36265+ * <code>string content = 2;</code>
36266+ *
36267+ * @return The content.
36268+ */
36269+ @java.lang.Override
36270+ public java.lang.String getContent() {
36271+ java.lang.Object ref = content_;
36272+ if (ref instanceof java.lang.String) {
36273+ return (java.lang.String) ref;
36274+ } else {
36275+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
36276+ java.lang.String s = bs.toStringUtf8();
36277+ content_ = s;
36278+ return s;
36279+ }
36280+ }
36281+ /**
36282+ *
36283+ *
36284+ * <pre>
36285+ * Contains the content of the text span so that users do
36286+ * not have to look it up in the text_segments.
36287+ * </pre>
36288+ *
36289+ * <code>string content = 2;</code>
36290+ *
36291+ * @return The bytes for content.
36292+ */
36293+ @java.lang.Override
36294+ public com.google.protobuf.ByteString getContentBytes() {
36295+ java.lang.Object ref = content_;
36296+ if (ref instanceof java.lang.String) {
36297+ com.google.protobuf.ByteString b =
36298+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
36299+ content_ = b;
36300+ return b;
36301+ } else {
36302+ return (com.google.protobuf.ByteString) ref;
36303+ }
36304+ }
36305+
3622036306 private byte memoizedIsInitialized = -1;
3622136307
3622236308 @java.lang.Override
@@ -36234,6 +36320,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io
3623436320 for (int i = 0; i < textSegments_.size(); i++) {
3623536321 output.writeMessage(1, textSegments_.get(i));
3623636322 }
36323+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) {
36324+ com.google.protobuf.GeneratedMessageV3.writeString(output, 2, content_);
36325+ }
3623736326 unknownFields.writeTo(output);
3623836327 }
3623936328
@@ -36246,6 +36335,9 @@ public int getSerializedSize() {
3624636335 for (int i = 0; i < textSegments_.size(); i++) {
3624736336 size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, textSegments_.get(i));
3624836337 }
36338+ if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(content_)) {
36339+ size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, content_);
36340+ }
3624936341 size += unknownFields.getSerializedSize();
3625036342 memoizedSize = size;
3625136343 return size;
@@ -36263,6 +36355,7 @@ public boolean equals(final java.lang.Object obj) {
3626336355 (com.google.cloud.documentai.v1beta2.Document.TextAnchor) obj;
3626436356
3626536357 if (!getTextSegmentsList().equals(other.getTextSegmentsList())) return false;
36358+ if (!getContent().equals(other.getContent())) return false;
3626636359 if (!unknownFields.equals(other.unknownFields)) return false;
3626736360 return true;
3626836361 }
@@ -36278,6 +36371,8 @@ public int hashCode() {
3627836371 hash = (37 * hash) + TEXT_SEGMENTS_FIELD_NUMBER;
3627936372 hash = (53 * hash) + getTextSegmentsList().hashCode();
3628036373 }
36374+ hash = (37 * hash) + CONTENT_FIELD_NUMBER;
36375+ hash = (53 * hash) + getContent().hashCode();
3628136376 hash = (29 * hash) + unknownFields.hashCode();
3628236377 memoizedHashCode = hash;
3628336378 return hash;
@@ -36434,6 +36529,8 @@ public Builder clear() {
3643436529 } else {
3643536530 textSegmentsBuilder_.clear();
3643636531 }
36532+ content_ = "";
36533+
3643736534 return this;
3643836535 }
3643936536
@@ -36471,6 +36568,7 @@ public com.google.cloud.documentai.v1beta2.Document.TextAnchor buildPartial() {
3647136568 } else {
3647236569 result.textSegments_ = textSegmentsBuilder_.build();
3647336570 }
36571+ result.content_ = content_;
3647436572 onBuilt();
3647536573 return result;
3647636574 }
@@ -36550,6 +36648,10 @@ public Builder mergeFrom(com.google.cloud.documentai.v1beta2.Document.TextAnchor
3655036648 }
3655136649 }
3655236650 }
36651+ if (!other.getContent().isEmpty()) {
36652+ content_ = other.content_;
36653+ onChanged();
36654+ }
3655336655 this.mergeUnknownFields(other.unknownFields);
3655436656 onChanged();
3655536657 return this;
@@ -36998,6 +37100,117 @@ public Builder removeTextSegments(int index) {
3699837100 return textSegmentsBuilder_;
3699937101 }
3700037102
37103+ private java.lang.Object content_ = "";
37104+ /**
37105+ *
37106+ *
37107+ * <pre>
37108+ * Contains the content of the text span so that users do
37109+ * not have to look it up in the text_segments.
37110+ * </pre>
37111+ *
37112+ * <code>string content = 2;</code>
37113+ *
37114+ * @return The content.
37115+ */
37116+ public java.lang.String getContent() {
37117+ java.lang.Object ref = content_;
37118+ if (!(ref instanceof java.lang.String)) {
37119+ com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
37120+ java.lang.String s = bs.toStringUtf8();
37121+ content_ = s;
37122+ return s;
37123+ } else {
37124+ return (java.lang.String) ref;
37125+ }
37126+ }
37127+ /**
37128+ *
37129+ *
37130+ * <pre>
37131+ * Contains the content of the text span so that users do
37132+ * not have to look it up in the text_segments.
37133+ * </pre>
37134+ *
37135+ * <code>string content = 2;</code>
37136+ *
37137+ * @return The bytes for content.
37138+ */
37139+ public com.google.protobuf.ByteString getContentBytes() {
37140+ java.lang.Object ref = content_;
37141+ if (ref instanceof String) {
37142+ com.google.protobuf.ByteString b =
37143+ com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
37144+ content_ = b;
37145+ return b;
37146+ } else {
37147+ return (com.google.protobuf.ByteString) ref;
37148+ }
37149+ }
37150+ /**
37151+ *
37152+ *
37153+ * <pre>
37154+ * Contains the content of the text span so that users do
37155+ * not have to look it up in the text_segments.
37156+ * </pre>
37157+ *
37158+ * <code>string content = 2;</code>
37159+ *
37160+ * @param value The content to set.
37161+ * @return This builder for chaining.
37162+ */
37163+ public Builder setContent(java.lang.String value) {
37164+ if (value == null) {
37165+ throw new NullPointerException();
37166+ }
37167+
37168+ content_ = value;
37169+ onChanged();
37170+ return this;
37171+ }
37172+ /**
37173+ *
37174+ *
37175+ * <pre>
37176+ * Contains the content of the text span so that users do
37177+ * not have to look it up in the text_segments.
37178+ * </pre>
37179+ *
37180+ * <code>string content = 2;</code>
37181+ *
37182+ * @return This builder for chaining.
37183+ */
37184+ public Builder clearContent() {
37185+
37186+ content_ = getDefaultInstance().getContent();
37187+ onChanged();
37188+ return this;
37189+ }
37190+ /**
37191+ *
37192+ *
37193+ * <pre>
37194+ * Contains the content of the text span so that users do
37195+ * not have to look it up in the text_segments.
37196+ * </pre>
37197+ *
37198+ * <code>string content = 2;</code>
37199+ *
37200+ * @param value The bytes for content to set.
37201+ * @return This builder for chaining.
37202+ */
37203+ public Builder setContentBytes(com.google.protobuf.ByteString value) {
37204+ if (value == null) {
37205+ throw new NullPointerException();
37206+ }
37207+ checkByteStringIsUtf8(value);
37208+
37209+ content_ = value;
37210+ onChanged();
37211+ return this;
37212+ }
37213+
3700137214 @java.lang.Override
3700237215 public final Builder setUnknownFields(
3700337216 final com.google.protobuf.UnknownFieldSet unknownFields) {
0 commit comments